<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
[BEGIN_SED]
File=admin.statistics.inc.php
Version=101
Updated=2006-mar-15
Type=Core.admin
Author=Neocrome
Description=Administration panel
[END_SED]
==================== */

if (!defined('SED_CODE') || !defined('SED_ADMIN')) { die('Wrong URL.'); }

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('page', 'any');
sed_block($usr['isadmin']);

$adminpath[] = array ("admin.php?m=page", $L['Pages']);
$adminhelp = $L['adm_help_page'];

$pagesqueued = sed_sql_query("SELECT COUNT(*) FROM $db_pages WHERE page_state='1'");
$pagesqueued = sed_sql_result($pagesqueued, 0, "COUNT(*)");

$adminmain .= "<ul>";
$adminmain .= "<li>".sed_linkif("admin.php?m=page&amp;s=queue", $L['adm_valqueue']." : ".$pagesqueued, sed_auth('page', 'any', 'A'))."</li>";
$adminmain .= "<li>".sed_linkif("admin.php?m=page&amp;s=structure", $L['adm_structure'], sed_auth('admin', 'a', 'A'))."</li>";
$adminmain .= "<li>".sed_linkif("admin.php?m=page&amp;s=catorder", $L['adm_sortingorder'], sed_auth('admin', 'a', 'A'))."</li>";
$adminmain .= "</ul>";

?>
