Minahito
minah****@users*****
2006年 9月 26日 (火) 12:18:13 JST
Index: xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php diff -u xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.5 xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6 --- xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.5 Sun Sep 24 19:38:33 2006 +++ xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php Tue Sep 26 12:18:12 2006 @@ -161,23 +161,23 @@ // // This check is not needed. :) // - if(!is_object($xoopsUser)) { + if (!is_object($xoopsUser)) { return; } // Site close - if($this->mController->getConfig('closesite')) { - $accessAllowed=false; + if ($this->mController->getConfig('closesite')) { + $accessAllowed = false; - foreach($xoopsUser->getGroups() as $group) { - if(in_array($group,$this->mController->getConfig('closesite_okgrp')) || ($group==XOOPS_GROUP_ADMIN)) { - $accessAllowed=true; + foreach ($xoopsUser->getGroups() as $group) { + if (in_array($group, $this->mController->getConfig('closesite_okgrp')) || ($group == XOOPS_GROUP_ADMIN)) { + $accessAllowed = true; break; } } - if(!$accessAllowed) { - $this->mController->redirectHeader(XOOPS_URL,1,_NOPERM); + if (!$accessAllowed) { + $this->mController->redirectHeader(XOOPS_URL . '/', 1, _NOPERM); } } }