StevenG89

cron.php

May 11th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2.  
  3. /* Script Name: Extra Security Cron
  4.  * Script Creator: NonStopCoding
  5.  * Contact Email: [email protected]
  6.  * Contact Skype: dundeeboy09
  7.  * Price: £0,00
  8.  * Engine: GRPG
  9. */
  10.  
  11. $filename = 'cron.php';
  12.  
  13. include(__DIR__.'/dbcon.php');
  14. include(__DIR__.'/classes.php);
  15.  
  16. if($_GET['code'] == 'CodegoesHere') {
  17.     # All your Cron Info goes in between these 2 brackets.
  18. }
  19. else {
  20.     session_start();
  21.     $abuser = new User($_SESSION['id']);
  22.     Send_Event(1, ''.$abuser->formattedname.' has tried to run '.$filename.' manually.');
  23.     exit('You cant run this file manually.<br />
  24.     <span style="color:red">Owner has been notified of this.</span>');  
  25. }
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment