Sindbad~EG File Manager

Current Path : /var/www/web3/captcha/
Upload File :
Current File : //var/www/web3/captcha/captcha.php

 <?
      // archivo: captcha.php
  
  function randomText($length) {
  
          $pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
  
          for($i=0;$i<$length;$i++) {
   
            $key .= $pattern{rand(0,35)};
   
          }
   
          return $key;
   
      }

session_start();
  
      $_SESSION['tmptxt'] = randomText(8);
echo "estoy en captcha";
   
//      $captcha = imagecreatefromgif("upualogo.gif");
      $captcha = imagecreatefromjpeg("upualogo.jpg");
   
      $colText = imagecolorallocate($captcha, 0, 0, 0);
  
      imagestring($captcha, 5, 16, 7, $_SESSION['tmptxt'], $colText);
   
      header("Content-type: image/jpeg");
  
      imagejpeg($captcha);
      
   
?>      


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists