Pages:
Author

Topic: [Alpha Faucet Script] | v2.00 Coming Soon! - page 5. (Read 32137 times)

newbie
Activity: 25
Merit: 0
    • Next, in your libs folder kindly open ctrl.php.
    • Look for the following code:
    Code:
    //verify captcha
    if(isset($_POST['g-recaptcha-response'])) {
       $capResponse = $_POST['g-recaptcha-response'];
       $pingCaptcha = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secret_key&response=$capResponse&remoteip=$userip");
       $jsonCaptcha = json_decode($pingCaptcha, TRUE);
       $captchaSuccess = $jsonCaptcha["success"];
      
       if ($captchaSuccess == "true") {
           sleep(rand(1,10));
           $timer = $faucet_timer * 60;
           $addy = $_POST["addy"]; //get addy
           $ref = $_POST["ref"]; //get ref addy
           $opt = $_POST["option"]; //get option
           $time_addy = "../$db_name/addy/$addy.xxx"; //time of addy
           $time_ip = "../$db_name/ip/$userip.xxx"; //time of ip
           $ref_file = "../$db_name/ref/$addy.xxx"; //store ref
      
           if (!file_exists($time_addy)) {
               $write_addy = fopen($time_addy, "w");
               fclose($write_addy);
           }

           if (!file_exists($time_ip)) {
               $write_ip = fopen($time_ip, "w");
               fclose($write_ip);
           }

           if (!file_exists($ref_file) && !empty($ref)) {
               $crt_rf = fopen($ref_file, "w");
               fwrite($crt_rf, $ref);
               fclose($crt_rf);
           }

           if (file_exists($ref_file)) {
               $xref = file_get_contents($ref_file);
               $ref = $xref;
           }
           $btc = "BTC";
           if (file_exists($time_addy) && file_exists($time_ip)) {

               $open_addy = file_get_contents($time_addy);
               $open_ip = file_get_contents($time_ip);

               if (empty($open_addy) && empty($open_ip)) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   } else {
                       $msg = "Fuck you";
                       header('Location: ../index.php?msg='.$msg.'');
                   }
               }

               if (!empty($open_ip) && !empty($open_addy)) {
                   $t_addy = time() - $open_addy; //verify time in addy
                   $t_ip = time() - $open_ip; //verify time in ip
                   if ($t_addy > $timer && $t_ip > $timer) {
                       if ($opt == "fh") {
                           require_once("send_fh.php");
                       } elseif ($opt == "fs") {
                           require_once("send_fs.php");
                       }
                   } else {
                       if ($t_addy < $timer) {
                           $te = $timer - $t_addy; //verify addy time
                           $tem = intval($te / 60);
                           $msg = "You must have to wait $tem minutes before next claim.";
                           header('Location: ../index.php?msg='.$msg.'');
                       } elseif ($t_ip < $timer) {
                           $te = $timer - $t_ip; //verify ip time
                           $tem = intval($te / 60);
                           $msg = "Your IP will be available for next claim after $tem minutes.";
                           header('Location: ../index.php?msg='.$msg.'');
                       }
                   }

               }
               if (!empty($open_ip) && empty($open_addy)) {
                   $t_ip = time() - $open_ip; //verify time in ip
                   if ($t_ip > $timer) {
                       if ($opt == "fh") {
                           require_once("send_fh.php");
                       } elseif ($opt == "fs") {
                           require_once("send_fs.php");
                       }
                   } elseif ($t_ip < $timer) {
                       $te = $timer - $t_ip; //verify ip time
                       $tem = intval($te / 60);
                       $msg = "Your IP will be available for next claim after $tem minutes.";
                       header('Location: ../index.php?msg='.$msg.'');
                   }
               }
               if (empty($open_ip) && !empty($open_addy)) {
                   $t_addy = time() - $open_addy; //verify time in addy
                   if ($t_addy > $timer) {
                       if ($opt == "fh") {
                           require_once("send_fh.php");
                       } elseif ($opt == "fs") {
                           require_once("send_fs.php");
                       }
                   } elseif ($t_addy < $timer) {
                       $te = $timer - $t_addy; //verify addy time
                       $tem = intval($te / 60);
                       $msg = "You must have to wait $tem minutes before next claim.";
                       header('Location: ../index.php?msg='.$msg.'');
                   }
               }
           }
        } else {
           $msg = "Your Captcha Was Invalid.";
           header('Location: ../index.php?msg='.$msg.'');
        }
    } else {
    header('Location: ../index.php');
    }
    ?>

    continued on next post . . .
    newbie
    Activity: 25
    Merit: 0
    hello guys.

    i am gonna tut on how to replace google captcha with captchme. note: backup everything first. something might go wrong during the process.

    Step 1: Create an account with Captchme if you still don't have one. REGISTER HERE

    Step 2: Once you are registered, an email will be sent to your inbox containing various information most especially the following:
    • Url
    • Login
    • Password
    Step 3: Download their plugin, the link is also included in your email.

    Step 4: Integration to your Alpha Faucet Site
    • Upload captchme-lib.php file to your libs folder.
    • In your index.php look for the code:
    Code:
    echo $site_key?>" data-theme="dark">
    • Replace with:
    Code:
       

    require_once("libs/captchme-lib.php");
    $publicKey "YOUR PUBLICKEY";
    echo 
    captchme_generate_html($publicKey);
    ?>

        
    • Input: YOUR PUBLICKEY.
    • Save.

    continued in next post . . .
    newbie
    Activity: 25
    Merit: 0
    hello guys.

    to those who are having problems with Short Link. as we all know prol.ink no longer exists and it is replaced with btc.ms.

    from your folder ../links, kindly open file link.php

    look for:
    Code:
    $api_url = "http://prol.ink/api/?api=$prolink_api&url=$site_url/links/verifier.php?id=$rnd&format=text";

    and replace with:
    Code:
    $api_url = "https://btc.ms/api/?api=$prolink_api&url=$site_url/links/verifier.php?id=$rnd&format=text";

    then save.

    assuming you already have "Short Links Patch for v1.00 and v1.01"
    kindly open file verifier.php, still from your folder ../links

    look for:
    Code:
    $lnk_lnk = "lnk/$userip.xxx"; //link path

    and replace with:
    Code:
    $lnk_lnk = "../xxx/lnk/$userip.xxx"; //link path

    again save.

    that's all, you can try now if it works.
    newbie
    Activity: 25
    Merit: 0
    hello guys. i like this script since it's lite and easy to use. so i am suggesting that if we could share some ideas how to improve or enhance the script to make it great and popular.

    i am not good in coding but i will share the code i saw from other forums, the code will show Faucethub Balance in your faucet, this has not been added to the faucet script yet, i just integrate it with mine. you can use this if you like, credit not mine since i only saw this and tried and it worked.

    Code:
    			  							// Get cURL resource
    $curl curl_init();
    // Set some options
    curl_setopt_array($curl, array(
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_URL => 'https://faucethub.io/api/v1/balance',
    CURLOPT_HTTPHEADER, array('Content-Type: application/json'),
    CURLOPT_POST => 1,
    CURLOPT_POSTFIELDS => array(
    api_key => 'YOUR API KEY',
    currency => 'BTC'
    )
    ));
    // Send the request & save response to $resp
    $resp curl_exec($curl);
    // Close request to clear up some resources
    curl_close($curl);

    $json json_decode($resptrue);

    // print_r($json);
    echo $json['balance_bitcoin'];
    ?>

    just input the necessary data here api_key => 'YOUR API KEY'

    output, echo $json['balance_bitcoin']; or echo $json['balance'];

    i have used it in my faucet site. Faucet Link
    member
    Activity: 78
    Merit: 10
    Link DEMO please.....
    I think the demo link (cryptonic.co) is down.

    Here's a website (a friend's faucet) with fresh and original AlphaFaucet (R version) deployed : Link

    The good thing in AlphaFaucet is that it's is highly configurable as well as easily customizable with very little php knowledge. The code is very clear and it really helps a lot! All credits to Alamin, thank you.
    full member
    Activity: 210
    Merit: 100
    Link DEMO please.....
    newbie
    Activity: 19
    Merit: 0
    Please tell me how to change what would be paid in Primecoin



    If you are lazy, there's a variable called $btc in the file /libs/send_fh.php (line 14) which takes by default the value "BTC" (default value is seen in the /libs/faucethub.php)
    Just change in the "send_fh.php" the « $btc » with "XPM", "DASH", "BLK", "LTC", "DOGE", "PPC" or whatever you want as currency.

    Or if you want to do it better, go just before line 14 and add the line

    Quote
    $btc = "XPM";

    Save and overwrite the send_fh.php file. You're done.

    it did not worked out, it showing the error that the "coin address was invalid" please see to it.
    member
    Activity: 78
    Merit: 10
    Hello
    I have a problem with my faucet siteweb : hotbitco.win
    It does not show with faucethub available to visitors
    Although my faucet it worked well
    Please solve my problem

    Please write a meaningful sentence. I don't understand anything here : "It does not show with faucethub available to visitors"
    Also with only 2 satoshis per claim I don't think it really works well.
    newbie
    Activity: 8
    Merit: 0
    Hello
    I have a problem with my faucet siteweb : hotbitco.win
    It does not show with faucethub available to visitors
    Although my faucet it worked well
    Please solve my problem
    member
    Activity: 78
    Merit: 10
    Please tell me how to change what would be paid in Primecoin



    If you are lazy, there's a variable called $btc in the file /libs/send_fh.php (line 14) which takes by default the value "BTC" (default value is seen in the /libs/faucethub.php)
    Just change in the "send_fh.php" the « $btc » with "XPM", "DASH", "BLK", "LTC", "DOGE", "PPC" or whatever you want as currency.

    Or if you want to do it better, go just before line 14 and add the line

    Quote
    $btc = "XPM";

    Save and overwrite the send_fh.php file. You're done.
    newbie
    Activity: 50
    Merit: 0
    I received a couple of PM wondering how to migrate the script to another URL Shortener.
    Although I'm a very newbie in PHP, it's just a hobby, I've managed to do it.
    Here's how I've done it. It assumes you already have the AlphaFaucet script up and running.


    First, you need to generate an API key for your Mellow-Ads account.
    Login to you account in Mellow-Ads, then you go to menu Account > Accout Details > API Settings.
    Generate an API key and save it for yourself.
    Then here's the link.php that I'm using : https://pastebin.com/aL6v3VDY

    In link.php you will find in "zap.in" lines (21,26 and 30) in the code a variable YOU_API_KEY_HERE_WITHOUTQUOTES, replace YOU_API_KEY_HERE_WITHOUTQUOTES in all 3 instances with your API key.

    I have also added a little trick of getting the country name of the visitor, maybe in case I want to redirect each visitor to a another URL Shortener according to his country, in order to optimize the payout. The if-else/try-catch are there, you just need to change the $api_url variable to the wanted URL, they all route to zap.in URL so far.
    Also I added another folder /claims in order to track how many times each IP address has passed through the URL Shortener.

    After all this, overwrite the link.php already existing in the links/ folder of your website with the new one.

    Now you have it all.


    EDIT: if you are in production, you may want to test the new link.php before overwriting the link.php in production.
    For this, just save the file as link2.php and upload it in the same folder as link.php
    Then on your browser input : http(s)://yoursite/links/link2.php if the zap.in page appears go ahead and solve the captcha, it will return back to verifier.php file and it will say "thank you Smiley" then you're good to move the file to production.


    Please tell me how to change what would be paid in Primecoin
    full member
    Activity: 266
    Merit: 100
    It would be nice if you can make wordpress plugin for it.
    member
    Activity: 78
    Merit: 10
    I received a couple of PM wondering how to migrate the script to another URL Shortener.
    Although I'm a very newbie in PHP, it's just a hobby, I've managed to do it.
    Here's how I've done it. It assumes you already have the AlphaFaucet script up and running.


    First, you need to generate an API key for your Mellow-Ads account.
    Login to you account in Mellow-Ads, then you go to menu Account > Accout Details > API Settings.
    Generate an API key and save it for yourself.
    Then here's the link.php that I'm using : https://pastebin.com/aL6v3VDY

    In link.php you will find in "zap.in" lines (21,26 and 30) in the code a variable YOU_API_KEY_HERE_WITHOUTQUOTES, replace YOU_API_KEY_HERE_WITHOUTQUOTES in all 3 instances with your API key.

    I have also added a little trick of getting the country name of the visitor, maybe in case I want to redirect each visitor to a another URL Shortener according to his country, in order to optimize the payout. The if-else/try-catch are there, you just need to change the $api_url variable to the wanted URL, they all route to zap.in URL so far.
    Also I added another folder /claims in order to track how many times each IP address has passed through the URL Shortener.

    After all this, overwrite the link.php already existing in the links/ folder of your website with the new one.

    Now you have it all.


    EDIT: if you are in production, you may want to test the new link.php before overwriting the link.php in production.
    For this, just save the file as link2.php and upload it in the same folder as link.php
    Then on your browser input : http(s)://yoursite/links/link2.php if the zap.in page appears go ahead and solve the captcha, it will return back to verifier.php file and it will say "thank you Smiley" then you're good to move the file to production.
    newbie
    Activity: 19
    Merit: 0
    The script of faucet you can find in this thread, and the template i have choosen is html which is among the free templates available. I just injected the faucet script and customized the template.
    sr. member
    Activity: 952
    Merit: 267
    Hi Alamin,

    Very very nice script, so simple with lots of features.

    I just made a faucet with your script and with my customized template. Designed by myself by using free template, available all over.

    I hope you like my work, if you needed you can use this customize template:

    http://www.aalyafaucet.com/fortune/

    There are many other I have, now am planning to inject this in any new html template.

    Let me know if you plan you to launch next version, i would love to make several faucets out of it.

    Thanks again.
    Very good job . Awesome script and design, where i can find this script for free??? Grin
    newbie
    Activity: 19
    Merit: 0
    Hi Alamin,

    Very very nice script, so simple with lots of features.

    I just made a faucet with your script and with my customized template. Designed by myself by using free template, available all over.

    I hope you like my work, if you needed you can use this customize template:

    http://www.aalyafaucet.com/fortune/

    There are many other I have, now am planning to inject this in any new html template.

    Let me know if you plan you to launch next version, i would love to make several faucets out of it.

    Thanks again.
    member
    Activity: 78
    Merit: 10
    The problem of verify adblocker is a fake one I guess. How come all the ads + popunders are running correctly and then it claims that there's an adblocker.
    Shame on me, my faucet was -technically- down the whole day because of this ...

    I have a faucet running the same script, I changed it to mellowads shortlink instead of ProLink one.
    Luckily I prepared all the changes to be made so I swapped the shortlink provider in few seconds.

    My faucet => https://bitcoinpenny.000webhostapp.com

    For faucet owners, the change is quite simple, just tweak a bit the link.php file to change your shortlink provider.
    newbie
    Activity: 40
    Merit: 0
    how to disable proxy/vpn blocker?
    newbie
    Activity: 40
    Merit: 0
    Help me to solve the problem with Sorry, Proxy is not alloved some faucets on this script have the same problem and some work correctly.
    hero member
    Activity: 1540
    Merit: 508
    Hi. I am using script version 1.01 downloaded from http://cointalk.club/downloads/?sa=view;down=7 with verifier.php patch.
    Everything works great except for the short link. The content of the link is displayed correctly but returns a message like "you did not view the link"
    As a result extra satoshi is not added.

    Any suggestions on how to fix this?
    I planned to make a small update on shortlink for the script but i am busy now.
    I think it's will be updated next week.
    Pages:
    Jump to: