19 define(
'XOOPS_CPFUNC_LOADED', 1);
29 $cpanel->gui->header();
40 $cpanel->gui->footer();
51 echo
"<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #2F5376;'><tr class='bg4'><td valign='top'>\n";
60 echo
'</td></tr></table>';
71 echo
'<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">' .
$title .
'</td></tr><tr><td><br />' .
$content .
'<br /></td></tr></table>';
83 return '<form action="' .
$url .
'" method="post"><input type="submit" value="' . $value .
'" /></form>';
93 if (
$_SERVER[
'REQUEST_METHOD'] !=
'POST') {
98 if (!
$GLOBALS[
'xoopsSecurity']->checkReferer()) {
113 $GLOBALS[
'xoopsLogger']->addDeprecated(__FUNCTION__ .
" is deprecated, should not be used any longer");
127 $firstleveltable =
"";
137 foreach ($mods as $mod) {
139 $mid = $mod->getVar(
'mid');
140 $module_name = $mod->getVar(
'name');
141 $module_url =
"\".XOOPS_URL.\"/modules/" . $mod->getVar(
'dirname') .
"/" . trim($mod->getInfo(
'adminindex'));
142 $module_img =
"<img class='admin_layer_img' src='\".XOOPS_URL.\"/modules/" . $mod->getVar(
'dirname') .
"/" . $mod->getInfo(
'image') .
"' alt='' />";
143 $module_desc =
"<strong>\"._VERSION.\":</strong> " . round($mod->getVar(
'version') / 100, 2) .
"<br /><strong>\"._DESCRIPTION.\":</strong> " . $mod->getInfo(
'description');
146 $js .=
"\nfunction popUpL" .
$mid .
"() {\n shutdown();\n popUp('L" .
$mid .
"',true);}";
147 $moveLayers .=
"\n setleft('L" .
$mid .
"'," . $left .
");\n settop('L" .
$mid .
"'," . $top .
");";
148 $shutdown .=
"\n popUp('L" .
$mid .
"',false);";
149 $firstleveltable .=
"$" .
"xoops_admin_menu_ft[" .
$mid .
"] = \"<a href='" . $module_url .
"' title='" . $module_name .
"' onmouseover='moveLayerY(\\\"L" .
$mid .
"\\\", currentY, event) ; popUpL" .
$mid .
"(); ' >" . $module_img .
"</a><br />\";\n";
150 $menu_layers .=
"\n<div id='L" .
$mid .
"' style='position: absolute; visibility: hidden; z-index:1000;' >\n<table class='admin_layer' cellpadding='0' cellspacing='0'>\n<tr><th nowrap='nowrap'>" . $module_name .
"</th></tr>\n<tr><td class='even' nowrap='nowrap'>";
154 if ($mod->getVar(
'hasnotification') || ($mod->getInfo(
'config') && is_array($mod->getInfo(
'config'))) || ($mod->getInfo(
'comments') && is_array($mod->getInfo(
'comments')))) {
156 'link' =>
'".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=' .
$mid ,
163 $menu_link = trim($menuitem[
'link']);
164 $menu_title = trim($menuitem[
'title']);
165 $menu_target = isset($menuitem[
'target']) ?
" target='" . trim($menuitem[
'target']) .
"'" :
'';
166 if (isset($menuitem[
'absolute']) && $menuitem[
'absolute']) {
167 $menu_link = (empty($menu_link)) ?
"#" : $menu_link;
169 $menu_link = (empty($menu_link)) ?
"#" :
"\".XOOPS_URL.\"/modules/" . $mod->getVar(
'dirname') .
"/" . $menu_link;
172 $menu_layers .=
"\n<img src='\".XOOPS_URL.\"/images/pointer.gif' width='8' height='8' alt='' /> <a href='" . $menu_link .
"'" . $menu_target .
" onmouseover='popUpL" .
$mid .
"' >" . $menu_title .
"</a><br />\n";
176 $menu_layers .=
"\n<div style='margin-top: 5px; font-size: smaller; text-align: right;'><a href='#' onmouseover='shutdown();'>[" .
_CLOSE .
"]</a></div></td></tr><tr><th style='font-size: smaller; text-align: left;'>" . $module_img .
"<br />" . $module_desc .
"</th></tr></table></div>\n";
178 $menu_layers .=
"\n<script language='JavaScript' type='text/javascript'>\n<!--\nmoveLayers();\nloaded = 1;\n// -->\n</script>\n";
180 $content .=
"\$xoops_admin_menu_js = \"" .
$js .
"\n\";\n\n";
181 $content .=
"\$xoops_admin_menu_ml = \"" . $moveLayers .
"\n\";\n\n";
182 $content .=
"\$xoops_admin_menu_sd = \"" . $shutdown .
"\n\";\n\n";
183 $content .= $firstleveltable .
"\n";
184 $content .=
"\$xoops_admin_menu_dv = \"" . $menu_layers .
"\";\n";
197 $GLOBALS[
'xoopsLogger']->addDeprecated(__FUNCTION__ .
" is deprecated, should not be used any longer");
202 if (!
$file = fopen($filename,
'w')) {
203 echo
'failed open file';
207 echo
'failed write file';
234 $filename =
$path .
'/index.html';
235 if (file_exists($filename)) {
238 if (!
$file = fopen($filename,
'w')) {
239 echo
'failed open file';
242 if (fwrite(
$file,
'<script>history.go(-1);</script>') == - 1) {
243 echo
'failed write file';