• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Comeback với ttit

Kayashiteru

Member
Lâu lắm rồi e k onl diễn đàn vũng không biết là các ae còn onl như trk hay không :p nhân ngày e onl trở lại sẽ hỗ trợ ae làm wap/web.
Diều kiện : mem ttit + host cp11 + like
nếu các bạn k có code mh sẽ lấy trong box share. :D
Nếu ai chưa có host có thể liên hệ vs mh để mua host thông số như trong congnghesoviet.com :D
3Bạn đầu mh sẽ hoàn chỉnh code giúp nếu có lỗi :D
 
có code wap truyện phân chapter ko share phát:)
 
Lâu lắm rồi e k onl diễn đàn vũng không biết là các ae còn onl như trk hay không :p nhân ngày e onl trở lại sẽ hỗ trợ ae làm wap/web.
Diều kiện : mem ttit + host cp11 + like
nếu các bạn k có code mh sẽ lấy trong box share. :D
Nếu ai chưa có host có thể liên hệ vs mh để mua host thông số như trong congnghesoviet.com :D
3Bạn đầu mh sẽ hoàn chỉnh code giúp nếu có lỗi :D
B có code upload nào giống Up.5vn.Org ko share mình với, m có Host rồi. Tiện thể b kiếm cho mình code forum teen bằng XenForo và code web xem phim nha!
 
B có code upload nào giống Up.5vn.Org ko share mình với, m có Host rồi. Tiện thể b kiếm cho mình code forum teen bằng XenForo và code web xem phim nha!
wap upload này share rùi bạn ơi
 
Sr ae nay mới onl dc :D

- - - - - - - - - -

Bác nào muoodn làm pm ib info host vs code nhé :p
 
