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 | * scheduler.php |
||
5 | * Built-in autorun scheduler |
||
6 | * |
||
7 | * @package statistics |
||
8 | * @version 2 |
||
9 | * |
||
10 | * Revision History |
||
11 | * ================ |
||
12 | * 2 - copyright (c) 2009-2010 by Gorlum for http://supernova.ws |
||
13 | * [+] Added locking mechanic made impossible to run several updates at once |
||
14 | * [~] Complies to PCG1 |
||
15 | * |
||
16 | * 1 - copyright (c) 2009-2010 by Gorlum for http://supernova.ws |
||
17 | * [!] Initial revision wrote from scratch |
||
18 | * |
||
19 | */ |
||
20 | |||
21 | require_once('includes/init.php'); |
||
22 | |||
23 | define('IN_AJAX', true); |
||
24 | |||
25 | // require_once('includes/includes/scheduler_process.php'); |
||
0 ignored issues
–
show
|
|||
26 | |||
27 | if(($result = scheduler_process()) && !defined('IN_ADMIN')) { |
||
28 | $result = htmlspecialchars($result, ENT_QUOTES, 'UTF-8'); |
||
29 | print(json_encode($result)); |
||
30 | } |
||
31 | |||
32 | if(!defined('IN_ADMIN')) { |
||
33 | die(); |
||
34 | } |
||
35 |
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.