Test Setup Failed
Branch master (410bf5)
by Michael
02:02
created
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
     ."  <div style='text-align: center;'>\n"
5 5
     ."    <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
6 6
     ."  </div>\n"
7
-    ."  " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
7
+    ."  "._AM_MODULEADMIN_ADMIN_FOOTER."\n"
8 8
     ."</div>";
9 9
 
10 10
 xoops_cp_footer();
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 //  ------------------------------------------------------------------------ //
27 27
 //
28 28
 
29
-include_once dirname(__FILE__) . '/admin_header.php';
29
+include_once dirname(__FILE__).'/admin_header.php';
30 30
 
31 31
 xoops_cp_header();
32 32
 
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $groups = XOOPS_GROUP_ANONYMOUS;
38 38
 }
39 39
 $module_id = $xoopsModule->getVar('mid');
40
-$gperm_handler =& xoops_gethandler('groupperm');
40
+$gperm_handler = & xoops_gethandler('groupperm');
41 41
 
42 42
 if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups, $module_id)) {
43 43
         // allowed, so display contents within the category
@@ -49,5 +49,5 @@  discard block
 block discarded – undo
49 49
 
50 50
 $i++;
51 51
 $adminmenu[$i]['title'] = _MI_GROUPS_ABOUT;
52
-$adminmenu[$i]['link'] =  "admin/about.php";
52
+$adminmenu[$i]['link'] = "admin/about.php";
53 53
 $adminmenu[$i]["icon"] = $pathIcon32.'/about.png';
54 54
\ No newline at end of file
Please login to merge, or discard this patch.
admin/index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 xoops_cp_header();
7 7
 
8
-	$indexAdmin = new ModuleAdmin();
8
+    $indexAdmin = new ModuleAdmin();
9 9
 
10 10
     echo $indexAdmin->addNavigation('index.php');
11 11
     echo $indexAdmin->renderIndex();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
4
-include_once dirname(__FILE__) . '/admin_header.php';
3
+require_once dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php';
4
+include_once dirname(__FILE__).'/admin_header.php';
5 5
 
6 6
 xoops_cp_header();
7 7
 
Please login to merge, or discard this patch.
admin/main.php 2 patches
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -30,24 +30,24 @@  discard block
 block discarded – undo
30 30
 include_once('admin_header.php');
31 31
 
32 32
 
33
-require_once XOOPS_ROOT_PATH . '/class/template.php';
34
-if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();}
33
+require_once XOOPS_ROOT_PATH.'/class/template.php';
34
+if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl(); }
35 35
 //$xoopsTpl->xoops_setCaching(0);
36
-$xoopsTpl->caching=0;
36
+$xoopsTpl->caching = 0;
37 37
 $xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname'));
38 38
 
39 39
 
40 40
 // CHECK IF SUBMIT WAS PRESSED
