Completed
Push — master ( 99eb82...6dab8b )
by Michael
19s
created
xoops_trust_path/libs/altsys/language/english/compilehookadmin.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d template caches have been enclosed by tplsadmin comments') ;
4
-define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implant comments') ;
5
-define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself') ;
6
-define('_TPLSADMIN_CNF_ENCLOSEBYCOMMENT', 'Compiled template caches will be enclosed by tplsadmin comments. Are you OK?') ;
3
+define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d template caches have been enclosed by tplsadmin comments');
4
+define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implant comments');
5
+define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself');
6
+define('_TPLSADMIN_CNF_ENCLOSEBYCOMMENT', 'Compiled template caches will be enclosed by tplsadmin comments. Are you OK?');
7 7
 
8 8
 
9
-define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d template caches have been enclosed by div tags') ;
10
-define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'Implant div tags') ;
11
-define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.') ;
12
-define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?') ;
9
+define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d template caches have been enclosed by div tags');
10
+define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'Implant div tags');
11
+define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.');
12
+define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?');
13 13
 
14
-define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles') ;
15
-define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables') ;
16
-define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.') ;
17
-define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?') ;
14
+define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles');
15
+define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables');
16
+define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.');
17
+define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?');
18 18
 
19
-define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized') ;
20
-define('_TPLSADMIN_DT_REMOVEHOOKS', 'Normalize compiled template caches') ;
21
-define('_TPLSADMIN_DD_REMOVEHOOKS', 'This removes comments/div tags/logics implanted by upper operations from each compiled template caches.') ;
22
-define('_TPLSADMIN_CNF_REMOVEHOOKS', 'Are you OK for normlizing?') ;
19
+define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized');
20
+define('_TPLSADMIN_DT_REMOVEHOOKS', 'Normalize compiled template caches');
21
+define('_TPLSADMIN_DD_REMOVEHOOKS', 'This removes comments/div tags/logics implanted by upper operations from each compiled template caches.');
22
+define('_TPLSADMIN_CNF_REMOVEHOOKS', 'Are you OK for normlizing?');
23 23
 
24 24
 
25
-define('_TPLSADMIN_MSG_CLEARCACHE', 'Template caches are removed') ;
26
-define('_TPLSADMIN_MSG_CREATECOMPILECACHEFIRST', 'There are no compiled template caches. Create complied template caches by displaying public sides of your site, first') ;
25
+define('_TPLSADMIN_MSG_CLEARCACHE', 'Template caches are removed');
26
+define('_TPLSADMIN_MSG_CREATECOMPILECACHEFIRST', 'There are no compiled template caches. Create complied template caches by displaying public sides of your site, first');
27 27
 
28
-define('_TPLSADMIN_CNF_DELETEOK', 'Delete OK?') ;
28
+define('_TPLSADMIN_CNF_DELETEOK', 'Delete OK?');
29 29
 
30 30
 
31
-define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions') ;
32
-define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.') ;
31
+define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions');
32
+define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.');
33 33
 
34
-define('_TPLSADMIN_DT_GETTEMPLATES', 'Download templates') ;
35
-define('_TPLSADMIN_DD_GETTEMPLATES', 'Select a set before pushing either button') ;
34
+define('_TPLSADMIN_DT_GETTEMPLATES', 'Download templates');
35
+define('_TPLSADMIN_DD_GETTEMPLATES', 'Select a set before pushing either button');
36 36
 
37
-define('_TPLSADMIN_FMT_MSG_PUTTEMPLATES', '%d templates are imported.') ;
38
-define('_TPLSADMIN_DT_PUTTEMPLATES', 'Upload templates') ;
39
-define('_TPLSADMIN_DD_PUTTEMPLATES', 'Select a set you want to upload/overwrite before uploading zip/tgz archive including template files (.html). You need not to check depths of the paths in the archive.') ;
37
+define('_TPLSADMIN_FMT_MSG_PUTTEMPLATES', '%d templates are imported.');
38
+define('_TPLSADMIN_DT_PUTTEMPLATES', 'Upload templates');
39
+define('_TPLSADMIN_DD_PUTTEMPLATES', 'Select a set you want to upload/overwrite before uploading zip/tgz archive including template files (.html). You need not to check depths of the paths in the archive.');
40 40
 
41 41
 
