These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /* |
||
3 | ------------------------------------------------------------------------- |
||
4 | ADSLIGHT 2 : Module for Xoops |
||
5 | |||
6 | Redesigned and ameliorate By Luc Bizet user at www.frxoops.org |
||
7 | Started with the Classifieds module and made MANY changes |
||
8 | Website : http://www.luc-bizet.fr |
||
9 | Contact : [email protected] |
||
10 | ------------------------------------------------------------------------- |
||
11 | Original credits below Version History |
||
12 | ########################################################################## |
||
13 | # Classified Module for Xoops # |
||
14 | # By John Mordo user jlm69 at www.xoops.org and www.jlmzone.com # |
||
15 | # Started with the MyAds module and made MANY changes # |
||
16 | ########################################################################## |
||
17 | Original Author: Pascal Le Boustouller |
||
18 | Author Website : [email protected] |
||
19 | Licence Type : GPL |
||
20 | ------------------------------------------------------------------------- |
||
21 | */ |
||
22 | |||
23 | include_once __DIR__ . '/header.php'; |
||
24 | |||
25 | if (isset($_GET['cod_img'])) { |
||
26 | $cod_img = (int)$_GET['cod_img']; |
||
27 | } else { |
||
28 | redirect_header('index.php', 1, _ADSLIGHT_VALIDATE_FAILED); |
||
29 | } |
||
30 | xoops_header(); |
||
31 | |||
32 | global $xoopsUser, $xoopsConfig, $xoopsTheme, $xoopsDB, $xoops_footer, $xoopsLogger; |
||
1 ignored issue
–
show
|
|||
33 | $currenttheme = getTheme(); |
||
34 | |||
35 | $result = $xoopsDB->query('select url FROM ' . $xoopsDB->prefix('adslight_picture') . ' WHERE cod_img = ' . $xoopsDB->escape($cod_img) . ''); |
||
36 | $recordexist = $xoopsDB->getRowsNum($result); |
||
37 | |||
38 | if ($recordexist) { |
||
39 | list($url) = $xoopsDB->fetchRow($result); |
||
40 | echo "<br><br><center><img class=\"thumb\" src=\"photo/$url\" border=0></center>"; |
||
41 | } |
||
42 | |||
43 | echo "<table><tr><td><center><a href=# onClick='window.close()'>" . _ADSLIGHT_CLOSEF . '</a></center></td></tr></table>'; |
||
44 | |||
45 | xoops_footer(); |
||
46 |
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state