21 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
26 if (is_object($xoopsUser)) {
27 foreach ($xoopsUser->getGroups() as $group) {
28 if (in_array($group, $xoopsConfig[
'closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) {
33 }
else if (!empty(
$_POST[
'xoops_login'])) {
34 include_once
$GLOBALS[
'xoops']->path(
'include/checklogin.php');
39 require_once
$GLOBALS[
'xoops']->path(
'class/template.php');
40 require_once
$GLOBALS[
'xoops']->path(
'class/theme.php');
46 'plugins' => array()));
47 $xoTheme->addScript(
'/include/xoops.js', array(
48 'type' =>
'text/javascript'));
53 'xoops_themecss' =>
xoops_getcss($xoopsConfig[
'theme_set']) ,
54 'xoops_requesturi' => htmlspecialchars(
$_SERVER[
'REQUEST_URI'], ENT_QUOTES) ,
55 'xoops_sitename' => htmlspecialchars($xoopsConfig[
'sitename'], ENT_QUOTES) ,
56 'xoops_slogan' => htmlspecialchars($xoopsConfig[
'slogan'], ENT_QUOTES) ,
58 'xoops_banner' => $xoopsConfig[
'banners'] ?
xoops_getbanner() :
' ' ,
63 'lang_siteclosemsg' => $xoopsConfig[
'closesite_text']));
69 $name =
$config[
$i]->getVar(
'conf_name',
'n');
70 $value =
$config[
$i]->getVar(
'conf_value',
'n');
71 if (substr($name, 0, 5) ==
'meta_') {
72 $xoopsTpl->assign(
"xoops_$name", htmlspecialchars($value, ENT_QUOTES));
81 $xoopsTpl->display(
'db:system_siteclosed.html');