@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getFirstChild($selectId, $order = '') |
69 | 69 | { |
70 | - $selectId = (int)$selectId; |
|
70 | + $selectId = (int) $selectId; |
|
71 | 71 | $arr = []; |
72 | - $sql = 'SELECT * FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $selectId . ''; |
|
72 | + $sql = 'SELECT * FROM '.$this->table.' WHERE '.$this->pid.'='.$selectId.''; |
|
73 | 73 | if ('' !== $order) { |
74 | 74 | $sql .= " ORDER BY $order"; |
75 | 75 | } |
@@ -94,9 +94,9 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function getFirstChildId($selectId) |
96 | 96 | { |
97 | - $selectId = (int)$selectId; |
|
97 | + $selectId = (int) $selectId; |
|
98 | 98 | $idarray = []; |
99 | - $result = $this->db->query('SELECT ' . $this->id . ' FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $selectId . ''); |
|
99 | + $result = $this->db->query('SELECT '.$this->id.' FROM '.$this->table.' WHERE '.$this->pid.'='.$selectId.''); |
|
100 | 100 | $count = $this->db->getRowsNum($result); |
101 | 101 | if (0 == $count) { |
102 | 102 | return $idarray; |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | */ |
120 | 120 | public function getAllChildId($selectId, $order = '', array $idarray = []) |
121 | 121 | { |
122 | - $selectId = (int)$selectId; |
|
123 | - $sql = 'SELECT ' . $this->id . ' FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $selectId . ''; |
|
122 | + $selectId = (int) $selectId; |
|
123 | + $sql = 'SELECT '.$this->id.' FROM '.$this->table.' WHERE '.$this->pid.'='.$selectId.''; |
|
124 | 124 | if ('' !== $order) { |
125 | 125 | $sql .= " ORDER BY $order"; |
126 | 126 | } |
@@ -148,8 +148,8 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function getAllParentId($selectId, $order = '', array $idarray = []) |
150 | 150 | { |
151 | - $selectId = (int)$selectId; |
|
152 | - $sql = 'SELECT ' . $this->pid . ' FROM ' . $this->table . ' WHERE ' . $this->id . '=' . $selectId . ''; |
|
151 | + $selectId = (int) $selectId; |
|
152 | + $sql = 'SELECT '.$this->pid.' FROM '.$this->table.' WHERE '.$this->id.'='.$selectId.''; |
|
153 | 153 | if ('' !== $order) { |
154 | 154 | $sql .= " ORDER BY $order"; |
155 | 155 | } |
@@ -175,15 +175,15 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function getPathFromId($selectId, $title, $path = '') |
177 | 177 | { |
178 | - $selectId = (int)$selectId; |
|
179 | - $result = $this->db->query('SELECT ' . $this->pid . ', ' . $title . ' FROM ' . $this->table . ' WHERE ' . $this->id . "=$selectId"); |
|
178 | + $selectId = (int) $selectId; |
|
179 | + $result = $this->db->query('SELECT '.$this->pid.', '.$title.' FROM '.$this->table.' WHERE '.$this->id."=$selectId"); |
|
180 | 180 | if (0 == $this->db->getRowsNum($result)) { |
181 | 181 | return $path; |
182 | 182 | } |
183 | 183 | list($parentid, $name) = $this->db->fetchRow($result); |
184 | 184 | $myts = \MyTextSanitizer::getInstance(); |
185 | 185 | $name = $myts->htmlspecialchars($name); |
186 | - $path = '/' . $name . $path . ''; |
|
186 | + $path = '/'.$name.$path.''; |
|
187 | 187 | if (0 == $parentid) { |
188 | 188 | return $path; |
189 | 189 | } |
@@ -209,12 +209,12 @@ discard block |
||
209 | 209 | $sel_name = $this->id; |
210 | 210 | } |
211 | 211 | $myts = \MyTextSanitizer::getInstance(); |
212 | - echo "<select name='" . $sel_name . "'"; |
|
212 | + echo "<select name='".$sel_name."'"; |
|
213 | 213 | if ('' !== $onchange) { |
214 | - echo " onchange='" . $onchange . "'"; |
|
214 | + echo " onchange='".$onchange."'"; |
|
215 | 215 | } |
216 | 216 | echo ">\n"; |
217 | - $sql = 'SELECT ' . $this->id . ', ' . $title . ' FROM ' . $this->table . ' WHERE ' . $this->pid . '=0'; |
|
217 | + $sql = 'SELECT '.$this->id.', '.$title.' FROM '.$this->table.' WHERE '.$this->pid.'=0'; |
|
218 | 218 | if ('' !== $order) { |
219 | 219 | $sql .= " ORDER BY $order"; |
220 | 220 | } |
@@ -232,11 +232,11 @@ discard block |
||
232 | 232 | $arr = $this->getChildTreeArray($catid, $order); |
233 | 233 | foreach ($arr as $option) { |
234 | 234 | $option['prefix'] = str_replace('.', '--', $option['prefix']); |
235 | - $catpath = $option['prefix'] . ' ' . $myts->htmlspecialchars($option[$title]); |
|
235 | + $catpath = $option['prefix'].' '.$myts->htmlspecialchars($option[$title]); |
|
236 | 236 | if ($option[$this->id] == $preset_id) { |
237 | 237 | $sel = " selected='selected'"; |
238 | 238 | } |
239 | - echo "<option value='" . $option[$this->id] . "'$sel>$catpath</option>\n"; |
|
239 | + echo "<option value='".$option[$this->id]."'$sel>$catpath</option>\n"; |
|
240 | 240 | $sel = ''; |
241 | 241 | } |
242 | 242 | } |
@@ -256,8 +256,8 @@ discard block |
||
256 | 256 | public function getNicePathFromId($selectId, $title, $funcURL, $path = '') |
257 | 257 | { |
258 | 258 | $path = !empty($path) ? $path : $path; |
259 | - $selectId = (int)$selectId; |
|
260 | - $sql = 'SELECT ' . $this->pid . ', ' . $title . ' FROM ' . $this->table . ' WHERE ' . $this->id . "=$selectId"; |
|
259 | + $selectId = (int) $selectId; |
|
260 | + $sql = 'SELECT '.$this->pid.', '.$title.' FROM '.$this->table.' WHERE '.$this->id."=$selectId"; |
|
261 | 261 | $result = $this->db->query($sql); |
262 | 262 | if (0 == $this->db->getRowsNum($result)) { |
263 | 263 | return $path; |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | list($parentid, $name) = $this->db->fetchRow($result); |
266 | 266 | $myts = \MyTextSanitizer::getInstance(); |
267 | 267 | $name = $myts->htmlspecialchars($name); |
268 | - $path = "<li><a href='" . $funcURL . '&' . $this->id . '=' . $selectId . "'>" . $name . '</a></li>' . $path . ''; |
|
268 | + $path = "<li><a href='".$funcURL.'&'.$this->id.'='.$selectId."'>".$name.'</a></li>'.$path.''; |
|
269 | 269 | if (0 == $parentid) { |
270 | 270 | return $path; |
271 | 271 | } |
@@ -284,13 +284,13 @@ discard block |
||
284 | 284 | */ |
285 | 285 | public function getIdPathFromId($selectId, $path = '') |
286 | 286 | { |
287 | - $selectId = (int)$selectId; |
|
288 | - $result = $this->db->query('SELECT ' . $this->pid . ' FROM ' . $this->table . ' WHERE ' . $this->id . "=$selectId"); |
|
287 | + $selectId = (int) $selectId; |
|
288 | + $result = $this->db->query('SELECT '.$this->pid.' FROM '.$this->table.' WHERE '.$this->id."=$selectId"); |
|
289 | 289 | if (0 == $this->db->getRowsNum($result)) { |
290 | 290 | return $path; |
291 | 291 | } |
292 | 292 | list($parentid) = $this->db->fetchRow($result); |
293 | - $path = '/' . $selectId . $path . ''; |
|
293 | + $path = '/'.$selectId.$path.''; |
|
294 | 294 | if (0 == $parentid) { |
295 | 295 | return $path; |
296 | 296 | } |
@@ -310,8 +310,8 @@ discard block |
||
310 | 310 | */ |
311 | 311 | public function getAllChild($selectId = 0, $order = '', array $parray = []) |
312 | 312 | { |
313 | - $selectId = (int)$selectId; |
|
314 | - $sql = 'SELECT * FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $selectId . ''; |
|
313 | + $selectId = (int) $selectId; |
|
314 | + $sql = 'SELECT * FROM '.$this->table.' WHERE '.$this->pid.'='.$selectId.''; |
|
315 | 315 | if ('' !== $order) { |
316 | 316 | $sql .= " ORDER BY $order"; |
317 | 317 | } |
@@ -340,8 +340,8 @@ discard block |
||
340 | 340 | */ |
341 | 341 | public function getChildTreeArray($selectId = 0, $order = '', array $parray = [], $r_prefix = '') |
342 | 342 | { |
343 | - $selectId = (int)$selectId; |
|
344 | - $sql = 'SELECT * FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $selectId . ''; |
|
343 | + $selectId = (int) $selectId; |
|
344 | + $sql = 'SELECT * FROM '.$this->table.' WHERE '.$this->pid.'='.$selectId.''; |
|
345 | 345 | if ('' !== $order) { |
346 | 346 | $sql .= " ORDER BY $order"; |
347 | 347 | } |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | return $parray; |
352 | 352 | } |
353 | 353 | while (false !== ($row = $this->db->fetchArray($result))) { |
354 | - $row['prefix'] = $r_prefix . '.'; |
|
354 | + $row['prefix'] = $r_prefix.'.'; |
|
355 | 355 | array_push($parray, $row); |
356 | 356 | $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']); |
357 | 357 | } |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | |
28 | 28 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
29 | 29 | |
30 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/formelement.php'; |
|
31 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/formhidden.php'; |
|
32 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/formhiddentoken.php'; |
|
33 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/formbutton.php'; |
|
34 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/formelementtray.php'; |
|
35 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/form.php'; |
|
30 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/formelement.php'; |
|
31 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/formhidden.php'; |
|
32 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/formhiddentoken.php'; |
|
33 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/formbutton.php'; |
|
34 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/formelementtray.php'; |
|
35 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/form.php'; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Renders checkbox options for a group permission form |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function setOptionTree(&$optionTree) |
111 | 111 | { |
112 | - $this->_optionTree =& $optionTree; |
|
112 | + $this->_optionTree = & $optionTree; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -134,34 +134,34 @@ discard block |
||
134 | 134 | $ret = ''; |
135 | 135 | |
136 | 136 | if (count($this->_appendix) > 0) { |
137 | - $ret .= '<table class="outer"><tr>'; |
|
137 | + $ret .= '<table class="outer"><tr>'; |
|
138 | 138 | $cols = 1; |
139 | 139 | foreach ($this->_appendix as $append) { |
140 | 140 | if ($cols > 4) { |
141 | - $ret .= '</tr><tr>'; |
|
141 | + $ret .= '</tr><tr>'; |
|
142 | 142 | $cols = 1; |
143 | 143 | } |
144 | 144 | $checked = $append['selected'] ? 'checked' : ''; |
145 | - $name = 'perms[' . $append['permname'] . ']'; |
|
145 | + $name = 'perms['.$append['permname'].']'; |
|
146 | 146 | $itemid = $append['itemid']; |
147 | 147 | $itemid = $append['itemid']; |
148 | - $ret .= "<td class=\"odd\"><input type=\"checkbox\" name=\"{$name}[groups][$this->_groupId][$itemid]\" id=\"{$name}[groups][$this->_groupId][$itemid]\" value=\"1\" $checked>{$append['itemname']}<input type=\"hidden\" name=\"{$name}[parents][$itemid]\" value=\"\"><input type=\"hidden\" name=\"{$name}[itemname][$itemid]\" value=\"{$append['itemname']}\"><br></td>"; |
|
148 | + $ret .= "<td class=\"odd\"><input type=\"checkbox\" name=\"{$name}[groups][$this->_groupId][$itemid]\" id=\"{$name}[groups][$this->_groupId][$itemid]\" value=\"1\" $checked>{$append['itemname']}<input type=\"hidden\" name=\"{$name}[parents][$itemid]\" value=\"\"><input type=\"hidden\" name=\"{$name}[itemname][$itemid]\" value=\"{$append['itemname']}\"><br></td>"; |
|
149 | 149 | ++$cols; |
150 | 150 | } |
151 | 151 | $ret .= '</tr></table>'; |
152 | 152 | } |
153 | 153 | |
154 | - $ret .= '<table class="outer"><tr>'; |
|
154 | + $ret .= '<table class="outer"><tr>'; |
|
155 | 155 | $cols = 1; |
156 | 156 | foreach ($this->_optionTree[0]['children'] as $topitem) { |
157 | 157 | if ($cols > 4) { |
158 | - $ret .= '</tr><tr>'; |
|
158 | + $ret .= '</tr><tr>'; |
|
159 | 159 | $cols = 1; |
160 | 160 | } |
161 | 161 | $tree = '<td class="odd">'; |
162 | 162 | $prefix = ''; |
163 | 163 | $this->renderOptionTree($tree, $this->_optionTree[$topitem], $prefix); |
164 | - $ret .= $tree . '</td>'; |
|
164 | + $ret .= $tree.'</td>'; |
|
165 | 165 | ++$cols; |
166 | 166 | } |
167 | 167 | $ret .= '</tr></table>'; |
@@ -180,21 +180,21 @@ discard block |
||
180 | 180 | */ |
181 | 181 | private function renderOptionTree(&$tree, $option, $prefix, $parentIds = []) |
182 | 182 | { |
183 | - $tree .= $prefix . '<input type="checkbox" name="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . ']" id="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . ']" onclick="'; |
|
183 | + $tree .= $prefix.'<input type="checkbox" name="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id'].']" id="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id'].']" onclick="'; |
|
184 | 184 | // If there are parent elements, add javascript that will |
185 | 185 | // make them selecteded when this element is checked to make |
186 | 186 | // sure permissions to parent items are added as well. |
187 | 187 | foreach ($parentIds as $pid) { |
188 | - $parent_ele = $this->getName() . '[groups][' . $this->_groupId . '][' . $pid . ']'; |
|
189 | - $tree .= "var ele = xoopsGetElementById('" . $parent_ele . "'); if (ele.checked !== true) {ele.checked = this.checked;}"; |
|
188 | + $parent_ele = $this->getName().'[groups]['.$this->_groupId.']['.$pid.']'; |
|
189 | + $tree .= "var ele = xoopsGetElementById('".$parent_ele."'); if (ele.checked !== true) {ele.checked = this.checked;}"; |
|
190 | 190 | } |
191 | 191 | // If there are child elements, add javascript that will |
192 | 192 | // make them unchecked when this element is unchecked to make |
193 | 193 | // sure permissions to child items are not added when there |
194 | 194 | // is no permission to this item. |
195 | 195 | foreach ($option['allchild'] as $cid) { |
196 | - $child_ele = $this->getName() . '[groups][' . $this->_groupId . '][' . $cid . ']'; |
|
197 | - $tree .= "var ele = xoopsGetElementById('" . $child_ele . "'); if (this.checked !== true) {ele.checked = false;}"; |
|
196 | + $child_ele = $this->getName().'[groups]['.$this->_groupId.']['.$cid.']'; |
|
197 | + $tree .= "var ele = xoopsGetElementById('".$child_ele."'); if (this.checked !== true) {ele.checked = false;}"; |
|
198 | 198 | } |
199 | 199 | $tree .= '" value="1"'; |
200 | 200 | if (null !== $this->_value && in_array($option['id'], $this->_value)) { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | if (isset($option['children'])) { |
219 | 219 | foreach ($option['children'] as $child) { |
220 | 220 | array_push($parentIds, $option['id']); |
221 | - $this->renderOptionTree($tree, $this->_optionTree[$child], $prefix . ' -', $parentIds); |
|
221 | + $this->renderOptionTree($tree, $this->_optionTree[$child], $prefix.' -', $parentIds); |
|
222 | 222 | } |
223 | 223 | } |
224 | 224 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | if (0 != $maxLength) { |
188 | 188 | if (!XOOPS_USE_MULTIBYTES) { |
189 | 189 | if (strlen($ret) >= $maxLength) { |
190 | - $ret = substr($ret, 0, $maxLength - 1) . '...'; |
|
190 | + $ret = substr($ret, 0, $maxLength-1).'...'; |
|
191 | 191 | } |
192 | 192 | } |
193 | 193 | } |
@@ -379,14 +379,14 @@ discard block |
||
379 | 379 | $theAnswers = $answerHandler->getAllAnswers($this->faqid(), Constants::SF_AN_STATUS_APPROVED, 1, 0); |
380 | 380 | //echo "test"; |
381 | 381 | //exit; |
382 | - $this->answer =& $theAnswers[0]; |
|
382 | + $this->answer = & $theAnswers[0]; |
|
383 | 383 | break; |
384 | 384 | |
385 | 385 | case Constants::SF_STATUS_ANSWERED: |
386 | 386 | $theAnswers = $answerHandler->getAllAnswers($this->faqid(), Constants::SF_AN_STATUS_PROPOSED, 1, 0); |
387 | 387 | //echo "test"; |
388 | 388 | //exit; |
389 | - $this->answer =& $theAnswers[0]; |
|
389 | + $this->answer = & $theAnswers[0]; |
|
390 | 390 | break; |
391 | 391 | |
392 | 392 | case Constants::SF_STATUS_PUBLISHED: |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | $tags['MODULE_NAME'] = $myts->displayTarea($smartModule->getVar('name')); |
473 | 473 | $tags['FAQ_NAME'] = $this->question(); |
474 | 474 | $tags['CATEGORY_NAME'] = $this->getCategoryName(); |
475 | - $tags['CATEGORY_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/category.php?categoryid=' . $this->categoryid(); |
|
475 | + $tags['CATEGORY_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/category.php?categoryid='.$this->categoryid(); |
|
476 | 476 | $tags['FAQ_QUESTION'] = $this->question(); |
477 | 477 | $answerObj = $this->answer(); |
478 | 478 | if (is_object($answerObj)) { |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | foreach ($notifications as $notification) { |
485 | 485 | switch ($notification) { |
486 | 486 | case Constants::SF_NOT_FAQ_PUBLISHED: |
487 | - $tags['FAQ_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/faq.php?faqid=' . $this->faqid(); |
|
487 | + $tags['FAQ_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/faq.php?faqid='.$this->faqid(); |
|
488 | 488 | |
489 | 489 | $notificationHandler->triggerEvent('global_faq', 0, 'published', $tags); |
490 | 490 | $notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'published', $tags); |
@@ -492,20 +492,20 @@ discard block |
||
492 | 492 | break; |
493 | 493 | |
494 | 494 | case Constants::SF_NOT_FAQ_SUBMITTED: |
495 | - $tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/faq.php?faqid=' . $this->faqid(); |
|
495 | + $tags['WAITINGFILES_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/admin/faq.php?faqid='.$this->faqid(); |
|
496 | 496 | $notificationHandler->triggerEvent('global_faq', 0, 'submitted', $tags); |
497 | 497 | $notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'submitted', $tags); |
498 | 498 | break; |
499 | 499 | |
500 | 500 | case Constants::SF_NOT_QUESTION_PUBLISHED: |
501 | - $tags['FAQ_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/answer.php?faqid=' . $this->faqid(); |
|
501 | + $tags['FAQ_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/answer.php?faqid='.$this->faqid(); |
|
502 | 502 | $notificationHandler->triggerEvent('global_question', 0, 'published', $tags); |
503 | 503 | $notificationHandler->triggerEvent('category_question', $this->categoryid(), 'published', $tags); |
504 | 504 | $notificationHandler->triggerEvent('question', $this->faqid(), 'approved', $tags); |
505 | 505 | break; |
506 | 506 | |
507 | 507 | case Constants::SF_NOT_QUESTION_SUBMITTED: |
508 | - $tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/question.php?op=mod&faqid=' . $this->faqid(); |
|
508 | + $tags['WAITINGFILES_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/admin/question.php?op=mod&faqid='.$this->faqid(); |
|
509 | 509 | $notificationHandler->triggerEvent('global_question', 0, 'submitted', $tags); |
510 | 510 | $notificationHandler->triggerEvent('category_question', $this->categoryid(), 'submitted', $tags); |
511 | 511 | break; |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | break; |
516 | 516 | |
517 | 517 | case Constants::SF_NOT_NEW_ANSWER_PROPOSED: |
518 | - $tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/answer.php?op=mod&faqid=' . $this->faqid(); |
|
518 | + $tags['WAITINGFILES_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/admin/answer.php?op=mod&faqid='.$this->faqid(); |
|
519 | 519 | $notificationHandler->triggerEvent('global_faq', 0, 'answer_proposed', $tags); |
520 | 520 | $notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'answer_proposed', $tags); |
521 | 521 | break; |
@@ -629,7 +629,7 @@ discard block |
||
629 | 629 | $text = _MD_SF_FAQCOMEFROM; |
630 | 630 | } |
631 | 631 | |
632 | - return $text . $xoopsConfig['sitename'] . ' : <a href=' . XOOPS_URL . '/modules/smartfaq/faq.php?faqid=' . $this->faqid() . '>' . XOOPS_URL . '/modules/smartfaq/faq.php?faqid=' . $this->faqid() . '</a>'; |
|
632 | + return $text.$xoopsConfig['sitename'].' : <a href='.XOOPS_URL.'/modules/smartfaq/faq.php?faqid='.$this->faqid().'>'.XOOPS_URL.'/modules/smartfaq/faq.php?faqid='.$this->faqid().'</a>'; |
|
633 | 633 | } |
634 | 634 | |
635 | 635 | /** |
@@ -641,16 +641,16 @@ discard block |
||
641 | 641 | public function toArray($faq = [], $category = null, $linkInQuestion = true) |
642 | 642 | { |
643 | 643 | global $xoopsModuleConfig; |
644 | - $lastfaqsize = (int)$xoopsModuleConfig['lastfaqsize']; |
|
644 | + $lastfaqsize = (int) $xoopsModuleConfig['lastfaqsize']; |
|
645 | 645 | |
646 | 646 | $faq['id'] = $this->faqid(); |
647 | 647 | $faq['categoryid'] = $this->categoryid(); |
648 | 648 | $faq['question'] = $this->question(); |
649 | 649 | $page = (Constants::SF_STATUS_OPENED == $this->status()) ? 'answer.php' : 'faq.php'; |
650 | 650 | |
651 | - $faq['questionlink'] = "<a href='$page?faqid=" . $this->faqid() . "'>" . $this->question($lastfaqsize) . '</a>'; |
|
651 | + $faq['questionlink'] = "<a href='$page?faqid=".$this->faqid()."'>".$this->question($lastfaqsize).'</a>'; |
|
652 | 652 | if ($linkInQuestion) { |
653 | - $faq['fullquestionlink'] = "<a href='$page?faqid=" . $this->faqid() . "'>" . $this->question() . '</a>'; |
|
653 | + $faq['fullquestionlink'] = "<a href='$page?faqid=".$this->faqid()."'>".$this->question().'</a>'; |
|
654 | 654 | } else { |
655 | 655 | $faq['fullquestionlink'] = $this->question(); |
656 | 656 | } |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | $categoryObj = $category[$this->categoryid()]; |
667 | 667 | } |
668 | 668 | $faq['categoryname'] = $categoryObj->getVar('name'); |
669 | - $faq['categorylink'] = "<a href='" . XOOPS_URL . '/modules/smartfaq/category.php?categoryid=' . $this->categoryid() . "'>" . $categoryObj->getVar('name') . '</a>'; |
|
669 | + $faq['categorylink'] = "<a href='".XOOPS_URL.'/modules/smartfaq/category.php?categoryid='.$this->categoryid()."'>".$categoryObj->getVar('name').'</a>'; |
|
670 | 670 | } |
671 | 671 | |
672 | 672 | return $faq; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | use XoopsModules\Smartfaq\Constants; |
11 | 11 | |
12 | -require_once __DIR__ . '/header.php'; |
|
12 | +require_once __DIR__.'/header.php'; |
|
13 | 13 | |
14 | 14 | global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule; |
15 | 15 | |
@@ -89,12 +89,12 @@ discard block |
||
89 | 89 | global $xoopsUser, $myts; |
90 | 90 | |
91 | 91 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_submit.tpl'; |
92 | - require_once XOOPS_ROOT_PATH . '/header.php'; |
|
93 | - require_once __DIR__ . '/footer.php'; |
|
92 | + require_once XOOPS_ROOT_PATH.'/header.php'; |
|
93 | + require_once __DIR__.'/footer.php'; |
|
94 | 94 | |
95 | 95 | $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous'; |
96 | 96 | |
97 | - $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
97 | + $moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
98 | 98 | $faq = $faqObj->toArray(null, $categoryObj, false); |
99 | 99 | $faq['categoryPath'] = $categoryObj->getCategoryPath(true); |
100 | 100 | $faq['answer'] = $answerObj->answer(); |
@@ -107,11 +107,11 @@ discard block |
||
107 | 107 | $xoopsTpl->assign('lang_submit', _MD_SF_SUB_SNEWNAME); |
108 | 108 | |
109 | 109 | $xoopsTpl->assign('lang_intro_title', sprintf(_MD_SF_SUB_SNEWNAME, ucwords($xoopsModule->name()))); |
110 | - $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY . "<b>$name</b>, " . _MD_SF_SUB_INTRO); |
|
110 | + $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY."<b>$name</b>, "._MD_SF_SUB_INTRO); |
|
111 | 111 | |
112 | - require_once __DIR__ . '/include/submit.inc.php'; |
|
112 | + require_once __DIR__.'/include/submit.inc.php'; |
|
113 | 113 | |
114 | - require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
114 | + require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
115 | 115 | |
116 | 116 | exit(); |
117 | 117 | break; |
@@ -175,14 +175,14 @@ discard block |
||
175 | 175 | $attachments_tmp = unserialize(base64_decode($_POST['attachments_tmp'])); |
176 | 176 | if (isset($_POST['delete_tmp']) && count($_POST['delete_tmp'])) { |
177 | 177 | foreach ($_POST['delete_tmp'] as $key) { |
178 | - unlink(XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['dir_attachments'] . '/' . $attachments_tmp[$key][0]); |
|
178 | + unlink(XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig['dir_attachments'].'/'.$attachments_tmp[$key][0]); |
|
179 | 179 | unset($attachments_tmp[$key]); |
180 | 180 | } |
181 | 181 | } |
182 | 182 | } |
183 | 183 | if (count($attachments_tmp)) { |
184 | 184 | foreach ($attachments_tmp as $key => $attach) { |
185 | - if (rename(XOOPS_CACHE_PATH . '/' . $attachments_tmp[$key][0], XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['dir_attachments'] . '/' . $attachments_tmp[$key][0])) { |
|
185 | + if (rename(XOOPS_CACHE_PATH.'/'.$attachments_tmp[$key][0], XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig['dir_attachments'].'/'.$attachments_tmp[$key][0])) { |
|
186 | 186 | $post_obj->setAttachment($attach[0], $attach[1], $attach[2]); |
187 | 187 | } |
188 | 188 | } |
@@ -191,11 +191,11 @@ discard block |
||
191 | 191 | |
192 | 192 | if (isset($_FILES['userfile']['name']) && '' != $_FILES['userfile']['name'] |
193 | 193 | && $topicHandler->getPermission($forum_obj, $topic_status, 'attach')) { |
194 | - require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/class/uploader.php'; |
|
194 | + require_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/class/uploader.php'; |
|
195 | 195 | $maxfilesize = $forum_obj->getVar('attach_maxkb') * 1024; |
196 | 196 | $uploaddir = XOOPS_CACHE_PATH; |
197 | 197 | |
198 | - $uploader = new Smartfaq\Uploader($uploaddir, $newAnswerObj->getVar('attach_ext'), (int)$maxfilesize, (int)$xoopsModuleConfig['max_img_width'], (int)$xoopsModuleConfig['max_img_height']); |
|
198 | + $uploader = new Smartfaq\Uploader($uploaddir, $newAnswerObj->getVar('attach_ext'), (int) $maxfilesize, (int) $xoopsModuleConfig['max_img_width'], (int) $xoopsModuleConfig['max_img_height']); |
|
199 | 199 | |
200 | 200 | if ($_FILES['userfile']['error'] > 0) { |
201 | 201 | switch ($_FILES['userfile']['error']) { |
@@ -213,19 +213,19 @@ discard block |
||
213 | 213 | $uploader->setCheckMediaTypeByExt(); |
214 | 214 | |
215 | 215 | if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { |
216 | - $prefix = is_object($xoopsUser) ? (string)$xoopsUser->uid() . '_' : 'newbb_'; |
|
216 | + $prefix = is_object($xoopsUser) ? (string) $xoopsUser->uid().'_' : 'newbb_'; |
|
217 | 217 | $uploader->setPrefix($prefix); |
218 | 218 | if (!$uploader->upload()) { |
219 | - $error_message[] = $error_upload =& $uploader->getErrors(); |
|
219 | + $error_message[] = $error_upload = & $uploader->getErrors(); |
|
220 | 220 | } else { |
221 | 221 | if (is_file($uploader->getSavedDestination())) { |
222 | - if (rename(XOOPS_CACHE_PATH . '/' . $uploader->getSavedFileName(), XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['dir_attachments'] . '/' . $uploader->getSavedFileName())) { |
|
222 | + if (rename(XOOPS_CACHE_PATH.'/'.$uploader->getSavedFileName(), XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig['dir_attachments'].'/'.$uploader->getSavedFileName())) { |
|
223 | 223 | $post_obj->setAttachment($uploader->getSavedFileName(), $uploader->getMediaName(), $uploader->getMediaType()); |
224 | 224 | } |
225 | 225 | } |
226 | 226 | } |
227 | 227 | } else { |
228 | - $error_message[] = $error_upload =& $uploader->getErrors(); |
|
228 | + $error_message[] = $error_upload = & $uploader->getErrors(); |
|
229 | 229 | } |
230 | 230 | } |
231 | 231 | } |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | } else { |
259 | 259 | // Subscribe the user to On Published notification, if requested |
260 | 260 | if (1 == $notifypub) { |
261 | - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
261 | + require_once XOOPS_ROOT_PATH.'/include/notification_constants.php'; |
|
262 | 262 | $notificationHandler = xoops_getHandler('notification'); |
263 | 263 | $notificationHandler->subscribe('faq', $newFaqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
264 | 264 | } |
@@ -281,20 +281,20 @@ discard block |
||
281 | 281 | $categoryObj = $categoryHandler->create(); |
282 | 282 | |
283 | 283 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_submit.html'; |
284 | - require_once XOOPS_ROOT_PATH . '/header.php'; |
|
285 | - require_once __DIR__ . '/footer.php'; |
|
284 | + require_once XOOPS_ROOT_PATH.'/header.php'; |
|
285 | + require_once __DIR__.'/footer.php'; |
|
286 | 286 | |
287 | 287 | $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous'; |
288 | 288 | $notifypub = 1; |
289 | - $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
289 | + $moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
290 | 290 | $xoopsTpl->assign('whereInSection', $moduleName); |
291 | 291 | $xoopsTpl->assign('lang_submit', _MD_SF_SUB_SNEWNAME); |
292 | 292 | |
293 | 293 | $xoopsTpl->assign('lang_intro_title', sprintf(_MD_SF_SUB_SNEWNAME, ucwords($xoopsModule->name()))); |
294 | - $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY . "<b>$name</b>, " . _MD_SF_SUB_INTRO); |
|
294 | + $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY."<b>$name</b>, "._MD_SF_SUB_INTRO); |
|
295 | 295 | |
296 | - require_once __DIR__ . '/include/submit.inc.php'; |
|
296 | + require_once __DIR__.'/include/submit.inc.php'; |
|
297 | 297 | |
298 | - require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
298 | + require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
299 | 299 | break; |
300 | 300 | } |
@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | |
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | |
11 | -require_once __DIR__ . '/header.php'; |
|
11 | +require_once __DIR__.'/header.php'; |
|
12 | 12 | |
13 | -$faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
|
13 | +$faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0; |
|
14 | 14 | |
15 | 15 | if (0 == $faqid) { |
16 | 16 | redirect_header('javascript:history.go(-1)', 1, _MD_SF_NOFAQSELECTED); |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | $faqObj->updateCounter(); |
48 | 48 | } |
49 | 49 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_faq.tpl'; |
50 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
51 | -require_once __DIR__ . '/footer.php'; |
|
50 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
51 | +require_once __DIR__.'/footer.php'; |
|
52 | 52 | |
53 | 53 | $faq = $faqObj->toArray(null, $categoryObj, false); |
54 | 54 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $xoopsTpl->assign('display_categoryname', false); |
84 | 84 | |
85 | 85 | $xoopsTpl->assign('xcodes', $faqObj->getVar('xcodes')); |
86 | -$xoopsTpl->assign('mail_link', 'mailto:?subject=' . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/faq.php?faqid=' . $faqObj->getVar('faqid')); |
|
86 | +$xoopsTpl->assign('mail_link', 'mailto:?subject='.sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']).'&body='.sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/faq.php?faqid='.$faqObj->getVar('faqid')); |
|
87 | 87 | $xoopsTpl->assign('lang_printerpage', _MD_SF_PRINTERFRIENDLY); |
88 | 88 | $xoopsTpl->assign('lang_sendstory', _MD_SF_SENDSTORY); |
89 | 89 | $xoopsTpl->assign('faqid', $faqObj->getVar('faqid')); |
@@ -99,19 +99,19 @@ discard block |
||
99 | 99 | |
100 | 100 | // Page Title Hack by marcan |
101 | 101 | $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name')); |
102 | -$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $categoryObj->name() . ' - ' . $faq['question']); |
|
102 | +$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$categoryObj->name().' - '.$faq['question']); |
|
103 | 103 | // End Page Title Hack by marcan |
104 | 104 | |
105 | 105 | // Include the comments if the selected FAQ supports comments |
106 | 106 | if (1 == $faqObj->cancomment()) { |
107 | - require_once XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
107 | + require_once XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | //code to include smartie |
111 | -if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) { |
|
112 | - require_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php'; |
|
111 | +if (file_exists(XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php')) { |
|
112 | + require_once XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php'; |
|
113 | 113 | $xoopsTpl->assign('smarttie', 1); |
114 | 114 | } |
115 | 115 | //end code for smarttie |
116 | 116 | |
117 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
117 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -3,12 +3,12 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * @see http://www.php-fig.org/psr/psr-4/examples/ |
5 | 5 | */ |
6 | -spl_autoload_register(function ($class) { |
|
6 | +spl_autoload_register(function($class) { |
|
7 | 7 | // project-specific namespace prefix |
8 | - $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
8 | + $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__))); |
|
9 | 9 | |
10 | 10 | // base directory for the namespace prefix |
11 | - $base_dir = __DIR__ . '/../class/'; |
|
11 | + $base_dir = __DIR__.'/../class/'; |
|
12 | 12 | |
13 | 13 | // does the class use the namespace prefix? |
14 | 14 | $len = strlen($prefix); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | // replace the namespace prefix with the base directory, replace namespace |
24 | 24 | // separators with directory separators in the relative class name, append |
25 | 25 | // with .php |
26 | - $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
|
26 | + $file = $base_dir.str_replace('\\', '/', $relative_class).'.php'; |
|
27 | 27 | |
28 | 28 | // if the file exists, require it |
29 | 29 | if (file_exists($file)) { |
@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public static function eventCoreIncludeCommonEnd($args) |
30 | 30 | { |
31 | - include __DIR__ . '/autoloader.php'; |
|
31 | + include __DIR__.'/autoloader.php'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | $uid = $xoopsUser ? $xoopsUser->getVar('uid') : 0; |
14 | 14 | $isAdmin = (Smartfaq\Utility::userIsAdmin() || Smartfaq\Utility::getModerator()); |
15 | 15 | |
16 | -$xoopsTpl->assign('sf_adminpage', "<a href='" . XOOPS_URL . "/modules/smartfaq/admin/index.php'>" . _MD_SF_ADMIN_PAGE . '</a>'); |
|
16 | +$xoopsTpl->assign('sf_adminpage', "<a href='".XOOPS_URL."/modules/smartfaq/admin/index.php'>"._MD_SF_ADMIN_PAGE.'</a>'); |
|
17 | 17 | $xoopsTpl->assign('isAdmin', $isAdmin); |
18 | 18 | |
19 | 19 | $xoopsTpl->assign([ |
@@ -36,4 +36,4 @@ discard block |
||
36 | 36 | |
37 | 37 | $xoopsTpl->assign('ref_smartfaq', 'SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)'); |
38 | 38 | |
39 | -$xoopsTpl->assign('xoops_module_header', "<link rel='stylesheet' type='text/css' href='" . XOOPS_URL . "/modules/smartfaq/assets/css/smartfaq.css'>"); |
|
39 | +$xoopsTpl->assign('xoops_module_header', "<link rel='stylesheet' type='text/css' href='".XOOPS_URL."/modules/smartfaq/assets/css/smartfaq.css'>"); |
@@ -21,51 +21,51 @@ |
||
21 | 21 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
22 | 22 | $moduleDirNameUpper = 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 | 43 | |
44 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
45 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
46 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
47 | -define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
48 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
49 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
50 | -define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
44 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
45 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
46 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
47 | +define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
48 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
49 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
50 | +define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
51 | 51 | |
52 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
52 | +define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
53 | 53 | |
54 | 54 | // Error Msgs |
55 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
56 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
57 | -define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
55 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
56 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
57 | +define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
58 | 58 | |
59 | 59 | |
60 | 60 | //Help |
61 | -define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
62 | -define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
63 | -define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
64 | -define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
61 | +define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
62 | +define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
63 | +define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
64 | +define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
65 | 65 | |
66 | 66 | //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
67 | 67 | |
68 | 68 | //help multi-page |
69 | -define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
70 | -define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
71 | -define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
69 | +define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
70 | +define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
71 | +define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |