56 $xoTheme->addScript(
'browse.php?Frameworks/jquery/jquery.js');
64 $xoTheme->addStylesheet(
XOOPS_ADMINTHEME_URL .
'/default/css/dark.css', array(
'title' =>
'dark',
'media' =>
'screen'));
65 $xoTheme->addStylesheet(
XOOPS_ADMINTHEME_URL .
'/default/css/silver.css', array(
'title' =>
'silver',
'media' =>
'screen'));
66 $xoTheme->addStylesheet(
XOOPS_ADMINTHEME_URL .
'/default/css/orange.css', array(
'title' =>
'orange',
'media' =>
'screen'));
71 $tpl->assign(
'lang_php_vesion', PHP_VERSION);
72 $tpl->assign(
'lang_mysql_version', mysql_get_server_info());
73 $tpl->assign(
'lang_server_api', PHP_SAPI);
74 $tpl->assign(
'lang_os_name', PHP_OS);
75 $tpl->assign(
'safe_mode', ini_get(
'safe_mode' ) ?
'On' :
'Off');
76 $tpl->assign(
'register_globals', ini_get(
'register_globals' ) ?
'On' :
'Off');
77 $tpl->assign(
'magic_quotes_gpc', ini_get(
'magic_quotes_gpc' ) ?
'On' :
'Off');
78 $tpl->assign(
'allow_url_fopen', ini_get(
'allow_url_fopen' ) ?
'On' :
'Off');
79 $tpl->assign(
'fsockopen', function_exists(
'fsockopen' ) ?
'On' :
'Off');
80 $tpl->assign(
'allow_call_time_pass_reference', ini_get(
'allow_call_time_pass_reference' ) ?
'On' :
'Off');
81 $tpl->assign(
'post_max_size', ini_get(
'post_max_size' ));
82 $tpl->assign(
'max_input_time', ini_get(
'max_input_time' ));
83 $tpl->assign(
'output_buffering', ini_get(
'output_buffering' ));
84 $tpl->assign(
'max_execution_time', ini_get(
'max_execution_time' ));
85 $tpl->assign(
'memory_limit', ini_get(
'memory_limit' ));
86 $tpl->assign(
'file_uploads', ini_get(
'file_uploads' ) ?
'On' :
'Off');
87 $tpl->assign(
'upload_max_filesize', ini_get(
'upload_max_filesize' ));
88 $tpl->assign(
'xoops_sitename', $xoopsConfig[
'sitename']);
94 $menu[0][
'link'] = XOOPS_URL;
96 $menu[0][
'absolute'] = 1;
97 $menu[1][
'link'] = XOOPS_URL .
'/admin.php?xoopsorgnews=1';
99 $menu[1][
'absolute'] = 1;
101 $menu[2][
'link'] = XOOPS_URL .
'/user.php?op=logout';
103 $menu[2][
'absolute'] = 1;
105 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/admin.php',
'text' =>
_CPHOME,
'menu' =>
$menu));
108 include dirname(__FILE__) .
'/menu.php';
109 if (empty($xoopsModule) ||
'system' == $xoopsModule->getVar(
'dirname',
'n')) {
110 $modpath = XOOPS_URL .
'/admin.php';
116 foreach (array_keys($mod_options) as $item) {
117 $mod_options[$item][
'link'] = empty($mod_options[$item][
'absolute']) ? XOOPS_URL .
'/modules/'.$moddir.
'/' . $mod_options[$item][
'link'] : $mod_options[$item][
'link'];
118 $mod_options[$item][
'icon'] = empty($mod_options[$item][
'icon']) ?
'' :
XOOPS_ADMINTHEME_URL .
'/default/' . $mod_options[$item][
'icon'];
119 unset($mod_options[$item][
'icon_small']);
122 $moddir = $xoopsModule->getVar(
'dirname',
'n');
123 $modpath = XOOPS_URL .
'/modules/' .
$moddir;
124 $modname = $xoopsModule->getVar(
'name');
125 $modid = $xoopsModule->getVar(
'mid');
127 $mod_options = $xoopsModule->getAdminMenu();
128 foreach (array_keys($mod_options) as $item) {
129 $mod_options[$item][
'link'] = empty($mod_options[$item][
'absolute']) ? XOOPS_URL .
"/modules/{$moddir}/" . $mod_options[$item][
'link'] : $mod_options[$item][
'link'];
130 $mod_options[$item][
'icon'] = empty($mod_options[$item][
'icon']) ?
'' : XOOPS_URL .
"/modules/{$moddir}/" . $mod_options[$item][
'icon'];
134 $tpl->assign(
'mod_options', $mod_options);
135 $tpl->assign(
'modpath', $modpath);
136 $tpl->assign(
'modname', $modname);
150 foreach ($mods as $mod) {
152 $modOptions = array();
153 $sadmin =
$moduleperm_handler->checkRight(
'module_admin', $mod->getVar(
'mid'), $xoopsUser->getGroups());
155 $info = $mod->getInfo();
156 if (!empty($info[
'adminindex'])) {
157 $rtn[
'link'] = XOOPS_URL .
'/modules/'. $mod->getVar(
'dirname',
'n') .
'/' . $info[
'adminindex'];
159 $rtn[
'link'] = XOOPS_URL .
'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar(
'mid');
161 $rtn[
'title'] = $mod->name();
162 $rtn[
'absolute'] = 1;
163 $rtn[
'url'] = XOOPS_URL .
'/modules/'. $mod->getVar(
'dirname',
'n') .
'/';
164 $modOptions = $mod->getAdminMenu();
165 $rtn[
'options'] = $modOptions;
167 if (isset($info[
'icon']) && $info[
'icon'] !=
'' ) {
168 $rtn[
'icon'] = XOOPS_URL .
'/modules/' . $mod->getVar(
'dirname',
'n') .
'/' . $info[
'icon'];
174 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/modules/system/admin.php?fct=modulesadmin',
182 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=1',
187 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=2',
192 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=3',
197 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=4',
202 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=5',
207 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=6',
212 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=7',
217 'link' =>
'admin.php?fct=preferences&op=showmod&mod=1',
224 'link' => XOOPS_URL .
'/modules/system/admin.php?fct=preferences',
227 'url' => XOOPS_URL .
'/modules/system/',
231 foreach ($mods as $mod) {
233 $sadmin =
$moduleperm_handler->checkRight(
'module_admin', $mod->getVar(
'mid'), $xoopsUser->getGroups());
234 if ($sadmin && ($mod->getVar(
'hasnotification') || is_array($mod->getInfo(
'config')) || is_array($mod->getInfo(
'comments')))) {
235 $rtn[
'link'] = XOOPS_URL .
'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar(
'mid');
236 $rtn[
'title'] = $mod->name();
237 $rtn[
'absolute'] = 1;
242 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/modules/system/admin.php?fct=preferences',
'text' =>
_OXYGEN_SITEPREF,
'dir' => $mod->getVar(
'dirname',
'n'),
'menu' =>
$menu));
247 'link' =>
'http://sourceforge.net/projects/xoops/',
251 'link' =>
'http://xoops.org',
256 'link' =>
'http://www.xoops.org/modules/repository/',
261 'link' =>
'http://www.xoops.org/modules/extgallery/',
270 $links = include
XOOPS_ADMINTHEME_PATH .
'/default/language/' . $xoopsConfig[
'language'] .
'/localsupport.php';
271 if ( count($links) > 0 ) {
272 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/admin.php',
'text' =>
_OXYGEN_LOCALSUPPORT,
'menu' => $links));
276 if (is_object($xoopsModule) || !empty(
$_GET[
'xoopsorgnews'])) {
277 if (is_object($xoopsModule) && file_exists(
$file = XOOPS_ROOT_PATH .
'/modules/' . $xoopsModule->getVar(
'dirname') .
'/' . $xoopsModule->getInfo(
'adminmenu'))) {
283 foreach ( $mods as $mod ) {
286 $sadmin =
$moduleperm_handler->checkRight (
'module_admin', $mod->getVar (
'mid' ), $xoopsUser->getGroups () );
289 $info = $mod->getInfo ();
290 if (! empty ( $info [
'adminindex'] )) {
291 $rtn [
'link'] = XOOPS_URL .
'/modules/' . $mod->getVar (
'dirname',
'n' ) .
'/' . $info [
'adminindex'];
293 $rtn [
'link'] = XOOPS_URL .
'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar (
'mid' );
295 $rtn [
'title'] = $mod->getVar (
'name');
296 $rtn [
'description'] = $mod->getInfo(
'description');
297 $rtn [
'absolute'] = 1;
298 if (isset ( $info [
'icon_big'] )) {
299 $rtn [
'icon'] = XOOPS_URL .
'/modules/' . $mod->getVar (
'dirname',
'n' ) .
'/' . $info [
'icon_big'];
300 } elseif (isset ( $info [
'image'] )) {
301 $rtn [
'icon'] = XOOPS_URL .
'/modules/' . $mod->getVar (
'dirname',
'n' ) .
'/' . $info [
'image'];
304 $tpl->append (
'modules', $rtn );