¾Æ·¡ ¼Ò½º¸¦ º¸½Ã¸é ¾ÈµÇ´Â ºÎºÐ Ç¥½ÃÇß½À´Ï´Ù. ¾Æ½Ã´Â ºÐ ºÎŹµå¸³´Ï´Ù.
<? session_start(); include('../common.php'); $_GET=&$HTTP_GET_VARS; $_POST=&$HTTP_POST_VARS; $_FILES=&$HTTP_POST_FILES;
// ÇÑ±Û ¾ÆÀ̵ð üũ ¹× Áߺ¹°Ë»ö if( $tools->chkHan($_POST[userid])) { $tools->errMsg('Çѱ۾ÆÀ̵ð´Â Áö¿øµÇÁö ¾Ê½À´Ï´Ù.');} else { $userid_check = $db->cnt("member", "where userid='$_POST[userid]'"); if( $userid_check ) { $tools->errMsg('ÀÌ¹Ì »ç¿ëÁßÀÎ ¾ÆÀ̵ð ÀÔ´Ï´Ù.');}}
// »ç¿ëÁßÀÎ Áֹεî·Ï ¹øÈ£ if( !$tools->chkJumin($_POST[jumin1], $_POST[jumin2])) { $tools->errMsg('Á¤È®ÇÑ Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');} else { $jumin_check = $db->cnt("member", "where jumin1='$_POST[jumin1]' and jumin2='$_POST[jumin2]'"); if( $jumin_check ) { $tools->errMsg('ÀÌ¹Ì »ç¿ëÁßÀÎ Áֹεî·Ï¹øÈ£ ÀÔ´Ï´Ù.\n\nŸÀÎÀÇ Áֹεî·Ï¹øÈ£ »ç¿ëÀº ºÒ¹ýÀÔ´Ï´Ù.');}}
// À̸ÞÀÏ Áߺ¹ °Ë»ö if( !$tools->chkMail($_POST[email], 1)) { $tools->errMsg('Á¤È®ÇÑ À̸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');} else { $mail_check = $db->cnt("member", "where email='$_POST[email]'"); if( $mail_check ) { $tools->errMsg('ÀÌ¹Ì »ç¿ëÁßÀÎ À̸ÞÀÏÁÖ¼Ò ÀÔ´Ï´Ù.');}}
------- Áß·« -------
// ȸ¿ø ·Î±×ÀÎ $member_stat = $db->object("member", "where userid='$_POST[userid]' and passwd='$_POST[passwd]'"); $USERID = $member_stat->userid; $NAME = $member_stat->name; $EMAIL = $member_stat->email; $PASSWD = $member_stat->passwd; $LEVEL = $member_stat->level; $db->update("member", "connect=$member_stat->connect+1 where userid='$member_stat->userid' and passwd='$member_stat->passwd'"); @session_register("USERID") or die("session_register err"); @session_register("NAME") or die("session_register err"); @session_register("EMAIL") or die("session_register err"); @session_register("PASSWD") or die("session_register err"); @session_register("LEVEL") or die("session_register err");
-------------------------------------------------------------- ´Ù¸¥ »çÀÌÆ®¿¡ »ç¿ëÀÚ °èÁ¤°ú À̸§À» ³Ñ±â´Â ¼Ò½ºÀε¥..¾È³Ñ¾î °©´Ï´Ù. ¾Æ½Ã´Â ºÐ ºÎŹµå¸³´Ï´Ù. Âü°í·Î v1_FreeLead.php ÀÛµ¿ Àß µË´Ï´Ù. ¹®Á¦´Â $USERID, $NAME °ªÀÌ ¾È³Ñ¾î °¡´ÂÁö..¾Æ´Ï¸é ($c_ValueFromClick != NULL) ¿¡¼ ÁøÂ¥ NULL ÀÎÁö ¾Ë ¼ö ¾øÁö¸¸ ¾È µË´Ï´Ù. -------------------------------------------------------------- // ÀÛµ¿ÇÏÁö ¾ÊÀº ºÎºÐ ½ÃÀÛ
$c_ValueFromClick = $HTTP_COOKIE_VARS ["c_ValueFromClick"]; if( $c_ValueFromClick != NULL ) { echo " <SCRIPT LANGUAGE='JavaScript' src='http://www.xxxxx.com/tracking/lead/v1_FreeLead.php?MID=gslee&MEMBER_ID=$USERID&USERNAME=$NAME&ValueFromClick=$c_ValueFromClick'></SCRIPT> "; }
// ÀÛµ¿ÇÏÁö ¾ÊÀº ºÎºÐ ³¡ |