Passed
Push — master ( c94053...32c740 )
by Michael
38s queued 13s
created
language/english/common.php 1 patch
Spacing   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -21,129 +21,129 @@  discard block
 block discarded – undo
21 21
 $moduleDirName      = basename(dirname(dirname(__DIR__)));
22 22
 $moduleDirNameUpper = mb_strtoupper($moduleDirName);
23 23
 
24
-define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: ');
25
-define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: ');
26
-define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
27
-define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
28
-define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status');
29
-define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
30
-define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
31
-define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
32
-define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
33
-define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>");
34
-define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>");
35
-define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: ');
36
-define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: ');
37
-define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
38
-define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
39
-
40
-define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>");
41
-define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
42
-
43
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
44
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields");
45
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
46
-define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s');
47
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
48
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
49
-define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
50
-
51
-define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
24
+define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: ');
25
+define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: ');
26
+define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
27
+define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
28
+define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status');
29
+define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
30
+define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
31
+define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
32
+define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
33
+define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>");
34
+define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>");
35
+define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: ');
36
+define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: ');
37
+define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
38
+define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
39
+
40
+define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>");
41
+define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
42
+
43
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
44
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields");
45
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
46
+define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s');
47
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
48
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
49
+define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
50
+
51
+define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
52 52
 
53 53
 // Error Msgs
54
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
55
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s');
56
-define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin');
54
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
55
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s');
56
+define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin');
57 57
 
58 58
 //Help
59
-define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__))));
60
-define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
61
-define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of ');
62
-define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview');
59
+define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__))));
60
+define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
61
+define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of ');
62
+define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview');
63 63
 
64 64
 //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__);
65 65
 
66 66
 //help multi-page
67
-define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer');
68
-define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License');
69
-define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support');
67
+define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer');
68
+define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License');
69
+define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support');
70 70
 
71 71
 //Sample Data
72
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
73
-define('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
74
-define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
75
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
76
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.');
77
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
78
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
79
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
80
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
81
-define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons');
82
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons');
83
-define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm');
72
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
73
+define('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
74
+define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
75
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
76
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.');
77
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
78
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
79
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
80
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
81
+define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons');
82
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons');
83
+define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm');
84 84
 
85 85
 //letter choice
86
-define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
87
-define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other');
88
-define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All');
86
+define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
87
+define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other');
88
+define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
89 89
 
90 90
 // block defines
91
-define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
92
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
93
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
94
-define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
95
-define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
96
-define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
97
-define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
98
-define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
99
-define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
100
-define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
101
-define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
102
-define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
103
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
104
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
105
-define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
106
-
107
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
108
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
109
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
110
-
111
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage');
112
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block');
113
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block');
114
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block');
91
+define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
92
+define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
93
+define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
94
+define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
95
+define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
96
+define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
97
+define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
98
+define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
99
+define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
100
+define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
101
+define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
102
+define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
103
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
104
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
105
+define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
106
+
107
+define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
108
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
109
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
110
+
111
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
112
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
113
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
114
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
115 115
 
116 116
 //myblocksadmin
117
-define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
118
-define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
119
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin');
117
+define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
118
+define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
119
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin');
120 120
 
121 121
 //Template Admin
122
-define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
123
-define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
124
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
122
+define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
123
+define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
124
+define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
125 125
 
126 126
 //Menu
127
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
128
-define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist');
129
-define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
130
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
131
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
132
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback');
127
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
128
+define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist');
129
+define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
130
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
131
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
132
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback');
133 133
 
134 134
 //Latest Version Check
135
-define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: ');
135
+define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: ');
136 136
 
137 137
 //DirectoryChecker
138
-define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
139
-define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
140
-define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
141
-define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it');
142
-define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
143
-define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created');
144
-define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created');
145
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
146
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
138
+define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: green;'>Available</span>");
139
+define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
140
+define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
141
+define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it');
142
+define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission');
143
+define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created');
144
+define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created');
145
+define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set');
146
+define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set');
147 147
 
148 148
 //FileChecker
149 149
 //define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
@@ -153,31 +153,31 @@  discard block
 block discarded – undo
153 153
 //define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it');
154 154
 //define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
155 155
 
156
-define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied');
157
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied');
156
+define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied');
157
+define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied');
158 158
 
159 159
 //define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
160 160
 //define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
161 161
 
162 162
 //image config
163
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width');
164
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image');
165
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height');
166
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image');
167
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
168
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', '');
169
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path');
170
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
163
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width');
164
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image');
165
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height');
166
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image');
167
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
168
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', '');
169
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path');
170
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
171 171
 
172 172
 //Preferences
173
-define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
174
-define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
173
+define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
174
+define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
175 175
 
176 176
 //Module Stats
177
-define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics');
178
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:');
179
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items');
180
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline');
181
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published');
182
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected');
183
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted');
177
+define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics');
178
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:');
179
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items');
180
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline');
181
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published');
182
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected');
183
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted');
Please login to merge, or discard this patch.
admin/modules.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_modules.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 // Recovered value of argument op in the URL $
30 30
 $op    = \Xmf\Request::getString('op', 'list');
31 31
 $modId = \Xmf\Request::getInt('mod_id');
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
43 43
         $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
44 44
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
45
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
45
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
46 46
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
47 47
         $modulesAll   = $helper->getHandler('Modules')->getAllModules($start, $limit);
48 48
         // Redirect if there aren't modules
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
                 unset($module);
58 58
             }
59 59
             if ($modulesCount > $limit) {
60
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
61
-                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
60
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
61
+                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
62 62
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
63 63
             }
64 64
         } else {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             ]