42
-define('_TPLSADMIN_ERR_NOTUPLOADED', 'No files are uploaded.') ;
43
-define('_TPLSADMIN_ERR_EXTENSION', 'This extension cannot be recognized.') ;
44
-define('_TPLSADMIN_ERR_INVALIDARCHIVE', 'The archive is not extractable.') ;
45
-define('_TPLSADMIN_ERR_INVALIDTPLSET', 'Invalid set name has been specified.') ;
42
+define('_TPLSADMIN_ERR_NOTUPLOADED', 'No files are uploaded.');
43
+define('_TPLSADMIN_ERR_EXTENSION', 'This extension cannot be recognized.');
44
+define('_TPLSADMIN_ERR_INVALIDARCHIVE', 'The archive is not extractable.');
45
+define('_TPLSADMIN_ERR_INVALIDTPLSET', 'Invalid set name has been specified.');
46 46
 
47
-define('_TPLSADMIN_ERR_NOTPLSVARSINFO', 'There are no template vars info files.') ;
47
+define('_TPLSADMIN_ERR_NOTPLSVARSINFO', 'There are no template vars info files.');
48 48
 
49
-define('_TPLSADMIN_NUMCAP_COMPILEDCACHES', 'Compiled template caches') ;
50
-define('_TPLSADMIN_NUMCAP_TPLSVARS', 'Template vars info files') ;
49
+define('_TPLSADMIN_NUMCAP_COMPILEDCACHES', 'Compiled template caches');
50
+define('_TPLSADMIN_NUMCAP_TPLSVARS', 'Template vars info files');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/english/admin_in_theme.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Public Top of %s') ;
4
-define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Admin Top of %s') ;
3
+define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Public Top of %s');
4
+define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Admin Top of %s');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/english/mypreferences.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('_MD_A_MYPREFERENCES_FORMTITLE', 'Module\'s preferences') ;
4
-define('_MD_A_MYPREFERENCES_UPDATED', 'Preferences are updated successfully') ;
3
+define('_MD_A_MYPREFERENCES_FORMTITLE', 'Module\'s preferences');
4
+define('_MD_A_MYPREFERENCES_UPDATED', 'Preferences are updated successfully');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/english/blocks_each.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4
-    $mydirname = 'd3forum' ;
4
+    $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . strtoupper($mydirname) ;
6
+$constpref = '_MB_'.strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) {
9
-    define($constpref.'_LOADED', 1) ;
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
 // definitions for displaying blocks 
12 12
 // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/spanish/blocks_each.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4
-    $mydirname = 'd3forum' ;
4
+    $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . strtoupper($mydirname) ;
6
+$constpref = '_MB_'.strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) {
9
-    define($constpref.'_LOADED', 1) ;
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
 // definitions for displaying blocks 
12 12
 // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/ja_utf8/blocks_each.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4
-    $mydirname = 'd3forum' ;
4
+    $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . strtoupper($mydirname) ;
6
+$constpref = '_MB_'.strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) {
9
-    define($constpref.'_LOADED', 1) ;
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
 // definitions for displaying blocks 
12 12
 // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/german/blocks_each.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
4
-    $mydirname = 'd3forum' ;
4
+    $mydirname = 'd3forum';
5 5
 }
6
-$constpref = '_MB_' . strtoupper($mydirname) ;
6
+$constpref = '_MB_'.strtoupper($mydirname);
7 7
 
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) {
9
-    define($constpref.'_LOADED', 1) ;
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9
+    define($constpref.'_LOADED', 1);
10 10
 
11 11
 // definitions for displaying blocks 
12 12
 // Since altsys is a singleton moudle, this file has non-sense.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/portuguese/blocks_each.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 if (defined('FOR_XOOPS_LANG_CHECKER')) {
5 5
     $mydirname = 'd3forum';
6 6
 }
