This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
<?php |
| 2 |
/** |
| 3 |
* File functions: |
| 4 |
* Game resets by Cron |
| 5 |
* |
| 6 |
* @name : reset.php |
| 7 |
* @copyright : (C) 2004-2005 Vallheru Team based on Gamers-Fusion ver 2.5 |
| 8 |
* @author : thindil <thindil@users.sourceforge.net> |
| 9 |
* @author : eyescream <tduda@users.sourceforge.net> |
| 10 |
* @version : 1.4 |
| 11 |
* @since : 17.07.2007 |
| 12 |
* |
| 13 |
*/ |
| 14 |
|
| 15 |
// Published under GNU GPL 2 or later. See /install/README file for details. |
| 16 |
// $Id$ |
| 17 |
|
| 18 |
/** |
| 19 |
* Check remote address (allow only from localhost). If doesn't work - write here 'localhost' or IP of your server. |
| 20 |
*/ |
| 21 |
if ($_SERVER['REMOTE_ADDR'] != 'localhost') |
| 22 |
{ |
| 23 |
die('Ciekawe co chciałeś tutaj zrobić?'); |
| 24 |
} |
| 25 |
|
| 26 |
require_once('includes/config.php'); |
| 27 |
require_once('includes/resets.php'); |
| 28 |
if ($_GET['step'] == 'reset') |
| 29 |
mainreset(); |
| 30 |
elseif ($_GET['step'] == 'revive') |
| 31 |
smallreset(); |
| 32 |
|
| 33 |
?> |