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.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | // $Id: viewcat.php 11819 2013-07-09 18:21:40Z zyspec $ |
||
3 | // ------------------------------------------------------------------------ // |
||
4 | // XOOPS - PHP Content Management System // |
||
5 | // Copyright (c) 2000 XOOPS.org // |
||
6 | // <http://www.xoops.org/> // |
||
7 | // ------------------------------------------------------------------------- // |
||
8 | // This program is free software; you can redistribute it and/or modify // |
||
9 | // it under the terms of the GNU General Public License as published by // |
||
10 | // the Free Software Foundation; either version 2 of the License, or // |
||
11 | // (at your option) any later version. // |
||
12 | // // |
||
13 | // You may not change or alter any portion of this comment or credits // |
||
14 | // of supporting developers from this source code or any supporting // |
||
15 | // source code which is considered copyrighted (c) material of the // |
||
16 | // original comment or credit authors. // |
||
17 | // // |
||
18 | // This program is distributed in the hope that it will be useful, // |
||
19 | // but WITHOUT ANY WARRANTY; without even the implied warranty of // |
||
20 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // |
||
21 | // GNU General Public License for more details. // |
||
22 | // // |
||
23 | // You should have received a copy of the GNU General Public License // |
||
24 | // along with this program; if not, write to the Free Software // |
||
25 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // |
||
26 | // ------------------------------------------------------------------------ // |
||
27 | include __DIR__ . '/header.php'; |
||
28 | $myts = MyTextSanitizer::getInstance(); // MyTextSanitizer object |
||
29 | |||
30 | include_once XOOPS_ROOT_PATH . '/class/tree.php'; |
||
31 | $mylinksCatHandler = xoops_getModuleHandler('category', $xoopsModule->getVar('dirname')); |
||
32 | $catObjs = $mylinksCatHandler->getAll(); |
||
33 | $myCatTree = new XoopsObjectTree($catObjs, 'cid', 'pid'); |
||
34 | |||
35 | include_once __DIR__ . '/class/utility.php'; |
||
36 | //xoops_load('utility', $xoopsModule->getVar('dirname')); |
||
37 | |||
38 | $cid = MylinksUtility::mylinks_cleanVars($_GET, 'cid', 0, 'int', array('min' => 0)); |
||
0 ignored issues
–
show
|
|||
39 | $catid = $cid; |
||
40 | |||
41 | $xoopsOption['template_main'] = 'mylinks_viewcat.tpl'; |
||
42 | include XOOPS_ROOT_PATH . '/header.php'; |
||
43 | |||
44 | //wanikoo |
||
45 | $xoTheme->addStylesheet('browse.php?' . mylinksGetStylePath('mylinks.css', 'include')); |
||
46 | $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); |
||
47 | $xoTheme->addScript('browse.php?' . mylinksGetStylePath('mylinks.js', 'include')); |
||
48 | // |
||
49 | $xoopsTpl->assign('show_nav', false); //set to not show nav bar |
||
50 | |||
51 | $show = MylinksUtility::mylinks_cleanVars($_GET, 'show', $xoopsModuleConfig['perpage'], 'int'); |
||
0 ignored issues
–
show
'show' is of type string , but the function expects a object<unknown_type> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
![]() |
|||
52 | $min = MylinksUtility::mylinks_cleanVars($_GET, 'min', 0, 'int'); |
||
0 ignored issues
–
show
'min' is of type string , but the function expects a object<unknown_type> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
![]() |
|||
53 | $max = (!isset($max)) ? $min + $show : $max; |
||
54 | //$orderby = MylinksUtility::mylinks_cleanVars($_GET, 'orderby', 'title ASC', 'string'); |
||
55 | $orderby = MylinksUtility::mylinks_cleanVars($_GET, 'orderby', 'titleA', 'string'); |
||
0 ignored issues
–
show
'orderby' is of type string , but the function expects a object<unknown_type> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
![]() |
|||
56 | $validSortVals = array('titleA', 'hitsA', 'ratingA', 'dateA', 'titleD', 'hitsD', 'ratingD', 'dateD'); |
||
57 | $orderby = in_array($orderby, $validSortVals) ? $orderby : 'titleA'; |
||
58 | |||
59 | // list |
||
60 | //TODO: need to sanitize $_GET['list'] |
||
61 | if (!isset($_GET['list'])) { |
||
62 | //wanikoo |
||
63 | $catObj = $mylinksCatHandler->get($cid); |
||
64 | $imgurl = ''; |
||
65 | if (is_object($catObj) && !empty($catObj)) { |
||
66 | $thisCatTitle = $myts->htmlSpecialChars($catObj->getVar('title')); |
||
67 | View Code Duplication | if ($catObj->getVar('imgurl') |
|
68 | && (($catObj->getVar('imgurl') != 'http://') |
||
69 | && ($catObj->getVar('imgurl') != '')) |
||
70 | ) { |
||
71 | $imgurl = $myts->htmlSpecialChars($catObj->getVar('imgurl')); |
||
72 | } |
||
73 | } else { |
||
74 | $thisCatTitle = ''; |
||
75 | } |
||
76 | $thisPageTitle = $thisCatTitle; |
||
77 | $xoopsTpl->assign('thiscategorytitle', $thisCatTitle); |
||
78 | $xoopsTpl->assign('moremetasearch', ''); |
||
79 | /* |
||
80 | if (file_exists(XOOPS_ROOT_PATH."/include/moremetasearch.php")&&$mylinks_show_externalsearch) { |
||
81 | include_once XOOPS_ROOT_PATH."/include/moremetasearch.php"; |
||
82 | $_REQUEST['query']= $thisCatTitle; |
||
83 | $engineblocktitle = _MD_MYLINKS_EXTERNALSEARCH; |
||
84 | $engineblocktitle .= sprintf(_MD_MYLINKS_EXTERNALSEARCH_KEYWORD, _MD_MYLINKS_CATEGORY, $thisCatTitle); |
||
85 | $location_list=moremeta("meta_page","on"); |
||
86 | $metaresult = more_meta_page($location_list, $target="_blank", $display = false, $engineblocktitle); |
||
87 | $xoopsTpl->assign('moremetasearch', "<br><br>".$metaresult); |
||
88 | } else { |
||
89 | $xoopsTpl->assign('moremetasearch', ''); |
||
90 | } |
||
91 | */ |
||
92 | //feed |
||
93 | $xoopsTpl->assign('category_id', $cid); |
||
94 | $xoopsTpl->assign('lang_categoryfeed', _MD_MYLINKS_FEED_CAT); |
||
95 | |||
96 | //$thisCatObj = $mylinksCatHandler->get($cid); |
||
97 | $homePath = "<a href='" . XOOPSMYLINKURL . "/index.php'>" . _MD_MYLINKS_MAIN . '</a> : '; |
||
98 | $itemPath = $catObj->getVar('title'); |
||
99 | $path = ''; |
||
100 | $myParent = $catObj->getVar('pid'); |
||
101 | View Code Duplication | while ($myParent != 0) { |
|
102 | $ancestorObj = $myCatTree->getByKey($myParent); |
||
103 | $path = "<a href='" . XOOPSMYLINKURL . '/viewcat.php?cid=' . $ancestorObj->getVar('cid') . "'>" . $ancestorObj->getVar('title') . "</a> : {$path}"; |
||
104 | $myParent = $ancestorObj->getVar('pid'); |
||
105 | } |
||
106 | |||
107 | $path = "{$homePath}{$path}{$itemPath}"; |
||
108 | $path = str_replace(' : ', " <img src='" . mylinksGetIconURL('arrow.gif') . "' style='border-width: 0px;' alt=''> ", $path); |
||
109 | |||
110 | $xoopsTpl->assign('category_path', $path); |
||
111 | $xoopsTpl->assign('category_id', $cid); |
||
112 | |||
113 | $subCatLimit = 5; |
||
114 | |||
115 | // get all the subcats for this category |
||
116 | $subCatObjs = $myCatTree->getFirstChild($cid); |
||
117 | |||
118 | $count = 1; |
||
119 | foreach ($subCatObjs as $subCatObj) { |
||
120 | // get 3rd level cats |
||
121 | $gchildCatObjs = $myCatTree->getFirstChild($subCatObj->getVar('cid')); |
||
122 | $gchildCategories = ''; |
||
123 | $subCatCount = count($gchildCatObjs); |
||
124 | $lpLimit = min(array($subCatLimit, $subCatCount)); |
||
125 | $i = 0; |
||
126 | foreach ($gchildCatObjs as $gchildCatObj) { |
||
127 | $gchtitle = $myts->htmlSpecialChars($gchildCatObj->getVar('title')); |
||
128 | $gchildCategories .= ($i > 0) ? ', ' : ''; |
||
129 | $gchildCategories .= "<a href='" . XOOPSMYLINKURL . '/viewcat.php?cid=' . $gchildCatObj->getVar('cid') . "'>{$gchtitle}</a>"; |
||
130 | if ($i < $lpLimit) { |
||
131 | $i++; |
||
132 | } else { |
||
133 | break; |
||
134 | } |
||
135 | } |
||
136 | $gchildCategories = ($subCatCount > $subCatLimit) ? $gchildCategories . '...' : $gchildCategories; |
||
137 | $totalLinks = getTotalItems($subCatObj->getVar('cid'), 0, '>'); |
||
138 | $xoopsTpl->append('subcategories', array( |
||
139 | 'image' => '', |
||
140 | 'id' => $subCatObj->getVar('cid'), |
||
141 | 'title' => $myts->htmlSpecialChars($subCatObj->getVar('title')), |
||
142 | 'infercategories' => $gchildCategories, |
||
143 | 'totallinks' => $totalLinks, |
||
144 | 'count' => $count |
||
145 | )); |
||
146 | $count++; |
||
147 | } |
||
148 | |||
149 | $LinkCountResult = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_links') . " WHERE cid='{$cid}' AND status>0"); |
||
150 | } else { |
||
151 | $list = $_GET['list']; |
||
152 | // $orderby = "title ASC"; |
||
153 | $orderby = 'titleA'; |
||
154 | |||
155 | $xoopsTpl->assign('list_mode', true); |
||
156 | //TODO: need to filter $_GET['list'] input var |
||
157 | $categoryPath = sprintf(_MD_MYLINKS_LINKS_LIST, $myts->htmlSpecialChars($list)); |
||
158 | $thisPageTitle = $categoryPath; |
||
159 | $xoopsTpl->assign('category_path', $categoryPath); |
||
160 | |||
161 | $LinkCountResult = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_links') . " WHERE title LIKE '" . $myts->addSlashes($_GET['list']) . "%' AND status>0"); |
||
162 | } |
||
163 | $useShots = $xoopsModuleConfig['useshots']; |
||
164 | View Code Duplication | if (1 == $useShots) { |
|
165 | $shotWidth = $xoopsModuleConfig['shotwidth']; |
||
166 | $xoopsTpl->assign(array( |
||
167 | 'shotwidth' => $shotWidth . 'px', |
||
168 | // 'tablewidth' => ($shotWidth + 10) . "px", |
||
169 | 'show_screenshot' => true, |
||
170 | 'lang_noscreenshot' => _MD_MYLINKS_NOSHOTS |
||
171 | )); |
||
172 | } else { |
||
173 | $xoopsTpl->assign('show_screenshot', false); |
||
174 | } |
||
175 | |||
176 | $xoopsTpl->assign('anontellafriend', $GLOBALS['xoopsModuleConfig']['anontellafriend']); |
||
177 | |||
178 | $page_nav = ''; |
||
179 | list($numrows) = $xoopsDB->fetchRow($LinkCountResult); |
||
180 | |||
181 | if ($numrows > 0) { |
||
182 | $xoopsTpl->assign(array( |
||
183 | 'lang_description' => _MD_MYLINKS_DESCRIPTIONC, |
||
184 | 'lang_lastupdate' => _MD_MYLINKS_LASTUPDATEC, |
||
185 | 'lang_hits' => _MD_MYLINKS_HITSC, |
||
186 | 'lang_rating' => _MD_MYLINKS_RATINGC, |
||
187 | 'lang_ratethissite' => _MD_MYLINKS_RATETHISSITE, |
||
188 | 'lang_reportbroken' => _MD_MYLINKS_REPORTBROKEN, |
||
189 | 'lang_tellafriend' => _MD_MYLINKS_TELLAFRIEND, |
||
190 | 'lang_modify' => _MD_MYLINKS_MODIFY, |
||
191 | 'lang_category' => _MD_MYLINKS_CATEGORYC, |
||
192 | 'lang_visit' => _MD_MYLINKS_VISIT, |
||
193 | 'show_links' => true, |
||
194 | 'lang_comments' => _COMMENTS |
||
195 | )); |
||
196 | |||
197 | //if 2 or more items in result, show the sort menu |
||
198 | if ($numrows > 1) { |
||
199 | $xoopsTpl->assign(array( |
||
200 | 'show_nav' => true, |
||
201 | 'lang_sortby' => _MD_MYLINKS_SORTBY, |
||
202 | 'lang_title' => _MD_MYLINKS_TITLE, |
||
203 | 'lang_date' => _MD_MYLINKS_DATE, |
||
204 | 'lang_rating' => _MD_MYLINKS_RATING, |
||
205 | 'lang_popularity' => _MD_MYLINKS_POPULARITY, |
||
206 | 'lang_cursortedby' => sprintf(_MD_MYLINKS_CURSORTEDBY, convertorderbytrans(convertorderbyin($orderby))) |
||
207 | )); |
||
208 | } |
||
209 | |||
210 | if (!isset($_GET['list'])) { |
||
211 | $sql = 'SELECT l.lid, l.cid, l.title, l.url, l.logourl, l.status, l.date, l.hits, l.rating, l.votes, l.comments, t.description FROM ' . $xoopsDB->prefix('mylinks_links') . ' l, ' . $xoopsDB->prefix('mylinks_text') . ' t ' . "WHERE cid='{$cid}' AND l.lid=t.lid AND status>0 " . 'ORDER BY ' |
||
212 | . convertorderbyin($orderby) . ''; |
||
213 | } else { |
||
214 | $sql = 'SELECT l.lid, l.cid, l.title, l.url, l.logourl, l.status, l.date, l.hits, l.rating, l.votes, l.comments, t.description FROM ' . $xoopsDB->prefix('mylinks_links') . ' l, ' . $xoopsDB->prefix('mylinks_text') . ' t ' . "WHERE l.title LIKE '" . $myts->addSlashes($_GET['list']) |
||
215 | . "%' AND l.lid=t.lid AND status>0 " . 'ORDER BY ' . convertorderbyin($orderby) . ''; |
||
216 | } |
||
217 | $shotAttribution = ''; |
||
218 | $result = $xoopsDB->query($sql, $show, $min); |
||
219 | while (list($lid, $cid, $ltitle, $url, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description) = $xoopsDB->fetchRow($result)) { |
||
220 | View Code Duplication | if (!empty($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
221 | $isadmin = true; |
||
222 | $adminlink = "<a href='" . XOOPSMYLINKURL . "/admin/main.php?op=modLink&lid={$lid}'><img src='" . mylinksGetIconURL('edit.png') . "' style='border-width: 0px;' alt='" . _MD_MYLINKS_EDITTHISLINK . "'></a>"; |
||
223 | } else { |
||
224 | $isadmin = false; |
||
225 | $adminlink = ''; |
||
226 | } |
||
227 | $votestring = (1 == $votes) ? _MD_MYLINKS_ONEVOTE : sprintf(_MD_MYLINKS_NUMVOTES, $votes); |
||
228 | $thisCatObj = $mylinksCatHandler->get($cid); |
||
229 | $homePath = "<a href='" . XOOPSMYLINKURL . "/index.php'>" . _MD_MYLINKS_MAIN . '</a> : '; |
||
230 | $itemPath = $thisCatObj->getVar('title'); |
||
231 | $path = ''; |
||
232 | $myParent = $thisCatObj->getVar('pid'); |
||
233 | View Code Duplication | while ($myParent != 0) { |
|
234 | $ancestorObj = $myCatTree->getByKey($myParent); |
||
235 | $path = "<a href='" . XOOPSMYLINKURL . '/viewcat.php?cid=' . $ancestorObj->getVar('cid') . "'>" . $ancestorObj->getVar('title') . "</a> : {$path}"; |
||
236 | $myParent = $ancestorObj->getVar('pid'); |
||
237 | } |
||
238 | |||
239 | $path = "{$homePath}{$path}{$itemPath}"; |
||
240 | $path = str_replace(' : ', " <img src='" . mylinksGetIconURL('arrow.gif') . "' style='border-width: 0px;' alt=''> ", $path); |
||
241 | $new = newlinkgraphic($time, $status); |
||
242 | $pop = popgraphic($hits); |
||
243 | //by wanikoo |
||
244 | /* setup shot provider information */ |
||
245 | $shotImgSrc = $shotImgHref = ''; |
||
246 | View Code Duplication | if ($useShots) { |
|
247 | $shotProvider = mb_strtolower($xoopsModuleConfig['shotprovider']); |
||
248 | $shotImgHref = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . "/visit.php?cid={$cid}&lid={$lid}"; |
||
249 | $logourl = trim($logourl); |
||
250 | if (!empty($logourl)) { |
||
251 | if (file_exists(XOOPSMYLINKIMGPATH . "/{$mylinks_theme}")) { |
||
252 | $shotImgSrc = XOOPSMYLINKIMGURL . "/{$mylinks_theme}/shots/" . $myts->htmlSpecialChars($logourl); |
||
253 | } else { |
||
254 | $shotImgSrc = XOOPSMYLINKIMGURL . '/shots/' . $myts->htmlSpecialChars($logourl); |
||
255 | } |
||
256 | } elseif (_NONE != $shotProvider) { |
||
257 | if (file_exists(XOOPS_ROOT_PATH . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $xoopsModule->getVar('dirname') . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'providers' . DIRECTORY_SEPARATOR . mb_strtolower($shotProvider) . '.php')) { |
||
258 | include_once XOOPS_ROOT_PATH . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $xoopsModule->getVar('dirname') . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'providers' . DIRECTORY_SEPARATOR . mb_strtolower($shotProvider) . '.php'; |
||
259 | $shotClass = ucfirst($xoopsModule->getVar('dirname')) . ucfirst($shotProvider); |
||
260 | $shotObj = new $shotClass; |
||
261 | $shotObj->setProviderPublicKey($xoopsModuleConfig['shotpubkey']); |
||
262 | $shotObj->setProviderPrivateKey($xoopsModuleConfig['shotprivkey']); |
||
263 | $shotObj->setShotSize(array('width' => $xoopsModuleConfig['shotwidth'])); |
||
264 | $shotObj->setSiteUrl($myts->htmlSpecialChars($url)); |
||
265 | $shotImgSrc = $shotObj->getProviderUrl(); |
||
266 | if ($xoopsModuleConfig['shotattribution']) { |
||
267 | if ('' == $shotAttribution) { |
||
268 | $shotAttribution = $shotObj->getAttribution(true); |
||
269 | } |
||
270 | } else { |
||
271 | $shotAttribution = ''; |
||
272 | } |
||
273 | } |
||
274 | } |
||
275 | } |
||
276 | $xoopsTpl->assign('shot_attribution', $shotAttribution); |
||
277 | $xoopsTpl->append('links', array( |
||
278 | 'url' => $myts->htmlSpecialChars($url), |
||
279 | 'id' => $lid, |
||
280 | 'cid' => $cid, |
||
281 | 'rating' => number_format($rating, 2), |
||
282 | 'ltitle' => $myts->htmlSpecialChars($myts->stripSlashesGPC($ltitle)), |
||
283 | 'title' => $myts->htmlSpecialChars($myts->stripSlashesGPC($ltitle)) . $new . $pop, |
||
284 | 'category' => $path, |
||
285 | 'logourl' => $myts->htmlSpecialChars(trim($logourl)), |
||
286 | 'updated' => formatTimestamp($time, 'm'), |
||
287 | 'description' => $myts->displayTarea($myts->stripSlashesGPC($description), 0), |
||
288 | 'adminlink' => $adminlink, |
||
289 | 'hits' => $hits, |
||
290 | 'comments' => $comments, |
||
291 | 'votes' => $votestring, |
||
292 | 'mail_subject' => rawurlencode(sprintf(_MD_MYLINKS_INTRESTLINK, $xoopsConfig['sitename'])), |
||
293 | 'mail_body' => rawurlencode(sprintf(_MD_MYLINKS_INTLINKFOUND, $xoopsConfig['sitename']) . ': ' . XOOPSMYLINKURL . '/singlelink.php?cid=' . $cid . '&lid=' . $lid), |
||
294 | 'shot_img_src' => $shotImgSrc, |
||
295 | 'shot_img_href' => $shotImgHref |
||
296 | )); |
||
297 | } |
||
298 | // $orderby = convertorderbyout($orderby); |
||
299 | // for navi in case of list |
||
300 | $cid = $catid; |
||
301 | // new navi |
||
302 | include_once XOOPSMYLINKPATH . '/class/mylinkspagenav.php'; |
||
303 | if (!isset($_GET['list'])) { |
||
304 | $mylinksnav = new MylinksPageNav($numrows, $show, $min, 'min', "cid={$cid}&orderby={$orderby}&show={$show}"); |
||
305 | } else { |
||
306 | $mylinksnav = new MylinksPageNav($numrows, $show, $min, 'min', "list={$list}&orderby={$orderby}&show={$show}"); |
||
307 | } |
||
308 | $page_nav = $mylinksnav->renderNav($offset = 5); |
||
309 | } else { |
||
310 | $xoopsTpl->assign('show_links', false); |
||
311 | } |
||
312 | $xoopsTpl->assign('page_nav', $page_nav); |
||
313 | |||
314 | //wanikoo theme changer |
||
315 | $xoopsTpl->assign('lang_themechanger', _MD_MYLINKS_THEMECHANGER); |
||
316 | $mymylinkstheme_options = ''; |
||
317 | |||
318 | View Code Duplication | foreach ($GLOBALS['mylinks_allowed_theme'] as $mymylinkstheme) { |
|
319 | $mymylinkstheme_options .= "<option value='{$mymylinkstheme}'"; |
||
320 | if ($mymylinkstheme == $GLOBALS['mylinks_theme']) { |
||
321 | $mymylinkstheme_options .= " selected='selected'"; |
||
322 | } |
||
323 | $mymylinkstheme_options .= ">{$mymylinkstheme}</option>"; |
||
324 | } |
||
325 | |||
326 | $mylinkstheme_select = "<select name='mylinks_theme_select' onchange='submit();' size='1'>{$mymylinkstheme_options}</select>"; |
||
327 | |||
328 | $xoopsTpl->assign('mylinksthemeoption', $mylinkstheme_select); |
||
329 | //wanikoo end |
||
330 | |||
331 | //wanikoo search |
||
332 | View Code Duplication | if (file_exists(XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/search.php')) { |
|
333 | include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/search.php'; |
||
334 | } else { |
||
335 | include_once XOOPS_ROOT_PATH . '/language/english/search.php'; |
||
336 | } |
||
337 | $xoopsTpl->assign('lang_all', _SR_ALL); |
||
338 | $xoopsTpl->assign('lang_any', _SR_ANY); |
||
339 | $xoopsTpl->assign('lang_exact', _SR_EXACT); |
||
340 | $xoopsTpl->assign('lang_search', _SR_SEARCH); |
||
341 | $xoopsTpl->assign('module_id', $xoopsModule->getVar('mid')); |
||
342 | //category head |
||
343 | $catarray = array(); |
||
344 | if ($mylinks_show_letters) { |
||
345 | $catarray['letters'] = ml_wfd_letters(); |
||
346 | } |
||
347 | if ($mylinks_show_toolbar) { |
||
348 | $catarray['toolbar'] = ml_wfd_toolbar(); |
||
349 | } |
||
350 | $xoopsTpl->assign('catarray', $catarray); |
||
351 | //pagetitle (module name - category) |
||
352 | $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' - ' . $thisPageTitle); |
||
353 | //category jump box |
||
354 | $catjumpbox = "<form name='catjumpbox' method='get' action='viewcat.php'>\n" . ' <strong>' . _MD_MYLINKS_CATEGORYC . "</strong> \n" . ' ' . $myCatTree->makeSelBox('cid', 'title', ' - ', $cid) . "\n" . " <input type='submit' value='" . _SUBMIT . "'>\n</form>\n"; |
||
355 | $xoopsTpl->assign('mylinksjumpbox', $catjumpbox); |
||
356 | |||
357 | include_once XOOPSMYLINKPATH . '/footer.php'; |
||
358 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: