36 if ( isset(
$fct) &&
$fct ==
'users' ) {
41 if ($admintest != 0) {
43 $fct = preg_replace(
"/[^a-z0-9_\-]/i",
"",
$fct);
44 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/' .
$xoopsModule->getVar(
'dirname',
'n' ) .
'/admin/' .
$fct .
'/xoops_version.php' ) ) {
48 require XOOPS_ROOT_PATH .
'/modules/' .
$xoopsModule->getVar(
'dirname',
'n' ) .
'/admin/' .
$fct .
'/xoops_version.php';
57 if ( in_array( XOOPS_GROUP_ADMIN, $group) ||
false != $sysperm_handler->checkRight(
'system_admin', $category, $group,
$xoopsModule->getVar(
'mid') ) ) {
58 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/' .
$xoopsModule->getVar(
'dirname',
'n' ) .
'/admin/' .
$fct .
'/main.php' ) ) {
59 include_once XOOPS_ROOT_PATH .
'/modules/' .
$xoopsModule->getVar(
'dirname',
'n' ) .
'/admin/' .
$fct .
'/main.php';
66 } elseif (
$fct ==
'version') {
67 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/' .
$xoopsModule->getVar(
'dirname',
'n' ) .
'/admin/version/main.php' ) ) {
68 include_once XOOPS_ROOT_PATH .
'/modules/' .
$xoopsModule->getVar(
'dirname',
'n' ) .
'/admin/version/main.php';
86 if (
$op ==
'system_activate') {
93 if ( $conf->getVar(
'conf_name') ==
'active_' . $part) {
94 $conf->setVar(
'conf_value', !$conf->getVar(
'conf_value') );
104 $xoTheme->addStylesheet( XOOPS_URL .
'/modules/system/css/admin.css' );
106 $xoTheme->addScript(
'browse.php?Frameworks/jquery/jquery.js');
107 $xoTheme->addScript(
'modules/system/js/admin.js');
114 if (!in_array(XOOPS_GROUP_ADMIN,
$groups)) {
116 $ok_syscats = $sysperm_handler->getItemIds(
'system_admin',
$groups);
123 $admin_dir = XOOPS_ROOT_PATH .
'/modules/system/admin';
125 $inactive_section = array(
'blocksadmin',
'groups',
'modulesadmin',
'preferences',
'tplsets');
127 if ( file_exists(
$admin_dir .
'/' . $directory .
'/xoops_version.php' ) ) {
129 require
$admin_dir .
'/' . $directory .
'/xoops_version.php';
136 $menu[
'file'] = $directory;
140 $menu[
'status'] =
true;
145 $menu[
'file'] = $directory;
149 $menu[
'status'] =
false;
152 if (!in_array($directory, $inactive_section)) {
153 $menu[
'used'] =
true;
156 switch ( $directory ) {
158 $avatar_handler = xoops_getHandler(
'avatar');
159 $avatar = $avatar_handler->getCount();
163 $banner_handler =& xoops_getModuleHandler(
'banner',
'system' );
164 $banner = $banner_handler->getCount();