PHPNews - Admin Center
if ($userDetails['access'] == 'admin')
{
?>
}
?>
include_once('admin.php');
/* Place the function names in an Array */
$Array = array(
'modtemp',
'modifytemp',
'modifycomtemp',
'modifystf',
'modifyarchive',
'modifysearch',
'modifyheadlines',
'modifytemp2',
'censorlist',
'modcensorlist',
'settings',
'modsettings',
'cats',
'addcat',
'modifycats',
'post',
'post2',
'newsposter',
'newsposter2',
'modify',
'modifypost',
'modifypending',
'modifypost2',
'modifypost3',
'modifycomment',
'updatecomments',
'banning',
'addbannedip',
'modbanned',
'modifynewsposter',
'modifynewsposter2',
'modifynewsposter3',
'checkVersion',
'advanced',
'createRSSFeed',
'images',
'uploadimages',
'imagesdelete',
'logout');
/* If action doesn't exist, do the main() function */
if (!in_array($_GET['action'], $Array, TRUE))
{
main();
}
else
{
$_GET['action']();
}
/* Used to get the Script Execution time */
function getMicrotime()
{
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
?>