|
|
XML Code |
1 |
<form name="dl" action="http://dl10.rapidshare.de/files/30026126/170799368/DieDatei" method="post">Download <font color="red">DieDatei</font>: dl10.rapidshare.de (7953 von 10000 MBit/s in Gebrauch)<br><h3>Kein Premium-User. Bitte <img src="https://ssl.rapidshare.de/cpt170799368.png"> hier eingeben: <input name="captcha" size="4" maxlength="3" type="text"> <input name="actionstring" value="Download" type="submit"></h3></form> |
|
|
PHP Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?PHP session_start(); $alphanum = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $code = substr( str_shuffle( $alphanum ), 0, 5 ); $_SESSION['captcha'] = md5( $code ); $image = imagecreatefromjpeg( '../images/captcha' .rand( 1, 4 ). '.jpg'); $bgCol = imagecolorallocate ( $image, 255, 255, 255 ); $txtCol = imagecolorallocate ( $image, 0, 0, 0 ); imagestring ( $image, 5, 5, 8, $code, $txtCol ); header( 'Expires: Mon, 12 Jul 1999 01:01:00 GMT' ); header( 'Last-Modified: ' . gmdate( "D, d M Y H:i:s" ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); header( 'Content-type: image/jpeg' ); imagejpeg( $image ); imagedestroy( $image ); ?> |
|
|
HTML Code |
1 2 |
<img src="include/captcha.php" border="0" alt="captcha"><br> Visuelle Bestätigung: <input name="captcha" size="5" type="text"> |
|
|
PHP Quellcode |
1 2 3 4 |
if ( md5($income['captcha']) == $_SESSION['captcha'] ) { CAPCHA OK } |
Quoted from ""TDege""
Habe deine Frage leider nicht richtig verstanden. :oops:
Kannst es ja vielleicht nochmal ein bisschen genauer darstellen oder ich bin einfach nur doof :cry: , und jemand anderes kann dir weiterhelfen.
|
|
PHP Quellcode |
1 2 3 4 5 6 7 8 9 10 |
<img src="captcha.php" border="0" alt="captcha"><br> Visuelle Bestätigung: <input name="captcha" size="5" type="text"> <input type='submit' value='Eintragen'> <?php if ( md5($income['captcha']) == $_SESSION['captcha'] ) { echo 'Captcha ok'; } else 'Captcha Error'; ?> |
|
|
PHP Quellcode |
1 2 3 4 |
if ( md5($income['captcha']) == $_SESSION['captcha'] ) { CAPCHA OK } |
|
|
PHP Quellcode |
1 |
$image = imagecreatefromjpeg( '../images/captcha' .rand( 1, 4 ). '.jpg'); |
|
|
PHP Quellcode |
1 |
$image = imagecreatefromjpeg( './pfad/bild.jpg'); |