41
-if (isset($_POST['add_x']) or isset($_POST['del_x'])){
41
+if (isset($_POST['add_x']) or isset($_POST['del_x'])) {
42 42
 
43
-if (isset($_POST['add_x'])){
44
-$hMember =& xoops_gethandler('member');
45
-$membership =& $hMember->addUserToGroup($_POST['groupid'],$_POST['all']);
43
+if (isset($_POST['add_x'])) {
44
+$hMember = & xoops_gethandler('member');
45
+$membership = & $hMember->addUserToGroup($_POST['groupid'], $_POST['all']);
46 46
 }
47 47
 
48
-if (isset($_POST['del_x'])){
49
-$hMember =& xoops_gethandler('member');
50
-$membership =& $hMember->removeUsersFromGroup($_POST['groupid'],array($_POST['curr']));
48
+if (isset($_POST['del_x'])) {
49
+$hMember = & xoops_gethandler('member');
50
+$membership = & $hMember->removeUsersFromGroup($_POST['groupid'], array($_POST['curr']));
51 51
 }
52 52
 }
53 53
 
@@ -80,16 +80,16 @@  discard block
 block discarded – undo
80 80
 //---------------------------------------
81 81
 */
82 82
 
83
-$grpInfo=array();
83
+$grpInfo = array();
84 84
 
85
-$member_handler =& xoops_gethandler('member');
86
-$groups =& $member_handler->getGroups();
85
+$member_handler = & xoops_gethandler('member');
86
+$groups = & $member_handler->getGroups();
87 87
 
88 88
 $count = count($groups);
89 89
 for ($i = 0; $i < $count; $i++) {
90 90
 
91 91
 $id = $groups[$i]->getVar('groupid');
92
-$name=$groups[$i]->getVar('name');
92
+$name = $groups[$i]->getVar('name');
93 93
 //Skip anonymous group
94 94
 if ($id==3) continue;
95 95
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $groups2 = XOOPS_GROUP_ANONYMOUS;
104 104
 }
105 105
 $module_id = $xoopsModule->getVar('mid');
106
-$gperm_handler =& xoops_gethandler('groupperm');
106
+$gperm_handler = & xoops_gethandler('groupperm');
107 107
 if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups2, $module_id)) {
108 108
 } else {
109 109
         continue;
@@ -111,27 +111,27 @@  discard block
 block discarded – undo
111 111
 //----------------*/
112 112
 
113 113
 
114
-$uids =& $member_handler->getUsersByGroup($id);
114
+$uids = & $member_handler->getUsersByGroup($id);
115 115
 $criteria = new Criteria('uid', "(".implode(',', $uids).")", "IN");
116 116
 $criteria->setSort('uname');
117
-$users=$member_handler->getUserList($criteria);
117
+$users = $member_handler->getUserList($criteria);
118 118
 
119
-$grpInfo[$i]['users']=$users;
120
-$grpInfo[$i]['name']=$name;
121
-$grpInfo[$i]['id']=$id;
119
+$grpInfo[$i]['users'] = $users;
120
+$grpInfo[$i]['name'] = $name;
121
+$grpInfo[$i]['id'] = $id;
122 122
 }
123 123
 
124 124
 /*---------------------------//
125 125
 Get all users
126 126
 //----------------------------------*/
127
-$allUsr=array();
128
-$member_handler =& xoops_gethandler('member');
129
-$foundusers =& $member_handler->getUsers();
127
+$allUsr = array();
128
+$member_handler = & xoops_gethandler('member');
129
+$foundusers = & $member_handler->getUsers();
130 130
 foreach (array_keys($foundusers) as $j) {
131 131
 //echo $foundusers[$j]->getVar("uname").'<br>';
132
-$uid=$foundusers[$j]->getVar("uid");
133
-$username=$foundusers[$j]->getVar("uname");
134
-$allUsr[$uid]=$username;
132
+$uid = $foundusers[$j]->getVar("uid");
133
+$username = $foundusers[$j]->getVar("uname");
134
+$allUsr[$uid] = $username;
135 135
 }
136 136
 //--------------------------//
137 137
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,9 @@
 block discarded – undo
91 91
 $id = $groups[$i]->getVar('groupid');
92 92
 $name=$groups[$i]->getVar('name');
93 93
 //Skip anonymous group
94
-if ($id==3) continue;
94
+if ($id==3) {
95
+    continue;
96
+}
95 97
 
96 98
 
97 99
 //check if user has permission to change this group
Please login to merge, or discard this patch.
admin/admin_header.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $path = dirname(dirname(dirname(dirname(__FILE__))));
4
-include_once $path . '/mainfile.php';
5
-include_once $path . '/include/cp_functions.php';
6
-require_once $path . '/include/cp_header.php';
4
+include_once $path.'/mainfile.php';
5
+include_once $path.'/include/cp_functions.php';
6
+require_once $path.'/include/cp_header.php';
7 7
 
8 8
 global $xoopsModule;
9 9
 
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 $pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
19 19
 $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
20 20
 
21
-if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
21
+if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))) {
22 22
         include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
23
-    }else{
23
+    } else {
24 24
         redirect_header("../../../admin.php", 5, _AM_GROUPS_MODULEADMIN_MISSING, false);
25 25
     }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
 
21 21
 if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
22 22
         include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
23
-    }else{
23
+    } else{
24 24
         redirect_header("../../../admin.php", 5, _AM_GROUPS_MODULEADMIN_MISSING, false);
25 25
     }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
admin/perm.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -9,25 +9,25 @@  discard block
 block discarded – undo
9 9
 
10 10
 xoops_cp_header();
11 11
 
12
-   include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
12
+    include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
13 13
     $module_id = $xoopsModule->getVar('mid');
14 14
 
15 15
 
16
-	//$item_list = array('1' => 'Category 1', '2' => 'Category 2', '3' => 'Category 3');
17
-	$item_list=array();
18
-	$member_handler =& xoops_gethandler('member');
19
-	$groups =& $member_handler->getGroups();
20
-	foreach ($groups as $grp){
21
-	$item_list[$grp->getVar('groupid')]=$grp->getVar('name');
22
-	}
16
+    //$item_list = array('1' => 'Category 1', '2' => 'Category 2', '3' => 'Category 3');
17
+    $item_list=array();
18
+    $member_handler =& xoops_gethandler('member');
19
+    $groups =& $member_handler->getGroups();
20
+    foreach ($groups as $grp){
21
+    $item_list[$grp->getVar('groupid')]=$grp->getVar('name');
22
+    }
23 23
 	
24 24
     //--------------------------------------------------------------//
25 25
     //Added constants for use in translation - by GibaPhp           //
26 26
     //--------------------------------------------------------------//
27 27
 
28
-	$title_of_form = _AM_GROUPS_PERMISS_GRP_TITLE;
29
-	$perm_name = 'groupper';
30
-	$perm_desc = _AM_GROUPS_PERMISS_GRP_DESC;
28
+    $title_of_form = _AM_GROUPS_PERMISS_GRP_TITLE;
29
+    $perm_name = 'groupper';
30
+    $perm_desc = _AM_GROUPS_PERMISS_GRP_DESC;
31 31
 
32 32
     $form = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc);
33 33
     foreach ($item_list as $item_id => $item_name) {
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
     }
36 36
     echo $form->render();
