@@ -106,16 +106,16 @@ |
||
106 | 106 | $ychck = (isset($options[0]) && ($options[0] > 0)) ? ' checked' : ''; |
107 | 107 | $nchck = !empty($ychck) ? '' : ' checked'; |
108 | 108 | $form = '<div class="line140">' |
109 | - . _MB_XOOPSFAQ_SHOW_EMPTY |
|
110 | - . ' <label for="r0">' |
|
111 | - . _NO |
|
112 | - . '</label><input type="radio" name="options[0]" id="r0" value="0"' |
|
113 | - . $nchck |
|
114 | - . '> <label for="r1">' |
|
115 | - . _YES |
|
116 | - . '</label><input type="radio" name="options[0]" id="r1" value="1"' |
|
117 | - . $ychck |
|
118 | - . '></div>' |
|
119 | - . "\n"; |
|
109 | + . _MB_XOOPSFAQ_SHOW_EMPTY |
|
110 | + . ' <label for="r0">' |
|
111 | + . _NO |
|
112 | + . '</label><input type="radio" name="options[0]" id="r0" value="0"' |
|
113 | + . $nchck |
|
114 | + . '> <label for="r1">' |
|
115 | + . _YES |
|
116 | + . '</label><input type="radio" name="options[0]" id="r1" value="1"' |
|
117 | + . $ychck |
|
118 | + . '></div>' |
|
119 | + . "\n"; |
|
120 | 120 | return $form; |
121 | 121 | } |
@@ -68,14 +68,14 @@ discard block |
||
68 | 68 | $faqCountArray = $contentsHandler->getCategoriesIdsWithContent(); |
69 | 69 | if (is_array($faqCountArray) && !empty($faqCountArray)) { |
70 | 70 | $catsToShow = array_intersect($catsToUse, array_keys($faqCountArray)); |
71 | - $criteria->add(new \Criteria('category_id', '(' . implode(',', $catsToShow) . ')', 'IN')); |
|
71 | + $criteria->add(new \Criteria('category_id', '('.implode(',', $catsToShow).')', 'IN')); |
|
72 | 72 | } else { |
73 | 73 | // there are no categories to show |
74 | 74 | return $block; |
75 | 75 | } |
76 | 76 | unset($contentsHandler, $faqCountArray, $catsToShow); |
77 | 77 | } else { |
78 | - $criteria->add(new \Criteria('category_id', '(' . implode(',', $catsToUse) . ')', 'IN')); |
|
78 | + $criteria->add(new \Criteria('category_id', '('.implode(',', $catsToUse).')', 'IN')); |
|
79 | 79 | } |
80 | 80 | $fieldsArray = ['category_id', 'category_title']; |
81 | 81 | $catObjArray = $categoryHandler->getAll($criteria, $fieldsArray); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | foreach ($catObjArray as $cId => $catObj) { |
86 | 86 | $block['cat'][] = [ |
87 | 87 | 'title' => $myts->displayTarea($catObj->getVar('category_title')), |
88 | - 'link' => $helper->url('index.php?cat_id=' . $cId), |
|
88 | + 'link' => $helper->url('index.php?cat_id='.$cId), |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 | } |
@@ -103,23 +103,23 @@ |
||
103 | 103 | $buttons = ['edit', 'delete']; |
104 | 104 | |
105 | 105 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
106 | - . ' <thead>' |
|
107 | - . ' <tr class="xoopsCenter">' |
|
108 | - . ' <th class="width5">' |
|
109 | - . _AM_XOOPSFAQ_CATEGORY_ORDER |
|
110 | - . '</th>' |
|
111 | - . ' <th class="width5">' |
|
112 | - . _AM_XOOPSFAQ_CATEGORY_ID |
|
113 | - . '</th>' |
|
114 | - . ' <th class="txtleft">' |
|
115 | - . _AM_XOOPSFAQ_CATEGORY_TITLE |
|
116 | - . '</th>' |
|
117 | - . ' <th class="width20">' |
|
118 | - . _AM_XOOPSFAQ_ACTIONS |
|
119 | - . '</th>' |
|
120 | - . ' </tr>' |
|
121 | - . ' </thead>' |
|
122 | - . ' <tbody>'; |
|
106 | + . ' <thead>' |
|
107 | + . ' <tr class="xoopsCenter">' |
|
108 | + . ' <th class="width5">' |
|
109 | + . _AM_XOOPSFAQ_CATEGORY_ORDER |
|
110 | + . '</th>' |
|
111 | + . ' <th class="width5">' |
|
112 | + . _AM_XOOPSFAQ_CATEGORY_ID |
|
113 | + . '</th>' |
|
114 | + . ' <th class="txtleft">' |
|
115 | + . _AM_XOOPSFAQ_CATEGORY_TITLE |
|
116 | + . '</th>' |
|
117 | + . ' <th class="width20">' |
|
118 | + . _AM_XOOPSFAQ_ACTIONS |
|
119 | + . '</th>' |
|
120 | + . ' </tr>' |
|
121 | + . ' </thead>' |
|
122 | + . ' <tbody>'; |
|
123 | 123 | if ($objects['count'] > 0) { |
124 | 124 | /** @var XoopsObject $object */ |
125 | 125 | foreach ($objects['list'] as $object) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $criteria = new \CriteriaCompo(); |
63 | 63 | $obj['count'] = $this->getCount($criteria); |
64 | 64 | $criteria->order = 'ASC'; |
65 | - $sort = in_array(mb_strtolower($sort), ['id', 'order', 'title']) ? 'category_' . mb_strtolower($sort) : 'category_id'; |
|
65 | + $sort = in_array(mb_strtolower($sort), ['id', 'order', 'title']) ? 'category_'.mb_strtolower($sort) : 'category_id'; |
|
66 | 66 | $criteria->setSort($sort); |
67 | 67 | $criteria->setStart(0); |
68 | 68 | $criteria->setLimit(0); |
@@ -135,12 +135,12 @@ discard block |
||
135 | 135 | . '</td>' |
136 | 136 | . ' <td class="even txtcenter">'; |
137 | 137 | $ret .= Xoopsfaq\Utility::renderIconLinks($buttons, 'category_id', $object->getVar('category_id')); |
138 | - $ret .= ' </td>' . ' </tr>'; |
|
138 | + $ret .= ' </td>'.' </tr>'; |
|
139 | 139 | } |
140 | 140 | } else { |
141 | - $ret .= ' <tr class="txtcenter"><td colspan="4" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
|
141 | + $ret .= ' <tr class="txtcenter"><td colspan="4" class="even">'._AM_XOOPSFAQ_NOLISTING.'</td></tr>'; |
|
142 | 142 | } |
143 | - $ret .= ' </tbody>' . '</table>'; |
|
143 | + $ret .= ' </tbody>'.'</table>'; |
|
144 | 144 | return $ret; |
145 | 145 | } |
146 | 146 |
@@ -159,32 +159,32 @@ discard block |
||
159 | 159 | $buttons = ['edit', 'delete']; |
160 | 160 | |
161 | 161 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
162 | - . ' <thead>' |
|
163 | - . ' <tr class="center">' |
|
164 | - . ' <th class="width5">' |
|
165 | - . _AM_XOOPSFAQ_CONTENTS_ID |
|
166 | - . '</th>' |
|
167 | - . ' <th class="width5">' |
|
168 | - . _AM_XOOPSFAQ_CONTENTS_ACTIVE |
|
169 | - . '</th>' |
|
170 | - . ' <th class="width5">' |
|
171 | - . _AM_XOOPSFAQ_CONTENTS_WEIGHT |
|
172 | - . '</th>' |
|
173 | - . ' <th class="left">' |
|
174 | - . _AM_XOOPSFAQ_CONTENTS_TITLE |
|
175 | - . '</th>' |
|
176 | - . ' <th class="left">' |
|
177 | - . _AM_XOOPSFAQ_CATEGORY_TITLE |
|
178 | - . '</th>' |
|
179 | - . ' <th>' |
|
180 | - . _AM_XOOPSFAQ_CONTENTS_PUBLISH |
|
181 | - . '</th>' |
|
182 | - . ' <th class="width20">' |
|
183 | - . _AM_XOOPSFAQ_ACTIONS |
|
184 | - . '</th>' |
|
185 | - . ' </tr>' |
|
186 | - . ' </thead>' |
|
187 | - . ' <tbody>'; |
|
162 | + . ' <thead>' |
|
163 | + . ' <tr class="center">' |
|
164 | + . ' <th class="width5">' |
|
165 | + . _AM_XOOPSFAQ_CONTENTS_ID |
|
166 | + . '</th>' |
|
167 | + . ' <th class="width5">' |
|
168 | + . _AM_XOOPSFAQ_CONTENTS_ACTIVE |
|
169 | + . '</th>' |
|
170 | + . ' <th class="width5">' |
|
171 | + . _AM_XOOPSFAQ_CONTENTS_WEIGHT |
|
172 | + . '</th>' |
|
173 | + . ' <th class="left">' |
|
174 | + . _AM_XOOPSFAQ_CONTENTS_TITLE |
|
175 | + . '</th>' |
|
176 | + . ' <th class="left">' |
|
177 | + . _AM_XOOPSFAQ_CATEGORY_TITLE |
|
178 | + . '</th>' |
|
179 | + . ' <th>' |
|
180 | + . _AM_XOOPSFAQ_CONTENTS_PUBLISH |
|
181 | + . '</th>' |
|
182 | + . ' <th class="width20">' |
|
183 | + . _AM_XOOPSFAQ_ACTIONS |
|
184 | + . '</th>' |
|
185 | + . ' </tr>' |
|
186 | + . ' </thead>' |
|
187 | + . ' <tbody>'; |
|
188 | 188 | if ($objects['count'] > 0) { |
189 | 189 | $tdClass = 0; |
190 | 190 | /** @var \Contents $object */ |
@@ -195,39 +195,39 @@ discard block |
||
195 | 195 | ++$tdClass; |
196 | 196 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
197 | 197 | $ret .= ' <tr class="center middle">' |
198 | - . ' <td class="' |
|
199 | - . $dispClass |
|
200 | - . '">' |
|
201 | - . $object->getVar('contents_id') |
|
202 | - . '</td>' |
|
203 | - . ' <td class="' |
|
204 | - . $dispClass |
|
205 | - . '">' |
|
206 | - . $object->getActiveIcon() |
|
207 | - . '</td>' |
|
208 | - . ' <td class="' |
|
209 | - . $dispClass |
|
210 | - . '">' |
|
211 | - . $object->getVar('contents_weight') |
|
212 | - . '</td>' |
|
213 | - . ' <td class="' |
|
214 | - . $dispClass |
|
215 | - . ' left">' |
|
216 | - . $thisContentTitle |
|
217 | - . '</td>' |
|
218 | - . ' <td class="' |
|
219 | - . $dispClass |
|
220 | - . ' left">' |
|
221 | - . $thisCatTitle |
|
222 | - . '</td>' |
|
223 | - . ' <td class="' |
|
224 | - . $dispClass |
|
225 | - . '">' |
|
226 | - . $object->getPublished(_SHORTDATESTRING) |
|
227 | - . '</td>' |
|
228 | - . ' <td class="' |
|
229 | - . $dispClass |
|
230 | - . '">'; |
|
198 | + . ' <td class="' |
|
199 | + . $dispClass |
|
200 | + . '">' |
|
201 | + . $object->getVar('contents_id') |
|
202 | + . '</td>' |
|
203 | + . ' <td class="' |
|
204 | + . $dispClass |
|
205 | + . '">' |
|
206 | + . $object->getActiveIcon() |
|
207 | + . '</td>' |
|
208 | + . ' <td class="' |
|
209 | + . $dispClass |
|
210 | + . '">' |
|
211 | + . $object->getVar('contents_weight') |
|
212 | + . '</td>' |
|
213 | + . ' <td class="' |
|
214 | + . $dispClass |
|
215 | + . ' left">' |
|
216 | + . $thisContentTitle |
|
217 | + . '</td>' |
|
218 | + . ' <td class="' |
|
219 | + . $dispClass |
|
220 | + . ' left">' |
|
221 | + . $thisCatTitle |
|
222 | + . '</td>' |
|
223 | + . ' <td class="' |
|
224 | + . $dispClass |
|
225 | + . '">' |
|
226 | + . $object->getPublished(_SHORTDATESTRING) |
|
227 | + . '</td>' |
|
228 | + . ' <td class="' |
|
229 | + . $dispClass |
|
230 | + . '">'; |
|
231 | 231 | $ret .= Xoopsfaq\Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>'; |
232 | 232 | } |
233 | 233 | } else { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $obj = false; |
61 | 61 | if (!$sort instanceof \CriteriaElement) { |
62 | 62 | $criteria = new \CriteriaCompo(); |
63 | - $sort = in_array(mb_strtolower($sort), ['id', 'cid', 'title', 'publish', 'weight']) ? 'contents_' . mb_strtolower($sort) : 'contents_id'; |
|
63 | + $sort = in_array(mb_strtolower($sort), ['id', 'cid', 'title', 'publish', 'weight']) ? 'contents_'.mb_strtolower($sort) : 'contents_id'; |
|
64 | 64 | $criteria->setSort($sort); |
65 | 65 | $criteria->order = 'ASC'; |
66 | 66 | $criteria->setStart(0); |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | { |
112 | 112 | $ret = []; |
113 | 113 | $sql = 'SELECT contents_cid '; |
114 | - $sql .= 'FROM `' . $this->table . '` '; |
|
115 | - $sql .= 'WHERE (contents_active =\'' . Xoopsfaq\Constants::ACTIVE . '\') '; |
|
114 | + $sql .= 'FROM `'.$this->table.'` '; |
|
115 | + $sql .= 'WHERE (contents_active =\''.Xoopsfaq\Constants::ACTIVE.'\') '; |
|
116 | 116 | $sql .= 'GROUP BY contents_cid'; |
117 | 117 | if (!$result = $this->db->query($sql)) { |
118 | 118 | return $ret; |
@@ -191,10 +191,10 @@ discard block |
||
191 | 191 | foreach ($objects['list'] as $object) { |
192 | 192 | $thisCatId = $object->getVar('contents_cid'); |
193 | 193 | $thisCatTitle = $catArray[$thisCatId]['category_title']; |
194 | - $thisContentTitle = '<a href="' . $helper->url('index.php?cat_id=' . $thisCatId . '#q' . $object->getVar('contents_id')) . '" title="' . _AM_XOOPSFAQ_CONTENTS_VIEW . '">' . $object->getVar('contents_title') . '</a>'; |
|
194 | + $thisContentTitle = '<a href="'.$helper->url('index.php?cat_id='.$thisCatId.'#q'.$object->getVar('contents_id')).'" title="'._AM_XOOPSFAQ_CONTENTS_VIEW.'">'.$object->getVar('contents_title').'</a>'; |
|
195 | 195 | ++$tdClass; |
196 | 196 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
197 | - $ret .= ' <tr class="center middle">' |
|
197 | + $ret .= ' <tr class="center middle">' |
|
198 | 198 | . ' <td class="' |
199 | 199 | . $dispClass |
200 | 200 | . '">' |
@@ -228,12 +228,12 @@ discard block |
||
228 | 228 | . ' <td class="' |
229 | 229 | . $dispClass |
230 | 230 | . '">'; |
231 | - $ret .= Xoopsfaq\Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>'; |
|
231 | + $ret .= Xoopsfaq\Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')).'</td>'.' </tr>'; |
|
232 | 232 | } |
233 | 233 | } else { |
234 | - $ret .= ' <tr class="center"><td colspan="7" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
|
234 | + $ret .= ' <tr class="center"><td colspan="7" class="even">'._AM_XOOPSFAQ_NOLISTING.'</td></tr>'; |
|
235 | 235 | } |
236 | - $ret .= ' </tbody>' . '</table>'; |
|
236 | + $ret .= ' </tbody>'.'</table>'; |
|
237 | 237 | return $ret; |
238 | 238 | } |
239 | 239 |
@@ -21,5 +21,5 @@ |
||
21 | 21 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License |
22 | 22 | */ |
23 | 23 | |
24 | -require dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
24 | +require dirname(dirname(__DIR__)).'/mainfile.php'; |
|
25 | 25 | require $GLOBALS['xoops']->path('include/comment_edit.php'); |
@@ -21,65 +21,65 @@ |
||
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.'); |
|
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 | 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>"); |
|
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 | 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'); |
|
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 | 50 | |
51 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
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)'); |
|
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 | 83 | |
84 | 84 | //Latest Version Check |
85 | -define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: '); |
|
85 | +define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: '); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | define('_MI_XOOPSFAQ_NAME', 'XOOPS FAQ'); |
30 | 30 | define( |
31 | 31 | '_MI_XOOPSFAQ_DESC', |
32 | - 'This module is used to create Frequently Asked Questions (FAQs). You can use it to ' . 'provide information on your website for your users. The module if very simple, but ' . 'flexible enough to use for other purposes as well.' |
|
32 | + 'This module is used to create Frequently Asked Questions (FAQs). You can use it to '.'provide information on your website for your users. The module if very simple, but '.'flexible enough to use for other purposes as well.' |
|
33 | 33 | ); |
34 | 34 | |
35 | 35 | /** |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | //1.25 |
93 | 93 | //Help |
94 | 94 | define('_MI_XOOPSFAQ_DIRNAME', basename(dirname(dirname(__DIR__)))); |
95 | -define('_MI_XOOPSFAQ_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
95 | +define('_MI_XOOPSFAQ_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
96 | 96 | define('_MI_XOOPSFAQ_BACK_2_ADMIN', 'Back to Administration of '); |
97 | 97 | define('_MI_XOOPSFAQ_OVERVIEW', 'Overview'); |
98 | 98 |
@@ -25,12 +25,12 @@ |
||
25 | 25 | |
26 | 26 | use XoopsModules\Xoopsfaq; |
27 | 27 | |
28 | -require dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
29 | -require dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php'; |
|
28 | +require dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
29 | +require dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php'; |
|
30 | 30 | |
31 | -require dirname(__DIR__) . '/include/common.php'; |
|
31 | +require dirname(__DIR__).'/include/common.php'; |
|
32 | 32 | |
33 | -require dirname(__DIR__) . '/preloads/autoloader.php'; |
|
33 | +require dirname(__DIR__).'/preloads/autoloader.php'; |
|
34 | 34 | |
35 | 35 | $moduleDirName = basename(dirname(__DIR__)); |
36 | 36 |
@@ -23,11 +23,11 @@ |
||
23 | 23 | * @see Xmf\Module\Admin |
24 | 24 | */ |
25 | 25 | |
26 | -require_once __DIR__ . '/admin_header.php'; |
|
26 | +require_once __DIR__.'/admin_header.php'; |
|
27 | 27 | xoops_cp_header(); |
28 | 28 | |
29 | 29 | $adminObject->displayNavigation(basename(__FILE__)); |
30 | 30 | $adminObject::setPaypal('[email protected]'); |
31 | 31 | $adminObject->displayAbout(false); |
32 | 32 | |
33 | -require_once __DIR__ . '/admin_footer.php'; |
|
33 | +require_once __DIR__.'/admin_footer.php'; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | use Xmf\Request; |
27 | 27 | use XoopsModules\Xoopsfaq; |
28 | 28 | |
29 | -require __DIR__ . '/admin_header.php'; |
|
29 | +require __DIR__.'/admin_header.php'; |
|
30 | 30 | xoops_cp_header(); |
31 | 31 | |
32 | 32 | /** @var Xoopsfaq\CategoryHandler $categoryHandler */ |
@@ -108,10 +108,10 @@ discard block |
||
108 | 108 | $catCount = $categoryHandler->getCount(); |
109 | 109 | $adminObject->displayNavigation(basename(__FILE__)); |
110 | 110 | if (!empty($catCount)) { |
111 | - $adminObject->addItemButton(_AM_XOOPSFAQ_CREATE_NEW, basename(__FILE__) . '?op=edit', 'add', ''); |
|
111 | + $adminObject->addItemButton(_AM_XOOPSFAQ_CREATE_NEW, basename(__FILE__).'?op=edit', 'add', ''); |
|
112 | 112 | $adminObject->displayButton('left'); |
113 | 113 | } |
114 | 114 | $contentsHandler->displayAdminListing('weight'); |
115 | 115 | break; |
116 | 116 | } |
117 | -require_once __DIR__ . '/admin_footer.php'; |
|
117 | +require_once __DIR__.'/admin_footer.php'; |