7
-$constpref = '_MB_' . strtoupper($mydirname);
8
-if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) {
7
+$constpref = '_MB_'.strtoupper($mydirname);
8
+if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) {
9 9
     define($constpref.'_LOADED', 1);
10 10
 // DEFINITIONS FOR DISPLAYING BLOCKS
11 11
 // SINCE ALTSYS IS A SINGLETON MODULE, THIS FILE HAS NON-SENSE.
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/mypreferences.php 2 patches
Switch Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -76,83 +76,83 @@
 block discarded – undo
76 76
         $title4tray = (!defined($config[$i]->getVar('conf_desc')) || constant($config[$i]->getVar('conf_desc')) == '') ? (constant($config[$i]->getVar('conf_title')).$title_icon) : (constant($config[$i]->getVar('conf_title')).$title_icon.'<br /><br /><span style="font-weight:normal;">'.constant($config[$i]->getVar('conf_desc')).'</span>'); // GIJ
77 77
         $title = '' ; // GIJ
78 78
         switch ($config[$i]->getVar('conf_formtype')) {
79
-        case 'textarea':
80
-            (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
81
-            if ($config[$i]->getVar('conf_valuetype') == 'array') {
82
-                // this is exceptional.. only when value type is arrayneed a smarter way for this
83
-                $ele = ($config[$i]->getVar('conf_value') != '') ? new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), '', 5, 50);
84
-            } else {
85
-                $ele = new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars($config[$i]->getConfValueForOutput()), 5, 50);
86
-            }
87
-            break;
88
-        case 'select':
89
-        case 'radio':
90
-            if ($config[$i]->getVar('conf_formtype') === 'select') {
91
-                $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
92
-                $addBr = '';
93
-            } else {
94
-                $ele = new XoopsFormRadio($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
95
-                $addBr = '<br />';
96
-            }
97
-            $options = $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id')));
98
-            $opcount = count($options);
99
-            for ($j = 0; $j < $opcount; $j++) {
100
-                $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
101
-                $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
102
-                $ele->addOption($optval, $optkey.$addBr);
103
-            }
104
-            break;
105
-        case 'select_multi':
106
-        case 'checkbox':
107
-            if ($config[$i]->getVar('conf_formtype') === 'select_multi') {
108
-                $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true);
109
-                $addBr = '';
110
-            } else {
111
-                $ele = new XoopsFormCheckBox($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
112
-                $addBr = '<br />';
113
-            }
114
-            $options = $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id')));
115
-            $opcount = count($options);
116
-            for ($j = 0; $j < $opcount; $j++) {
117
-                $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
118
-                $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
79
+            case 'textarea':
80
+                (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
81
+                if ($config[$i]->getVar('conf_valuetype') == 'array') {
82
+                    // this is exceptional.. only when value type is arrayneed a smarter way for this
83
+                    $ele = ($config[$i]->getVar('conf_value') != '') ? new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), '', 5, 50);
84
+                } else {
85
+                    $ele = new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars($config[$i]->getConfValueForOutput()), 5, 50);
86
+                }
87
+                break;
88
+            case 'select':
89
+            case 'radio':
90
+                if ($config[$i]->getVar('conf_formtype') === 'select') {
91
+                    $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
92
+                    $addBr = '';
93
+                } else {
94
+                    $ele = new XoopsFormRadio($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
95
+                    $addBr = '<br />';
96
+                }
97
+                $options = $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id')));
98
+                $opcount = count($options);
99
+                for ($j = 0; $j < $opcount; $j++) {
100
+                    $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
101
+                    $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
102
+                    $ele->addOption($optval, $optkey.$addBr);
103
+                }
104
+                break;
105
+            case 'select_multi':
106
+            case 'checkbox':
107
+                if ($config[$i]->getVar('conf_formtype') === 'select_multi') {
108
+                    $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true);
109
+                    $addBr = '';
110
+                } else {
111
+                    $ele = new XoopsFormCheckBox($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
112
+                    $addBr = '<br />';
113
+                }
114
+                $options = $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id')));
115
+                $opcount = count($options);
116
+                for ($j = 0; $j < $opcount; $j++) {
117
+                    $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
118
+                    $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
119 119
 
120
-                $ele->addOption($optval, $optkey.$addBr);
121
-            }
122
-            break;
123
-        case 'yesno':
124
-            $ele = new XoopsFormRadioYN($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);
125
-            break;
126
-        case 'group':
127
-            include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
128
-            $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
129
-            break;
130
-        case 'group_multi':
131
-            include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
132
-            $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
133
-            break;
134
-        case 'group_checkbox':
135
-            include_once __DIR__.'/include/formcheckboxgroup.php';
136
-            $ele = new AltsysFormCheckboxGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput());
137
-            break;
138
-        // RMV-NOTIFY: added 'user' and 'user_multi'
139
-        case 'user':
140
-            include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
141
-            $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
142
-            break;
143
-        case 'user_multi':
144
-            include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
145
-            $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
146
-            break;
147
-        case 'password':
148
-            (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
149
-            $ele = new XoopsFormPassword($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput()));
150
-            break;
151
-        case 'textbox':
152
-        default:
153
-            (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
154
-            $ele = new XoopsFormText($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput()));
155
-            break;
120
+                    $ele->addOption($optval, $optkey.$addBr);
121
+                }
122
+                break;
123
+            case 'yesno':
124
+                $ele = new XoopsFormRadioYN($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);
125
+                break;
126
+            case 'group':
127
+                include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
128
+                $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
129
+                break;
130
+            case 'group_multi':
131
+                include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
132
+                $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
133
+                break;
134
+            case 'group_checkbox':
135
+                include_once __DIR__.'/include/formcheckboxgroup.php';
136
+                $ele = new AltsysFormCheckboxGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput());
137
+                break;
138
+            // RMV-NOTIFY: added 'user' and 'user_multi'
139
+            case 'user':
140
+                include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
141
+                $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
142
+                break;
143
+            case 'user_multi':
144
+                include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
145
+                $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
146
+                break;
147
+            case 'password':
148
+                (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
149
+                $ele = new XoopsFormPassword($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput()));
150
+                break;
151
+            case 'textbox':
152
+            default:
153
+                (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
154
+                $ele = new XoopsFormText($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput()));
155
+                break;
156 156
         }
