* Currently no GUI, use DB access to change the row entry * Upgraded Database table `accounts` with upgrade SQL * Updated `admin` field to `is_admin` as boolean * Modified pages, classes, templates to support is_admin and is_locked Addresses #147
18 lines
488 B
PHP
18 lines
488 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
|
|
$iLimit = 30;
|
|
$aBlocksFoundData = $statistics->getBlocksFound($iLimit);
|
|
$aBlockData = $aBlocksFoundData[0];
|
|
|
|
// Propagate content our template
|
|
$smarty->assign("BLOCKSFOUND", $aBlocksFoundData);
|
|
$smarty->assign("BLOCKLIMIT", $iLimit);
|
|
|
|
$smarty->assign("CONTENT", "blocks_found.tpl");
|
|
?>
|