This will remove any template content related to the trade currency if that one is left empty in the configuration. While going through the templates I also cleaned up the PHP Warnings left. The code and templates should now process without throwing any PHP warnings. Fixes #305 and further addresses #301
17 lines
506 B
PHP
17 lines
506 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY')) die('Hacking attempt');
|
|
if (!$user->isAuthenticated()) header("Location: index.php?page=home");
|
|
|
|
// Grab the last blocks found
|
|
empty($_REQUEST['limit']) ? $iLimit = 20 : $iLimit = $_REQUEST['limit'];
|
|
$aBlocksFoundData = $statistics->getBlocksFound($iLimit);
|
|
|
|
// Propagate content our template
|
|
$smarty->assign("BLOCKSFOUND", $aBlocksFoundData);
|
|
$smarty->assign("BLOCKLIMIT", $iLimit);
|
|
|
|
$smarty->assign("CONTENT", "default.tpl");
|
|
?>
|