157 157
         $hidden = new XoopsFormHidden('conf_ids[]', $config[$i]->getVar('conf_id'));
158 158
         $ele_tray = new XoopsFormElementTray($title4tray, '') ;
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -5,33 +5,33 @@  discard block
 block discarded – undo
5 5
 //                     GIJOE <http://www.peak.ne.jp/>                        //
6 6
 // ------------------------------------------------------------------------- //
7 7
 
8
-require_once __DIR__.'/class/AltsysBreadcrumbs.class.php' ;
9
-include_once __DIR__.'/include/gtickets.php' ;
10
-include_once __DIR__.'/include/altsys_functions.php' ;
8
+require_once __DIR__.'/class/AltsysBreadcrumbs.class.php';
9
+include_once __DIR__.'/include/gtickets.php';
10
+include_once __DIR__.'/include/altsys_functions.php';
11 11
 
12 12
 // check access right (needs module_admin of this module)
13
-if (! is_object($xoopsUser) || ! is_object($xoopsModule) || ! $xoopsUser->isAdmin($xoopsModule->mid())) {
14
-    die('Access Denied') ;
13
+if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) {
14
+    die('Access Denied');
15 15
 }
16 16
 
17 17
 
18 18
 // initials
19 19
 $db = XoopsDatabaseFactory::getDatabaseConnection();