112 112
         );
113 113
         //Form mod_image
114
-        include_once XOOPS_ROOT_PATH . '/class/uploader.php';
114
+        include_once XOOPS_ROOT_PATH.'/class/uploader.php';
115 115
         $uploader = new \XoopsMediaUploader(
116 116
             TDMC_UPLOAD_IMGMOD_PATH, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null
117 117
         );
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
         if ($id > 0) {
197 197
             $modulesObj = $helper->getHandler('Modules')->get($id);
198 198
             foreach ($modFieldArray as $moduleField) {
199
-                if (isset($_POST['mod_' . $moduleField])) {
200
-                    $modField = $modulesObj->getVar('mod_' . $moduleField);
201
-                    $modulesObj->setVar('mod_' . $moduleField, !$modField);
199
+                if (isset($_POST['mod_'.$moduleField])) {
200
+                    $modField = $modulesObj->getVar('mod_'.$moduleField);
201
+                    $modulesObj->setVar('mod_'.$moduleField, !$modField);
202 202
                 }
203 203
             }
204 204
             if ($helper->getHandler('Modules')->insert($modulesObj)) {
@@ -209,5 +209,5 @@  discard block
 block discarded – undo
209 209
         break;
210 210
 }
211 211
 
212
-include __DIR__ . '/footer.php';
212
+include __DIR__.'/footer.php';
213 213
 
Please login to merge, or discard this patch.
admin/fields.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 // Define main template
35 35
 $templateMain = 'tdmcreate_fields.tpl';
36 36
 
37
-include __DIR__ . '/header.php';
37
+include __DIR__.'/header.php';
38 38
 // Recovered value of arguments op in the URL $
39 39
 $op = \Xmf\Request::getString('op', 'list');
40 40
 // Get fields Variables
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('fields.php'));
56 56
         $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
57 57
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
58
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
58
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
59 59
         // Redirect if there aren't modules
60 60
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
61 61
         if (0 == $modulesCount) {
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
             unset($tlid);
101 101
             unset($fields);
102 102
             if ($tablesCount > $limit) {
103
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
104
-                $pagenav = new \XoopsPageNav($tablesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
103
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
104
+                $pagenav = new \XoopsPageNav($tablesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
105 105
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
106 106
             }
107 107
         } else {
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
         if ($fieldId > 0) {
235 235
             $fieldsObj = $helper->getHandler('Fields')->get($fieldId);
236 236
             foreach ($fieldsArray as $field) {
237
-                if (isset($_POST['field_' . $field])) {
238
-                    $fldField = $fieldsObj->getVar('field_' . $field);
239
-                    $fieldsObj->setVar('field_' . $field, !$fldField);
237
+                if (isset($_POST['field_'.$field])) {
238
+                    $fldField = $fieldsObj->getVar('field_'.$field);
239
+                    $fieldsObj->setVar('field_'.$field, !$fldField);
240 240
                 }
241 241
             }
242 242
             if ($helper->getHandler('Fields')->insert($fieldsObj)) {
@@ -246,4 +246,4 @@  discard block
 block discarded – undo
246 246
         }
247 247
         break;
248 248
 }
249
-include __DIR__ . '/footer.php';
249
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_settings.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 
30 30
 // Recovered value of argument op in the URL $
31 31
 $op    = \Xmf\Request::getString('op', 'list');
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
44 44
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
45 45
         $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
46
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
46
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
47 47
         $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
48 48
         $settingsCount = $helper->getHandler('Settings')->getCountSettings();
49 49
         $settingsAll   = $helper->getHandler('Settings')->getAllSettings($start, $limit);
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
                 unset($setting);
56 56
             }
57 57
             if ($settingsCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -181,4 +181,4 @@  discard block
 block discarded – undo
181 181
         }
182 182
         break;
183 183
 }
184
-include __DIR__ . '/footer.php';
184
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/building.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
         unset($build);
84 84
         // Directory to saved all files
85
-		$building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname);
85
+        $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname);
86 86
         
87 87
         // Copy this module in root modules
88 88
         if (1 === $inroot_copy) {
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
                 }
98 98
             }
