3-3
menu.php
if (!isset( $_SESSION [ 'snewsAdmin' ])) { |
$_SESSION [ 'snewsAdmin' ] = ( $xoopsUser ) ? $xoopsUser ->isAdmin() : false; |
$interface_menu [_TAD_TO_MOD] = "index.php" ; |
$interface_icon [_TAD_TO_MOD] = "" ; |
if ( $_SESSION [ 'snewsAdmin' ]) { |
$interface_menu [ '發布文章' ] = "admin/main.php?op=snews_form" ; |
$interface_icon [ '發布文章' ] = "" ; |
$interface_menu [_TAD_TO_ADMIN] = "admin/main.php" ; |
$interface_icon [_TAD_TO_ADMIN] = "" ; |