From 0870296031e4585aa886483d42d18b5cd48a7efd Mon Sep 17 00:00:00 2001 From: elbandi Date: Fri, 27 Dec 2013 19:25:21 +0100 Subject: [PATCH] Rename allowBTC config parameter --- config.php | 2 +- core.php | 4 ++-- index.php | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.php b/config.php index d78ef48..b08640b 100644 --- a/config.php +++ b/config.php @@ -40,7 +40,7 @@ $fee = 20000; // Allowed address types $allowEmail = false; // allow coinbase email addresses (we can't verify that it is exists -$allowBTC = true; // allow bitcoin addresses +$allowCoin = true; // allow bitcoin addresses // MiniFaucet automatic detect which online wallet do you use: // If Coinbase api key is set then the site will use that diff --git a/core.php b/core.php index 85d9c30..e3fd3a0 100644 --- a/core.php +++ b/core.php @@ -53,8 +53,8 @@ function plural($a) function checkaddress($address) { - global $allowEmail, $allowBTC; - if ($allowBTC && determineValidity($address, "BTC")) { + global $allowEmail, $allowCoin; + if ($allowCoin && determineValidity($address, "BTC")) { return true; } if ($allowEmail && (filter_var($address, FILTER_VALIDATE_EMAIL) !== false)) { diff --git a/index.php b/index.php index f18492a..6546b4e 100644 --- a/index.php +++ b/index.php @@ -77,7 +77,7 @@ $app->hook('slim.before.dispatch', function () use ($app) { $app->get("/", $checkaddress($app, false), function () use ($app) { global $minReward, $maxReward, $dispenseTimeText, $apiKey, $guid; - global $allowEmail, $allowBTC; + global $allowEmail, $allowCoin; $id = $app->request()->get('id'); if (!is_null($id) && is_numeric($id)) { $_SESSION['referer'] = $id; @@ -90,7 +90,7 @@ $app->get("/", $checkaddress($app, false), function () use ($app) { } $addr = array(); - if ($allowBTC) { + if ($allowCoin) { $addr[] = "bitcoin"; } if ($allowEmail) { @@ -278,12 +278,12 @@ $app->post("/cashout", $checkaddress($app, true), function () use ($app) { })->name('cashout'); $app->post("/faucet", function () use ($app) { - global $mysqli, $allowEmail, $allowBTC; + global $mysqli, $allowEmail, $allowCoin; $address = $app->request()->post('address'); if (!checkaddress($address)) { $err = array(); - if ($allowBTC) { + if ($allowCoin) { $err[] = "bitcoin"; } if ($allowEmail) { -- 2.1.4