Ȩ>ÄÄÇ»ÅÍÀ̾߱â
logo_01.gif


TOTAL ARTICLE : 35, TOTAL PAGE : 1 / 2
±¸ºÐ À¥ÀÏ¹Ý | ű×-¼Ò½º | Á¦·Îº¸µå | ±×´©º¸µå |
Á¦·Îº¸µå : Á¦·Îº¸µå ½ºÆÔ Â÷´ÜÇϱâ
 ¿À¿¹    | 2007¡¤05¡¤03 18:56 | HIT : 3,594 | VOTE : 68
¾Æ·¡¼Ò½º¸¦ code_img.php·Î ÀúÀåÈÄ Á¦·Îº¸µå(bbs)Æú´õ¾È¿¡ ³Ö½À´Ï´Ù..
<?
// Çâ»óµÈ ³­¼ö¹ß»ý,»ý¼º.
mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff);
$rand_code .= mt_rand(1000,9999);

//anti_codeÆú´õ¿¡ ±ÇÇÑ°ú ¾²±â
$fp = fopen("anti_code/".$_GET['anti_robotCode'].".hnx","w") or die("¾²±â¿¡ ½ÇÆÐ");  
fwrite($fp, md5($rand_code), 1024);
chmod("anti_code/".$_GET['anti_robotCode'].".hnx", 0666) or die("±ÇÇÑ ½ÇÆÐ");
fclose($fp);
header ("Content-type: image/png");

//±×¸²ÀÇ °¡·ÎÅ©±â
$width = "80";
//±×¸²ÀÇ ¼¼·ÎÅ©±â
$height = "22";
$im = @imagecreate ($width, $height) or die ("À̹ÌÁö ¿¡·¯!!");
  
//±×¸²¾ÈÀÇ »ö(rgb)
ImageColorAllocate($im, 255,255,255);
  
//±×¸²ÀÇ Å׵θ®»ö(rgb»ö ÄÚµå)
$black = ImageColorAllocate($im, 219,219,219);
ImageRectangle($im,0,0,$width-1,$height-1,$black);
  
for ($i=0;$i<=128;$i++)
{
$point_color = imagecolorallocate ($im, mt_rand(0,255), mt_rand(0,255), mt_rand(0,255));
imagesetpixel($im,mt_rand(2,128),mt_rand(2,38),$point_color);
}
for ($i=0;$i<=5;$i++)
{
$text_color = imagecolorallocate ($im, mt_rand(0,255), mt_rand(0,128), mt_rand(0,255));
$x = 5 + $i * 20;
$y = mt_rand(1,5);
imagechar ($im, 5, $x, $y,  $rand_code{$i}, $text_color);
}
imagepng ($im);
imagedestroy ($im);
die();
?>

±×´ÙÀ½..

Á¦·Îº¸µå(bbs)Æú´õ/script/script_write.php ÆÄÀÏÀ» phpÀü¿ë ¿¡µðÅÍ·Î ¿­¾î..
if(!document.write.name.value)
  {
   alert('À̸§À» ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä.');
   document.write.name.focus();
   return false;
  }
¿äºÎºÐ ¾Æ·¡¿¡ ´ÙÀ½ ¼Ò½º¸¦ ³Ö¾îÁÝ´Ï´Ù.

if(!document.write.anti_robotCodeimg.value)
  {
   alert('Äڵ带 ÀÔ·ÂÇØÁÖ¼¼¿ä.');
   document.write.anti_robotCodeimg.focus();
   return false;
  }

±×´ÙÀ½..

