php-mpos/public/include/smarty_globals.inc.php
2013-05-06 14:11:38 +02:00

23 lines
815 B
PHP

<?php
// Make sure we are called from index.php
if (!defined('SECURITY'))
die('Hacking attempt');
// Globally available variables
$debug->append('Global smarty variables', 3);
$aGlobal = array(
'userdata' => $_SESSION['USERDATA']['id'] ? $user->getUserData($_SESSION['USERDATA']['id']) : array(),
'slogan' => $settings->getValue('slogan'),
'websitename' => $settings->getValue('websitename'),
'ltc_usd' => $settings->getValue('btcesell'),
'hashrate' => $settings->getValue('currenthashrate'),
'workers' => $settings->getValue('currentworkers'),
'currentroundshares' => $settings->getValue('currentroundshares'),
'statstime' => $settings->getValue('statstime'),
'motd' => $settings->getValue('motd')
);
$smarty->assign('PATH', 'site_assets/' . THEME);
$smarty->assign('GLOBAL', $aGlobal);
?>