Passed
Branch master (410bf5)
by Michael
02:41
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 1 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/admin_header.php 1 patch
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.
admin/perm.php 1 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.
language/english/modinfo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
 //  along with this program; if not, write to the Free Software              //
25 25
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26 26
 //  ------------------------------------------------------------------------ //
27
-define("_MI_GROUPS_NAME","Group Manager");
28
-define("_MI_GROUPS_DESC","Manage Groups");
29
-define("_MI_GROUPS_ADMIN0","Home");
30
-define("_MI_GROUPS_ADMIN1","Manage Groups");
31
-define("_MI_GROUPS_ADMIN2","Permissions");
32
-define("_MI_GROUPS_ABOUT","About");
27
+define("_MI_GROUPS_NAME", "Group Manager");
28
+define("_MI_GROUPS_DESC", "Manage Groups");
29
+define("_MI_GROUPS_ADMIN0", "Home");
30
+define("_MI_GROUPS_ADMIN1", "Manage Groups");
31
+define("_MI_GROUPS_ADMIN2", "Permissions");
32
+define("_MI_GROUPS_ABOUT", "About");
33 33
 
34 34
 
35 35
 ?>
36 36
\ No newline at end of file
Please login to merge, or discard this patch.