99 99
             $building->copyDir($fromDir, $toDir);
100
-			$building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir);
100
+            $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir);
101 101
         }
102
-		$GLOBALS['xoopsTpl']->assign('building_directory', $building_directory);
102
+        $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory);
103 103
         break;
104 104
     case 'default':
105 105
     default:
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 
26 26
 $templateMain = 'tdmcreate_building.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 $op          = \Xmf\Request::getString('op', 'default');
30 30
 $mid         = \Xmf\Request::getInt('mod_id');
31 31
 $inroot_copy = \Xmf\Request::getInt('inroot_copy');
32 32
 $moduleObj   = $helper->getHandler('Modules')->get($mid);
33
-$cachePath   = XOOPS_VAR_PATH . '/caches/tdmcreate_cache';
33
+$cachePath   = XOOPS_VAR_PATH.'/caches/tdmcreate_cache';
34 34
 if (!is_dir($cachePath)) {
35 35
     if (!mkdir($cachePath, 0777) && !is_dir($cachePath)) {
36 36
         throw new \RuntimeException(sprintf('Directory "%s" was not created', $cachePath));
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     chmod($cachePath, 0777);
39 39
 }
40 40
 // Clear cache
41
-if (file_exists($cache = $cachePath . '/classpaths.cache')) {
41
+if (file_exists($cache = $cachePath.'/classpaths.cache')) {
42 42
     unlink($cache);
43 43
 }
44
-if (!file_exists($indexFile = $cachePath . '/index.html')) {
44
+if (!file_exists($indexFile = $cachePath.'/index.html')) {
45 45
     copy('index.html', $indexFile);
46 46
 }
47 47
 // Switch option
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
         // Get var module dirname
52 52
         $moduleDirname = $moduleObj->getVar('mod_dirname');
53 53
         // Directories for copy from to
54
-        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleDirname);
55
-        $toDir   = XOOPS_ROOT_PATH . '/modules/' . mb_strtolower($moduleDirname);
54
+        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleDirname);
55
+        $toDir   = XOOPS_ROOT_PATH.'/modules/'.mb_strtolower($moduleDirname);
56 56
         // include_once TDMC_CLASS_PATH . '/building.php';
57 57
         if (isset($moduleDirname)) {
58 58
             // Clear this module if it's in repository
@@ -116,4 +116,4 @@  discard block
 block discarded – undo
116 116
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
117 117
         break;
118 118
 }
119
-include __DIR__ . '/footer.php';
119
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/morefiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_morefiles.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 // Recovered value of argument op in the URL $
30 30
 $op = \Xmf\Request::getString('op', 'list');
31 31
 
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
                 unset($files);
61 61
             }
62 62
             if ($morefilesCount > $limit) {
63
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
64
-                $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
63
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
64
+                $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
65 65
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
66 66
             }
67 67
         } else {
@@ -139,4 +139,4 @@  discard block
 block discarded – undo
139 139
         break;
140 140
 }
141 141
 
142
-include __DIR__ . '/footer.php';
142
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/tables.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_tables.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 // Recovered value of arguments op in the URL $
30 30
 $op = \Xmf\Request::getString('op', 'list');
31 31
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
51 51
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
52 52
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
53
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
53
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
54 54
         // Get the list of modules
