You last visited: Today at 18:13
Advertisement
Hp script captcha problem :(
Discussion on Hp script captcha problem :( within the Metin2 Private Server forum part of the Metin2 category.
03/03/2012, 07:42
#1
elite*gold: 0
Join Date: Dec 2010
Posts: 12
Received Thanks: 1
Hp script captcha problem :(
Problem Solved,
#Close pls
03/03/2012, 11:08
#2
elite*gold: 0
Join Date: Mar 2011
Posts: 78
Received Thanks: 11
All files with no Problems uploaded?
03/03/2012, 11:47
#3
elite*gold: 5
Join Date: Oct 2010
Posts: 1,692
Received Thanks: 1,773
Write the register.php please and say me in which folder the captcha screen is.
03/03/2012, 18:07
#4
elite*gold: 0
Join Date: Dec 2010
Posts: 12
Received Thanks: 1
Networkz
all the files work no problem except for the captcha
-----------------------------
DasKuchen
the captcha folder is inside the data folder this is a picture of the folders
and this is the register.php
PHP Code:
<div id="content"> <div class="postui2 text-title">
<h2>
Registration
</h2>
</div>
<div class="postui2 text-con">
<div class="con-wrap">
<?PHP
$regCoins = 0 ; // Startcoins
$laufZeit = 365 ; //Tage autoloot,safebox
$calcLZ = ( 60 * 60 * 24 )* 365 ;
$expireStamp = time ()+ $calcLZ ;
$expireDate = date ( "Y-m-d H:i:s" , $expireStamp );
if( $serverSettings [ 'register_on' ] && (!isset( $_SESSION [ 'user_admin' ]) && ! checkInt ( $_SESSION [ 'user_admin' ]) && ! $_SESSION [ 'user_admin' ]>= 0 )) {
if(isset( $_POST [ 'submit' ]) && $_POST [ 'submit' ]== "registrieren" ) {
if(( checkAnum ( $_POST [ 'account' ]) && strlen ( $_POST [ 'account' ])>= 8 && strlen ( $_POST [ 'account' ])<= 16 ) && checkAnum ( $_POST [ 'pass' ]) && strlen ( $_POST [ 'pass' ])>= 8 && strlen ( $_POST [ 'pass2' ])<= 16 && !empty( $_POST [ 'pass2' ]) && ( checkName ( $_POST [ 'uname' ]) && strlen ( $_POST [ 'uname' ])>= 3 && strlen ( $_POST [ 'uname' ])<= 20 ) && $_POST [ 'pass' ]== $_POST [ 'pass2' ] && checkMail ( $_POST [ 'email' ]) && strlen ( $_POST [ 'email' ])<= 40 && $_POST [ 'captcha' ]== $_SESSION [ 'captcha_id' ] && $_POST [ 'email' ]== $_POST [ 'email2' ] && ( checkAnum ( $_POST [ 'sicherheitsa' ]) && strlen ( $_POST [ 'sicherheitsa' ])>= 3 && strlen ( $_POST [ 'sicherheitsa' ])<= 16 ) && checkInt ( $_POST [ 'sicherheitsf' ]) && ( checkAnum ( $_POST [ 'loeschcode' ]) && strlen ( $_POST [ 'loeschcode' ])== 7 )) {
$hashSF = md5 ( $_POST [ 'sicherheitsa' ]);
$sfNum = mysql_real_escape_string ( $_POST [ 'sicherheitsf' ]);
$lcode = mysql_real_escape_string ( $_POST [ 'loeschcode' ]);
$zuFall = rand ( 99999 , 999999999 );
$userpass = mysql_real_escape_string ( $_POST [ 'pass' ]);
$aktivHash = ( $serverSettings [ 'mail_activation' ]) ? md5 ( $zuFall ): '' ;
$accountStatus = ( $serverSettings [ 'mail_activation' ]) ? 'BLOCK' : 'OK' ;
$sqlCmd = "INSERT INTO account.account
(login,password,real_name,email,social_id,question1,answer1,create_time,status,coins,autoloot_expire,safebox_expire,web_aktiviert)
VALUES
('" . $_POST [ 'account' ]. "',PASSWORD('" . $userpass . "'),'" . mysql_real_escape_string ( $_POST [ 'uname' ]). "','" . mysql_real_escape_string ( $_POST [ 'email' ]). "','" . $lcode . "','" . $sfNum . "','" . $hashSF . "','" . $sqlZeit . "','" . $accountStatus . "','" . $regCoins . "','" . $expireDate . "','" . $expireDate . "','" . $aktivHash . "')" ;
$sqlQry = mysql_query ( $sqlCmd , $sqlServ );
if( $sqlQry ) {
$absender = $serverSettings [ 'titel' ]. " Registration" ;
$email = $serverSettings [ 'reg_mail' ];
$empfaenger = $_POST [ 'email' ];
$mail_body = "Hallo " . $_POST [ 'uname' ]. ",
deine Registration auf " . $serverSettings [ 'titel' ]. " war erfolgreich! Um auch auf dem Server spielen zu können, musst du deinen Account aktivieren.
Das kannst du über den folgenden Link tun:
" . $serverSettings [ 'url' ]. "/index.php?s=login&do=aktivieren&hash=" . $aktivHash . "
Deine Daten sind:
Account: " . $_POST [ 'account' ]. "
Passwort: " . $userpass . "
Löschcode: " . $lcode . "
Sicherheitsfrage: " . $sFrage [ $sfNum ]. "
Antwort: " . $_POST [ 'sicherheitsa' ]. "
Viel Spaß beim Spielen,
Dein " . $serverSettings [ 'titel' ]. "-Team
Diese E-Mail wurde automatisch generiert. Bitte keine Antworten an diese Adresse schicken." ;
$titel = "Registrierung auf " . $serverSettings [ 'titel' ];
$header = "X-Priority: 3\n" ;
$header .= "X-Mailer: " . $serverSettings [ 'titel' ]. " Homepage Mailer\n" ;
$header .= "MIME-Version: 1.0\n" ;
$header .= "From: " . $absender . " <" . $serverSettings [ 'reg_mail' ]. ">\n" ;
$header .= "Reply-To: " . $serverSettings [ 'reg_mail' ]. "\n" ;
$header .= "Content-Type: text/plain; charset=iso-8859-1\n" ;
if( $serverSettings [ 'mail_activation' ]) {
mail ( $empfaenger , $titel , $mail_body , $header );
echo '<p class="meldung">Account erfolgreich angelegt. Bitte überprüfen Sie Ihr Postfach, um die Registrierung zu bestätigen.</p>' ;
}
else {
echo '<p class="meldung">Account erfolgreich angelegt. Sie können sich nun anmelden.</p>' ;
}
}
else {
echo '<p class="meldung">Registrierung fehlgeschlagen: Der Account existiert bereits.</p>' ;
}
}
else {
echo '<p class="meldung">Registrierung fehlgeschlagen: bitte alle Felder richtig angeben</p>' ;
}
}
?>
<p>Alle Felder sind Pflichtfelder und müssen ausgefüllt werden.<?PHP if( $serverSettings [ 'mail_activation' ]) { echo '<br/><b>Der Account wird per E-Mail aktiviert, also eine richtige E-Mail eingeben!</b>' ; } ?> </p>
<form action="index.php?s=register" method="POST">
<table>
<tr>
<th class="topLine">Account:</th>
<td class="tdunkel"><input type="text" name="account" maxlength="16" size="16"/> 8-16 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Name:</th>
<td class="thell"><input type="text" name="uname" maxlength="16" size="16"/> 3-20 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Password:</th>
<td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/> 8-16 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Password wiederholen:</th>
<td class="thell"><input type="password" name="pass2" maxlength="16" size="16"/></td>
</tr>
<tr>
<th class="topLine">E-Mail:</th>
<td class="tdunkel"><input type="text" name="email" maxlength="50" size="25"/> max. 40 Zeichen</td>
</tr>
<tr>
<th class="topLine">E-Mail wiederholen:</th>
<td class="thell"><input type="text" name="email2" maxlength="50" size="25"/></td>
</tr>
<tr>
<th class="topLine">Löschcode:</th>
<td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="7"/> 7 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Sicherheitsfrage:</th>
<td class="thell">
<select name="sicherheitsf">
<?PHP
foreach( $sFrage AS $fragew => $frage ) {
echo '<option value="' . $fragew . '">' . $frage . '</option>' ;
}
?>
</select>
<input type="text" name="sicherheitsa" maxlength="16" size="16"/> 3-16 Zeichen (nur a-Z,0-9)
</td>
</tr>
<tr>
<th class="topLine">Captcha:</th>
<td class="tdunkel"><img src="./captcha/captcha.php" title="Captcha"/> <input type="text" name="captcha" maxlength="5" size="5"/></td>
</tr>
<tr>
<th class="topLine" style="text-align:center;" colspan="2"><input type="submit" name="submit" value="registrieren"/> • <input type="reset" value="zurücksetzen"/></th>
</tr>
</table>
</form>
<?PHP
}
else {
echo '<p class="meldung">Die Registration ist deaktiviert oder Sie sind bereits angemeldet. Es kann kein weiterer Account erstellt werden.</p>' ;
}
?>
</div>
</div>
<div class="postui2 text-end">
</div></div>
this problem happens with all the scripts I've downloaded and tryed
03/03/2012, 19:31
#5
elite*gold: 5
Join Date: Oct 2010
Posts: 1,692
Received Thanks: 1,773
Quote:
Originally Posted by
hasoony
Networkz
all the files work no problem except for the captcha
-----------------------------
DasKuchen
the captcha folder is inside the data folder this is a picture of the folders
and this is the register.php
PHP Code:
<div id="content"> <div class="postui2 text-title">
<h2>
Registration
</h2>
</div>
<div class="postui2 text-con">
<div class="con-wrap">
<?PHP
$regCoins = 0 ; // Startcoins
$laufZeit = 365 ; //Tage autoloot,safebox
$calcLZ = ( 60 * 60 * 24 )* 365 ;
$expireStamp = time ()+ $calcLZ ;
$expireDate = date ( "Y-m-d H:i:s" , $expireStamp );
if( $serverSettings [ 'register_on' ] && (!isset( $_SESSION [ 'user_admin' ]) && ! checkInt ( $_SESSION [ 'user_admin' ]) && ! $_SESSION [ 'user_admin' ]>= 0 )) {
if(isset( $_POST [ 'submit' ]) && $_POST [ 'submit' ]== "registrieren" ) {
if(( checkAnum ( $_POST [ 'account' ]) && strlen ( $_POST [ 'account' ])>= 8 && strlen ( $_POST [ 'account' ])<= 16 ) && checkAnum ( $_POST [ 'pass' ]) && strlen ( $_POST [ 'pass' ])>= 8 && strlen ( $_POST [ 'pass2' ])<= 16 && !empty( $_POST [ 'pass2' ]) && ( checkName ( $_POST [ 'uname' ]) && strlen ( $_POST [ 'uname' ])>= 3 && strlen ( $_POST [ 'uname' ])<= 20 ) && $_POST [ 'pass' ]== $_POST [ 'pass2' ] && checkMail ( $_POST [ 'email' ]) && strlen ( $_POST [ 'email' ])<= 40 && $_POST [ 'captcha' ]== $_SESSION [ 'captcha_id' ] && $_POST [ 'email' ]== $_POST [ 'email2' ] && ( checkAnum ( $_POST [ 'sicherheitsa' ]) && strlen ( $_POST [ 'sicherheitsa' ])>= 3 && strlen ( $_POST [ 'sicherheitsa' ])<= 16 ) && checkInt ( $_POST [ 'sicherheitsf' ]) && ( checkAnum ( $_POST [ 'loeschcode' ]) && strlen ( $_POST [ 'loeschcode' ])== 7 )) {
$hashSF = md5 ( $_POST [ 'sicherheitsa' ]);
$sfNum = mysql_real_escape_string ( $_POST [ 'sicherheitsf' ]);
$lcode = mysql_real_escape_string ( $_POST [ 'loeschcode' ]);
$zuFall = rand ( 99999 , 999999999 );
$userpass = mysql_real_escape_string ( $_POST [ 'pass' ]);
$aktivHash = ( $serverSettings [ 'mail_activation' ]) ? md5 ( $zuFall ): '' ;
$accountStatus = ( $serverSettings [ 'mail_activation' ]) ? 'BLOCK' : 'OK' ;
$sqlCmd = "INSERT INTO account.account
(login,password,real_name,email,social_id,question1,answer1,create_time,status,coins,autoloot_expire,safebox_expire,web_aktiviert)
VALUES
('" . $_POST [ 'account' ]. "',PASSWORD('" . $userpass . "'),'" . mysql_real_escape_string ( $_POST [ 'uname' ]). "','" . mysql_real_escape_string ( $_POST [ 'email' ]). "','" . $lcode . "','" . $sfNum . "','" . $hashSF . "','" . $sqlZeit . "','" . $accountStatus . "','" . $regCoins . "','" . $expireDate . "','" . $expireDate . "','" . $aktivHash . "')" ;
$sqlQry = mysql_query ( $sqlCmd , $sqlServ );
if( $sqlQry ) {
$absender = $serverSettings [ 'titel' ]. " Registration" ;
$email = $serverSettings [ 'reg_mail' ];
$empfaenger = $_POST [ 'email' ];
$mail_body = "Hallo " . $_POST [ 'uname' ]. ",
deine Registration auf " . $serverSettings [ 'titel' ]. " war erfolgreich! Um auch auf dem Server spielen zu können, musst du deinen Account aktivieren.
Das kannst du über den folgenden Link tun:
" . $serverSettings [ 'url' ]. "/index.php?s=login&do=aktivieren&hash=" . $aktivHash . "
Deine Daten sind:
Account: " . $_POST [ 'account' ]. "
Passwort: " . $userpass . "
Löschcode: " . $lcode . "
Sicherheitsfrage: " . $sFrage [ $sfNum ]. "
Antwort: " . $_POST [ 'sicherheitsa' ]. "
Viel Spaß beim Spielen,
Dein " . $serverSettings [ 'titel' ]. "-Team
Diese E-Mail wurde automatisch generiert. Bitte keine Antworten an diese Adresse schicken." ;
$titel = "Registrierung auf " . $serverSettings [ 'titel' ];
$header = "X-Priority: 3\n" ;
$header .= "X-Mailer: " . $serverSettings [ 'titel' ]. " Homepage Mailer\n" ;
$header .= "MIME-Version: 1.0\n" ;
$header .= "From: " . $absender . " <" . $serverSettings [ 'reg_mail' ]. ">\n" ;
$header .= "Reply-To: " . $serverSettings [ 'reg_mail' ]. "\n" ;
$header .= "Content-Type: text/plain; charset=iso-8859-1\n" ;
if( $serverSettings [ 'mail_activation' ]) {
mail ( $empfaenger , $titel , $mail_body , $header );
echo '<p class="meldung">Account erfolgreich angelegt. Bitte überprüfen Sie Ihr Postfach, um die Registrierung zu bestätigen.</p>' ;
}
else {
echo '<p class="meldung">Account erfolgreich angelegt. Sie können sich nun anmelden.</p>' ;
}
}
else {
echo '<p class="meldung">Registrierung fehlgeschlagen: Der Account existiert bereits.</p>' ;
}
}
else {
echo '<p class="meldung">Registrierung fehlgeschlagen: bitte alle Felder richtig angeben</p>' ;
}
}
?>
<p>Alle Felder sind Pflichtfelder und müssen ausgefüllt werden.<?PHP if( $serverSettings [ 'mail_activation' ]) { echo '<br/><b>Der Account wird per E-Mail aktiviert, also eine richtige E-Mail eingeben!</b>' ; } ?> </p>
<form action="index.php?s=register" method="POST">
<table>
<tr>
<th class="topLine">Account:</th>
<td class="tdunkel"><input type="text" name="account" maxlength="16" size="16"/> 8-16 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Name:</th>
<td class="thell"><input type="text" name="uname" maxlength="16" size="16"/> 3-20 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Password:</th>
<td class="tdunkel"><input type="password" name="pass" maxlength="16" size="16"/> 8-16 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Password wiederholen:</th>
<td class="thell"><input type="password" name="pass2" maxlength="16" size="16"/></td>
</tr>
<tr>
<th class="topLine">E-Mail:</th>
<td class="tdunkel"><input type="text" name="email" maxlength="50" size="25"/> max. 40 Zeichen</td>
</tr>
<tr>
<th class="topLine">E-Mail wiederholen:</th>
<td class="thell"><input type="text" name="email2" maxlength="50" size="25"/></td>
</tr>
<tr>
<th class="topLine">Löschcode:</th>
<td class="tdunkel"><input type="text" name="loeschcode" maxlength="7" size="7"/> 7 Zeichen (nur a-Z,0-9)</td>
</tr>
<tr>
<th class="topLine">Sicherheitsfrage:</th>
<td class="thell">
<select name="sicherheitsf">
<?PHP
foreach( $sFrage AS $fragew => $frage ) {
echo '<option value="' . $fragew . '">' . $frage . '</option>' ;
}
?>
</select>
<input type="text" name="sicherheitsa" maxlength="16" size="16"/> 3-16 Zeichen (nur a-Z,0-9)
</td>
</tr>
<tr>
<th class="topLine">Captcha:</th>
<td class="tdunkel"><img src="./captcha/captcha.php" title="Captcha"/> <input type="text" name="captcha" maxlength="5" size="5"/></td>
</tr>
<tr>
<th class="topLine" style="text-align:center;" colspan="2"><input type="submit" name="submit" value="registrieren"/> • <input type="reset" value="zurücksetzen"/></th>
</tr>
</table>
</form>
<?PHP
}
else {
echo '<p class="meldung">Die Registration ist deaktiviert oder Sie sind bereits angemeldet. Es kann kein weiterer Account erstellt werden.</p>' ;
}
?>
</div>
</div>
<div class="postui2 text-end">
</div></div>
this problem happens with all the scripts I've downloaded and tryed
Here my Captcha.php
PHP Code:
<?PHP
session_name ( "m2hp" );
session_start ();
header ( "Content-Type: image/png" ); // Sets the Content of this file to an PNG-Image
$ttf = "./franconi.ttf" ; //Schriftart
$_SESSION [ "captcha_id" ] = "" ; // Clears the old value
$zufallszahl = mt_rand ( 50000 , 60000 ); // Generates a random number between 50000 and 60000
$_SESSION [ "captcha_id" ] = $zufallszahl ; // Sets the value of the session
$bild = imagecreatefromgif ( "bg.gif" ); // Creates a new image from background file
$weisser = imagecolorallocate ( $bild , 255 , 255 , 255 ); // Sets white text color
imagettftext ( $bild , 11 , 10 , 5 , 20 , $weisser , $ttf , $_SESSION [ "captcha_id" ]);
//imagestring($bild, 3, 8, 6, $_SESSION["captcha_id"], $weisser); // Prints the random number von the image
ImagePNG ( $bild ); // Output for the generated image
?>
03/03/2012, 20:36
#6
elite*gold: 500
Join Date: Nov 2011
Posts: 3,352
Received Thanks: 1,026
Ist das Captcha Bild als .gif abgespeichert?
03/03/2012, 21:49
#7
elite*gold: 0
Join Date: Dec 2010
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by
.SurPrise
Ist das Captcha Bild als .gif abgespeichert?
yes
03/03/2012, 22:16
#8
elite*gold: 0
Join Date: May 2011
Posts: 10,932
Received Thanks: 11,779
Did you install gdlib2 ?
03/03/2012, 22:40
#9
elite*gold: 0
Join Date: Dec 2010
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by
Marco_A
Did you install gdlib2 ?
No, how do I do that?
03/03/2012, 22:47
#10
elite*gold: 0
Join Date: May 2011
Posts: 10,932
Received Thanks: 11,779
Do you have a webspace or a vServer ?
03/03/2012, 22:54
#11
elite*gold: 0
Join Date: Dec 2010
Posts: 12
Received Thanks: 1
Quote:
Originally Posted by
Marco_A
Do you have a webspace or a vServer ?
I use a server for the website
the server was released by daroo 2011 mega edition
Similar Threads
Captcha im Login Script
11/04/2011 - Metin2 Private Server - 1 Replies
Weiß jemand wie ich ein Captcha in mein Loginscript auf der Hp einbauen kann?
Captcha Script
01/07/2010 - Browsergames - 2 Replies
Hi Leute, Ich suche ein Captcha script das Kreis Captchas erkennt und diese klickt
Autologin Script with captcha identification
02/25/2009 - SRO Hacks, Bots, Cheats & Exploits - 85 Replies
! Note ! AgBot is NOT supported !
Hello ,
with great help from thasTony I wrote a script wich logs you automatically into international silkroad online . And yes , it is with captcha identification .
http://butl9r.de/images/al_script.JPG
Funcs
- starts silkroad and enters id and pw
- through the captchatool from SpiritOffice it decodes every image code ( much faster then reloggeros )
Relog Script with Captcha Recognizion
08/27/2008 - SRO Hacks, Bots, Cheats & Exploits - 5 Replies
/closeme pls
resume here: http://www.elitepvpers.com/forum/sro-exploits-hacks -bots-guides/161827-autologin-script-captcha-ident ification.html
All times are GMT +2. The time now is 18:14 .