<?php session_start(); $md5 = md5(rand(1000,9999)); $pass = substr($md5, 10, 5); $width = 110; $height = 50; //if(intval($_GET["posting"])==1) $_SESSION["posting"]["capCode"]=strtolower( $pass ); //else $_SESSION["capCode"] = strtolower ( $pass ) ; $image = imagecreate($width, $height); $white = imagecolorallocate($image, 255, 255, 255); $black = imagecolorallocate($image, 0, 0, 0); $grey = imagecolorallocate($image, 150, 150, 150); imagefill($image, 0, 0, $white); imagestring($image, 5, 33, 18, strtoupper ( $pass ), $black); //imageline($image, 0, $height/2, $width, $height/2, $grey); //imageline($image, $width/2, 0, $width/2, $height, $grey); header("Content-Type: image/jpeg"); imagejpeg($image); imagedestroy($image); ?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php session_start(); $md5 = md5(rand(1000,9999)); $pass = substr($md5, 10, 5); $width = 110; $height = 50; //if(intval($_GET["posting"])==1) $_SESSION["posting"]["capCode"]=strtolower( $pass ); //else $_SESSION["capCode"] = strtolower ( $pass ) ; $image = imagecreate($width, $height); $white = imagecolorallocate($image, 255, 255, 255); $black = imagecolorallocate($image, 0, 0, 0); $grey = imagecolorallocate($image, 150, 150, 150); imagefill($image, 0, 0, $white); imagestring($image, 5, 33, 18, strtoupper ( $pass ), $black); //imageline($image, 0, $height/2, $width, $height/2, $grey); //imageline($image, $width/2, 0, $width/2, $height, $grey); header("Content-Type: image/jpeg"); imagejpeg($image); imagedestroy($image); ?>
mail ( $classified["EmailAddress"] , "Quelqu'un a repondu a votre annonce sur ".base_url , "Bonjour, \n Vous avez reçu une message concernant votre annonce'".$classified["AdTitle"]."' De la part de l'utilisateur '".$_POST["FromEmailAddress"]."' : \n ".$_POST["EmailText"]." \n\n --------------------- \n ".$app_init_data["SiteName"]." Team, \n". base_url , "from:".$app_init_data["SiteTitle"]."<".$app_init_data["OwnerEmail"].">" ) ; $_SESSION["str_system_message"] = "Confirmation: Votre courrier électronique a été transmis avec succès." ; }