config: add default defines and explorer/safecex keys

This commit is contained in:
Tanguy Pruvot 2016-01-13 09:56:37 +01:00
parent 9d0e376cab
commit 486014e92e
8 changed files with 71 additions and 7 deletions

View file

@ -3,6 +3,7 @@
//define('YII_DEBUG', true);
require_once('serverconfig.php');
require_once('yaamp/defaultconfig.php');
require_once('yaamp/ui/app.php');
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))

View file

@ -5,11 +5,12 @@ define('YIIMP_MYSQLDUMP_USER', 'root');
define('YIIMP_MYSQLDUMP_PASS', '<my_mysql_password>');
/* Keys required to create/cancel orders and access your balances/deposit addresses */
define('EXCH_CRYPTSY_SECRET', '<my_cryptsy_api_private_key>');
define('EXCH_POLONIEX_SECRET', '<my_poloniex_api_secret_key>');
define('EXCH_BITTREX_SECRET', '<my_bittrex_api_secret_key>');
define('EXCH_BLEUTRADE_SECRET', '...');
define('EXCH_CCEX_SECRET', '...');
define('EXCH_YOBIT_SECRET', '...');
define('EXCH_EMPOEX_SECKEY', '...');
define('EXCH_CRYPTSY_SECRET', '');
define('EXCH_BLEUTRADE_SECRET', '');
define('EXCH_CCEX_SECRET', '');
define('EXCH_EMPOEX_SECKEY', '');
define('EXCH_POLONIEX_SECRET', '');
define('EXCH_SAFECEX_SECRET', '');
define('EXCH_YOBIT_SECRET', '');

View file

@ -3,6 +3,7 @@
if(php_sapi_name() != "cli") return;
require_once('serverconfig.php');
require_once('yaamp/defaultconfig.php');
require_once('framework-1.0.8/yii.php');
require_once('yaamp/include.php');

View file

@ -21,6 +21,7 @@ define('YAAMP_FEES_RENTING', 2);
define('YAAMP_PAYMENTS_FREQ', 3*60*60);
define('YAAMP_ALLOW_EXCHANGE', false);
define('YIIMP_PUBLIC_EXPLORER', true);
define('YAAMP_USE_NICEHASH_API', false);
define('YAAMP_BTCADDRESS', '1Auhps1mHZQpoX4mCcVL8odU81VakZQ6dR');
@ -38,6 +39,7 @@ define('EXCH_BITTREX_KEY', '');
define('EXCH_BLEUTRADE_KEY', '');
define('EXCH_YOBIT_KEY', '');
define('EXCH_CCEX_KEY', '');
define('EXCH_SAFECEX_KEY', '');
// Automatic withdraw to Yaamp btc wallet if btc balance > 0.3
define('EXCH_AUTO_WITHDRAW', 0.3);

View file

