Bitcoin Forum
June 24, 2024, 03:48:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Micro Earnings / How do adnetworks count unique view? on: September 21, 2016, 05:34:22 AM
Hello everybody
I am going to creat my first faucet and i want to maximum reward for user
I know that reward depend on revenue from displaying ads for unique user but i don't know how do they count unique view, ex : mellowads count 1ip/24h =1 unique view, please help
Thanks
2  Economy / Micro Earnings / Re: ★ OFFER: $1 for to post a short article on your website/blog ★ on: September 08, 2016, 05:32:24 PM
Nearly 3month old but have a large traffic
My link :http://www.sharefaucet.ml/2016/09/the-coin-zone-club-announces-new.html?m=1
My address : 1KT4caenipYBDL1dVZcaoUy6sP5C2rc8BL
If not, just stay on my blog  Grin
3  Economy / Micro Earnings / Re: FaucetBOX.com Discussion on: September 06, 2016, 06:08:57 AM
Hello, i am not good at php
How to make this work after i change amount= satoshi want to send and to= address, input api key and currency
Code:
 <?php

class FaucetBOX
{
    protected 
$api_key;
    protected 
$currency;
    public 
$last_status null;
    protected 
$api_base "https://faucetbox.com/api/v1/";

    public function 
__construct($api_key$currency "BTC"$disable_curl false$verify_peer true) {
        
$this->api_key $api_key;
        
$this->currency $currency;
        
$this->disable_curl $disable_curl;
        
$this->verify_peer $verify_peer;
        
$this->curl_warning false;
    }

    public function 
__execPHP($method$params = array()) {
        
$params array_merge($params, array("api_key" => $this->api_key"currency" => $this->currency));
        
$opts = array(
            
"http" => array(
                
"method" => "POST",
                
"header" => "Content-type: application/x-www-form-urlencoded\r\n",
                
"content" => http_build_query($params)
            ),
            
"ssl" => array(
                
"verify_peer" => $this->verify_peer
            
)
        );
        
$ctx stream_context_create($opts);
        
$fp fopen($this->api_base $method'rb'null$ctx);
        
$response stream_get_contents($fp);
        if(
$response && !$this->disable_curl) {
            
$this->curl_warning true;
        }
        
fclose($fp);
        return 
$response;
    }

    public function 
__exec($method$params = array()) {
        
$this->last_status null;
        if(
$this->disable_curl) {
            
$response $this->__execPHP($method$params);
        } else {
            
$response $this->__execCURL($method$params);
        }
        
$response json_decode($responsetrue);
        if(
$response) {
            
$this->last_status $response['status'];
        } else {
            
$this->last_status null;
        }
        return 
$response;
    }

    public function 
__execCURL($method$params = array()) {
        
$params array_merge($params, array("api_key" => $this->api_key"currency" => $this->currency));

        
$ch curl_init($this->api_base $method);
        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$params);
        
curl_setopt($chCURLOPT_SSL_VERIFYPEER$this->verify_peer);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);

        
$response curl_exec($ch);
        if(!
$response) {
            
$response $this->__execPHP($method$params);
        }
        
curl_close($ch);

        return 
$response;
    }

    public function 
send($to$amount$referral "false") {
        
$r $this->__exec("send", array("to" => $to"amount" => $amount"referral" => $referral));
        if (
array_key_exists("status"$r) && $r["status"] == 200) {
            return array(
                
'success' => true,
                
'message' => 'Payment sent to your address using FaucetBOX.com',
                
'html' => '<div class="alert alert-success">' htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',
                
'html_coin' => '<div class="alert alert-success">' htmlspecialchars(rtrim(rtrim(sprintf("%.8f"$amount/100000000), '0'), '.')) . ' '.$this->currency.' was sent to <a target="_blank" href="https://faucetbox.com/check/' rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',
                
'balance' => $r["balance"],
                
'balance_bitcoin' => $r["balance_bitcoin"],
                
'response' => json_encode($r)
            );
        }

        if (
array_key_exists("message"$r)) {
            return array(
                
'success' => false,
                
'message' => $r["message"],
                
'html' => '<div class="alert alert-danger">' htmlspecialchars($r["message"]) . '</div>',
                
'response' => json_encode($r)
            );
        }

        return array(
            
'success' => false,
            
'message' => 'Unknown error.',
            
'html' => '<div class="alert alert-danger">Unknown error.</div>',
            
'response' => json_encode($r)
        );
    }

    public function 
sendReferralEarnings($to$amount) {
        return 
$this->send($to$amount"true");
    }

    public function 
getPayouts($count) {
        
$r $this->__exec("payouts", array("count" => $count) );
        return 
$r;
    }

    public function 
getCurrencies() {
        
$r $this->__exec("currencies");
        return 
$r['currencies'];
    }

    public function 
getBalance() {
        
$r $this->__exec("balance");
        return 
$r;
    }
}
  
4  Economy / Micro Earnings / Re: How to remove login admin panel in faucetbox script on: September 05, 2016, 03:55:04 PM
Hello,
I have some ideas with faucetbox script and i want to remove login page when go to admin panel, i tried many times but not success
Please help me


Go to admin page -> templates
and on the top you will have this option Show link to admin panel on front page? mark No
It's between Templates and Palette
Or you can full disable in the config.php, search for admin something and change true to false or false to true, don't remember correctly
Thank you, but i mean how to disable login that if i go to mysite.com/admin , i can access admin panel without logging in
No you should use password protected admin panel for your faucet, if someone find your admin page url where he can directly login without password he can manually send all bitcoins from your faucet account to his bitcoin address. And i also think having completely password free admin page is not possible with faucetbox script.

Yeap, maybe this guy is trying to "hack" some faucets or I have no idea what he's wanting..
I don't see what's the point, just copy and past your password and done, you are in
If am enough to hack a web site so i don't have any problem to fix the code
If i can acces their host, i will steal database pass and reset the password  Huh
5  Economy / Micro Earnings / Re: How to remove login admin panel in faucetbox script on: September 05, 2016, 08:48:15 AM
Hello,
I have some ideas with faucetbox script and i want to remove login page when go to admin panel, i tried many times but not success
Please help me


Go to admin page -> templates
and on the top you will have this option Show link to admin panel on front page? mark No
It's between Templates and Palette
Or you can full disable in the config.php, search for admin something and change true to false or false to true, don't remember correctly
Thank you, but i mean how to disable login that if i go to mysite.com/admin , i can access admin panel without logging in
6  Economy / Micro Earnings / How to remove login admin panel in faucetbox script on: September 05, 2016, 07:39:20 AM
Hello,
I have some ideas with faucetbox script and i want to remove login page when go to admin panel, i tried many times but not success
Please help me
7  Economy / Services / Re: (Buying) cheap paid to promote script on: September 03, 2016, 07:11:58 AM
What paid to promote script like paid to click or not if like paid to click I have with bitcoin support.
You mean a ptc script with ptp addon , can you give a demo ?
8  Economy / Services / (Buying) cheap paid to promote script on: September 03, 2016, 06:32:08 AM
Hello everybody
I want to buy a cheap Paid To Promote script ( student price  Grin Grin Grin) support bitcoin payment
If you have once cheap, please comment, i will contact you
Thank you
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!