Jump to content

Installing recaptcha in my mp3 serach engine script


mudi

Recommended Posts

Hello im using the mp3 search engine script from x10media

Can someone help me installing recaptcha please?

 

Code of register.php

<?
include("includes/session.php");
include("templates/header.php");
include("templates/header_sub.php");

?>
<table width="725" border="0" align="center">
<tr>
  <td>
<?
/**
* The user is already logged in, not allowed to register.
*/
if($session->logged_in){

   echo "<h1>Registered</h1>";
   echo "<p>We're sorry <b>$session->username</b>, but you've already registered. "
       ."<a href=\"$web_path\">Go back Home</a>.</p>";
}
/**
* The user has submitted the registration form and the
* results have been processed.
*/

elseif(isset($_SESSION['regsuccess'])){
   /* Registration was successful */
   if($_SESSION['regsuccess']){
      echo "<h3>Registered!</h3>";
      echo "<p>Thank you <b>".$_SESSION['reguname']."</b>, your information has been added to the database, "
          ."you may now <a href=\"".$web_path."main.php\">log in</a>.</p>";
   }
   /* Registration failed */
   else{
      echo "<h3>Registration Failed</h3>";
      echo "<p>We're sorry, but an error has occurred and your registration for the username <b>".$_SESSION['reguname']."</b>, "
          ."could not be completed.<br>You will be redirected back to the register page in a few seconds.</p><br>";
      echo "<script language=javascript>
setTimeout(\"location.href='register.php'\", 5000);
</script>";
    
   }
   unset($_SESSION['regsuccess']);
   unset($_SESSION['reguname']);
}

/**
* The user has not filled out the registration form yet.
* Below is the page with the sign-up form, the names
* of the input fields are important and should not
* be changed.
*/
else{
?>

<table align="center" border="0" width="728">
<tr>
	<td valign="top"><p><br>


<?
echo $settings[reg_text];
echo "<br>";
?>
</td>
</tr>
<tr><td> </td></tr>
<td valign="top">
<?if($_GET['error']!="") { echo "<div class=\"little-box\">$_GET[error]</div>"; } ?>
</td>
</tr>
<td valign="top">
<form name="Register" action="<?=$web_path;?>process.php" method="POST" onSubmit="return ValidateForm()">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td colspan="2"> </td></tr>
<? if($form->num_errors > 0){ echo "<tr><td colspan=\"2\"><font size=\"1\" color=\"#ff0000\">".$form->num_errors." error(s) found</td></tr>"; } ?>
<? if($_GET['message'] !=""){ echo "<tr><td colspan=\"2\"><font size=\"1\" color=\"#ff0000\">".$_GET['message']."</td></tr>"; } ?>
<tr><td colspan="2"> </td></tr>
<tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr>
<tr><td>Email:</td><td><input type="text" name="email" maxlength="50" value="<? echo $form->value("email"); ?>"></td><td><? echo $form->error("email"); ?></td></tr>
<tr><td colspan="2" align="right">
<input type="hidden" name="subjoin" value="1">
<input type="submit" value="Join!"></td></tr>
<tr><td colspan="2"> </td></tr>
<tr><td colspan="2" align="left"><a href="main.php">Already registered?   Click here to login!</a></td></tr>
</table>
</form>

</td><td width="310" align="center" valign="top">
   <?=$ads['box_ad'];?></td></tr></table>

<?
}

?>

</td>
</tr>
</table>
</td>
</tr>
</table>
<?php include("templates/footer.php");?>

</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.