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: footer.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 | |||
28 | defined('XOOPS_ROOT_PATH') or die('Restricted access'); |
||
29 | |||
30 | if (is_object($xoopsTpl) && ($mylinks_right_wide_theme === true)) { |
||
31 | $xoopsTpl->assign('xoops_showrblock', 0); |
||
32 | } elseif (is_object($xoopsTpl) && ($mylinks_left_wide_theme === true)) { |
||
33 | $xoopsTpl->assign('xoops_showlblock', 0); |
||
34 | } elseif (is_object($xoopsTpl) && ($mylinks_both_wide_theme === true)) { |
||
35 | $xoopsTpl->assign('xoops_showrblock', 0); |
||
36 | $xoopsTpl->assign('xoops_showlblock', 0); |
||
37 | } |
||
38 | |||
39 | //wanikoo |
||
40 | $xoopsTpl->assign('mylinksshowsiteinfo', $mylinks_show_siteinfo); |
||
41 | $xoopsTpl->assign('mylinksshowextrafunc', $mylinks_show_extrafunc); |
||
42 | $xoopsTpl->assign('mylinksshowextrafuncbig', $mylinks_show_extrafunc_big); |
||
43 | $xoopsTpl->assign('mylinksshowsearch', $mylinks_show_search); |
||
44 | $xoopsTpl->assign('mylinksshowlogo', $mylinks_show_logo); |
||
45 | $xoopsTpl->assign('mylinkslogoimage', $logoimage); |
||
46 | $xoopsTpl->assign('mylinksadcodes', $mylinks_adcodes); |
||
47 | $xoopsTpl->assign('mylinksshowfeed', $mylinks_show_feed); |
||
48 | $xoopsTpl->assign('mylinksshowthemechanger', $mylinks_show_themechanger); |
||
49 | |||
50 | //wanikoo |
||
51 | $can_print = _MD_MYLINKS_DISALLOW; |
||
52 | $can_pdf = _MD_MYLINKS_DISALLOW; |
||
53 | $can_qrcode = _MD_MYLINKS_DISALLOW; |
||
54 | $can_bookmark = _MD_MYLINKS_DISALLOW; |
||
55 | |||
56 | //print func |
||
57 | View Code Duplication | switch ($mylinks_can_print) { |
|
0 ignored issues
–
show
|
|||
58 | case _MD_MYLINKS_MEMBERONLY: |
||
59 | $can_print = $xoopsUser ? _MD_MYLINKS_ALLOW : _MD_MYLINKS_DISALLOW; |
||
60 | break; |
||
61 | case _MD_MYLINKS_ALLOW: |
||
62 | $can_print = _MD_MYLINKS_ALLOW; |
||
63 | break; |
||
64 | case _MD_MYLINKS_DISALLOW: |
||
65 | default: |
||
66 | $can_print = _MD_MYLINKS_DISALLOW; |
||
67 | break; |
||
68 | } |
||
69 | |||
70 | if (_MD_MYLINKS_DISALLOW == $can_print) { |
||
71 | $xoopsTpl->assign('mylinksextrafuncprint', false); |
||
72 | } else { |
||
73 | $xoopsTpl->assign('mylinksextrafuncprint', true); |
||
74 | } |
||
75 | |||
76 | //pdf function |
||
77 | View Code Duplication | switch ($mylinks_can_pdf) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
78 | case _MD_MYLINKS_MEMBERONLY: |
||
79 | $can_pdf = $xoopsUser ? _MD_MYLINKS_ALLOW : _MD_MYLINKS_DISALLOW; |
||
80 | break; |
||
81 | case _MD_MYLINKS_ALLOW: |
||
82 | $can_pdf = _MD_MYLINKS_ALLOW; |
||
83 | break; |
||
84 | case _MD_MYLINKS_DISALLOW: |
||
85 | default: |
||
86 | $can_pdf = _MD_MYLINKS_DISALLOW; |
||
87 | break; |
||
88 | } |
||
89 | if (_MD_MYLINKS_DISALLOW == $can_pdf) { |
||
90 | $xoopsTpl->assign('mylinksextrafuncpdf', false); |
||
91 | } else { |
||
92 | $xoopsTpl->assign('mylinksextrafuncpdf', true); |
||
93 | } |
||
94 | |||
95 | //qrcode func |
||
96 | View Code Duplication | switch ($mylinks_can_qrcode) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
97 | case _MD_MYLINKS_MEMBERONLY: |
||
98 | $can_qrcode = $xoopsUser ? _MD_MYLINKS_ALLOW : _MD_MYLINKS_DISALLOW; |
||
99 | break; |
||
100 | case _MD_MYLINKS_ALLOW: |
||
101 | $can_qrcode = _MD_MYLINKS_ALLOW; |
||
102 | break; |
||
103 | case _MD_MYLINKS_DISALLOW: |
||
104 | default: |
||
105 | $can_qrcode = _MD_MYLINKS_DISALLOW; |
||
106 | break; |
||
107 | } |
||
108 | if (_MD_MYLINKS_DISALLOW == $can_qrcode) { |
||
109 | $xoopsTpl->assign('mylinksextrafuncqrcode', false); |
||
110 | } else { |
||
111 | $xoopsTpl->assign('mylinksextrafuncqrcode', true); |
||
112 | } |
||
113 | |||
114 | //ver3.0 bookmark |
||
115 | //bookmark func |
||
116 | View Code Duplication | switch ($mylinks_can_bookmark) { |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
117 | case _MD_MYLINKS_MEMBERONLY: |
||
118 | $can_bookmark = $xoopsUser ? _MD_MYLINKS_ALLOW : _MD_MYLINKS_DISALLOW; |
||
119 | break; |
||
120 | case _MD_MYLINKS_ALLOW: |
||
121 | $can_bookmark = _MD_MYLINKS_ALLOW; |
||
122 | break; |
||
123 | case _MD_MYLINKS_DISALLOW: |
||
124 | default: |
||
125 | $can_bookmark = _MD_MYLINKS_DISALLOW; |
||
126 | break; |
||
127 | } |
||
128 | if (_MD_MYLINKS_DISALLOW == $can_bookmark) { |
||
129 | $xoopsTpl->assign('mylinksextrafuncbookmark', false); |
||
130 | } else { |
||
131 | $xoopsTpl->assign('mylinksextrafuncbookmark', true); |
||
132 | } |
||
133 | //ver 3.11 |
||
134 | $xoopsTpl->assign('mylinks_shotprovider', $mylinks_shot_provider); |
||
135 | |||
136 | //ver3.0 |
||
137 | $xoopsTpl->assign('lang_fullview', _MD_MYLINKS_FULLVIEW); |
||
138 | $xoopsTpl->assign('lang_print', _MD_MYLINKS_MAKE_PRINT); |
||
139 | $xoopsTpl->assign('lang_pdf', _MD_MYLINKS_MAKE_PDF); |
||
140 | $xoopsTpl->assign('lang_qrcode', _MD_MYLINKS_MAKE_QRCODE); |
||
141 | $xoopsTpl->assign('lang_bookmark', _MD_MYLINKS_BOOKMARK); |
||
142 | $xoopsTpl->assign('lang_feedsubscript', _MD_MYLINKS_FEEDSUBSCRIPT); |
||
143 | $xoopsTpl->assign('lang_feedsubscript_desc', _MD_MYLINKS_FEEDSUBSCRIPT_DESC); |
||
144 | $xoopsTpl->assign('lang_minimizeblock', _MD_MYLINKS_MINIMIZEBLOCK); |
||
145 | $xoopsTpl->assign('lang_restoreblock', _MD_MYLINKS_RESTOREBLOCK); |
||
146 | $xoopsTpl->assign('lang_gototop', _MD_MYLINKS_GOTOTOP); |
||
147 | $xoopsTpl->assign('lang_gotobottom', _MD_MYLINKS_GOTOBOTTOM); |
||
148 | $xoopsTpl->assign('lang_rssfeed', _MD_MYLINKS_RSSFEED); |
||
149 | $xoopsTpl->assign('lang_atomfeed', _MD_MYLINKS_ATOMFEED); |
||
150 | $xoopsTpl->assign('lang_pdafeed', _MD_MYLINKS_PDAFEED); |
||
151 | $xoopsTpl->assign('lang_rssfeed_cat', _MD_MYLINKS_RSSFEED_CAT); |
||
152 | $xoopsTpl->assign('lang_atomfeed_cat', _MD_MYLINKS_ATOMFEED_CAT); |
||
153 | $xoopsTpl->assign('lang_pdafeed_cat', _MD_MYLINKS_PDAFEED_CAT); |
||
154 | |||
155 | //ver2.5 |
||
156 | $xoopsTpl->assign('mylinks_weburl', XOOPSMYLINKURL); |
||
157 | if (file_exists(XOOPSMYLINKIMGPATH . "/{$mylinks_theme}")) { |
||
158 | $xoopsTpl->assign('mylinks_imgurl', XOOPSMYLINKIMGURL . "/{$mylinks_theme}"); |
||
159 | } else { |
||
160 | $xoopsTpl->assign('mylinks_imgurl', XOOPSMYLINKIMGURL); |
||
161 | } |
||
162 | |||
163 | include_once XOOPS_ROOT_PATH . '/footer.php'; |
||
164 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.