37 37
 	
38
-	echo "<br /><br />";
38
+    echo "<br /><br />";
39 39
 	
40
-	$item_list = array('1' => _AM_GROUPS_ITEM_LIST);
41
-	$title_of_form = _AM_GROUPS_TITLE_OF_FORM;
42
-	$perm_desc = _AM_GROUPS_PERM_DESC;
43
-	$perm_name = 'allowedgrp';
40
+    $item_list = array('1' => _AM_GROUPS_ITEM_LIST);
41
+    $title_of_form = _AM_GROUPS_TITLE_OF_FORM;
42
+    $perm_desc = _AM_GROUPS_PERM_DESC;
43
+    $perm_name = 'allowedgrp';
44 44
     $form = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc);
45 45
     foreach ($item_list as $item_id => $item_name) {
46 46
     $form->addItem($item_id, $item_name);
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 require_once '../../../include/cp_header.php';
3 3
 
4
-require_once XOOPS_ROOT_PATH . '/class/template.php';
5
-if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();}
4
+require_once XOOPS_ROOT_PATH.'/class/template.php';
5
+if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl(); }
6 6
 //$xoopsTpl->xoops_setCaching(0);
7
-$xoopsTpl->caching=0;
7
+$xoopsTpl->caching = 0;
8 8
 $xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname'));
9 9
 
10 10
 xoops_cp_header();
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 
15 15
 
16 16
 	//$item_list = array('1' => 'Category 1', '2' => 'Category 2', '3' => 'Category 3');
17
-	$item_list=array();
18
-	$member_handler =& xoops_gethandler('member');
19
-	$groups =& $member_handler->getGroups();
20
-	foreach ($groups as $grp){
21
-	$item_list[$grp->getVar('groupid')]=$grp->getVar('name');
17
+	$item_list = array();
18
+	$member_handler = & xoops_gethandler('member');
19
+	$groups = & $member_handler->getGroups();
20
+	foreach ($groups as $grp) {
21
+	$item_list[$grp->getVar('groupid')] = $grp->getVar('name');
22 22
 	}
23 23
 	
24 24
     //--------------------------------------------------------------//
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 $modversion["module_status"] = "RC";
29 29
 $modversion["author_website_url"] = "http://www.xoops.org/";
30 30
 $modversion["author_website_name"] = "XOOPS";
31
-$modversion['min_php']='5.2';
32
-$modversion['min_xoops']='2.5';
33
-$modversion['min_admin']='1.1';
34
-$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7');
31
+$modversion['min_php'] = '5.2';
32
+$modversion['min_xoops'] = '2.5';
33
+$modversion['min_admin'] = '1.1';
34
+$modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7');
35 35
 
36 36
 // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin)
37 37
 // All tables should not have any prefix!
Please login to merge, or discard this patch.
language/english/admin.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
 //  ------------------------------------------------------------------------ //
27 27
 //
28 28
 
29
-define("_AM_GROUPS_PERMISS_GRP_TITLE","Permission for each Group");
30
-define("_AM_GROUPS_PERMISS_GRP_DESC","Set which groups each group can change");
31
-define("_AM_GROUPS_ITEM_LIST","Can Change Permissions");
32
-define("_AM_GROUPS_TITLE_OF_FORM","Groups allowed to change permissions");
33
-define("_AM_GROUPS_PERM_DESC","Select which groups can change these permissions");
29
+define("_AM_GROUPS_PERMISS_GRP_TITLE", "Permission for each Group");
30
+define("_AM_GROUPS_PERMISS_GRP_DESC", "Set which groups each group can change");
31
+define("_AM_GROUPS_ITEM_LIST", "Can Change Permissions");
32
+define("_AM_GROUPS_TITLE_OF_FORM", "Groups allowed to change permissions");
33
+define("_AM_GROUPS_PERM_DESC", "Select which groups can change these permissions");
34 34
 
35
-define("_AM_GROUPS_NAME_GROUP","Group Name");
36
-define("_AM_GROUPS_MEMBERS_ACTUALS","Current Members");
37
-define("_AM_GROUPS_ACTIONS","Action");
38
-define("_AM_GROUPS_ALL_USERS","All Users");
39
-define("_AM_GROUPS_MAIN","Main");
40
-define("_AM_GROUPS_PERMISSIONS","Permissions");
35
+define("_AM_GROUPS_NAME_GROUP", "Group Name");
36
+define("_AM_GROUPS_MEMBERS_ACTUALS", "Current Members");
37
+define("_AM_GROUPS_ACTIONS", "Action");
38
+define("_AM_GROUPS_ALL_USERS", "All Users");
39
+define("_AM_GROUPS_MAIN", "Main");
40
+define("_AM_GROUPS_PERMISSIONS", "Permissions");
41 41
 
42 42
 
43 43
 //ModuleAdmin
44
-define('_AM_GROUPS_MODULEADMIN_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)');
45 44
\ No newline at end of file
45
+define('_AM_GROUPS_MODULEADMIN_MISSING', 'Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)');
46 46
\ No newline at end of file
Please login to merge, or discard this patch.