Á¦·Îº¸µå(bbs)Æú´õ¾È write_ok.php¸¦ phpÀü¿ë ¿¡µðÅÍ·Î ¿­¾î..
24¹ø°ÁÙ...
// °¢Á¾ º¯¼ö °Ë»ç;;
if(!$member[no]) { ¿ä°Å ´ÙÀ½ÁÙ¿¡ ¾Æ·¡¼Ò½º¸¦ ³Ö½À´Ï´Ù.

$codeFile = file("anti_code/".$_GET['anti_robotCode'].".hnx");        
if($codeFile[0] != md5($_POST['anti_robotCodeimg'])) Error("ÄÚµåÀÔ·ÂÀÌ ¿Ã¹Ù¸¥Áö È®ÀÎÇϼ¼¿ä.");

±×´ÙÀ½.. ¼Ò½º ³¡ºÎºÐÂë¿¡..
// MySQL ´Ý±â ÀÌ°Å ¹Ù·ÎÀ§¿¡ ¾Æ·¡¼Ò½º¸¦ Ãß°¡ÇÕ´Ï´Ù.
// ÆÄÀÏ ÀÚµ¿»èÁ¦.
$anti_codedir = './anti_code/';
$dir = opendir($anti_codedir);
while((false!==($file=readdir($dir))))
if($file!="." and $file !="..") @unlink($anti_codedir.'/'.$file);
closedir($dir);

±×´ÙÀ½..

»ç¿ëÁßÀÎ ½ºÅ²Æú´õ¾È write.php¸¦ phpÀü¿ë ¿¡µðÅÍ·Î ¿­¾î..
¼Ò½º ¸ÇÀ§¿¡..
<?
// Çâ»óµÈ ³­¼ö¹ß»ý,»ý¼º.
mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff);
$rand_codei = md5(mt_rand(1000000, 9999999));
?>
Ãß°¡ÇÕ´Ï´Ù..
±×´ÙÀ½..
action=write_ok.php À̺κÐÀ»..
action=write_ok.php<? echo "?anti_robotCode=".$rand_codei; ?> ÀÌ·¸°Ô º¯°æ.

±×´ÙÀ½..
À̹ÌÁö Äڵ尡 º¸ÀÏ ÀÚ¸®¿¡..

<?if(!$member[no]){?>ÄÚµåÀÔ·Â: <input name="anti_robotCodeimg" type="text" style="width:90px;height:21px;" class="input"> <img src="code_img.php<? echo '?anti_robotCode='.$rand_codei;?>" border="0" style="vertical-align:top;"><?}?>

³Ö¾îÁÖ¼¼¿ä...

ÀÌÁ¦ ¸¶Áö¸·À¸·Î..
Á¦·Îº¸µåÆú´õ(bbs)¾È¿¡ anti_codeÆú´õ¸¦ ¸¸µé¾î ÁÝ´Ï´Ù..(Æú´õ ±ÇÇѼ³Á¤ 707)

ÀÌÁ¦ ³²Àº°ÍÀº Å×½ºÆ®




ƯÁ¤°Ô½ÃÆÇ¿¡¸¸ Àû¿ëÇÏ·Á¸é..
write_ok.php¿¡¼­..

if($id == "°Ô½ÃÆǾÆÀ̵ð"){
$codeFile = file("anti_code/".$_GET['anti_robotCode'].".hnx");
if($codeFile[0] != md5($_POST['anti_robotCodeimg'])) Error("ÄÚµåÀÔ·ÂÀÌ ¿Ã¹Ù¸¥Áö È®ÀÎÇϼ¼¿ä.");
}

ÀÌ·±½ÄÀ¸·Î ÇÏ½Ã¸é µË´Ï´Ù..

¶ÇÇÑ..

¹Ý´ë·Î.. ƯÁ¤ °Ô½ÃÆǸ¸ Á¦¿ÜÇÏ°í Àû¿ëµÇ°ÔÇÏ·Á¸é..

if($id != "°Ô½ÃÆǾÆÀ̵ð"){
$codeFile = file("anti_code/".$_GET['anti_robotCode'].".hnx");
if($codeFile[0] != md5($_POST['anti_robotCodeimg'])) Error("ÄÚµåÀÔ·ÂÀÌ ¿Ã¹Ù¸¥Áö È®ÀÎÇϼ¼¿ä.");
}