20
-(method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance() ;
20
+(method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
21 21
 
22 22
 // language file
23
-altsys_include_language_file('mypreferences') ;
23
+altsys_include_language_file('mypreferences');
24 24
 
25 25
 
26
-$op = empty($_GET['op']) ? 'showmod' : preg_replace('/[^a-zA-Z0-9_-]/', '', $_GET['op']) ;
26
+$op = empty($_GET['op']) ? 'showmod' : preg_replace('/[^a-zA-Z0-9_-]/', '', $_GET['op']);
27 27
 
28 28
 if ($op == 'showmod') {
29 29
     $config_handler = xoops_getHandler('config');
30
-    $mod = $xoopsModule->mid() ;
30
+    $mod = $xoopsModule->mid();
31 31
     $config = $config_handler->getConfigs(new Criteria('conf_modid', $mod));
32 32
     $count = count($config);
33 33
     if ($count < 1) {
34
-        die('no configs') ;
34
+        die('no configs');
35 35
     }
36 36
     include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
37 37
     $form = new XoopsThemeForm(_MD_A_MYPREFERENCES_FORMTITLE, 'pref_form', 'index.php?mode=admin&lib=altsys&page=mypreferences&op=save');
@@ -39,30 +39,30 @@  discard block
 block discarded – undo
39 39
     $module = $module_handler->get($mod);
40 40
 
41 41
     // language
42
-    $language = empty($xoopsConfig['language']) ? 'english' : $xoopsConfig['language'] ;
42
+    $language = empty($xoopsConfig['language']) ? 'english' : $xoopsConfig['language'];
43 43
 
44 44
     // load modinfo.php if necessary (judged by a specific constant is defined)
45
-    if (! defined('_MYMENU_CONSTANT_IN_MODINFO') || ! defined(_MYMENU_CONSTANT_IN_MODINFO)) {
45
+    if (!defined('_MYMENU_CONSTANT_IN_MODINFO') || !defined(_MYMENU_CONSTANT_IN_MODINFO)) {
46 46
         if (file_exists("$mydirpath/language/$language/modinfo.php")) {
47 47
             // user customized language file
48
-            include_once "$mydirpath/language/$language/modinfo.php" ;
48
+            include_once "$mydirpath/language/$language/modinfo.php";
49 49
         } elseif (file_exists("$mytrustdirpath/language/$language/modinfo.php")) {
50 50
             // default language file
51
-            include_once "$mytrustdirpath/language/$language/modinfo.php" ;
51
+            include_once "$mytrustdirpath/language/$language/modinfo.php";
52 52
         } else {
53 53
             // fallback english
54
-            include_once "$mytrustdirpath/language/english/modinfo.php" ;
54
+            include_once "$mytrustdirpath/language/english/modinfo.php";
55 55
         }
56 56
     }
57 57
 
58 58
     // if has comments feature, need comment lang file
59
-    if ($module->getVar('hascomments') == 1 && ! defined('_CM_TITLE')) {
59
+    if ($module->getVar('hascomments') == 1 && !defined('_CM_TITLE')) {
60 60
         include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/comment.php';
61 61
     }
62 62
 
63 63
     // RMV-NOTIFY
64 64
     // if has notification feature, need notification lang file
65
-    if ($module->getVar('hasnotification') == 1 && ! defined('_NOT_NOTIFICATIONOPTIONS')) {
65
+    if ($module->getVar('hasnotification') == 1 && !defined('_NOT_NOTIFICATIONOPTIONS')) {
66 66
         include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/notification.php';
67 67
     }
68 68
 
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
         //  $form->addElement(new XoopsFormHidden('redirect', XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.$module->getInfo('adminindex')));
73 73
     // }
74 74
     for ($i = 0; $i < $count; $i++) {
75
-        $title_icon = ($config[$i]->getVar('conf_valuetype') === 'encrypt')? '<img src="'.XOOPS_MODULE_URL.'/legacy/admin/theme/icons/textfield_key.png" alt="Encrypted">' : ''; // support XCL 2.2.3 'encrypt' of 'conf_valuetype'
75
+        $title_icon = ($config[$i]->getVar('conf_valuetype') === 'encrypt') ? '<img src="'.XOOPS_MODULE_URL.'/legacy/admin/theme/icons/textfield_key.png" alt="Encrypted">' : ''; // support XCL 2.2.3 'encrypt' of 'conf_valuetype'
76 76
         $title4tray = (!defined($config[$i]->getVar('conf_desc')) || constant($config[$i]->getVar('conf_desc')) == '') ? (constant($config[$i]->getVar('conf_title')).$title_icon) : (constant($config[$i]->getVar('conf_title')).$title_icon.'<br /><br /><span style="font-weight:normal;">'.constant($config[$i]->getVar('conf_desc')).'</span>'); // GIJ
77
-        $title = '' ; // GIJ
77
+        $title = ''; // GIJ
78 78
         switch ($config[$i]->getVar('conf_formtype')) {
79 79
         case 'textarea':
80 80
             (method_exists('MyTextSanitizer', 'sGetInstance') and $myts = MyTextSanitizer::sGetInstance()) || $myts = MyTextSanitizer::getInstance();
@@ -155,25 +155,25 @@  discard block
 block discarded – undo
155 155
             break;
156 156
         }
157 157
         $hidden = new XoopsFormHidden('conf_ids[]', $config[$i]->getVar('conf_id'));
158
-        $ele_tray = new XoopsFormElementTray($title4tray, '') ;
158
+        $ele_tray = new XoopsFormElementTray($title4tray, '');
159 159
         $ele_tray->addElement($ele);
160 160
         $ele_tray->addElement($hidden);
161
-        $form->addElement($ele_tray) ;
161
+        $form->addElement($ele_tray);
162 162
         unset($ele_tray, $ele, $hidden);
163 163
     }
164 164
     // $button_tray->addElement(new XoopsFormHidden('op', 'save'));
165
-    $xoopsGTicket->addTicketXoopsFormElement($button_tray, __LINE__, 1800, 'mypreferences') ;
165
+    $xoopsGTicket->addTicketXoopsFormElement($button_tray, __LINE__, 1800, 'mypreferences');
166 166
     $button_tray->addElement(new XoopsFormButton('', 'button', _GO, 'submit'));
167
-    $form->addElement($button_tray) ;
167
+    $form->addElement($button_tray);
168 168
     xoops_cp_header();
169 169
 
170 170
     // GIJ patch start
171
-    altsys_include_mymenu() ;
172
-    $breadcrumbsObj = AltsysBreadcrumbs::getInstance() ;
171
+    altsys_include_mymenu();
172
+    $breadcrumbsObj = AltsysBreadcrumbs::getInstance();
173 173
     if ($breadcrumbsObj->hasPaths()) {
174
-        $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mypreferences', _PREFERENCES) ;
174
+        $breadcrumbsObj->appendPath(XOOPS_URL.'/modules/altsys/admin/index.php?mode=admin&amp;lib=altsys&amp;page=mypreferences', _PREFERENCES);
175 175
     }
176
-    echo "<h3 style='text-align:"._GLOBAL_LEFT.";'>".$module->getVar('name').' &nbsp; '._PREFERENCES."</h3>\n" ;
176
+    echo "<h3 style='text-align:"._GLOBAL_LEFT.";'>".$module->getVar('name').' &nbsp; '._PREFERENCES."</h3>\n";
177 177
     // GIJ patch end
178 178
 
179 179
     $form->display();
@@ -185,10 +185,10 @@  discard block
 block discarded – undo
185 185
     //if ( !admin_refcheck("/modules/$admin_mydirname/admin/") ) {
186 186
     //  exit('Invalid referer');
187 187
     //}
188
-    if (! $xoopsGTicket->check(true, 'mypreferences')) {
188
+    if (!$xoopsGTicket->check(true, 'mypreferences')) {
189 189
         redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors());
190 190
     }
191
-    require_once XOOPS_ROOT_PATH.'/class/template.php' ;
191
+    require_once XOOPS_ROOT_PATH.'/class/template.php';
192 192
     $xoopsTpl = new XoopsTpl();
193 193
 //HACK by domifara for new XOOPS and XCL etc.
194 194
 //old xoops
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     if ($count > 0) {
210 210
         for ($i = 0; $i < $count; $i++) {
211 211
             $config = $config_handler->getConfig($conf_ids[$i]);
212
-            $new_value =& $_POST[$config->getVar('conf_name')];
212
+            $new_value = & $_POST[$config->getVar('conf_name')];
213 213
             if (is_array($new_value) || $new_value != $config->getVar('conf_value')) {
214 214
                 // if language has been changed
215 215
                 if (!$lang_updated && $config->getVar('conf_catid') == XOOPS_CONF && $config->getVar('conf_name') == 'language') {
@@ -238,13 +238,13 @@  discard block
 block discarded – undo
238 238
                         // generate compiled files for the new theme
239 239
                         // block files only for now..
240 240
                         $tplfile_handler = xoops_getHandler('tplfile');
241
-                        $dtemplates =& $tplfile_handler->find('default', 'block');
241
+                        $dtemplates = & $tplfile_handler->find('default', 'block');
242 242
                         $dcount = count($dtemplates);
243 243
 
244 244
                         // need to do this to pass to xoops_template_touch function
245 245
                         $GLOBALS['xoopsConfig']['template_set'] = $newtplset;
246 246
 
247
-                        altsys_clear_templates_c() ;
247
+                        altsys_clear_templates_c();
248 248
 
249 249
 /*                      for ($i = 0; $i < $dcount; $i++) {
250 250
                             $found =& $tplfile_handler->find($newtplset, 'block', $dtemplates[$i]->getVar('tpl_refid'), null);
@@ -272,9 +272,9 @@  discard block
 block discarded – undo
272 272
                 }
273 273
 
274 274
                 // add read permission for the start module to all groups
275
-                if (!$startmod_updated    && $new_value != '--' && $config->getVar('conf_catid') == XOOPS_CONF && $config->getVar('conf_name') == 'startpage') {
275
+                if (!$startmod_updated && $new_value != '--' && $config->getVar('conf_catid') == XOOPS_CONF && $config->getVar('conf_name') == 'startpage') {
276 276
                     $member_handler = xoops_getHandler('member');
277
-                    $groups =& $member_handler->getGroupList();
277
+                    $groups = & $member_handler->getGroupList();
278 278
                     $moduleperm_handler = xoops_getHandler('groupperm');
279 279
                     $module_handler = xoops_getHandler('module');
280 280
                     $module = $module_handler->getByDirname($new_value);
@@ -293,5 +293,5 @@  discard block
 block discarded – undo
293 293
         }
294 294
     }
295 295
 
296
-    redirect_header('index.php?mode=admin&lib=altsys&page=mypreferences', 2, _MD_A_MYPREFERENCES_UPDATED) ;
296
+    redirect_header('index.php?mode=admin&lib=altsys&page=mypreferences', 2, _MD_A_MYPREFERENCES_UPDATED);
297 297
 }
Please login to merge, or discard this patch.