root/cron.php

Revision 325, 0.6 kB (checked in by Nafania, 1 year ago)

забыл про cron.php

Line 
1 <?php
2 /*</span>
3 <span class="code-comment">   file for run cron tasks of tracker through real cron
4    if will be usage, then need comment out following lines in functions.php
5    if ( !defined('IN_ERROR_HANDLER')  && !defined('IN_CLEANUP') ) {
6    require_once($root_path . 'include/class.cleanup.php');
7    $cleanup = new cleanup();
8    }
9 */
10
11 if ( !empty($_SERVER['SERVER_SOFTWARE']) ) {</span>
12 <span class="code-keyword">    exit('only cli use');
13 }
14
15 $root_path = dirname(__FILE__) . '/';</span>
16 <span class="code-lang">require($root_path . 'include/config.php');
17 require($root_path . 'include/class.cleanup.php');
18 $cleanup = new cleanup();
19 gc('ok');
20 ?>
Note: See TracBrowser for help on using the browser.