login/register nhé
Ok, view file đó ra thì ra thế này. B hướng dẫn mình fix với.
Code:
<?php
error_reporting(0);
 $C_IMAGE_TYPE = 'png';
 $C_WIDTH = 80;
 $C_HEIGHT = 50;
 $C_NUM_GENSIGN = 4;
 $path_fonts = 'fonts/';
 
 $EXT = strtoupper($HTTP_GET_VARS['ext']);
 if($EXT=='GIF' || $EXT=='JPEG' || $EXT=='PNG') $C_IMAGE_TYPE = $EXT;
 if(is_numeric($HTTP_GET_VARS['width']) && $HTTP_GET_VARS['width']>100 && $HTTP_GET_VARS['width']<500) $C_WIDTH = $HTTP_GET_VARS['width'];
 if(is_numeric($HTTP_GET_VARS['height']) && $HTTP_GET_VARS['height']>100 && $HTTP_GET_VARS['height']<500) $C_HEIGHT = $HTTP_GET_VARS['height'];
 if(is_numeric($HTTP_GET_VARS['qty']) && $HTTP_GET_VARS['qty']>2 && $HTTP_GET_VARS['qty']<10) $C_NUM_GENSIGN = $HTTP_GET_VARS['qty'];
 
 //session_start();
 session_register('securityCode');
 
 $C_FONT_SIZE = intval($C_HEIGHT/(($C_HEIGHT/$C_WIDTH)*6));
 $C_NUM_SIGN = intval(($C_WIDTH*$C_HEIGHT)/150);
 
 $CODE = array();
 $LETTERS = array('a','b','c','d','e','f','g','h','j','k','m','n','p','q','r','s','t','u','v','w','x','y','z','2','3','4','5','6','7','8','9');
 $FIGURES = array('50','70','90','110','130','150','170','190','210');


 $src = imagecreatetruecolor($C_WIDTH,$C_HEIGHT);
 
 $fon = imagecolorallocate($src,255,255,255);
 imagefill($src,0,0,$fon);


 $FONTS = array();
 $dir=opendir($path_fonts);
 while($fontName = readdir($dir)) {
   if($fontName != "." && $fontName != "..") {
     if(strtolower(strrchr($fontName,'.'))=='.ttf') $FONTS[] = $path_fonts.$fontName;
   }
 }
 closedir($dir);
 
 if(sizeof($FONTS)>0) {
   for($i=0;$i<$C_NUM_SIGN;$i++) {
     $h = 1;
     $color = imagecolorallocatealpha($src,rand(0,255),rand(0,255),rand(0,255),100); 
     $font = $FONTS[rand(0,sizeof($FONTS)-1)];
     $letter = $LETTERS[rand(0,sizeof($LETTERS)-1)];
     $size = rand($C_FONT_SIZE-2,$C_FONT_SIZE+2);
     $angle = rand(0,60);
     if($h == rand(1,2)) $angle = rand(360,300);
     imagettftext($src,$size,$angle,rand($C_WIDTH*0.1,$C_WIDTH-$C_WIDTH*0.1),rand($C_HEIGHT*0.2,$C_HEIGHT),$color,$font,$letter);
   }
   for($i=0;$i<$C_NUM_GENSIGN;$i++) {
     $h = 1;
     $color = imagecolorallocatealpha($src,$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],rand(10,30)); 
     $font = $FONTS[rand(0,sizeof($FONTS)-1)];
     $letter = $LETTERS[rand(0,sizeof($LETTERS)-1)];
     $size = rand($C_FONT_SIZE*2.1-1,$C_FONT_SIZE*2.1+1);
     $x = (empty($x)) ? $C_WIDTH*0.08 : $x + ($C_WIDTH*0.8)/$C_NUM_GENSIGN+rand(0,$C_WIDTH*0.01);
     $y = ($h == rand(1,2)) ? (($C_HEIGHT*1.15*3)/4) + rand(0,$C_HEIGHT*0.02) : (($C_HEIGHT*1.15*3)/4) - rand(0,$C_HEIGHT*0.02);
     $angle = rand(5,20);
     $CODE[] = $letter;
     if($h == rand(0,10)) $letter = strtoupper($letter);
     if($h == rand(1,2)) $angle = rand(355,340);
     imagettftext($src,$size,$angle,$x,$y,$color,$font,$letter);
   }
 } else {
   for($x=0;$x<$C_WIDTH;$x++) {
     for($i=0;$i<($C_HEIGHT*$C_WIDTH)/1000;$i++){
       $color = imagecolorallocatealpha($src,$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],rand(10,30)); 
       imagesetpixel($src,rand(0,$C_WIDTH),rand(0,$C_HEIGHT),$color);
     }
   }
   unset($x,$y);
   for($i=0;$i<$C_NUM_GENSIGN;$i++) {
     $h = 1;
     $color = imagecolorallocatealpha($src,$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],rand(10,30)); 
     $letter = $LETTERS[rand(0,sizeof($LETTERS)-1)];
     $x = (empty($x)) ? $C_WIDTH*0.08 : $x + ($C_WIDTH*0.8)/$C_NUM_GENSIGN+rand(0,$C_WIDTH*0.01);
     $y = ($h == rand(1,2)) ? (($C_HEIGHT*1)/4) + rand(0,$C_HEIGHT*0.1) : (($C_HEIGHT*1)/4) - rand(0,$C_HEIGHT*0.1);
     $CODE[] = $letter;
     if($h == rand(0,10)) $letter = strtoupper($letter);
     imagestring($src,5,$x,$y,$letter,$color);
   }
 }
 $HTTP_SESSION_VARS['securityCode'] = implode('',$CODE);
 $_SESSION['securityCode'] = implode('',$CODE);


 header ("Content-type: image/png"); 
 imagepng($src);
   
 imagedestroy($src);
?>
 
