Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- ini_set("log_errors", 1);
- ini_set("error_log", $logPath);
- error_log('new');
- error_log(dirname(__FILE__));
- include(dirname(__FILE__).'/../../config/config.inc.php');
- //include(dirname(__FILE__).'/../../init.php');
- $key = 'somethingYouWant ';
- if(!Tools::getValue('k') || Tools::getValue('k') != $key){
- error_log('unauthorized');
- die('unauthorized');
- }
- error_log(dirname(__FILE__).'/classIWant.php');
- include(dirname(__FILE__).'/classIWant.php');
- error_log('Cron task starting');
- $a = new classIWant();
- $a->run();
Add Comment
Please, Sign In to add comment