This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
1 | <?php declare(strict_types=1); |
||
2 | |||
3 | /* |
||
4 | You may not change or alter any portion of this comment or credits |
||
5 | of supporting developers from this source code or any supporting source code |
||
6 | which is considered copyrighted (c) material of the original comment or credit authors. |
||
7 | |||
8 | This program is distributed in the hope that it will be useful, |
||
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
11 | */ |
||
12 | |||
13 | /** |
||
14 | * Module: Adslight |
||
15 | * |
||
16 | * @category Module |
||
17 | * @author XOOPS Development Team <https://xoops.org> |
||
18 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
19 | * @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) |
||
20 | */ |
||
21 | |||
22 | use Xmf\Request; |
||
23 | |||
24 | /** @var ListingHandler $listingHandler */ |
||
25 | /** @var Admin $adminObject */ |
||
26 | /** @var Helper $helper */ |
||
27 | /** @var \Xmf\Module\Helper\Permission $permHelper */ |
||
28 | require __DIR__ . '/admin_header.php'; |
||
29 | xoops_cp_header(); |
||
30 | |||
31 | global $xoopsModule, $xoopsDB, $xoopsConfig, $xoTheme; |
||
32 | |||
33 | //It recovered the value of argument op in URL$ |
||
34 | $op = Request::getString('op', 'list'); |
||
35 | $order = Request::getString('order', 'desc'); |
||
36 | $sort = Request::getString('sort', ''); |
||
37 | |||
38 | $moduleDirName = \basename(\dirname(__DIR__)); |
||
39 | $GLOBALS['xoopsTpl']->assign('mod_url', $helper->url()); |
||
40 | $xoTheme->addStylesheet($helper->url('assets/js/tablesorter/css/theme.blue.css')); |
||
41 | |||
42 | $adminObject->displayNavigation(basename(__FILE__)); |
||
43 | $permHelper = new \Xmf\Module\Helper\Permission(); |
||
44 | $uploadDir = XOOPS_UPLOAD_PATH . "/$moduleDirName/"; |
||
45 | $uploadUrl = XOOPS_UPLOAD_URL . "/$moduleDirName/"; |
||
46 | |||
47 | switch ($op) { |
||
48 | case 'new': |
||
49 | $adminObject->addItemButton(AM_ADSLIGHT_LISTING_LIST, 'listing.php', 'list'); |
||
50 | $adminObject->displayButton('left'); |
||
51 | |||
52 | $listingObject = $listingHandler->create(); |
||
53 | $form = $listingObject->getForm(); |
||
54 | $form->display(); |
||
55 | break; |
||
56 | case 'save': |
||
57 | if (!$GLOBALS['xoopsSecurity']->check()) { |
||
58 | redirect_header('listing.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
||
59 | } |
||
60 | if (0 !== Request::getInt('lid', 0)) { |
||
61 | $listingObject = $listingHandler->get(Request::getInt('lid', 0)); |
||
62 | } else { |
||
63 | $listingObject = $listingHandler->create(); |
||
64 | } |
||
65 | // Form save fields |
||
66 | $listingObject->setVar('cid', Request::getVar('cid', '')); |
||
67 | $listingObject->setVar('title', Request::getVar('title', '')); |
||
68 | $listingObject->setVar('status', Request::getVar('status', '')); |
||
69 | $listingObject->setVar('expire', Request::getVar('expire', '')); |
||
70 | $listingObject->setVar('type', Request::getVar('type', '')); |
||
71 | $listingObject->setVar('desctext', Request::getText('desctext', '')); |
||
72 | $listingObject->setVar('tel', Request::getVar('tel', '')); |
||
73 | $listingObject->setVar('price', Request::getVar('price', '')); |
||
74 | $listingObject->setVar('typeprice', Request::getVar('typeprice', '')); |
||
75 | $listingObject->setVar('typecondition', Request::getVar('typecondition', '')); |
||
76 | $resDate = Request::getArray('date_created', [], 'POST'); |
||
77 | $dateTimeObj = \DateTime::createFromFormat(_SHORTDATESTRING, $resDate['date']); |
||
78 | $dateTimeObj->setTime(0, 0, 0); |
||
79 | $listingObject->setVar('date_created', $dateTimeObj->getTimestamp() + $resDate['time']); |
||
80 | $listingObject->setVar('email', Request::getVar('email', '')); |
||
81 | $listingObject->setVar('submitter', Request::getVar('submitter', '')); |
||
82 | $listingObject->setVar('usid', Request::getVar('usid', '')); |
||
83 | $listingObject->setVar('town', Request::getVar('town', '')); |
||
84 | $listingObject->setVar('country', Request::getVar('country', '')); |
||
85 | $listingObject->setVar('contactby', Request::getVar('contactby', '')); |
||
86 | $listingObject->setVar('premium', Request::getVar('premium', '')); |
||
87 | $listingObject->setVar('valid', Request::getVar('valid', '')); |
||
88 | |||
89 | require_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
||
90 | $uploadDir = XOOPS_UPLOAD_PATH . "/$moduleDirName/"; |
||
91 | $uploader = new \XoopsMediaUploader( |
||
92 | $uploadDir, |
||
93 | $helper->getConfig('mimetypes'), |
||
94 | $helper->getConfig('maxsize'), |
||
95 | null, |
||
96 | null |
||
97 | ); |
||
98 | if ($uploader->fetchMedia(Request::getArray('xoops_upload_file', '', 'POST')[0])) { |
||
99 | //$extension = preg_replace( '/^.+\.([^.]+)$/sU' , '' , $_FILES['attachedfile']['name']); |
||
100 | //$imgName = str_replace(' ', '', $_POST['photo']).'.'.$extension; |
||
101 | |||
102 | $uploader->setPrefix('photo_'); |
||
103 | $uploader->fetchMedia(Request::getArray('xoops_upload_file', '', 'POST')[0]); |
||
104 | if (!$uploader->upload()) { |
||
105 | $errors = $uploader->getErrors(); |
||
106 | redirect_header('javascript:history.go(-1)', 3, $errors); |
||
107 | } else { |
||
108 | $listingObject->setVar('photo', $uploader->getSavedFileName()); |
||
109 | } |
||
110 | } else { |
||
111 | $listingObject->setVar('photo', Request::getVar('photo', '')); |
||
112 | } |
||
113 | |||
114 | $listingObject->setVar('hits', Request::getVar('hits', '')); |
||
115 | $listingObject->setVar('item_rating', Request::getVar('item_rating', '')); |
||
116 | $listingObject->setVar('item_votes', Request::getVar('item_votes', '')); |
||
117 | $listingObject->setVar('user_rating', Request::getVar('user_rating', '')); |
||
118 | $listingObject->setVar('user_votes', Request::getVar('user_votes', '')); |
||
119 | $listingObject->setVar('comments', Request::getVar('comments', '')); |
||
120 | $listingObject->setVar('remind', Request::getVar('remind', '')); |
||
121 | if ($listingHandler->insert($listingObject)) { |
||
122 | redirect_header('listing.php?op=list', 2, AM_ADSLIGHT_FORMOK); |
||
123 | } |
||
124 | |||
125 | echo $listingObject->getHtmlErrors(); |
||
126 | $form = $listingObject->getForm(); |
||
127 | $form->display(); |
||
128 | break; |
||
129 | case 'edit': |
||
130 | $adminObject->addItemButton(AM_ADSLIGHT_ADD_LISTING, 'listing.php?op=new', 'add'); |
||
131 | $adminObject->addItemButton(AM_ADSLIGHT_LISTING_LIST, 'listing.php', 'list'); |
||
132 | $adminObject->displayButton('left'); |
||
133 | $listingObject = $listingHandler->get(Request::getString('lid', '')); |
||
134 | $form = $listingObject->getForm(); |
||
135 | $form->display(); |
||
136 | break; |
||
137 | case 'delete': |
||
138 | $listingObject = $listingHandler->get(Request::getString('lid', '')); |
||
139 | if (1 == Request::getInt('ok', 0)) { |
||
140 | if (!$GLOBALS['xoopsSecurity']->check()) { |
||
141 | redirect_header('listing.php', 3, implode(', ', $GLOBALS['xoopsSecurity']->getErrors())); |
||
142 | } |
||
143 | if ($listingHandler->delete($listingObject)) { |
||
144 | redirect_header('listing.php', 3, AM_ADSLIGHT_FORMDELOK); |
||
145 | } else { |
||
146 | echo $listingObject->getHtmlErrors(); |
||
147 | } |
||
148 | } else { |
||
149 | xoops_confirm(['ok' => 1, 'lid' => Request::getString('lid', ''), 'op' => 'delete'], Request::getUrl('REQUEST_URI', '', 'SERVER'), sprintf(AM_ADSLIGHT_FORMSUREDEL, $listingObject->getVar('title'))); |
||
150 | } |
||
151 | break; |
||
152 | case 'clone': |
||
153 | $id_field = Request::getString('lid', ''); |
||
154 | |||
155 | if ($utility::cloneRecord('adslight_listing', 'lid', $id_field)) { |
||
156 | redirect_header('listing.php', 3, AM_ADSLIGHT_CLONED_OK); |
||
157 | } else { |
||
158 | redirect_header('listing.php', 3, AM_ADSLIGHT_CLONED_FAILED); |
||
159 | } |
||
160 | |||
161 | break; |
||
162 | case 'list': |
||
163 | default: |
||
164 | $adminObject->addItemButton(AM_ADSLIGHT_ADD_LISTING, 'listing.php?op=new', 'add'); |
||
165 | $adminObject->displayButton('left'); |
||
166 | $start = Request::getInt('start', 0); |
||
167 | $listingPaginationLimit = $helper->getConfig('userpager'); |
||
168 | |||
169 | $criteria = new \CriteriaCompo(); |
||
170 | $criteria->setSort('lid ASC, title'); |
||
171 | $criteria->setOrder('ASC'); |
||
172 | $criteria->setLimit($listingPaginationLimit); |
||
173 | $criteria->setStart($start); |
||
174 | $listingTempRows = $listingHandler->getCount(); |
||
175 | $listingTempArray = $listingHandler->getAll($criteria); |
||
176 | /* |
||
177 | // |
||
178 | // |
||
179 | <th class='center width5'>".AM_ADSLIGHT_FORM_ACTION."</th> |
||
180 | // </tr>"; |
||
181 | // $class = "odd"; |
||
182 | */ |
||
183 | |||
184 | // Display Page Navigation |
||
185 | if ($listingTempRows > $listingPaginationLimit) { |
||
186 | xoops_load('XoopsPageNav'); |
||
187 | |||
188 | $pagenav = new \XoopsPageNav( |
||
189 | $listingTempRows, |
||
190 | $listingPaginationLimit, |
||
191 | $start, |
||
192 | 'start', |
||
193 | 'op=list' . '&sort=' . $sort . '&order=' . $order |
||
194 | ); |
||
195 | $GLOBALS['xoopsTpl']->assign('pagenav', null !== $pagenav ? $pagenav->renderNav() : ''); |
||
196 | } |
||
197 | |||
198 | $GLOBALS['xoopsTpl']->assign('listingRows', $listingTempRows); |
||
199 | $listingArray = []; |
||
200 | |||
201 | // $fields = explode('|', lid:int: 15::NOT NULL::primary:ID:0|cid:int: 15::NOT NULL:0::Category:1|title:varchar: 100::NOT NULL:::Title:2|status:int: 3::NOT NULL:0::Status:3|expire:char: 3::NOT NULL:::Expire:4|type:varchar: 15::NOT NULL:::Type:5|desctext:text: ::NOT NULL:::Description:6|tel:varchar: 15::NOT NULL:::Phone:7|price:decimal: 20,2::NOT NULL:0.00::Price:8|typeprice:varchar: 15::NOT NULL:::PriceType:9|typecondition:varchar: 15::NOT NULL:::Condition:10|date_created:int: 11:UNSIGNED:NOT NULL:0::Created:11|email:varchar: 100::NOT NULL:::Email:12|submitter:varchar: 60::NOT NULL:::Submitter:13|usid:varchar: 6::NOT NULL:::Zip:14|town:varchar: 200::NOT NULL:::Town:15|country:varchar: 200::NOT NULL:::country:16|contactby:varchar: 50::NOT NULL:::Contactby:17|premium:char: 3::NOT NULL:::premium:18|valid:varchar: 11::NOT NULL:::Valid:19|photo:varchar: 100::NOT NULL:::Photo:20|hits:int: 11::NOT NULL: 0::Hits:21|item_rating:double:6,4::NOT NULL:0.0000::ItemRating:22|item_votes:int: 11::NOT NULL: 0::ItemVotes:23|user_rating:double:6,4::NOT NULL:0.0000::user_rating:24|user_votes:int: 11::NOT NULL: 0::user_votes:25|comments:int: 11::NOT NULL: 0::comments:26|remind:int: 11::NOT NULL: 0::remind:27); |
||
202 | // $fieldsCount = count($fields); |
||
203 | |||
204 | $criteria = new \CriteriaCompo(); |
||
205 | |||
206 | //$criteria->setOrder('DESC'); |
||
207 | $criteria->setSort($sort); |
||
208 | $criteria->setOrder($order); |
||
209 | $criteria->setLimit($listingPaginationLimit); |
||
210 | $criteria->setStart($start); |
||
211 | |||
212 | $listingCount = $listingHandler->getCount($criteria); |
||
213 | $listingTempArray = $listingHandler->getAll($criteria); |
||
214 | |||
215 | // for ($i = 0; $i < $fieldsCount; ++$i) { |
||
216 | if ($listingCount > 0) { |
||
217 | foreach (array_keys($listingTempArray) as $i) { |
||
218 | // $field = explode(':', $fields[$i]); |
||
219 | |||
220 | $GLOBALS['xoopsTpl']->assign('selectorlid', AM_ADSLIGHT_LISTING_LID); |
||
221 | $listingArray['lid'] = $listingTempArray[$i]->getVar('lid'); |
||
222 | |||
223 | $GLOBALS['xoopsTpl']->assign('selectorcid', AM_ADSLIGHT_LISTING_CID); |
||
224 | $listingArray['cid'] = $categoriesHandler->get($listingTempArray[$i]->getVar('cid'))->getVar('title'); |
||
225 | |||
226 | $GLOBALS['xoopsTpl']->assign('selectortitle', AM_ADSLIGHT_LISTING_TITLE); |
||
227 | $listingArray['title'] = $listingTempArray[$i]->getVar('title'); |
||
228 | |||
229 | $GLOBALS['xoopsTpl']->assign('selectorstatus', AM_ADSLIGHT_LISTING_STATUS); |
||
230 | $listingArray['status'] = $listingTempArray[$i]->getVar('status'); |
||
231 | |||
232 | $GLOBALS['xoopsTpl']->assign('selectorexpire', AM_ADSLIGHT_LISTING_EXPIRE); |
||
233 | $listingArray['expire'] = $listingTempArray[$i]->getVar('expire'); |
||
234 | |||
235 | $GLOBALS['xoopsTpl']->assign('selectortype', AM_ADSLIGHT_LISTING_TYPE); |
||
236 | $listingArray['type'] = $typeHandler->get($listingTempArray[$i]->getVar('type'))->getVar('nom_type'); |
||
237 | |||
238 | $GLOBALS['xoopsTpl']->assign('selectordesctext', AM_ADSLIGHT_LISTING_DESCTEXT); |
||
239 | $listingArray['desctext'] = $listingTempArray[$i]->getVar('desctext'); |
||
240 | |||
241 | $GLOBALS['xoopsTpl']->assign('selectortel', AM_ADSLIGHT_LISTING_TEL); |
||
242 | $listingArray['tel'] = $listingTempArray[$i]->getVar('tel'); |
||
243 | |||
244 | $GLOBALS['xoopsTpl']->assign('selectorprice', AM_ADSLIGHT_LISTING_PRICE); |
||
245 | $listingArray['price'] = $listingTempArray[$i]->getVar('price'); |
||
246 | |||
247 | $GLOBALS['xoopsTpl']->assign('selectortypeprice', AM_ADSLIGHT_LISTING_TYPEPRICE); |
||
248 | $listingArray['typeprice'] = $priceHandler->get($listingTempArray[$i]->getVar('typeprice'))->getVar('nom_price'); |
||
249 | |||
250 | $GLOBALS['xoopsTpl']->assign('selectortypecondition', AM_ADSLIGHT_LISTING_TYPECONDITION); |
||
251 | $listingArray['typecondition'] = $conditionHandler->get($listingTempArray[$i]->getVar('typecondition'))->getVar('nom_condition'); |
||
252 | |||
253 | $GLOBALS['xoopsTpl']->assign('selectordate_created', AM_ADSLIGHT_LISTING_DATE_CREATED); |
||
254 | $listingArray['date_created'] = formatTimestamp($listingTempArray[$i]->getVar('date_created'), 's'); |
||
255 | |||
256 | $GLOBALS['xoopsTpl']->assign('selectoremail', AM_ADSLIGHT_LISTING_EMAIL); |
||
257 | $listingArray['email'] = $listingTempArray[$i]->getVar('email'); |
||
258 | |||
259 | $GLOBALS['xoopsTpl']->assign('selectorsubmitter', AM_ADSLIGHT_LISTING_SUBMITTER); |
||
260 | $listingArray['submitter'] = $listingTempArray[$i]->getVar('submitter'); |
||
261 | |||
262 | $GLOBALS['xoopsTpl']->assign('selectorusid', AM_ADSLIGHT_LISTING_USID); |
||
263 | $listingArray['usid'] = $listingTempArray[$i]->getVar('usid'); |
||
264 | |||
265 | $GLOBALS['xoopsTpl']->assign('selectortown', AM_ADSLIGHT_LISTING_TOWN); |
||
266 | $listingArray['town'] = $listingTempArray[$i]->getVar('town'); |
||
267 | |||
268 | $GLOBALS['xoopsTpl']->assign('selectorcountry', AM_ADSLIGHT_LISTING_COUNTRY); |
||
269 | // $listingArray['country'] = strip_tags(\XoopsLists::getCountryList()[$listingTempArray[$i]->getVar('country')]); |
||
270 | $listingArray['country'] = $listingTempArray[$i]->getVar('country'); |
||
271 | |||
272 | $GLOBALS['xoopsTpl']->assign('selectorcontactby', AM_ADSLIGHT_LISTING_CONTACTBY); |
||
273 | $listingArray['contactby'] = $listingTempArray[$i]->getVar('contactby'); |
||
274 | |||
275 | $GLOBALS['xoopsTpl']->assign('selectorpremium', AM_ADSLIGHT_LISTING_PREMIUM); |
||
276 | $listingArray['premium'] = $listingTempArray[$i]->getVar('premium'); |
||
277 | |||
278 | $GLOBALS['xoopsTpl']->assign('selectorvalid', AM_ADSLIGHT_LISTING_VALID); |
||
279 | $listingArray['valid'] = $listingTempArray[$i]->getVar('valid'); |
||
280 | |||
281 | $GLOBALS['xoopsTpl']->assign('selectorphoto', AM_ADSLIGHT_LISTING_PHOTO); |
||
282 | // $listingArray['photo'] = "<img src='" . $uploadUrl . $listingTempArray[$i]->getVar('photo') . "' name='" . 'name' . "' id=" . 'id' . " alt='' style='max-width:100px'>"; |
||
283 | |||
284 | // pull the first picture |
||
285 | /** @var \XoopsPersistableObjectHandler $picturesHandler */ |
||
286 | $picturesHandler = $helper->getHandler('Pictures'); |
||
287 | $lid = $listingArray['lid']; |
||
288 | $uid = $listingArray['usid']; |
||
289 | $criteriaLid = new \Criteria('lid', $lid); |
||
290 | $criteriaUid = new \Criteria('uid', $uid); |
||
291 | $picturesObjectsArray = $picturesHandler->getObjects($criteriaLid, $criteriaUid); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
292 | // How many pictures are on the user album |
||
293 | $picturesCount = $picturesHandler->getCount($criteriaLid); |
||
294 | if ($picturesCount > 0) { |
||
295 | $photo1 = reset($picturesObjectsArray); |
||
296 | $photoName = $photo1->getVar('url'); |
||
297 | } |
||
298 | $photo = $photoName ?: 'blank.png'; |
||
299 | $listingArray['photo'] = "<img src='" . $uploadUrl . $photo . "' name='" . 'name' . "' id=" . 'id' . " alt='' style='max-width:100px'>"; |
||
300 | |||
301 | $GLOBALS['xoopsTpl']->assign('selectorhits', AM_ADSLIGHT_LISTING_HITS); |
||
302 | $listingArray['hits'] = $listingTempArray[$i]->getVar('hits'); |
||
303 | |||
304 | $GLOBALS['xoopsTpl']->assign('selectoritem_rating', AM_ADSLIGHT_LISTING_ITEM_RATING); |
||
305 | $listingArray['item_rating'] = $listingTempArray[$i]->getVar('item_rating'); |
||
306 | |||
307 | $GLOBALS['xoopsTpl']->assign('selectoritem_votes', AM_ADSLIGHT_LISTING_ITEM_VOTES); |
||
308 | $listingArray['item_votes'] = $listingTempArray[$i]->getVar('item_votes'); |
||
309 | |||
310 | $GLOBALS['xoopsTpl']->assign('selectoruser_rating', AM_ADSLIGHT_LISTING_USER_RATING); |
||
311 | $listingArray['user_rating'] = $listingTempArray[$i]->getVar('user_rating'); |
||
312 | |||
313 | $GLOBALS['xoopsTpl']->assign('selectoruser_votes', AM_ADSLIGHT_LISTING_USER_VOTES); |
||
314 | $listingArray['user_votes'] = $listingTempArray[$i]->getVar('user_votes'); |
||
315 | |||
316 | $GLOBALS['xoopsTpl']->assign('selectorcomments', AM_ADSLIGHT_LISTING_COMMENTS); |
||
317 | $listingArray['comments'] = $listingTempArray[$i]->getVar('comments'); |
||
318 | |||
319 | $GLOBALS['xoopsTpl']->assign('selectorremind', AM_ADSLIGHT_LISTING_REMIND); |
||
320 | $listingArray['remind'] = $listingTempArray[$i]->getVar('remind'); |
||
321 | $listingArray['edit_delete'] = "<a href='listing.php?op=edit&lid=" . $i . "'><img src=" . $pathIcon16 . "/edit.png alt='" . _EDIT . "' title='" . _EDIT . "'></a> |
||
322 | <a href='listing.php?op=delete&lid=" . $i . "'><img src=" . $pathIcon16 . "/delete.png alt='" . _DELETE . "' title='" . _DELETE . "'></a> |
||
323 | <a href='listing.php?op=clone&lid=" . $i . "'><img src=" . $pathIcon16 . "/editcopy.png alt='" . _CLONE . "' title='" . _CLONE . "'></a>"; |
||
324 | |||
325 | $GLOBALS['xoopsTpl']->appendByRef('listingArrays', $listingArray); |
||
326 | unset($listingArray); |
||
327 | } |
||
328 | unset($listingTempArray); |
||
329 | // Display Navigation |
||
330 | if ($listingCount > $listingPaginationLimit) { |
||
331 | xoops_load('XoopsPageNav'); |
||
332 | $pagenav = new \XoopsPageNav( |
||
333 | $listingCount, |
||
334 | $listingPaginationLimit, |
||
335 | $start, |
||
336 | 'start', |
||
337 | 'op=list' . '&sort=' . $sort . '&order=' . $order |
||
338 | ); |
||
339 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
||
340 | } |
||
341 | |||
342 | // echo "<td class='center width5'> |
||
343 | |||
344 | // <a href='listing.php?op=edit&lid=".$i."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> |
||
345 | // <a href='listing.php?op=delete&lid=".$i."'><img src=".$pathIcon16."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> |
||
346 | // </td>"; |
||
347 | |||
348 | // echo "</tr>"; |
||
349 | |||
350 | // } |
||
351 | |||
352 | // echo "</table><br><br>"; |
||
353 | |||
354 | // } else { |
||
355 | |||
356 | // echo "<table width='100%' cellspacing='1' class='outer'> |
||
357 | |||
358 | // <tr> |
||
359 | |||
360 | // <th class='center width5'>".AM_ADSLIGHT_FORM_ACTION."XXX</th> |
||
361 | // </tr><tr><td class='errorMsg' colspan='29'>There are noXXX listing</td></tr>"; |
||
362 | // echo "</table><br><br>"; |
||
363 | |||
364 | //------------------------------------------- |
||
365 | |||
366 | echo $GLOBALS['xoopsTpl']->fetch( |
||
367 | XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/templates/admin/adslight_admin_listing.tpl' |
||
368 | ); |
||
369 | } |
||
370 | |||
371 | break; |
||
372 | } |
||
373 | |||
374 | require __DIR__ . '/admin_footer.php'; |
||
375 |