diff --git a/public/include/config/global.inc.dist.php b/public/include/config/global.inc.dist.php index 1609b8b8..4a139582 100644 --- a/public/include/config/global.inc.dist.php +++ b/public/include/config/global.inc.dist.php @@ -69,6 +69,24 @@ $config['wallet']['host'] = 'localhost:19334'; $config['wallet']['username'] = 'testnet'; $config['wallet']['password'] = 'testnet'; + + + +/** + * Getting Started Config + * + * This is displayed on GettingStarted Page + * to make it more dynamic + * + * + **/ +$config['gettingstarted']['coinname'] = 'Litecoin'; +$config['gettingstarted']['coinurl'] = 'http://www.litecoin.org'; +$config['gettingstarted']['stratumport'] = '3333'; + + + + /** * API configuration to fetch prices for set currency * diff --git a/public/include/pages/gettingstarted.inc.php b/public/include/pages/gettingstarted.inc.php index aecab054..2f30151a 100644 --- a/public/include/pages/gettingstarted.inc.php +++ b/public/include/pages/gettingstarted.inc.php @@ -4,6 +4,10 @@ if (!defined('SECURITY')) die('Hacking attempt'); +$smarty->assign("SITESTRATUMPORT", $config['gettingstarted']['stratumport']); +$smarty->assign("SITECOINNAME", $config['gettingstarted']['coinname']); +$smarty->assign("SITECOINURL", $config['gettingstarted']['coinurl']); + // Tempalte specifics $smarty->assign("CONTENT", "default.tpl"); ?> diff --git a/public/templates/mmcFE/gettingstarted/default.tpl b/public/templates/mmcFE/gettingstarted/default.tpl index f609a6b8..9450bd08 100644 --- a/public/templates/mmcFE/gettingstarted/default.tpl +++ b/public/templates/mmcFE/gettingstarted/default.tpl @@ -7,9 +7,9 @@
| STRATUM: | stratum+tcp://{$smarty.server.SERVER_NAME} |
| PORT: | 3333 |
| PORT: | {$SITESTRATUMPORT|default:"3333"} |
| Username: | Weblogin.Worker |
| Password: | Worker Password |
If you use a command-line miner, type:
-./cgminer --scrypt -o stratum+tcp://{$smarty.server.SERVER_NAME}:3333 -u Weblogin.Worker -p Worker password
+ ./cgminer --scrypt -o stratum+tcp://{$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin.Worker -p Worker password
If you want, you can create additional workers with usernames and passwords of your choice Here
| STRATUM: | stratum+tcp://{$smarty.server.SERVER_NAME} |
| PORT: | 3333 |
| PORT: | {$SITESTRATUMPORT|default:"3333"} |
| Username: | Weblogin.Worker |
| Password: | Worker Password |
If you use a command-line miner, type:
-./cgminer --scrypt -o stratum+tcp://{$smarty.server.SERVER_NAME}:3333 -u Weblogin.Worker -p Worker password
+ ./cgminer --scrypt -o stratum+tcp://{$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin.Worker -p Worker password
If you want, you can create additional workers with usernames and passwords of your choice Here