chawlav
Newbie
Offline
Activity: 19
Merit: 0
|
|
July 06, 2017, 04:10:30 AM |
|
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.
|
|
|
|
|
|
"With e-currency based on cryptographic proof, without the need to
trust a third party middleman, money can be secure and transactions
effortless." -- Satoshi
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
corpsejunior
Member
Offline
Activity: 78
Merit: 10
|
|
July 06, 2017, 11:35:56 AM Last edit: July 06, 2017, 12:02:21 PM by corpsejunior |
|
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/aL6v3VDYIn 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 " then you're good to move the file to production.
|
|
|
|
viralalert
|
|
July 06, 2017, 11:14:11 PM |
|
It would be nice if you can make wordpress plugin for it.
|
|
|
|
Leonidos640
Newbie
Offline
Activity: 50
Merit: 0
|
|
July 11, 2017, 03:04:47 PM |
|
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/aL6v3VDYIn 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 " then you're good to move the file to production. Please tell me how to change what would be paid in Primecoin
|
|
|
|
corpsejunior
Member
Offline
Activity: 78
Merit: 10
|
|
July 11, 2017, 07:12:18 PM |
|
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 $btc = "XPM";
Save and overwrite the send_fh.php file. You're done.
|
|
|
|
mounir26
Newbie
Offline
Activity: 8
Merit: 0
|
|
July 11, 2017, 08:05:14 PM |
|
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
|
|
|
|
corpsejunior
Member
Offline
Activity: 78
Merit: 10
|
|
July 11, 2017, 08:54:43 PM |
|
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.
|
|
|
|
chawlav
Newbie
Offline
Activity: 19
Merit: 0
|
|
July 12, 2017, 09:59:57 AM |
|
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 $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.
|
|
|
|
datalore
|
|
July 27, 2017, 05:39:38 PM |
|
Link DEMO please.....
|
|
|
|
corpsejunior
Member
Offline
Activity: 78
Merit: 10
|
|
July 27, 2017, 09:41:24 PM |
|
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 : LinkThe 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.
|
|
|
|
cr3at1v3
Newbie
Offline
Activity: 25
Merit: 0
|
|
July 30, 2017, 03:23:05 AM |
|
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. <?php // 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($resp, true);
// 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
|
|
|
|
cr3at1v3
Newbie
Offline
Activity: 25
Merit: 0
|
|
July 30, 2017, 03:46:03 AM |
|
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.phplook for: $api_url = "http://prol.ink/api/?api=$prolink_api&url=$site_url/links/verifier.php?id=$rnd&format=text"; and replace with: $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 ../linkslook for: $lnk_lnk = "lnk/$userip.xxx"; //link path and replace with: $lnk_lnk = "../xxx/lnk/$userip.xxx"; //link path again save. that's all, you can try now if it works.
|
|
|
|
cr3at1v3
Newbie
Offline
Activity: 25
Merit: 0
|
|
July 30, 2017, 04:04:53 AM |
|
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 HEREStep 2: Once you are registered, an email will be sent to your inbox containing various information most especially the following: 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:
<div class="g-recaptcha" data-sitekey="<?php echo $site_key; ?>" data-theme="dark"></div> <div class="g-recaptcha"> <?php require_once("libs/captchme-lib.php"); $publicKey = "YOUR PUBLICKEY"; echo captchme_generate_html($publicKey); ?> </div> - Input: YOUR PUBLICKEY.
- Save.
continued in next post . . .
|
|
|
|
cr3at1v3
Newbie
Offline
Activity: 25
Merit: 0
|
|
July 30, 2017, 04:11:34 AM |
|
- Next, in your libs folder kindly open ctrl.php.
- Look for the following 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 . . .
|
|
|
|
cr3at1v3
Newbie
Offline
Activity: 25
Merit: 0
|
|
July 30, 2017, 04:19:00 AM |
|
- And, replace with the following code:
//verify captcha require_once("captchme-lib.php"); $privateKey = "YOUR PRIVATEKEY"; $authenKey = "YOUR AUTHENKEY"; if (isset($_POST["captchme_response_field"])) { $remoteIp = $_SERVER["REMOTE_ADDR"]; $response = captchme_verify ($privateKey, $_POST["captchme_challenge_field"], $_POST["captchme_response_field"], $remoteIp, $authenKey); if ($response->is_valid) { // your form management code 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 { //display error message $msg = "Your Captcha Was Invalid."; header('Location: ../index.php?msg='.$msg.''); } } else { header('Location: ../index.php'); }
?>
- Input: YOUR PRIVATEKEY and YOUR AUTHENKEY.
- Save.
Thats all, test if it works. DEMO LINKend . . .
|
|
|
|
mouaadsk
Newbie
Offline
Activity: 5
Merit: 0
|
|
July 31, 2017, 07:23:17 AM |
|
hello guys, is me again. now we will integrate some short url in alpha faucet when claiming for rewards. note: backup everything first. something might go wrong during the process.Step 1. from your folder ../libs, kindly open file send_fh.phplook for: $msg = "ua=$addy&s=t&a=$amount&o=fh"; header('Location: ../index.php?'.$msg.'');
for adf_dot_ly users replace code with: $msg = "ua=$addy&s=t&a=$amount&o=fh"; header('Location: http://adf_dot_ly/YOUR_ID/YOUR_SITE?'.$msg.''); replace _dot_ with period and just input YOUR_ID and YOUR_SITEfor btc_dot_ms users replace code with: $msg = "ua=$addy&s=t&a=$amount&o=fh"; header('Location: http://btc_dot_ms/st/?api=YOUR_API_CODE&url=YOUR_SITE?'.$msg.''); replace _dot_ with period and just input YOUR_API_CODE and YOUR_SITEfor madpay_dot_net users replace code with: $msg = "ua=$addy&s=t&a=$amount&o=fh"; header('Location: https://madpay_dot_net/st/?api=YOUR_API_CODE&url=YOUR_SITE?'.$msg.''); replace _dot_ with period and just input YOUR_API_CODE and YOUR_SITEthen save. Thats all, test if it works. DEMO LINKI Hope That You Keep Sharing Those Improvement Like That !! Thank You
|
|
|
|
chawlav
Newbie
Offline
Activity: 19
Merit: 0
|
|
July 31, 2017, 06:12:26 PM |
|
HI, I have added the codes as stated, it is taking me to [BTC dot ms] that is working great. But, not showing the status on the page while returning! not in the URL as well. What I mean that [10 Sat has been sent to FaucetHub.io] is not visible on page. Please see the page for better understanding: http://aalyafaucet.com/test/
|
|
|
|
cr3at1v3
Newbie
Offline
Activity: 25
Merit: 0
|
|
July 31, 2017, 06:25:51 PM |
|
HI, I have added the codes as stated, it is taking me to [BTC dot ms] that is working great. But, not showing the status on the page while returning! not in the URL as well. What I mean that [10 Sat has been sent to FaucetHub.io] is not visible on page. Please see the page for better understanding: http://aalyafaucet.com/test/maybe you have not applied the patch. here is the link: http://cointalk.club/downloads/?sa=view;down=14apply first the patch, look for: $lnk_lnk = "lnk/$userip.xxx"; //link path and replace with: $lnk_lnk = "../xxx/lnk/$userip.xxx"; //link path
|
|
|
|
chawlav
Newbie
Offline
Activity: 19
Merit: 0
|
|
July 31, 2017, 07:04:57 PM |
|
HI, I have added the codes as stated, it is taking me to [BTC dot ms] that is working great. But, not showing the status on the page while returning! not in the URL as well. What I mean that [10 Sat has been sent to FaucetHub.io] is not visible on page. Please see the page for better understanding: http://aalyafaucet.com/test/maybe you have not applied the patch. here is the link: http://cointalk.club/downloads/?sa=view;down=14apply first the patch, look for: $lnk_lnk = "lnk/$userip.xxx"; //link path and replace with: $lnk_lnk = "../xxx/lnk/$userip.xxx"; //link path Thanks for your help, but it is not showing the notification to users that the amount has been sent to FH. I am trying to find out how this can be enabled. May be I am missing something.
|
|
|
|
chawlav
Newbie
Offline
Activity: 19
Merit: 0
|
|
July 31, 2017, 07:41:19 PM |
|
What is your url shortener that you using? i can do it and give you the files for it coz this one is not a good one also i done it with my madpay one so i know how to edit this
I tried with btc.ms, u can make this, i know that.. in the default script of alamin. I will add then into my template. I basically don't have any clue. I just want to use alamin script but want a force redirect to madpay.net or any other short url before processing claim.
|
|
|
|
|