@ -0,0 +1,56 @@
<?php
// default values if local server config keys are not set (also used to add defines in git)
// do not change them here... set them in your serverconfig.php
if (!defined('YAAMP_PRODUCTION')) define('YAAMP_PRODUCTION', false);
if (!defined('YAAMP_USE_NGINX')) define('YAAMP_USE_NGINX', false);
if (!defined('YAAMP_DBHOST')) define('YAAMP_DBHOST', 'localhost');
if (!defined('YAAMP_DBNAME')) define('YAAMP_DBNAME', 'yaamp');
if (!defined('YAAMP_DBUSER')) define('YAAMP_DBUSER', 'root');
if (!defined('YAAMP_DBPASSWORD')) define('YAAMP_DBPASSWORD', '');
if (!defined('YIIMP_MYSQLDUMP_USER')) define('YIIMP_MYSQLDUMP_USER', 'root');
if (!defined('YIIMP_MYSQLDUMP_PASS')) define('YIIMP_MYSQLDUMP_PASS', '');
if (!defined('YIIMP_PUBLIC_EXPLORER')) define('YIIMP_PUBLIC_EXPLORER', true);
if (!defined('YAAMP_FEES_MINING')) define('YAAMP_FEES_MINING', 0.5);
if (!defined('YAAMP_FEES_EXCHANGE')) define('YAAMP_FEES_EXCHANGE', 2);
if (!defined('YAAMP_FEES_RENTING')) define('YAAMP_FEES_RENTING', 2);
if (!defined('YAAMP_PAYMENTS_FREQ')) define('YAAMP_PAYMENTS_FREQ', 24*60*60);
if (!defined('YAAMP_ALLOW_EXCHANGE')) define('YAAMP_ALLOW_EXCHANGE', false);
if (!defined('EXCH_AUTO_WITHDRAW')) define('EXCH_AUTO_WITHDRAW', 9999.9999);
if (!defined('EXCH_CRYPTSY_KEY')) define('EXCH_CRYPTSY_KEY', '');
if (!defined('EXCH_BITTREX_KEY')) define('EXCH_BITTREX_KEY', '');
if (!defined('EXCH_BLEUTRADE_KEY')) define('EXCH_BLEUTRADE_KEY', '');
if (!defined('EXCH_CCEX_KEY')) define('EXCH_CCEX_KEY', '');
if (!defined('EXCH_POLONIEX_KEY')) define('EXCH_POLONIEX_KEY', '');
if (!defined('EXCH_SAFECEX_KEY')) define('EXCH_SAFECEX_KEY', '');
if (!defined('EXCH_YOBIT_KEY')) define('EXCH_YOBIT_KEY', '');
if (!defined('EXCH_BITTREX_SECRET')) define('EXCH_BITTREX_SECRET', '');
if (!defined('EXCH_BLEUTRADE_SECRET')) define('EXCH_BLEUTRADE_SECRET', '');
if (!defined('EXCH_CCEX_SECRET')) define('EXCH_CCEX_SECRET', '');
if (!defined('EXCH_CRYPTSY_SECRET')) define('EXCH_CRYPTSY_SECRET', '');
if (!defined('EXCH_EMPOEX_SECKEY')) define('EXCH_EMPOEX_SECKEY', '');
if (!defined('EXCH_POLONIEX_SECRET')) define('EXCH_POLONIEX_SECRET', '');
if (!defined('EXCH_SAFECEX_SECRET')) define('EXCH_SAFECEX_SECRET', '');
if (!defined('EXCH_YOBIT_SECRET')) define('EXCH_YOBIT_SECRET', '');
if (!defined('YAAMP_BTCADDRESS')) define('YAAMP_BTCADDRESS', '');
if (!defined('YAAMP_SITE_URL')) define('YAAMP_SITE_URL', 'localhost');
if (!defined('YAAMP_SITE_NAME')) define('YAAMP_SITE_NAME', 'YiiMP');
if (!defined('YAAMP_ADMIN_EMAIL')) define('YAAMP_ADMIN_EMAIL', 'yiimp@spam.la');
if (!defined('YAAMP_ADMIN_IP')) define('YAAMP_ADMIN_IP', '127.0.0.1');
if (!defined('YAAMP_LIMIT_ESTIMATE')) define('YAAMP_LIMIT_ESTIMATE', false);
if (!defined('YAAMP_RENTAL')) define('YAAMP_RENTAL', false);
if (!defined('YAAMP_USE_NICEHASH_API')) define('YAAMP_USE_NICEHASH_API', false);
if (!defined('NICEHASH_API_KEY')) define('NICEHASH_API_KEY','');
if (!defined('NICEHASH_API_ID')) define('NICEHASH_API_ID','0000');
if (!defined('NICEHASH_DEPOSIT')) define('NICEHASH_DEPOSIT','');
if (!defined('NICEHASH_DEPOSIT_AMOUNT')) define('NICEHASH_DEPOSIT_AMOUNT','0.01');

View file

@ -1,6 +1,7 @@
<?php
require_once('serverconfig.php');
require_once('yaamp/defaultconfig.php');
function ld($string)
{

View file

@ -89,7 +89,8 @@ function showPageHeader()
showItemHeader(controller()->id=='site'&&($action=='index' || $action=='wallet') && $ad, "/?address=$wallet", 'Wallet');
showItemHeader(controller()->id=='stats', '/stats', 'Graphs');
showItemHeader($action=='miners', '/site/miners', 'Miners');
showItemHeader(controller()->id=='explorer', '/explorer', 'Explorers');
if (YIIMP_PUBLIC_EXPLORER)
showItemHeader(controller()->id=='explorer', '/explorer', 'Explorers');
if (YAAMP_RENTAL)
showItemHeader(controller()->id=='renting', '/renting', 'Rental');

View file

@ -3,6 +3,7 @@
if(php_sapi_name() != "cli") return;
require_once('serverconfig.php');
require_once('yaamp/defaultconfig.php');
require_once('yaamp/core/core.php');
require_once('yaamp/ui/lib/lib.php');