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 | // AdsLight UrlRewrite By Nikita // |
||
24 | // http://www.aideordi.com // |
||
25 | ///////////////////////////////////// |
||
26 | |||
27 | include dirname(dirname(__DIR__)) . '/mainfile.php'; |
||
28 | global $xoopsModuleConfig; |
||
1 ignored issue
–
show
|
|||
29 | |||
30 | if ($xoopsModuleConfig['active_rewriteurl'] > 0) { |
||
31 | include_once __DIR__ . '/seo_url.php'; |
||
32 | } |
||
33 | |||
34 | $myts = MyTextSanitizer::getInstance(); |
||
35 |
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