daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top