Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Captcha Integration Required.

  1. #1
    Simmeon's Avatar
    Simmeon is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    52
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Captcha Integration Required.

    Simple Intergration required.

    Need to add this Captcha :Securimage CAPTCHA - Free PHP Captcha Script
    Adding to this page : Submit Your Proxy Site

    Code:
    <?php
    include "config.php";
    $detect=$_SERVER['PHP_SELF'];
    $detect2=$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
    $detect3=explode("/",$detect2);
    $count=count($detect3);
    $ddd="";
    for ($i=0;$i<$count-1;$i++){
     if ($i==0){
     $ddd=$detect3[$i];
    }else{$ddd=$ddd."/".$detect3[$i];}
    }
    $detect3=$ddd."/";
    $flag=0; $insert_flag=1;
    if (isset($_POST['url']) and isset($_POST['category']) and isset($_POST['email'])){
    $link = mysql_connect("$db_host", "$db_user", "$db_pass"); // host,username,password
    mysql_select_db($db_name);
     $flag=1;
     $url=$_POST['url'];
     $category=$_POST['category'];
     $email=$_POST['email'];
     
       $query = "SELECT * FROM submission";
           $result = mysql_query($query) or die("");
       $count=-1;
           while ($line = mysql_fetch_row($result)){
             $count++;
        $file[$count]=$line[0]; 
          }
     
       $query = "SELECT * FROM approve";
           $result = mysql_query($query) or die("");
     
           while ($line = mysql_fetch_row($result)){
             $count++;
        $file[$count]=$line[0]; 
          }
    $url_x=$url;
    if (strstr($url,'http://')){
     $url_x=str_replace('http://','',$url);
    }
    if (strstr($url,'www.')){
     $url_x=str_replace('www.','',$url_x);
    }
     
       for ($i=0;$i<=$count;$i++){
        //if ($url==$file[$i]){
        if (strstr($file[$i],$url_x)){
         $insert_flag=0; $flag=0; break;
        }
     
      }
    if ($insert_flag!=0){
     $time=time();
     $query = "INSERT INTO `approve` (`url`, `category`, `email`, `time`) VALUES ('$url', '$category', '$email', '$time');";
     $result = mysql_query($query) or die("");
    $headers  = "MIME-Version: 1.0
    ";
    $headers .= "Content-type: text/html; charset=windows-1251
    ";
    $headers .= "From: $email
    ";
    $checklink=@file($url);
    $checkcount=count($checklink);
    $checkflag="No";
    for ($i=0;$i<$checkcount;$i++){
     if (strstr($checklink[$i],"$detect3")){
      $checkflag="Yes"; break;
     }
    }
     
    $msg="Proxy URL: <a href=$url>$url</a><br>====================<br>
    Category: $category<br>====================<br>
    E-mail: <a href=mailto:$email>$email</a><br>====================<br>
    Backlink: $checkflag<br>====================<br>
    <br><br>
    <a href='http://$detect3"."admin.php'>Go to admin area</a>
    ";
    mail("$admin_email","New Proxy Site \"$url\" submitted", $msg, $headers);
     
    $file=@file("subemail.txt");
    $count=count($file);
    $file_subject=@file("subemail_subject.txt");
    $count_subject=count($file_subject);
    $msg="";
    for ($i=0;$i<$count;$i++){
     $msg.=$file[$i];
    }
    $headers  = "MIME-Version: 1.0
    ";
    $headers .= "Content-type: text/html; charset=windows-1251
    ";
    $headers .= "From: $admin_email
    ";
    mail($email,$file_subject[0],$msg,$headers);
     
     
    }
    }
    ?>
    <?php include "template/top.tpl"; ?>
     
        <b><font face="Verdana" size="2">Submit your Proxy Site! </b> </font>
     
        </div> 
       <div id="pageNav"> 
       <div id="sectionLinks" style='height: <?php include "config.php"; print ($links_num*24);?>px; overflow: auto; width: 100%'> 
     
    <?php
    $recent_num=19; // Number of recent categories
    ?>
     
    <?php include "php/currently_active_proxies.php"; ?>
    </div>
    </div>
      <div id="content">
        <div class="feature">
     
    <?php
    if ($insert_flag==0){
    echo <<<D
    <b><br><br><font face=Verdana size=2>Proxy Already Listed
    </b><br><br>
    This proxy is already listed or pending to be listed.</font>
    D;
    }
    if ($flag==1){
     
    echo <<<D
    <b><br><br>
    <font face=Verdana size=2>Submission Received
    </b><br><br>
     Thank you for your submission, it has been received.<br> Once approved, your listing should be live within 24 hours.<br><b> A link back is required for a guaranteed listing on our site. </b><br>Please use the following to link to our site:
    <br><br>
    <form method=get name=f onSubmit="return false;">
    <input type=text name=l value='<a href="http://$detect3">Web Proxies</a>' size=40 onclick="document.f.l.focus();document.f.l.select();">
    </form>
    <br><br>
    </font>
    D;
    }
    ?>
     
     
     
    <table cellpadding=0 cellspacing=0 width=800><tr><td>
          <br>
         <font face="Verdana" size="2"> Get your proxy listed at Sneek.In, by meeting our requirements:
    <br>
    <br>
       1. <b>A backlink is required. If we dont see it, we wont accept you.</b><br><br>
       <span style="color:#CC0000;font-weight:normal;">&lt;a href=&quot;http://sneek.in/&quot;&gt;Web Proxies&lt;/a&gt;</span></li>
       <br>
       <br>
       2. Web Proxies only. We will <b>NOT</b> accept proxy listing sites!
       <br>
       3. Free domains will <b>NOT</b> be accepted!
       <br>
     
    </a>
          <p>
    <script language="JavaScript">
     function check(){
      if (document.form.url.value=='' || document.form.url.value=='http://' || document.form.email.value==''){
       alert('Please fill empty fields!'); return false;
      }
     }
    </script>
    <form method=post action="" name=form onSubmit="return check();">
     
    <div id="sectionLinks"> 
      <strong><font face="Verdana" size="2">Website URL</strong></font><br>
      <br>
    <input type=text name=url value='http://' style='width:250px'><br><br>
    <strong><font face="Verdana" size="2">Category</strong></font><br>
    <br>
    <select name="category">
    <?php
    $cat_list=@file("categories.txt");
    $count_cat=count($cat_list);
    for ($i=0;$i<$count_cat;$i++){
    echo <<<D
     <option value="$cat_list[$i]">$cat_list[$i]</option>
    D;
    }
    ?>
    </select><br><br>
    <strong><font face="Verdana" size="2">Email</strong></font><br>
    <br>
    <input type=text name=email style='width:250px'><br><br>
    <input type=submit value='Submit'> 
    </div> 
    </form>
    </td><td valign=middle width=100>
     
      <p>&nbsp;</p></td></tr></table>
         </p>
    <?php include "template/bottom.tpl"; ?>
    Need exposure? Promote your Proxy and Proxy Group

  2. #2
    anantshri is offline on leave from Net Builders : will post rarely
    Join Date
    Apr 2010
    Location
    india
    Posts
    338
    Thanks
    80
    Thanked 47 Times in 40 Posts
    thanks for the script

    it can definitely help many people

  3. #3
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    Untested as I dont have the script your using but you can try. Be sure to install the captcha download you supplied a link for and upload it to your server before testing

    PHP Code:
    <?php

      
    // Start of Captcha
    session_start();
    include_once 
    $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';

    $securimage = new Securimage();

    if (
    $securimage->check($_POST['captcha_code']) == false) {
      
    // the code was incorrect
      // handle the error accordingly with your other error checking

      // or you can do something really basic like this
      
    die('The code you entered was incorrect.  Go back and try again.');
    }
      
    // End of Captcha      
    include "config.php";
    $detect=$_SERVER['PHP_SELF'];
    $detect2=$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
    $detect3=explode("/",$detect2);
    $count=count($detect3);
    $ddd="";
    for (
    $i=0;$i<$count-1;$i++){
     if (
    $i==0){
     
    $ddd=$detect3[$i];
    }else{
    $ddd=$ddd."/".$detect3[$i];}
    }
    $detect3=$ddd."/";
    $flag=0$insert_flag=1;
    if (isset(
    $_POST['url']) and isset($_POST['category']) and isset($_POST['email'])){
    $link mysql_connect("$db_host""$db_user""$db_pass"); // host,username,password
    mysql_select_db($db_name);
     
    $flag=1;
     
    $url=$_POST['url'];
     
    $category=$_POST['category'];
     
    $email=$_POST['email'];
     
       
    $query "SELECT * FROM submission";
           
    $result mysql_query($query) or die("");
       
    $count=-1;
           while (
    $line mysql_fetch_row($result)){
             
    $count++;
        
    $file[$count]=$line[0]; 
          }
     
       
    $query "SELECT * FROM approve";
           
    $result mysql_query($query) or die("");
     
           while (
    $line mysql_fetch_row($result)){
             
    $count++;
        
    $file[$count]=$line[0]; 
          }
    $url_x=$url;
    if (
    strstr($url,'http://')){
     
    $url_x=str_replace('http://','',$url);
    }
    if (
    strstr($url,'www.')){
     
    $url_x=str_replace('www.','',$url_x);
    }
     
       for (
    $i=0;$i<=$count;$i++){
        
    //if ($url==$file[$i]){
        
    if (strstr($file[$i],$url_x)){
         
    $insert_flag=0$flag=0; break;
        }
     
      }
    if (
    $insert_flag!=0){
     
    $time=time();
     
    $query "INSERT INTO `approve` (`url`, `category`, `email`, `time`) VALUES ('$url', '$category', '$email', '$time');";
     
    $result mysql_query($query) or die("");
    $headers  "MIME-Version: 1.0
    "
    ;
    $headers .= "Content-type: text/html; charset=windows-1251
    "
    ;
    $headers .= "From: $email
    "
    ;
    $checklink=@file($url);
    $checkcount=count($checklink);
    $checkflag="No";
    for (
    $i=0;$i<$checkcount;$i++){
     if (
    strstr($checklink[$i],"$detect3")){
      
    $checkflag="Yes"; break;
     }
    }
     
    $msg="Proxy URL: <a href=$url>$url</a><br>====================<br>
    Category: 
    $category<br>====================<br>
    E-mail: <a href=mailto:
    $email>$email</a><br>====================<br>
    Backlink: 
    $checkflag<br>====================<br>
    <br><br>
    <a href='http://
    $detect3"."admin.php'>Go to admin area</a>
    "
    ;
    mail("$admin_email","New Proxy Site \"$url\" submitted"$msg$headers);
     
    $file=@file("subemail.txt");
    $count=count($file);
    $file_subject=@file("subemail_subject.txt");
    $count_subject=count($file_subject);
    $msg="";
    for (
    $i=0;$i<$count;$i++){
     
    $msg.=$file[$i];
    }
    $headers  "MIME-Version: 1.0
    "
    ;
    $headers .= "Content-type: text/html; charset=windows-1251
    "
    ;
    $headers .= "From: $admin_email
    "
    ;
    mail($email,$file_subject[0],$msg,$headers);
     
     
    }
    }
    ?>
    <?php 
    include "template/top.tpl"?>
     
        <b><font face="Verdana" size="2">Submit your Proxy Site! </b> </font>
     
        </div> 
       <div id="pageNav"> 
       <div id="sectionLinks" style='height: <?php include "config.php"; print ($links_num*24);?>px; overflow: auto; width: 100%'> 
     
    <?php
    $recent_num
    =19// Number of recent categories
    ?>
     
    <?php include "php/currently_active_proxies.php"?>
    </div>
    </div>
      <div id="content">
        <div class="feature">
     
    <?php
    if ($insert_flag==0){
    echo <<<D
    <b><br><br><font face=Verdana size=2>Proxy Already Listed
    </b><br><br>
    This proxy is already listed or pending to be listed.</font>
    D;
    }
    if (
    $flag==1){
     
    echo <<<D
    <b><br><br>
    <font face=Verdana size=2>Submission Received
    </b><br><br>
     Thank you for your submission, it has been received.<br> Once approved, your listing should be live within 24 hours.<br><b> A link back is required for a guaranteed listing on our site. </b><br>Please use the following to link to our site:
    <br><br>
    <form method=get name=f onSubmit="return false;">
    <input type=text name=l value='<a href="http://
    $detect3">Web Proxies</a>' size=40 onclick="document.f.l.focus();document.f.l.select();">
    </form>
    <br><br>
    </font>
    D;
    }
    ?>
     
     
     
    <table cellpadding=0 cellspacing=0 width=800><tr><td>
          <br>
         <font face="Verdana" size="2"> Get your proxy listed at Sneek.In, by meeting our requirements:
    <br>
    <br>
       1. <b>A backlink is required. If we dont see it, we wont accept you.</b><br><br>
       <span style="color:#CC0000;font-weight:normal;">&lt;a href=&quot;http://sneek.in/&quot;&gt;Web Proxies&lt;/a&gt;</span></li>
       <br>
       <br>
       2. Web Proxies only. We will <b>NOT</b> accept proxy listing sites!
       <br>
       3. Free domains will <b>NOT</b> be accepted!
       <br>
     
    </a>
          <p>
    <script language="JavaScript">
     function check(){
      if (document.form.url.value=='' || document.form.url.value=='http://' || document.form.email.value==''){
       alert('Please fill empty fields!'); return false;
      }
     }
    </script>
    <form method=post action="" name=form onSubmit="return check();">
     
    <div id="sectionLinks"> 
      <strong><font face="Verdana" size="2">Website URL</strong></font><br>
      <br>
    <input type=text name=url value='http://' style='width:250px'><br><br>
    <strong><font face="Verdana" size="2">Category</strong></font><br>
    <br>
    <select name="category">
    <?php
    $cat_list
    =@file("categories.txt");
    $count_cat=count($cat_list);
    for (
    $i=0;$i<$count_cat;$i++){
    echo <<<D
     <option value="$cat_list[$i]">$cat_list[$i]</option>
    D;
    }
    ?>
    </select><br><br>
    <strong><font face="Verdana" size="2">Email</strong></font><br>
    <br>
    <input type=text name=email style='width:250px'><br><br>
    <!-- Start Captcha Form -->
    <strong><font face="Verdana" size="2">Captcha</strong></font><br />
    <img id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA Image" /><br />
    <input type="text" name="captcha_code" size="10" maxlength="6" /><br />
    <a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false">Reload Image</a><br><br>
    <!-- End Captcha Form -->
    <input type=submit value='Submit'> 
    </div> 
    </form>
    </td><td valign=middle width=100>
     
      <p>&nbsp;</p></td></tr></table>
         </p>
    <?php include "template/bottom.tpl"?>

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  4. #4
    Simmeon's Avatar
    Simmeon is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    52
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Just tried it,

    layout does not load and its says: The code you entered was incorrect. Go back and try again.
    Need exposure? Promote your Proxy and Proxy Group

  5. #5
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    when you installed the capchta script was it put in a folder called "securimage"?

    If so Im not sure what to say may end having to give a coder access to your site to install it. dtkguy if he has time could probably do this in a few minutes for you for a small fee.

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  6. #6
    Simmeon's Avatar
    Simmeon is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    52
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yeah, the folder is securimage

    Securimage Test Form

    Is he online often?

    Yeah send him a PM he will answer for sure. Do you know which page processes the inputted information for your script not the captcha?

    If you know of another page that does try inserting

    PHP Code:
      // Start of Captcha
    session_start();
    include_once 
    $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';

    $securimage = new Securimage();

    if (
    $securimage->check($_POST['captcha_code']) == false) {
      
    // the code was incorrect
      // handle the error accordingly with your other error checking

      // or you can do something really basic like this
      
    die('The code you entered was incorrect.  Go back and try again.');
    }
      
    // End of Captcha 
    that into the top of that page and remove it from the current one. Think this part is in the wrong page for some reason.
    Need exposure? Promote your Proxy and Proxy Group

  7. #7
    Simmeon's Avatar
    Simmeon is offline Unknown Net Builder
    Join Date
    Apr 2010
    Posts
    52
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thought the page i posted would be in charge of that the "exchange.php"

    It sends an email on if they have backlink or not.
    Adds site to db.

    OK, ill PM
    Need exposure? Promote your Proxy and Proxy Group

  8. #8
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Which proxy list script is this?

  9. #9
    WebEvader's Avatar
    WebEvader is offline Moderator
    Join Date
    Jan 2009
    Posts
    397
    Blog Entries
    2
    Thanks
    166
    Thanked 26 Times in 21 Posts
    @ dtkguy - It's the Proxy List Script... being used on his site here...

  10. #10
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Thanks WebEvader

    @Simmeon, check your PMs

Page 1 of 2 12 LastLast

Similar Threads

  1. Ads That Require CAPTCHA's to Be Entered
    By Will.Spencer in forum Monetizing
    Replies: 1
    Last Post: 2 November, 2010, 23:21 PM
  2. Simple CAPTCHA Verification Form
    By mega in forum Programming
    Replies: 1
    Last Post: 18 October, 2009, 20:01 PM
  3. Foreign Keyboards + Captcha
    By Kovich in forum Tech-Talk
    Replies: 3
    Last Post: 5 October, 2009, 16:11 PM
  4. [WTS] contact form script with nice captcha
    By chandan in forum Scripts
    Replies: 0
    Last Post: 25 September, 2009, 06:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •