Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix/mobile-miner

  • Loading branch information...
Stoyvo committed Apr 9, 2015
1 parent 03d96b2 commit b620aa4b26cbc5cfb354e61609667979364da0a5
Showing with 7 additions and 7 deletions.
  1. +3 −3 includes/classes/mobileminer.php
  2. +1 −1 includes/cryptoglance.php
  3. +3 −3 settings.php
@@ -14,10 +14,10 @@ class MobileMiner {
// Settings
protected $_username = '';
protected $_apiKey = '';
protected $_appKey = '';
// cryptoGlance Specific
protected $_appKey = 'VEdP-Tmom-kiDA';
protected $_apiKey = 'ozhjiY941gooFo';
// API Specific
protected $_url = 'https://api.mobileminerapp.com/';
@@ -28,7 +28,7 @@ class MobileMiner {
public function __construct() {
$this->_username = $GLOBALS['settings']['general']['mobileminer']['username'];
$this->_apiKey = $GLOBALS['settings']['general']['mobileminer']['apikey'];
$this->_appKey = $GLOBALS['settings']['general']['mobileminer']['appkey'];
$this->_urlParams = '?apiKey='.$this->_apiKey . '&emailAddress='.$this->_username . '&applicationKey='.$this->_appKey;
$this->_rigs = new Rigs();
}
@@ -124,7 +124,7 @@ public function saveSettings($data) {
'mobileminer' => array(
'enabled' => $data['general']['mobileminer'],
'username' => $data['general']['mobileminerUsername'],
'apikey' => $data['general']['mobileminerAPIKey'],
'appkey' => $data['general']['mobileminerAppKey'],
),
);
}
@@ -25,7 +25,7 @@
'walletUpdateTime' => intval($_POST['walletUpdateTime']),
'mobileminer' => intval($mobileminerEnabled),
'mobileminerUsername' => $_POST['mobileminerUsername'],
'mobileminerAPIKey' => $_POST['mobileminerAPIKey'],
'mobileminerAppKey' => $_POST['mobileminerAppKey'],
);
$generalSaveResult = $cryptoGlance->saveSettings(array('general' => $data));
@@ -142,9 +142,9 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-5 control-label">API Key:</label>
<label class="col-sm-5 control-label">App Key:</label>
<div class="col-sm-4 refresh-interval">
<input type="text" class="form-control" name="mobileminerAPIKey" placeholder="provided-api-key" value="<?php echo $settings['general']['mobileminer']['apikey']; ?>" />
<input type="text" class="form-control" name="mobileminerAppKey" placeholder="xxxx-xxxx-xxxx" value="<?php echo $settings['general']['mobileminer']['appkey']; ?>" />
</div>
</div>
</div>

0 comments on commit b620aa4

Please sign in to comment.
You can’t perform that action at this time.