½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 175 | Á¶È¸¼ö 2,255 | µî·ÏÀÏ 2006-01-19 00:20:47

´Ð³×ÀÓ

HappyCGI

À̸ÞÀÏ

webmaster@happycgi.com

Á¦¸ñ

[´äº¯] ¼Ò½º ÄÚµå ºÐ¼® Á» ºÎŹµå¸³´Ï´Ù.
³»¿ë
[umlki´Ô ¿øº»±Û]

¾Æ·¡ ¼Ò½º¸¦ º¸½Ã¸é ¾ÈµÇ´Â ºÎºÐ Ç¥½ÃÇß½À´Ï´Ù.
¾Æ½Ã´Â ºÐ ºÎŹµå¸³´Ï´Ù.

<?
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>
        ";
   }

// ÀÛµ¿ÇÏÁö ¾ÊÀº ºÎºÐ ³¡



ÇØÇÇCGI ÀÔ´Ï´Ù.

$c_ValueFromClick  °ªÀÌ ÁøÂ¥ nullÀÎÁö´Â °£´ÜÈ÷ echo ³ª print·Î Çؼ­ °ªÀ» º¸¸é µË´Ï´Ù. ^^

½ºÅ©¸³Æ®°¡ ƯÁ¤ php°ªÀ» POST °ªÀÌ ¾Æ´Ñ GET ¹æ½ÄÀ¸·Î °ªÀ» ¹Þ´Âµ¥¿ä.

Ȥ ¼­¹öÀÇ php ¼ÂÆÃÁß global ¿É¼ÇÀÌ ÁöÁ¤µÇ¾îÀÖ´Â°Ç ¾Æ´ÑÁö (¿ä ¿É¼ÇÀÌ ¾Æ¸¶ ÄÑÁ®ÀÖÀ¸¸é GET °ªÀ» $_GET À¸·Î¸¸

¹ÞÀ»¼ö Àִ°ɷΠ°¡¹°°¡¹° ±â¾ïÀÌ ³ª³×¿ä) È®ÀÎÇغ¸¼¼¿ä.

Àú°°À¸¸é ¾Æ·¡ ó·³ Å×½ºÆ®Çغ¸°Ú½À´Ï´Ù.

    $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>
        ";
   }
   else {
   print "oh-NO!";
   }

±×¸®°í v1_FreeLead.php ¸¦ ¿­¾î $MID¸¦ Ãâ·ÂÇÏ´Â ·çƾÀ» ³Ö¾îº¸°í
°­Á¦·Î http://www.xxxxx.com/tracking/lead/v1_FreeLead.php?MID=gslee&MEMBER_ID=$USERID&USERNAME=$NAME&ValueFromClick=$c_ValueFromClick
¿ä·¸°Ô ºÒ·¯º¸°í ºüÁø º¯¼ö¸¦ ã¾Æº¸¸é µÇÁö ¾ÊÀ»±î ½Í³×¿ä.

²À! ¼º°øÇϽñæ ^^

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ÀÌ°É ¾µ·Á°í Çϴµ¥ ¹Ýº¹ÀûÀ¸·Î »õ·Î°íħÀÌ µË´Ï´Ù. Á¦¹ß ¼öÁ¤ÇØÁÖ¼¼¿ä ¤Ð.¤Ð 2006-01-18 22:13:35
´ÙÀ½°Ô½Ã±Û phpÀε¥¿ä ¸Ç³¡¿¡ ³»¿ë ÃßÃâÇÏ´Â ÇÔ¼ö°¡ ÀÖ³ª¿ä? 2006-01-21 12:35:05