You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.2 KiB
71 lines
2.2 KiB
14 years ago
|
<?php
|
||
|
/*
|
||
|
*
|
||
|
* @copyright (c) 2010 animegame.eu
|
||
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
||
|
*
|
||
|
*/
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/config.inc.php');
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/char.inc.php');
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/designfunctions.inc.php');
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/fehlerausgabe.inc.php');
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/parse.inc.php');
|
||
|
|
||
|
//nur zum test
|
||
|
// GET-Section
|
||
|
// Kritisch (SQL-Injections)
|
||
|
$spleoic = validateString($_GET['spleoic']);
|
||
|
$kampf_id = validateUnsignedInteger($_GET['kampf_id'], null);
|
||
|
|
||
|
?>
|
||
|
<html>
|
||
|
<body bgcolor="#202020">
|
||
|
<?php
|
||
|
|
||
|
if(!$spleoic) { $spleoic = "top_kampf";
|
||
|
} else {
|
||
|
echo '<p align=center><a href="javascript:window.close();">Schließen</a><br> <br>';
|
||
|
$kampf1 = mysql_Fetch_array(mysql_query("SELECT * FROM $spleoic WHERE id='$kampf_id' LIMIT 1"));
|
||
|
/*if(($kampf_id * 300) + $kampf1[dauer] > time()) {
|
||
|
echo "Fehler Sie können diesen Kampf nicht anschauen bevor er vorbei ist";
|
||
|
exit;
|
||
|
}*/
|
||
|
}
|
||
|
|
||
|
$kampf1 = mysql_Fetch_array(mysql_query("SELECT * FROM $spleoic WHERE id='$kampf_id' LIMIT 1"));
|
||
|
$char_1 = getChar2($kampf1['char1']);
|
||
|
$char_2 = getChar2($kampf1['char2']);
|
||
|
|
||
|
if($kampf1['dauer'] > time()) {
|
||
|
displayErrorMessage(NULL,'Der Kampf ist noch nicht vorbei!', displayHistoryBackLink());
|
||
|
exit;
|
||
|
}
|
||
|
|
||
|
|
||
|
$starke1 = explode(",", $kampf1[starke1]);
|
||
|
$starke2 = explode(",", $kampf1[starke2]);
|
||
|
$ver1 = explode(",", $kampf1[ver1]);
|
||
|
$ver2 = explode(",", $kampf1[ver2]);
|
||
|
$speed1 = explode(",", $kampf1[speed1]);
|
||
|
$speed2 = explode(",", $kampf1[speed2]);
|
||
|
$ausdauer1 = explode(",", $kampf1[ausdauer1]);
|
||
|
$ausdauer2 = explode(",", $kampf1[ausdauer2]);
|
||
|
|
||
|
$schaden1 = explode(",", $kampf1[schaden1]);
|
||
|
$schaden2 = explode(",", $kampf1[schaden2]);
|
||
|
$attacke1 = explode(",", $kampf1[attacke1]);
|
||
|
$attacke2 = explode(",", $kampf1[attacke2]);
|
||
|
|
||
|
$hp1 = explode(",", $kampf1[hp1]);
|
||
|
$hp2 = explode(",", $kampf1[hp2]);
|
||
|
$mp1 = explode(",", $kampf1[mp1]);
|
||
|
$mp2 = explode(",", $kampf1[mp2]);
|
||
|
|
||
|
$a_hp1 = explode(",", $char_1[hp]);
|
||
|
$a_hp2 = explode(",", $char_2[hp]);
|
||
|
$a_mp1 = explode(",", $char_1[mp]);
|
||
|
$a_mp2 = explode(",", $char_2[mp]);
|
||
|
$runde = 1;
|
||
|
|
||
|
include($_SERVER['DOCUMENT_ROOT'].'/ag/include/kampf_anzeige.php');
|