32 $xoTheme->addScript(
'browse.php?Frameworks/jquery/jquery.js');
33 $xoTheme->addScript(
'',
'',
'
34 startList = function() {
35 /* currentStyle restricts the Javascript to IE only */
37 document.getElementById(nav).currentStyle) {
38 var navroot = document.getElementById(nav);
39 /* Get all the list items within the menu */
40 var lis=navroot.getElementsByTagName("li");
41 for (i=0; i<lis.length; i++) {
42 /* If the li has another menu level */
43 if(lis[i].lastChild.tagName=="ul"){
44 /* assign the function to the li */
45 lis[i].onmouseover=function() {
46 /* display the inner menu */
47 this.lastChild.style.display="block";
49 lis[i].onmouseout=function() {
50 this.lastChild.style.display="none";
56 window.onload= function(){
57 /* pass the function the id of the top level il */
58 /* remove one, when only using one menu */
60 /*activateMenu("vertnav"); */
62 xoopsOnloadEvent(startList);');
79 $tpl->assign(
'xoops_sitename', $xoopsConfig[
'sitename']);
94 $tpl->assign(
'lang_php_vesion', PHP_VERSION);
95 $tpl->assign(
'lang_mysql_version', mysql_get_server_info());
96 $tpl->assign(
'lang_server_api', PHP_SAPI);
97 $tpl->assign(
'lang_os_name', PHP_OS);
98 $tpl->assign(
'safe_mode', ini_get(
'safe_mode' ) ?
'On' :
'Off');
99 $tpl->assign(
'register_globals', ini_get(
'register_globals' ) ?
'On' :
'Off');
100 $tpl->assign(
'magic_quotes_gpc', ini_get(
'magic_quotes_gpc' ) ?
'On' :
'Off');
101 $tpl->assign(
'allow_url_fopen', ini_get(
'allow_url_fopen' ) ?
'On' :
'Off');
102 $tpl->assign(
'fsockopen', function_exists(
'fsockopen' ) ?
'On' :
'Off');
103 $tpl->assign(
'allow_call_time_pass_reference', ini_get(
'allow_call_time_pass_reference' ) ?
'On' :
'Off');
104 $tpl->assign(
'post_max_size', ini_get(
'post_max_size' ));
105 $tpl->assign(
'max_input_time', ini_get(
'max_input_time' ));
106 $tpl->assign(
'output_buffering', ini_get(
'output_buffering' ));
107 $tpl->assign(
'max_execution_time', ini_get(
'max_execution_time' ));
108 $tpl->assign(
'memory_limit', ini_get(
'memory_limit' ));
109 $tpl->assign(
'file_uploads', ini_get(
'file_uploads' ) ?
'On' :
'Off');
110 $tpl->assign(
'upload_max_filesize', ini_get(
'upload_max_filesize' ));
111 $tpl->assign(
'xoops_sitename', $xoopsConfig[
'sitename']);
125 $menu[0][
'link'] = XOOPS_URL;
127 $menu[0][
'absolute'] = 1;
128 $menu[1][
'link'] = XOOPS_URL .
'/admin.php?xoopsorgnews=1';
129 $menu[1][
'title'] =
'XOOPS News';
130 $menu[1][
'absolute'] = 1;
132 $menu[2][
'link'] = XOOPS_URL .
'/user.php?op=logout';
134 $menu[2][
'absolute'] = 1;
136 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/admin.php',
'text' =>
_CPHOME,
'menu' =>
$menu));
138 include dirname(__FILE__) .
'/menu.php';
141 $system_options[$item][
'link'] = empty(
$adminmenu[$item][
'absolute']) ? XOOPS_URL .
'/modules/system/' .
$adminmenu[$item][
'link'] :
$adminmenu[$item][
'link'];
143 unset($system_options[$item][
'icon_small']);
145 $tpl->append(
'navitems', array(
'link' => XOOPS_URL.
'/modules/system/admin.php',
'text' =>
_AD_SYSOPTIONS,
'menu' => $system_options));
146 if (empty($xoopsModule) ||
'system' == $xoopsModule->getVar(
'dirname',
'n')) {
147 $modpath = XOOPS_URL .
'/admin.php';
152 foreach (array_keys($mod_options) as $item) {
153 $mod_options[$item][
'link'] = empty($mod_options[$item][
'absolute']) ? XOOPS_URL .
'/modules/'.$moddir.
'/' . $mod_options[$item][
'link'] : $mod_options[$item][
'link'];
154 $mod_options[$item][
'icon'] = empty($mod_options[$item][
'icon']) ?
'' :
XOOPS_ADMINTHEME_URL .
'/zetadigme/' . $mod_options[$item][
'icon'];
155 unset($mod_options[$item][
'icon_small']);
158 $moddir = $xoopsModule->getVar(
'dirname',
'n');
159 $modpath = XOOPS_URL .
'/modules/' .
$moddir;
160 $modname = $xoopsModule->getVar(
'name');
161 $modid = $xoopsModule->getVar(
'mid');
162 $mod_options = $xoopsModule->getAdminMenu();
163 foreach (array_keys($mod_options) as $item) {
164 $mod_options[$item][
'link'] = empty($mod_options[$item][
'absolute']) ? XOOPS_URL .
"/modules/{$moddir}/" . $mod_options[$item][
'link'] : $mod_options[$item][
'link'];
165 $mod_options[$item][
'icon'] = empty($mod_options[$item][
'icon']) ?
'' : XOOPS_URL .
"/modules/{$moddir}/" . $mod_options[$item][
'icon'];
168 $tpl->assign(
'mod_options', $mod_options);
169 $tpl->assign(
'modpath', $modpath);
170 $tpl->assign(
'modname', $modname);
182 foreach ($mods as $mod) {
184 $modOptions = array();
185 $sadmin =
$moduleperm_handler->checkRight(
'module_admin', $mod->getVar(
'mid'), $xoopsUser->getGroups());
187 $info = $mod->getInfo();
188 if (!empty($info[
'adminindex'])) {
189 $rtn[
'link'] = XOOPS_URL .
'/modules/'. $mod->getVar(
'dirname',
'n') .
'/' . $info[
'adminindex'];
191 $rtn[
'link'] = XOOPS_URL .
'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar(
'mid');
193 $rtn[
'title'] = $mod->name();
194 $rtn[
'absolute'] = 1;
195 $rtn[
'url'] = XOOPS_URL .
'/modules/'. $mod->getVar(
'dirname',
'n') .
'/';
196 $modOptions = $mod->getAdminMenu();
197 $rtn[
'options'] = $modOptions;
199 if (isset($info[
'icon']) && $info[
'icon'] !=
'' ) {
200 $rtn[
'icon'] = XOOPS_URL .
'/modules/' . $mod->getVar(
'dirname',
'n') .
'/' . $info[
'icon'];
206 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/modules/system/admin.php?fct=modulesadmin',
213 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=1',
218 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=2',
223 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=3',
228 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=4',
233 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=5',
238 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=6',
243 'link' =>
'admin.php?fct=preferences&op=show&confcat_id=7',
248 'link' =>
'admin.php?fct=preferences&op=showmod&mod=1',
253 'link' => XOOPS_URL .
'/modules/system/admin.php?fct=preferences',
256 'url' => XOOPS_URL .
'/modules/system/',
259 foreach ($mods as $mod) {
261 $sadmin =
$moduleperm_handler->checkRight(
'module_admin', $mod->getVar(
'mid'), $xoopsUser->getGroups());
262 if ($sadmin && ($mod->getVar(
'hasnotification') || is_array($mod->getInfo(
'config')) || is_array($mod->getInfo(
'comments')))) {
263 $rtn[
'link'] = XOOPS_URL .
'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar(
'mid');
264 $rtn[
'title'] = $mod->name();
265 $rtn[
'absolute'] = 1;
270 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/modules/system/admin.php?fct=modulesadmin',
'text' =>
_THEME_SITEPREF,
'dir' => $mod->getVar(
'dirname',
'n'),
'menu' =>
$menu));
274 'link' =>
'http://www.xoops.org',
279 'link' =>
'http://www.xoops.org/modules/library/',
284 'link' =>
'http://www.xoops.org/modules/repository/',
289 'link' =>
'http://sourceforge.net/projects/xoops/',
290 'title' =>
'Sourceforge',
295 $links = include
XOOPS_ADMINTHEME_PATH .
'/zetadigme/language/' . $xoopsConfig[
'language'] .
'/localsupport.php';
296 if ( count($links) > 0 ) {
297 $tpl->append(
'navitems', array(
'link' => XOOPS_URL .
'/admin.php',
'text' =>
_AD_LOCALSUPPORT,
'menu' => $links));
300 if (is_object($xoopsModule) || !empty(
$_GET[
'xoopsorgnews'])) {
return; }
301 foreach ($mods as $mod) {
304 $sadmin =
$moduleperm_handler->checkRight(
'module_admin', $mod->getVar(
'mid'), $xoopsUser->getGroups());
306 $info = $mod->getInfo();
307 if (!empty($info[
'adminindex'])) {
308 $rtn[
'link'] = XOOPS_URL .
'/modules/'. $mod->getVar(
'dirname',
'n') .
'/' . $info[
'adminindex'];
310 $rtn[
'link'] = XOOPS_URL .
'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar(
'mid');
312 $rtn[
'title'] = $mod->getVar(
'name');
313 $rtn [
'description'] = $mod->getInfo(
'description');
314 $rtn[
'absolute'] = 1;
315 if (isset($info[
'icon_big'])) {
316 $rtn[
'icon'] = XOOPS_URL .
'/modules/' . $mod->getVar(
'dirname',
'n') .
'/' . $info[
'icon_big'];
317 } elseif (isset($info[
'image'])) {
318 $rtn[
'icon'] = XOOPS_URL .
'/modules/' . $mod->getVar(
'dirname',
'n') .
'/' . $info[
'image'];
321 $tpl->append(
'modules', $rtn);