Last edited:
Ok, view file đó ra thì ra thế này. B hướng dẫn mình fix với.
Code:
<?php
error_reporting(0);
 $C_IMAGE_TYPE = 'png';
 $C_WIDTH = 80;
 $C_HEIGHT = 50;
 $C_NUM_GENSIGN = 4;
 $path_fonts = 'fonts/';
 
 $EXT = strtoupper($HTTP_GET_VARS['ext']);
 if($EXT=='GIF' || $EXT=='JPEG' || $EXT=='PNG') $C_IMAGE_TYPE = $EXT;
 if(is_numeric($HTTP_GET_VARS['width']) && $HTTP_GET_VARS['width']>100 && $HTTP_GET_VARS['width']<500) $C_WIDTH = $HTTP_GET_VARS['width'];
 if(is_numeric($HTTP_GET_VARS['height']) && $HTTP_GET_VARS['height']>100 && $HTTP_GET_VARS['height']<500) $C_HEIGHT = $HTTP_GET_VARS['height'];
 if(is_numeric($HTTP_GET_VARS['qty']) && $HTTP_GET_VARS['qty']>2 && $HTTP_GET_VARS['qty']<10) $C_NUM_GENSIGN = $HTTP_GET_VARS['qty'];
 
 //session_start();
 session_register('securityCode');
 
 $C_FONT_SIZE = intval($C_HEIGHT/(($C_HEIGHT/$C_WIDTH)*6));
 $C_NUM_SIGN = intval(($C_WIDTH*$C_HEIGHT)/150);
 
 $CODE = array();
 $LETTERS = array('a','b','c','d','e','f','g','h','j','k','m','n','p','q','r','s','t','u','v','w','x','y','z','2','3','4','5','6','7','8','9');
 $FIGURES = array('50','70','90','110','130','150','170','190','210');


 $src = imagecreatetruecolor($C_WIDTH,$C_HEIGHT);
 
 $fon = imagecolorallocate($src,255,255,255);
 imagefill($src,0,0,$fon);


 $FONTS = array();
 $dir=opendir($path_fonts);
 while($fontName = readdir($dir)) {
   if($fontName != "." && $fontName != "..") {
     if(strtolower(strrchr($fontName,'.'))=='.ttf') $FONTS[] = $path_fonts.$fontName;
   }
 }
 closedir($dir);
 
 if(sizeof($FONTS)>0) {
   for($i=0;$i<$C_NUM_SIGN;$i++) {
     $h = 1;
     $color = imagecolorallocatealpha($src,rand(0,255),rand(0,255),rand(0,255),100); 
     $font = $FONTS[rand(0,sizeof($FONTS)-1)];
     $letter = $LETTERS[rand(0,sizeof($LETTERS)-1)];
     $size = rand($C_FONT_SIZE-2,$C_FONT_SIZE+2);
     $angle = rand(0,60);
     if($h == rand(1,2)) $angle = rand(360,300);
     imagettftext($src,$size,$angle,rand($C_WIDTH*0.1,$C_WIDTH-$C_WIDTH*0.1),rand($C_HEIGHT*0.2,$C_HEIGHT),$color,$font,$letter);
   }
   for($i=0;$i<$C_NUM_GENSIGN;$i++) {
     $h = 1;
     $color = imagecolorallocatealpha($src,$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],rand(10,30)); 
     $font = $FONTS[rand(0,sizeof($FONTS)-1)];
     $letter = $LETTERS[rand(0,sizeof($LETTERS)-1)];
     $size = rand($C_FONT_SIZE*2.1-1,$C_FONT_SIZE*2.1+1);
     $x = (empty($x)) ? $C_WIDTH*0.08 : $x + ($C_WIDTH*0.8)/$C_NUM_GENSIGN+rand(0,$C_WIDTH*0.01);
     $y = ($h == rand(1,2)) ? (($C_HEIGHT*1.15*3)/4) + rand(0,$C_HEIGHT*0.02) : (($C_HEIGHT*1.15*3)/4) - rand(0,$C_HEIGHT*0.02);
     $angle = rand(5,20);
     $CODE[] = $letter;
     if($h == rand(0,10)) $letter = strtoupper($letter);
     if($h == rand(1,2)) $angle = rand(355,340);
     imagettftext($src,$size,$angle,$x,$y,$color,$font,$letter);
   }
 } else {
   for($x=0;$x<$C_WIDTH;$x++) {
     for($i=0;$i<($C_HEIGHT*$C_WIDTH)/1000;$i++){
       $color = imagecolorallocatealpha($src,$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],rand(10,30)); 
       imagesetpixel($src,rand(0,$C_WIDTH),rand(0,$C_HEIGHT),$color);
     }
   }
   unset($x,$y);
   for($i=0;$i<$C_NUM_GENSIGN;$i++) {
     $h = 1;
     $color = imagecolorallocatealpha($src,$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],$FIGURES[rand(0,sizeof($FIGURES)-1)],rand(10,30)); 
     $letter = $LETTERS[rand(0,sizeof($LETTERS)-1)];
     $x = (empty($x)) ? $C_WIDTH*0.08 : $x + ($C_WIDTH*0.8)/$C_NUM_GENSIGN+rand(0,$C_WIDTH*0.01);
     $y = ($h == rand(1,2)) ? (($C_HEIGHT*1)/4) + rand(0,$C_HEIGHT*0.1) : (($C_HEIGHT*1)/4) - rand(0,$C_HEIGHT*0.1);
     $CODE[] = $letter;
     if($h == rand(0,10)) $letter = strtoupper($letter);
     imagestring($src,5,$x,$y,$letter,$color);
   }
 }
 $HTTP_SESSION_VARS['securityCode'] = implode('',$CODE);
 $_SESSION['securityCode'] = implode('',$CODE);


 header ("Content-type: image/png"); 
 imagepng($src);
   
 imagedestroy($src);
?>
bình thường mà? Chắc lỗi font rùi. Cuả mh vẫn reg nick bình thường. B dùng code cuả mình nè: demo luôn đó http://tainhac.hj.cx/x-upload.zip
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top