mambax7 /
adslight
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 dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
||
| 24 | include_once __DIR__ . '/header.php'; |
||
| 25 | xoops_cp_header(); |
||
| 26 | |||
| 27 | //if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php")) { |
||
|
0 ignored issues
–
show
|
|||
| 28 | // adslight_adminmenu(6, ""); |
||
| 29 | //} else { |
||
| 30 | // include_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.admin.php'; |
||
| 31 | // loadModuleAdminMenu (6, ""); |
||
| 32 | //} |
||
| 33 | |||
| 34 | $versioninfo = $module_handler->get($xoopsModule->getVar('mid')); |
||
| 35 | echo " |
||
| 36 | <style type=\"text/css\"> |
||
| 37 | label,text { |
||
| 38 | display: block; |
||
| 39 | float: left; |
||
| 40 | margin-bottom: 2px; |
||
| 41 | } |
||
| 42 | label { |
||
| 43 | text-align: right; |
||
| 44 | width: 100px; |
||
| 45 | padding-right: 20px; |
||
| 46 | } |
||
| 47 | br { |
||
| 48 | clear: left; |
||
| 49 | } |
||
| 50 | </style> |
||
| 51 | "; |
||
| 52 | ///// Présentation du Module |
||
| 53 | echo '<table width=100 border="0" class="outer"><tr> |
||
| 54 | <th width="50%" align="left">' . $xoopsModule->getVar('name') . '</th></tr> |
||
| 55 | <tr class="odd"><td> |
||
| 56 | <img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $versioninfo->getInfo('image') . '" alt="" hspace="10" vspace="0" /></a> |
||
| 57 | </td></tr> |
||
| 58 | <tr class="even"><td> |
||
| 59 | <div style="padding: 5px;"><b>' . $versioninfo->getInfo('name') . ' version ' . $versioninfo->getInfo('version') . '</b></div> |
||
| 60 | <label>' . _AM_ADSLIGHT_ABOUT_RELEASEDATE . ':</label><text>' . $versioninfo->getInfo('release') . '</text><br> |
||
| 61 | <label>' . _AM_ADSLIGHT_ABOUT_AUTHOR . ':</label><text>' . $versioninfo->getInfo('author') . '</text><br> |
||
| 62 | <label>' . _AM_ADSLIGHT_ABOUT_CREDITS . ':</label><text>' . $versioninfo->getInfo('credits') . '</text><br> |
||
| 63 | <label>' . _AM_ADSLIGHT_ABOUT_LICENSE . ':</label><text><a href="' . $versioninfo->getInfo('license_file') . '" target="_blank" >' . $versioninfo->getInfo('license') . '</a></text> |
||
| 64 | </td></tr> |
||
| 65 | </table><br>'; |
||
| 66 | |||
| 67 | ///// People who participate in improving the module |
||
| 68 | echo '<table width=100 border="0" class="outer" ><tr> |
||
| 69 | <th width="50%" align="left">' . _AM_ADSLIGHT_PERSONS_PARTICIPATED . '</th></tr>'; |
||
| 70 | |||
| 71 | //// iLuc /// |
||
| 72 | echo "<tr class='odd'><td><br> |
||
| 73 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Luc Bizet</b></text><br> |
||
| 74 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.luc-bizet.fr\" target=\"_blank\" >www.luc-bizet.fr</a></text><br> |
||
| 75 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight [Author]</text><br> |
||
| 76 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ":</label><text>Improvements, corrections, reDesign for a lighter module : 'AdsLight'</text><br> |
||
| 77 | <br></td></tr>"; |
||
| 78 | |||
| 79 | //// Simon Roberts /// |
||
| 80 | echo "<tr class='odd'><td><br> |
||
| 81 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Simon Roberts</b></text><br> |
||
| 82 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.chronolabs.coop\" target=\"_blank\" >www.chronolabs.coop</a></text><br> |
||
| 83 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://xoops.org\" target=\"_blank\" >XOOPS Support Website EN</a></text><br> |
||
| 84 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight 1.x</text><br> |
||
| 85 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Plugin Xpayment</text><br> |
||
| 86 | <br></td></tr>'; |
||
| 87 | |||
| 88 | //// TXMod Xoops /// |
||
| 89 | echo "<tr class='odd'><td><br> |
||
| 90 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>TXMod Xoops</b></text><br> |
||
| 91 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.txmodxoops.org \" target=\"_blank\" >www.txmodxoops.org</a></text><br> |
||
| 92 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight 1.x</text><br> |
||
| 93 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Traduzione italiana</text><br> |
||
| 94 | <br></td></tr>'; |
||
| 95 | |||
| 96 | //// Patrick Seegers /// |
||
| 97 | echo "<tr class='even'><td><br> |
||
| 98 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Patrick Seegers</b></text><br> |
||
| 99 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"www.vanuitdenhelder.nl\" target=\"_blank\" >Vanuit Den Helder</a></text><br> |
||
| 100 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.xoops.nl\" target=\"_blank\" >Nederlandstalige XOOPS Support Website</a></text><br> |
||
| 101 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight 1.056</text><br> |
||
| 102 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Dutch Vertaling</text><br> |
||
| 103 | <br></td></tr>'; |
||
| 104 | |||
| 105 | //// Saba /// |
||
| 106 | echo "<tr class='odd'><td><br> |
||
| 107 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Saba</b></text><br> |
||
| 108 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text>sitio : <a href=\"http://g-orahovica.com/\" target=\"_blank\" >Gornja Orahovica</a></text><br> |
||
| 109 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text>Webmaster : <a href=\"http://www.xoopsba.org/\" target=\"_blank\" >Xoops Bosnu i Hercegovinu</a></text><br> |
||
| 110 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight 1.055</text><br> |
||
| 111 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Prijevod Bosanskih</text><br> |
||
| 112 | <br></td></tr>'; |
||
| 113 | |||
| 114 | //// aitor /// |
||
| 115 | echo "<tr class='even'><td><br> |
||
| 116 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>aitor</b></text><br> |
||
| 117 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text>sitio : <a href=\"http://www.uskola.info/\" target=\"_blank\" >Uskola Informatica</a></text><br> |
||
| 118 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text>Administrador : <a href=\"http://www.esxoops.com/\" target=\"_blank\" >Xoops España</a></text><br> |
||
| 119 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight</text><br> |
||
| 120 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Traducción al español utf8 del módulo. Y buenos consejos...</text><br> |
||
| 121 | <br></td></tr>'; |
||
| 122 | |||
| 123 | //// Scasmar /// |
||
| 124 | echo "<tr class='odd'><td><br> |
||
| 125 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>scasmar</b></text><br> |
||
| 126 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text>Miembros : <a href=\"http://www.esxoops.com/\" target=\"_blank\" >Xoops España</a></text><br> |
||
| 127 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight 1.052</text><br> |
||
| 128 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Traducción al español del módulo.</text><br> |
||
| 129 | <br></td></tr>'; |
||
| 130 | |||
| 131 | //// Nikita /// |
||
| 132 | echo "<tr class='even'><td><br> |
||
| 133 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Nikita</b></text><br> |
||
| 134 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.aideordi.com\" target=\"_blank\" >www.aideordi.com</a></text><br> |
||
| 135 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>AdsLight 1.00</text><br> |
||
| 136 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Author of the url rewriting, and various improvements and corrections.</text><br> |
||
| 137 | <br></td></tr>'; |
||
| 138 | |||
| 139 | //// John Mordo / Classifieds /// |
||
| 140 | echo "<tr class='odd'><td><br> |
||
| 141 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>John Mordo</b> user jlm69 at www.xoops.org</text><br> |
||
| 142 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.jlmzone.com\" target=\"_blank\" >www.jlmzone.com</a></text><br> |
||
| 143 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>Classifieds [Author]</text><br> |
||
| 144 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Improvements and corrections. Started with the MyAds module and made MANY, MANY changes</text><br> |
||
| 145 | <br></td></tr>'; |
||
| 146 | |||
| 147 | //// Grandoc / Classifieds /// |
||
| 148 | echo "<tr class='even'><td><br> |
||
| 149 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Grandoc</b></text><br> |
||
| 150 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ":</label><text><a href=\"http://www.olivet-online.com\" target=\"_blank\" >www.olivet-online.com</a></text><br> |
||
| 151 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>Classifieds</text><br> |
||
| 152 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ':</label><text>Improvements and corrections.</text><br> |
||
| 153 | <br></td></tr>'; |
||
| 154 | |||
| 155 | //// Pascal Le Boustouller [ Original Author ] /// |
||
| 156 | echo "<tr class='odd'><td><br> |
||
| 157 | <label>" . _AM_ADSLIGHT_PERSONS_PARTICIP_NAME . ':</label><text><b>Pascal Le Boustouller</b> [ Original Author ]</text><br> |
||
| 158 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_WEBSITE . ':</label><text>-</text><br> |
||
| 159 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_VERSION . ':</label><text>MyAds module</text><br> |
||
| 160 | <label>' . _AM_ADSLIGHT_PERSONS_PARTICIP_DESC . ":</label><text>Original Author</text><br> |
||
| 161 | <br></td></tr> |
||
| 162 | |||
| 163 | |||
| 164 | </table><br clear=\"all\" />"; |
||
| 165 | |||
| 166 | ///// Change log du module //////// |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
43% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it. The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production. This check looks for comments that seem to be mostly valid code and reports them. Loading history...
|
|||
| 167 | // |
||
| 168 | // $file = XOOPS_ROOT_PATH. "/modules/adslight/changelog.txt"; |
||
| 169 | // if ( is_readable( $file ) ) { |
||
| 170 | // echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_ABOUT_CHANGELOG . "</legend> |
||
| 171 | // <div style='padding: 8px;'> |
||
| 172 | // <div>". utf8_encode(implode("<br>", file( $file ))) . "</div> |
||
| 173 | // </div> |
||
| 174 | // </fieldset> |
||
| 175 | // <br clear=\"all\" />"; |
||
| 176 | // } |
||
| 177 | |||
| 178 | xoops_cp_footer(); |
||
| 179 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.