Guest User

Untitled

a guest
Jan 17th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 1);
  3. ini_set('display_startup_errors', 1);
  4. ini_set("log_errors", 1);
  5. ini_set("error_log", $logPath);
  6.  
  7.  
  8.  
  9. error_log('new');
  10. error_log(dirname(__FILE__));
  11. include(dirname(__FILE__).'/../../config/config.inc.php');
  12. //include(dirname(__FILE__).'/../../init.php');
  13. $key = 'somethingYouWant ';
  14.  
  15.  
  16. if(!Tools::getValue('k') || Tools::getValue('k') != $key){
  17. error_log('unauthorized');
  18.  
  19. die('unauthorized');
  20. }
  21. error_log(dirname(__FILE__).'/classIWant.php');
  22. include(dirname(__FILE__).'/classIWant.php');
  23. error_log('Cron task starting');
  24.  
  25. $a = new classIWant();
  26. $a->run();
Add Comment
Please, Sign In to add comment