ÇϽøé ÇØ´ç ¾ÆÀ̵𸸠Á¦¿ÜÇÏ°í Àû¿ëµË´Ï´Ù..^^;








// ȸ¿ø°¡ÀÔÇÒ ¶§ ·Îº¿±Û Á¦ÇÑÇϱâ

±Ý¹æ Àû¿ëÇØ ºÃ½À´Ï´Ù. ¿À·ù°¡ ÀÖÀ» ¼öµµ ÀÖ°ÚÁÒ. Àú´Â ¾ø³×¿ä.
ÀÌ»ó ÀÖÀ¸¸é ¸»¾¸ÇØ ÁÖ¼¼¿ä.

/// member_join.php

¸Ç À§¿¡

<?
// Çâ»óµÈ ³­¼ö¹ß»ý,»ý¼º.
mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff);
$rand_codei = md5(mt_rand(1000000, 9999999));
?>

action=member_join_ok.php ¸¦ ã¾Æ¼­

action=member_join_ok.php<? echo "?anti_robotCode=".$rand_codei; ?>
·Î º¯°æ

Àû´çÇÑ À§Ä¡(Àú´Â ȸ¿ø°¡ÀÔ ¾ÆÀÌÄÜ À§¿¡)

<input type=image border=0 src=images/button_join.gif>  
À§¿¡ ¾Æ·¡Ã³·³

<font color=red><b>ÄÚµåÀÔ·Â</b></font>: <input name="anti_robotCodeimg" type="text" style="width:90px;height:21px;" class="input"> <img src="code_img.php<? echo '?anti_robotCode='.$rand_codei;?>" border="0" style="vertical-align:top;">
<input type=image border=0 src=images/button_join.gif>  


/// member_join_ok.php


if($member[no]&&!$mode) Error("ÀÌ¹Ì °¡ÀÔÀÌ µÇ¾î ÀÖ½À´Ï´Ù.","window.close");
¾Æ·¡¿¡

$codeFile = file("anti_code/".$_GET['anti_robotCode'].".hnx");
if($codeFile[0] != md5($_POST['anti_robotCodeimg'])) Error("ÄÚµåÀÔ·ÂÀÌ ¿Ã¹Ù¸¥Áö È®ÀÎÇϼ¼¿ä.");





// »èÁ¦


mysql_close($connect); ¸¦ ã¾Æ¼­ ±× À§¿¡

// ÄÚµåÆÄÀÏ ÀÚµ¿»èÁ¦.
$anti_codedir = './anti_code/';
$dir = opendir($anti_codedir);
while((false!==($file=readdir($dir))))
if($file!="." and $file !="..") @unlink($anti_codedir.'/'.$file);
closedir($dir);
¸¦ ³ÖÀ¸¼¼¿ä.
¼£·Ò~
³­! ÀÚÀ¯ÀÎ...
  
