|
|
|
@ -11,7 +11,6 @@ include_once('path.inc.php'); // get the path ;)
|
|
|
|
|
include "db.php";
|
|
|
|
|
include_once ('inclu/messagefunctions.inc.php');
|
|
|
|
|
include_once (ROOT_PATH.'/include/usergroup.inc.php');
|
|
|
|
|
include_once ('clanfights.inc.php');
|
|
|
|
|
|
|
|
|
|
if ($test == "02") {
|
|
|
|
|
$i = 0;
|
|
|
|
@ -231,17 +230,6 @@ if (mysql_num_rows($u_qry) != 0) {
|
|
|
|
|
mysql_query('Delete from char_abholcodes where charid IN (' . $chars . ')');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$qry = mysql_query('SELECT id, zeitpunkt, clanfighttyp FROM clan_fight_list WHERE status=1');
|
|
|
|
|
while($row = mysql_fetch_assoc($qry)){
|
|
|
|
|
if ($row['zeitpunkt'] <= time()) {
|
|
|
|
|
$status_updaten= mysql_query('UPDATE clan_fight_list SET status=2 WHERE id='.$row['id'].' LIMIT 1');
|
|
|
|
|
if ($row['clanfighttyp'] == 1) {
|
|
|
|
|
clanFightExecute($row['id']);
|
|
|
|
|
} elseif ($row['clanfighttyp'] == 2) {
|
|
|
|
|
clanFightExecute_survival($row['id']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|