Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/blockchain-2019/
Upload File :
Current File : /var/www/html/venkat/blockchain-2019/session.php

<?php
ini_set('session.cookie_httponly', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.cookie_secure', 1);
ini_set('session.gc_maxlifetime', 180);
session_set_cookie_params(180);
$str = substr(str_shuffle("$#@ABCDEFGHIJKLMNPZWS0123456789UVMNPQRSANNAUNIV"),0,7);
//$text = rand(1000000,99999999); 
//$text = $text.$str;
$text = $text.$str;
session_start();
$_SESSION["vercode"] = $text; 
$height = 19; 
$width = 72; 
  
$image_p = imagecreate($width, $height); 
$black = imagecolorallocate($image_p, 0, 0, 0); 
$white = imagecolorallocate($image_p, 220, 220, 220); 
$font_size = 4; 
  
imagestring($image_p, $font_size, 5, 5, $text, $white); 
imageline($image_p, 0, 0, 165, 65, $grey);
imagejpeg($image_p, null, 60);
  

 
?>