35 Á¦·Îº¸µå   ¹Ì´ÏÀ§´Ï ¿¡µðÅÍ FAQ  ¿À¿¹ 07¡¤10¡¤31 5635 126
34 Á¦·Îº¸µå   ¿©·¯°Ô½ÃÆÇ ÃֱٰԽù° ÅëÇÕÇÏ¿© »Ì±â 2Â÷ ¼ö°³ ¹öÁ¯ÀÔ´Ï´Ù.  ¿À¿¹ 04¡¤05¡¤28 5215 394
33 Á¦·Îº¸µå   Á¦·Îº¸µå 2009.9.22 º¸¾È Ãë¾àÁ¡ ÆÐÄ¡  ¿À¿¹ 09¡¤09¡¤29 4849 294
32 Á¦·Îº¸µå   [Á¦·Îº¸µå]Á¦·Îº¸µå ÃֽŹöÀü¿¡¼­ Ç÷¡½Ã ¸Þ´º »ç¿ëÇÒ¶§ »õ·Î°íħ ¾ÈµÇ´Â ¹®Á¦  ¿À¿¹ 04¡¤08¡¤30 4029 299
31 Á¦·Îº¸µå   Á¦·Îº¸µå ½ºÆÔ¹æÁö±â´É(ZM_Crypt 2.0)  ¿À¿¹ 09¡¤02¡¤06 3898 191
30 Á¦·Îº¸µå   Á¦·Îº¸µå ¼­¹ö ÀÌÀü ¹æ¹ý  ¿À¿¹ 08¡¤09¡¤19 3772 230
29 Á¦·Îº¸µå   DQ Revolution 1.8.p9 ÃÖ±Ù°¶·¯¸®¿¡ ½æ³×ÀÏ ºÒ·¯¿À±â  ¿À¿¹ 09¡¤03¡¤20 3715 151
28 Á¦·Îº¸µå   °¶·¯¸®¿¡ ÇѱÛÀ̸§ Àû¿ëÇÏ±â  ¿À¿¹ 09¡¤06¡¤29 3643 218
Á¦·Îº¸µå   Á¦·Îº¸µå ½ºÆÔ Â÷´ÜÇÏ±â  ¿À¿¹ 07¡¤05¡¤03 3594 68
26 Á¦·Îº¸µå   GD¸¦ ÀÌ¿ëÇÏ¿© ½æ³×ÀÏÀ» Á¦·Îº¸µå °¶·¯¸®¿¡ Àû¿ë½ÃÅ°±â 2  ¿À¿¹ 04¡¤05¡¤20 3487 254
25 Á¦·Îº¸µå   ÃÖ±Ù °Ô½Ã¹°º¸±â ¼Óµµ ºü¸£°Ô ¸¸µé±â  ¿À¿¹ 05¡¤06¡¤02 3375 119
24 Á¦·Îº¸µå   ÃֱٰԽù°¿¡¼­ more ¸µÅ©½ÃÅ°´Â ¹æ¹ý  ¿À¿¹ 06¡¤01¡¤14 3079 64
23 Á¦·Îº¸µå   Á¦·Îº¸µå ½ºÆÔ±¤°í°Ô½Ã¹°,µ¡±Û ÀÚµ¿µî·Ï ¹æÁö ZM_Crypt 2.0  ¿À¿¹ 08¡¤08¡¤19 3061 181
22 Á¦·Îº¸µå   Á¦·Îº¸µå¿¡ À¥¿¡µðÅÍ »ç¿ëÇϱâ(¹Ì´ÏÀ§´Ï)  ¿À¿¹ 05¡¤06¡¤21 3044 166
21 Á¦·Îº¸µå   ÃֱٰԽù°¿¡ ºñ¹Ð±Ûµµ Ãâ·ÂÇÏ±â  ¿À¿¹ 09¡¤10¡¤21 2962 215
20 Á¦·Îº¸µå   [Á¦·Îº¸µå]»õ·Î°íħ ÈÄ¿¡µµ ÇöÀç ÆäÀÌÁö °è¼Ó º¸ÀÌ±â  ¿À¿¹ 04¡¤08¡¤30 2891 300
19 Á¦·Îº¸µå   Áö¿¥½ºÆÔÇÁ¸®(ZmSpamFree)  ¿À¿¹ 09¡¤08¡¤30 2785 187
18 Á¦·Îº¸µå   Á¦·Îº¸µå °ü¸®ÀÚ°èÁ¤ Á¢¼ÓÀÌ ¾ÈµÉ¶§  ¿À¿¹ 09¡¤07¡¤12 2643 151
17 Á¦·Îº¸µå   Á¦·Îº¸µå 30ÃÊ Á¦ÇÑ Ç®±â  ¿À¿¹(ÁåÀå) 04¡¤04¡¤14 2523 165
16 Á¦·Îº¸µå   °Ô½ÃÆÇ¿¡ ½ºÆÔ¹æÁöÇÏ±â  ¿À¿¹ 05¡¤01¡¤19 2455 163
12
Copyright 1999-2024 Zeroboard / skin by GGAMBO