From: <on...@us...> - 2002-09-20 16:28:14
|
Update of /cvsroot/xoops/xoops-current/html/modules/system/admin/groups In directory usw-pr-cvs1:/tmp/cvs-serv6225 Modified Files: groups.php main.php Log Message: no message Index: groups.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/system/admin/groups/groups.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** groups.php 10 Sep 2002 04:09:29 -0000 1.4 --- groups.php 20 Sep 2002 16:28:11 -0000 1.5 *************** *** 1,7 **** <?php ! if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); } - if ( $xoopsUser->isAdmin($xoopsModule->mid()) ) { /*********************************************************/ --- 1,6 ---- <?php ! if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) { die ("Access Denied"); } /*********************************************************/ *************** *** 177,184 **** exit(); } - - } else { - echo "Access Denied"; - } - ?> --- 176,178 ---- Index: main.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/system/admin/groups/main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.php 6 Aug 2002 01:20:51 -0000 1.2 --- main.php 20 Sep 2002 16:28:11 -0000 1.3 *************** *** 1,9 **** <?php ! if ( !eregi("admin.php", $PHP_SELF) ) { ! die ("Access Denied"); ! } ! include_once(XOOPS_ROOT_PATH."/modules/system/admin/groups/groups.php"); ! include_once(XOOPS_ROOT_PATH."/class/xoopsgroup.php"); ! if( $xoopsUser->isAdmin($xoopsModule->mid()) ) { $op = "display"; if ( isset($HTTP_POST_VARS) ) { --- 1,8 ---- <?php ! if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) { ! die ("Access Denied"); ! } else { ! include_once(XOOPS_ROOT_PATH."/modules/system/admin/groups/groups.php"); ! include_once(XOOPS_ROOT_PATH."/class/xoopsgroup.php"); $op = "display"; if ( isset($HTTP_POST_VARS) ) { *************** *** 100,105 **** } - } else { - echo "Access Denied"; } ?> --- 99,102 ---- |