20 lines
471 B
PHP
Executable File
20 lines
471 B
PHP
Executable File
<?php
|
|
if(isset($_SERVER['REMOTE_ADDR'])) exit;
|
|
|
|
include_once(dirname(__FILE__).'/config.php');
|
|
|
|
$_SERVER['HTTP_HOST'] = $config['host'];
|
|
ini_set('memory_limit', '4096M');
|
|
ini_set('max_execution_time', 0);
|
|
set_time_limit(1800);
|
|
|
|
include_once(dirname(__FILE__).'/../../config/config.inc.php');
|
|
include(dirname(__FILE__).'/CronExport.php');
|
|
|
|
if(count($argv) > 1) {
|
|
require(dirname(__FILE__).'/exports/'.$argv[1].'.php');
|
|
$e = new CronExport($argv[1]);
|
|
$e->run();
|
|
}
|
|
exit;
|