55 55
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
56 56
         // Redirect if there aren't modules
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
                 unset($module);
90 90
             }
91 91
             if ($modulesCount > $limit) {
92
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
93
-                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
92
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
93
+                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
94 94
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
95 95
             }
96 96
         } else {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         if ($tableMid > 0) {
107 107
             $tablesObj->setVar('table_mid', $tableMid);
108 108
         }
109
-        $form      = $tablesObj->getFormTables();
109
+        $form = $tablesObj->getFormTables();
110 110
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
111 111
         break;
112 112
     case 'save':
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ]
146 146
         );
147 147
         //Form table_image
148
-        include_once XOOPS_ROOT_PATH . '/class/uploader.php';
148
+        include_once XOOPS_ROOT_PATH.'/class/uploader.php';
149 149
         $uploaddir = is_dir(XOOPS_ICONS32_PATH) ? XOOPS_ICONS32_PATH : TDMC_UPLOAD_IMGTAB_PATH;
150 150
         $uploader  = new \XoopsMediaUploader(
151 151
             $uploaddir, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null
@@ -187,18 +187,18 @@  discard block
 block discarded – undo
187 187
         if ($tables->insert($tablesObj)) {
188 188
             if ($tablesObj->isNew()) {
189 189
                 $tableTid    = $GLOBALS['xoopsDB']->getInsertId();
190
-                $tableAction = '&field_mid=' . $tableMid . '&field_tid=' . $tableTid . '&field_numb=' . $tableNumbFields . '&field_name=' . $tableFieldname;
190
+                $tableAction = '&field_mid='.$tableMid.'&field_tid='.$tableTid.'&field_numb='.$tableNumbFields.'&field_name='.$tableFieldname;
191 191
                 // Fields Elements Handler
192 192
                 $fieldelementObj = $helper->getHandler('Fieldelements')->create();
193 193
                 $fieldelementObj->setVar('fieldelement_mid', $tableMid);
194 194
                 $fieldelementObj->setVar('fieldelement_tid', $tableTid);
195
-                $fieldelementObj->setVar('fieldelement_name', 'Table : ' . ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
196
-                $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-' . ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
195
+                $fieldelementObj->setVar('fieldelement_name', 'Table : '.ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
196
+                $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-'.ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
197 197
                 // Insert new field element id for table name
198 198
                 if (!$helper->getHandler('Fieldelements')->insert($fieldelementObj)) {
199
-                    $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element');
199
+                    $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors().' Field element');
200 200
                 }
201
-                redirect_header('fields.php?op=new' . $tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, \Xmf\Request::getString('table_name', '', 'POST')));
201
+                redirect_header('fields.php?op=new'.$tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, \Xmf\Request::getString('table_name', '', 'POST')));
202 202
             } else {
203 203
                 redirect_header('tables.php', 5, sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK, \Xmf\Request::getString('table_name', '', 'POST')));
204 204
             }
@@ -268,9 +268,9 @@  discard block
 block discarded – undo
