[xoops-cvslog 2955] CVS update: xoops2jp/html/modules/system/admin/groups

Back to archive index

onokazu onoka****@users*****
2006年 5月 1日 (月) 11:37:30 JST


Index: xoops2jp/html/modules/system/admin/groups/groups.php
diff -u xoops2jp/html/modules/system/admin/groups/groups.php:1.4 xoops2jp/html/modules/system/admin/groups/groups.php:1.5
--- xoops2jp/html/modules/system/admin/groups/groups.php:1.4	Wed Aug  3 21:39:16 2005
+++ xoops2jp/html/modules/system/admin/groups/groups.php	Mon May  1 11:37:29 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: groups.php,v 1.4 2005/08/03 12:39:16 onokazu Exp $
+// $Id: groups.php,v 1.5 2006/05/01 02:37:29 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -53,7 +53,7 @@
     //OpenTable();
     echo "<h4 style='text-align:left'>"._AM_EDITADG."</h4>";
     $member_handler =& xoops_gethandler('member');
-    $groups =& $member_handler->getGroups();
+    $groups = $member_handler->getGroups();
         echo "<table class='outer' width='40%' cellpadding='4' cellspacing='1'><tr><th colspan='2'>"._AM_EDITADG."</th></tr>";
     $count = count($groups);
     for ($i = 0; $i < $count; $i++) {
@@ -104,8 +104,8 @@
     $name_value = $thisgroup->getVar("name", "E");
     $desc_value = $thisgroup->getVar("description", "E");
     $moduleperm_handler =& xoops_gethandler('groupperm');
-    $a_mod_value =& $moduleperm_handler->getItemIds('module_admin', $thisgroup->getVar('groupid'));
-    $r_mod_value =& $moduleperm_handler->getItemIds('module_read', $thisgroup->getVar('groupid'));
+    $a_mod_value = $moduleperm_handler->getItemIds('module_admin', $thisgroup->getVar('groupid'));
+    $r_mod_value = $moduleperm_handler->getItemIds('module_read', $thisgroup->getVar('groupid'));
     $r_block_value =& XoopsBlock::getAllBlocksByGroup($thisgroup->getVar("groupid"), false);
     $op_value = "update";
     $submit_value = _AM_UPDATEADG;
@@ -117,7 +117,7 @@
     }
 
     $sysperm_handler =& xoops_gethandler('groupperm');
-    $s_cat_value =& $sysperm_handler->getItemIds('system_admin', $g_id);
+    $s_cat_value = $sysperm_handler->getItemIds('system_admin', $g_id);
 
     include XOOPS_ROOT_PATH."/modules/system/admin/groups/groupform.php";
     echo "<br /><h4 style='text-align:left'>"._AM_EDITMEMBER."</h4>";
@@ -128,7 +128,7 @@
     if ($usercount < 200 && $membercount < 200) {
         // do the old way only when counts are small
         $mlist = array();
-        $members =& $member_handler->getUsersByGroup($g_id, false);
+        $members = $member_handler->getUsersByGroup($g_id, false);
         if (count($members) > 0) {
             $member_criteria = new Criteria('uid', "(".implode(',', $members).")", "IN");
             $member_criteria->setSort('uname');
@@ -136,8 +136,8 @@
         }
         $criteria = new Criteria('level', 0, '>');
         $criteria->setSort('uname');
-        $userslist =& $member_handler->getUserList($criteria);
-        $users =& array_diff($userslist, $mlist);
+        $userslist = $member_handler->getUserList($criteria);
+        $users = array_diff($userslist, $mlist);
         echo '<table class="outer">
         <tr><th align="center">'._AM_NONMEMBERS.'<br />';
         echo '</th><th></th><th align="center">'._AM_MEMBERS.'<br />';
Index: xoops2jp/html/modules/system/admin/groups/main.php
diff -u xoops2jp/html/modules/system/admin/groups/main.php:1.4 xoops2jp/html/modules/system/admin/groups/main.php:1.5
--- xoops2jp/html/modules/system/admin/groups/main.php:1.4	Wed Aug  3 21:39:16 2005
+++ xoops2jp/html/modules/system/admin/groups/main.php	Mon May  1 11:37:29 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: main.php,v 1.4 2005/08/03 12:39:16 onokazu Exp $
+// $Id: main.php,v 1.5 2006/05/01 02:37:29 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -57,8 +57,8 @@
         modifyGroup($g_id);
         break;
     case "update":
-		if(!XoopsMultiTokenHandler::quickValidate('groups_update'))
-			system_groups_error("Ticket Error");
+        if(!XoopsMultiTokenHandler::quickValidate('groups_update'))
+            system_groups_error("Ticket Error");
 
         $g_id = !empty($_POST['g_id']) ? intval($_POST['g_id']) : 0;
         if ($g_id <= 0) {
@@ -135,8 +135,8 @@
         }
         break;
     case "add":
-		if(!XoopsMultiTokenHandler::quickValidate('groups_add'))
-			system_groups_error("Ticket Error");
+        if(!XoopsMultiTokenHandler::quickValidate('groups_add'))
+            system_groups_error("Ticket Error");
 
         $name = !empty($_POST['name']) ? trim($_POST['name']) : '';
         if ($name == '') {
@@ -210,8 +210,8 @@
         xoops_cp_footer();
         break;
     case "delConf":
-		if(!xoops_confirm_validate())
-			system_groups_error("Ticket Error");
+        if(!xoops_confirm_validate())
+            system_groups_error("Ticket Error");
 
         $g_id = !empty($_POST['g_id']) ? intval($_POST['g_id']) : 0;
         if ($g_id > 0 && !in_array($g_id, array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS))) {
@@ -224,13 +224,13 @@
         redirect_header("admin.php?fct=groups&amp;op=adminMain",1,_AM_DBUPDATED);
         break;
     case "addUser":
-		if(!XoopsMultiTokenHandler::quickValidate('groups_User'))
-			system_groups_error("Ticket Error");
+        if(!XoopsMultiTokenHandler::quickValidate('groups_User'))
+            system_groups_error("Ticket Error");
 
         $member_handler =& xoops_gethandler('member');
         $groupid = intval($_POST['groupid']);
         if ($groupid > 0) {
-            $size = count($_POST['uids']);
+            $size = isset($_POST['uids']) ? count($_POST['uids']) : 0;
             for ( $i = 0; $i < $size; $i++ ) {
                 $member_handler->addUserToGroup($_POST['groupid'], $_POST['uids'][$i]);
             }
@@ -238,8 +238,8 @@
         redirect_header("admin.php?fct=groups&amp;op=modify&amp;g_id=".$groupid, 0, _AM_DBUPDATED);
         break;
     case "delUser":
-		if(!XoopsMultiTokenHandler::quickValidate('groups_User'))
-			system_groups_error("Ticket Error");
+        if(!XoopsMultiTokenHandler::quickValidate('groups_User'))
+            system_groups_error("Ticket Error");
 
         $groupid = !empty($_POST['groupid']) ? intval($_POST['groupid']) : 0;
         if ($groupid > 0) {


xoops-cvslog メーリングリストの案内
Back to archive index