mambax7 /
adslight
| 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 | use Xmf\Request; |
||
| 24 | |||
| 25 | require_once __DIR__ . '/header.php'; |
||
| 26 | |||
| 27 | if (null !== Request::getInt('cod_img', null, 'GET')) { |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 28 | $cod_img = Request::getInt('cod_img', null, 'GET'); |
||
| 29 | } else { |
||
| 30 | redirect_header('index.php', 1, _ADSLIGHT_VALIDATE_FAILED); |
||
| 31 | } |
||
| 32 | xoops_header(); |
||
| 33 | |||
| 34 | global $xoopsConfig, $xoopsTheme, $xoopsDB, $xoops_footer, $xoopsLogger; |
||
| 35 | $currenttheme = getTheme(); |
||
| 36 | |||
| 37 | $result = $xoopsDB->query('SELECT url FROM ' . $xoopsDB->prefix('adslight_picture') . " WHERE cod_img={$cod_img}"); |
||
| 38 | $recordexist = $xoopsDB->getRowsNum($result); |
||
| 39 | |||
| 40 | if ($recordexist) { |
||
| 41 | list($url) = $xoopsDB->fetchRow($result); |
||
| 42 | echo "<br><br><div style='text-align:center'><img class=\"thumb\" src=\"photo/{$url}\" border=0></div>"; |
||
| 43 | } |
||
| 44 | |||
| 45 | echo "<table><tr><td><div style='text-align:center'><a href=# onClick='window.close()'>" . _ADSLIGHT_CLOSEF . '</a></div></td></tr></table>'; |
||
| 46 | |||
| 47 | xoops_footer(); |
||
| 48 |