268 268
         if ($mid > 0) {
269 269
             $modulesObj = $helper->getHandler('Modules')->get($mid);
270 270
             foreach ($modArray as $modField) {
271
-                if (isset($_POST['mod_' . $modField])) {
272
-                    $mField = $modulesObj->getVar('mod_' . $modField);
273
-                    $modulesObj->setVar('mod_' . $modField, !$mField);
271
+                if (isset($_POST['mod_'.$modField])) {
272
+                    $mField = $modulesObj->getVar('mod_'.$modField);
273
+                    $modulesObj->setVar('mod_'.$modField, !$mField);
274 274
                 }
275 275
             }
276 276
             if ($helper->getHandler('Modules')->insert($modulesObj)) {
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
         if ($tid > 0) {
284 284
             $tablesObj = $helper->getHandler('Tables')->get($tid);
285 285
             foreach ($tableArray as $tableField) {
286
-                if (isset($_POST['table_' . $tableField])) {
287
-                    $tblField = $tablesObj->getVar('table_' . $tableField);
288
-                    $tablesObj->setVar('table_' . $tableField, !$tblField);
286
+                if (isset($_POST['table_'.$tableField])) {
287
+                    $tblField = $tablesObj->getVar('table_'.$tableField);
288
+                    $tablesObj->setVar('table_'.$tableField, !$tblField);
289 289
                 }
290 290
             }
291 291
             if ($helper->getHandler('Tables')->insert($tablesObj)) {
@@ -295,4 +295,4 @@  discard block
 block discarded – undo
295 295
         }
296 296
         break;
297 297
 }
298
-include __DIR__ . '/footer.php';
298
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
testdata/index.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 use XoopsModules\Tdmcreate\Common;
19 19
 use XoopsModules\Tdmcreate\Utility;
20 20
 
21
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
22
-require dirname(__DIR__) . '/preloads/autoloader.php';
21
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
22
+require dirname(__DIR__).'/preloads/autoloader.php';
23 23
 
24 24
 $op = \Xmf\Request::getCmd('op', '');
25 25
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             loadSampleData();
40 40
         } else {
41 41
             xoops_cp_header();
42
-            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true);
42
+            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK')), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true);
43 43
             xoops_cp_footer();
44 44
         }
45 45
         break;
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
64 64
 
65 65
     $language = 'english/';
66
-    if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) {
67
-        $language = $xoopsConfig['language'] . '/';
66
+    if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) {
67
+        $language = $xoopsConfig['language'].'/';
68 68
     }
69 69
 
70 70
     foreach ($tables as $table) {
71
-        $tabledata = \Xmf\Yaml::readWrapped($language . $table . '.yml');
71
+        $tabledata = \Xmf\Yaml::readWrapped($language.$table.'.yml');
72 72
         \Xmf\Database\TableLoad::truncateTable($table);
73 73
         \Xmf\Database\TableLoad::loadTableFromArray($table, $tabledata);
74 74
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $utility::rcopy($src, $dest);
83 83
         }
84 84
     }
85
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
85
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
86 86
 }
87 87
 
88 88
 function saveSampleData()
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
 
97 97
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
98 98
 
99
-    $languageFolder = __DIR__ . '/' . $xoopsConfig['language'];
100
-    if (!file_exists($languageFolder . '/')) {
101
-       Utility::createFolder($languageFolder . '/');
99
+    $languageFolder = __DIR__.'/'.$xoopsConfig['language'];
100
+    if (!file_exists($languageFolder.'/')) {
101
+       Utility::createFolder($languageFolder.'/');
102 102
     }
103
-    $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
103
+    $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/';
104 104
     Utility::createFolder($exportFolder);
105 105
 
106 106
     foreach ($tables as $table) {
107
-        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
107
+        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml');
108 108
     }
109 109
     
110 110
     //  ---  COPY test folder files ---------------
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             Utility::rcopy($src, $dest);
116 116
         }
117 117
     }
118
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
118
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
119 119
 }
120 120
 
121 121
 function exportSchema()
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         //        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
132 132
     }
133 133
     catch (\Exception $e) {
134
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
134
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
135 135
     }
136 136
 
137 137
 }
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,30 +21,30 @@  discard block
 block discarded – undo
21 21
 xoops_loadLanguage('common', $moduleDirName);
22 22
 
23 23
 return (object)[
24
-    'name'           => mb_strtoupper($moduleDirName) . ' ModuleConfigurator',
24
+    'name'           => mb_strtoupper($moduleDirName).' ModuleConfigurator',
25 25
     'paths'          => [
26 26
         'dirname'    => $moduleDirName,
27
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
28
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
29
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
30
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
31
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
27
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
28
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
29
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
30
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
31
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
32 32
     ],
33 33
     'uploadFolders'  => [
34
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
35
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
34
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
35
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
36 36
         //XOOPS_UPLOAD_PATH . '/flags'
37 37
     ],
38 38
     'copyBlankFiles' => [
39
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
39
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
41 41
         //XOOPS_UPLOAD_PATH . '/flags'
42 42
     ],
43 43
 
44 44
     'copyTestFolders' => [
45 45
         [
46
-            XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images',
47
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName  . '/images',
46
+            XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images',
47
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
48 48
         ],
49 49
         //            [
50 50
         //                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
@@ -81,5 +81,5 @@  discard block
 block discarded – undo
81 81
         //            'totalsubmitted'  => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
82 82
     ],
83 83
     'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
84
-                     <img src='" . XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/assets/images/logo/logoModule.png' . "' alt='XOOPS Project'></a>",
84
+                     <img src='" . XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/assets/images/logo/logoModule.png'."' alt='XOOPS Project'></a>",
85 85
 ];
Please login to merge, or discard this patch.