changed the way of defining the path ... now it should also be able to place the installation of ag in a different directory!

main
hecht 13 years ago
parent a5fea4f736
commit 1b7be6d31b

@ -5,11 +5,13 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -83,7 +85,7 @@ echo "<b> $kampf_a1[name] vs. $kampf_a2[name]";
if(s>59){
m=Math.floor(s/60);s=s-m*60
}
if(m>59){
if(m>59){
h=Math.floor(m/60);m=m-h*60
}
if(s<10){
@ -97,7 +99,7 @@ echo "<b> $kampf_a1[name] vs. $kampf_a2[name]";
window.setTimeout('t();',950);
}
window.onload=t;
</script>
</script>
<?php
}
?>
@ -133,7 +135,7 @@ echo "<b> $kampf_a[c1name] vs. $kampf_a[name] </b><br>&nbsp; <br>";
echo '<a href="javascript:showfight()">anzeigen</a>';
} else{
?>
<script type='text/javascript'>v=new Date();var ht=document.getElementById('timer');function t(){n=new Date();s=<?php echo $zeit_in_sek; ?>-Math.round((n.getTime()-v.getTime())/1000.);m=0;h=0;if(s<0){ht.innerHTML="<?php echo "<a href='javascript:showfight()'>Ergebnis zeigen</a>"; ?>"}else{if(s>59){m=Math.floor(s/60);s=s-m*60}if(m>59){h=Math.floor(m/60);m=m-h*60}if(s<10){s='0'+s}if(m<10){m='0'+m}ht.innerHTML=h+':'+m+':'+s}window.setTimeout('t();',950);}window.onload=t;</script>
<script type='text/javascript'>v=new Date();var ht=document.getElementById('timer');function t(){n=new Date();s=<?php echo $zeit_in_sek; ?>-Math.round((n.getTime()-v.getTime())/1000.);m=0;h=0;if(s<0){ht.innerHTML="<?php echo "<a href='javascript:showfight()'>Ergebnis zeigen</a>"; ?>"}else{if(s>59){m=Math.floor(s/60);s=s-m*60}if(m>59){h=Math.floor(m/60);m=m-h*60}if(s<10){s='0'+s}if(m<10){m='0'+m}ht.innerHTML=h+':'+m+':'+s}window.setTimeout('t();',950);}window.onload=t;</script>
<?php
}
?>
@ -164,7 +166,7 @@ echo "<p align=center id='content'><b> Schatz Suche </b><br>&nbsp; <br>";
echo '<a href="javascript:showfight()" id="content">anzeigen</a>';
} else{
?>
<script type='text/javascript'>v=new Date();var ht=document.getElementById('timer');function t(){n=new Date();s=<?php echo $zeit_in_sek; ?>-Math.round((n.getTime()-v.getTime())/1000.);m=0;h=0;if(s<0){ht.innerHTML="<?php echo "<a href='javascript:showfight()' id='content'>Abholen</a>"; ?>"}else{if(s>59){m=Math.floor(s/60);s=s-m*60}if(m>59){h=Math.floor(m/60);m=m-h*60}if(s<10){s='0'+s}if(m<10){m='0'+m}ht.innerHTML=h+':'+m+':'+s+'<br /><a href="./schatz3.php?<?php echo $abholstring; ?>&abort=cancel">abbrechen</a>'}window.setTimeout('t();',950);}window.onload=t;</script>
<script type='text/javascript'>v=new Date();var ht=document.getElementById('timer');function t(){n=new Date();s=<?php echo $zeit_in_sek; ?>-Math.round((n.getTime()-v.getTime())/1000.);m=0;h=0;if(s<0){ht.innerHTML="<?php echo "<a href='javascript:showfight()' id='content'>Abholen</a>"; ?>"}else{if(s>59){m=Math.floor(s/60);s=s-m*60}if(m>59){h=Math.floor(m/60);m=m-h*60}if(s<10){s='0'+s}if(m<10){m='0'+m}ht.innerHTML=h+':'+m+':'+s+'<br /><a href="./schatz3.php?<?php echo $abholstring; ?>&abort=cancel">abbrechen</a>'}window.setTimeout('t();',950);}window.onload=t;</script>
<?php
}
?>

@ -8,8 +8,9 @@
session_start();
$nodisturb = 'YES';
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/messagefunctions.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/messagefunctions.inc.php');
// Die Nachricht muss nicht geparst werden!
@ -42,13 +43,13 @@ if(isset($user_ida['nickname'])){
$usr = mysql_fetch_assoc(mysql_query('Select * from anon_chatter where ip = \''.$_SESSION['anon_ip'].'\''));
}
$user_ida['id'] = $usr['anon_id'];
$user_ida['nickname'] = 'anon_' . $usr['anon_id'];
$user_ida['nickname'] = 'anon_' . $usr['anon_id'];
$anon_block = $usr['muted']==0?false:true;
mysql_query('UPDATE anon_chatter SET online = now() WHERE anon_ip = '.$usr['anon_id']);
}
//
//
if (isset($_GET['send'])) {
if(!$trueuser && $_REQUEST['myself'] != $user_ida['nickname']){
// sendChatMessage($user_ida, '***SPAM***'.$_GET['send']);
@ -98,7 +99,7 @@ if (isset($_GET['send'])) {
alert("Nachricht konnte nicht versendet werden! Chat wird neu gestartet!");
window.location.reload();
}
}
function anzeigenChat(originalRequest ) {
var index = originalRequest.responseText.indexOf(";");
@ -108,9 +109,9 @@ if (isset($_GET['send'])) {
}
if(!Number(originalRequest.responseText.substring(0,index))){
receiving = false;
return;
return;
} else{
lastmessageid = originalRequest.responseText.substring(0,index);
lastmessageid = originalRequest.responseText.substring(0,index);
}
var text = originalRequest.responseText.substring(index+1);
var newMessages=0, newPos=0;
@ -133,7 +134,7 @@ if (isset($_GET['send'])) {
receiving = false;
return;
}
function loadData(){
if(--aktiv == 0){
alert('Du wurdest als Inaktiv erkannt, Ok anklicken um wieder Nachrichten zu empfangen!');
@ -147,14 +148,14 @@ if (isset($_GET['send'])) {
var myAjax = new Ajax.Request( "<?php echo $_SERVER['PHP_SELF']; ?>?me=blablubb&id="+lastmessageid, { method: 'get', onComplete: anzeigenChat });
}
}
function activate(){
document.forms["myForm2"].style.visibility = "hidden";
return false;
}
setInterval("loadData();",<?php echo $delay ?>);
</script>
</head>
<body>

@ -5,12 +5,13 @@
* @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/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/exp.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/messagefunctions.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/exp.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -25,7 +26,7 @@ if($charm) {
if(!$user_k['username']) {
displayErrorMessage(NULL,'Account konnte nicht aktiviert werden!', displayHistoryBackLink());
exit;
}
}
#########USER AKTIVIERUNG

@ -5,11 +5,12 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/db.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/speed_config.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');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config/db.inc.php');
include_once (ROOT_PATH . '/include/config/speed_config.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -95,7 +96,7 @@ if ($charm) {
$zeit = time();
$serial_1 = number_format($serial, 0, '', '-');
$aktivierungslink = $GLOBALS['server_url_long'] . '/ag/index.php?as=aktiv&charm=1&nick_name=' . $nick_name . '&serial=' . $serial_1;
$aktivierungslink = $GLOBALS['server_url_long'] .ROOT_URL.'/index.php?as=aktiv&charm=1&nick_name=' . $nick_name . '&serial=' . $serial_1;
$inhalt = 'Zugangsdaten,\n\nSie lauten:\n\nUsername: ' . $nick_name . ' \n\nPasswort: ' . $pw_1 . '\n Aktivierungsnummer: ' . $serial_1 . ' \n\n Bitte geben sie die Aktivierungsnummer auf der Seite ein oder klicken sie folgenden Link\n\n' . $aktivierungslink . '\n\nViel Spass beim Spielen!';
mail($mail, 'Animegame', 'Zugangsdaten,' . "\n\n" . ' Sie lauten: ' . "\n\n" . 'Username: ' . $nick_name . ' ' . "\n" . ' Passwort: ' . $pw_1 . ' ' . "\n\n" . ' Aktivierungsnummer: ' . $serial_1 . ' ' . "\n\n" . ' Bitte geben sie die Aktivierungsnummer innerhalb von 14 Tagen auf der Seite ein oder klicken sie auf folgenden Link' . "\n" . ' ' . $aktivierungslink . ' ' . "\n\n" . 'Viel Spass beim Spielen!', "From: " . "Vegeta" . "\nReply-To: " . $GLOBALS['email_webmaster'] . "\nX-Mailer: PHP/" . phpversion());

@ -5,12 +5,13 @@
* @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/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/arena.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/exp.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/arena.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/exp.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -146,7 +147,7 @@ function displayAusbau($arena){
</tr>
</table>
</form>
<?php
<?php
}
function displayAusbau2($user, $arena, $arena_name, $steh, $sitz, $loge, $vermoegen, $confirm){
@ -177,7 +178,7 @@ function displayAusbau2($user, $arena, $arena_name, $steh, $sitz, $loge, $vermoe
} else{
displayErrorMessage(NULL, 'Umbau konnte nicht durchgef&uuml;hrt werden!', displayHistoryBackLink());
}
}
} else{
$changelog = array();
@ -240,7 +241,7 @@ if($charmax !== NULL || $hausmeister !== NULL || $luxus !== NULL){
displayErrorMessage(NULL, 'Nicht mehr als 10 Punkte bei Luxus m&ouml;glich!', displayHistoryBackLink());
return;
}
// echo $cm.' '.$hm.' '.$lu.'<br>';
if($arena['skill'] < $cm + $hm + $lu){
displayErrorMessage(NULL, 'Nicht genug Skill-Points!', displayHistoryBackLink());
@ -295,7 +296,7 @@ if($charmax !== NULL || $hausmeister !== NULL || $luxus !== NULL){
</tr>
</table>
</form>
<?php
<?php
}

@ -15,10 +15,11 @@
* Zuletzt verändert: 15.08.2007
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/auktion_functions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/auktion_functions.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -244,7 +245,7 @@ function stelleAuktionsuebersichtDar($userid,$kategorie,$itemnamepart,$entries,$
echo preg_replace(array('/###ORDER###/','/###LABEL###/'), array('order=aktuellesgebot&dir=ASC','Akuelles Gebot'),$orderstring);
}
?>
?>
</th>
<th height="31" valign="top" align="center">
<?php if($order == 'anbietername' && $dir == 'ASC'){
@ -367,7 +368,7 @@ function zieheAuktionZurueck($userid,$auktionsid,$pay){
<tr>
<td height="25" width="138" align="left"><b>Startgebot</b></td>
<td height="25" width="178" align="left"><?php echo displayMoney($auktionsdaten['startgebot']); ?></td>
</tr>
</tr>
<tr>
<td>&nbsp;</td>
<td height="25" width="178" align="left"><input id="input" type="submit" value="zur&uuml;ckziehen"></input></td>

@ -8,10 +8,11 @@
?><link rel="stylesheet" href="design/style.css" type="text/css">
<?php
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/auktion_functions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/auktion_functions.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
$pagenum = validateUnsignedInteger($_GET['pagenum'], null);
$firstLetter = validateString($_GET['firstLetter']);

@ -1,60 +0,0 @@
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
/*
* Legacy!
*
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
$clan = mysql_fetch_array(mysql_query("SELECT leader, id FROM clan WHERE id='$user_ida[clan]' LIMIT 1"));
$kampfs1 = mysql_query("SELECT * FROM clan_kampf WHERE clan1_id='$clan[id]' OR clan2_id='$clan[id]' ORDER BY id DESC LIMIT 3");
$kampf_row = mysql_num_rows(mysql_query("SELECT id FROM clan_kampf WHERE clan1_id='$clan[id]' OR clan2_id='$clan[id]' ORDER BY id DESC LIMIT 1"));
if(!$kampf_row) {
echo "Sie haben keine K&auml;mpfe offen.";
exit;
}
echo "<body bgcolor=#202020>";
while($kampf1 = mysql_fetch_array($kampfs1)) {
$char_1 = mysql_Fetch_array(mysql_query("SELECT name, hp, mp, bild, besitzer, id FROM chars WHERE id='$kampf1[char1]' LIMIT 1"));
$char_2 = mysql_Fetch_array(mysql_query("SELECT name, hp, mp, bild, besitzer, id FROM chars WHERE id='$kampf1[char2]' LIMIT 1"));
$spleoic = "clan";
$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');
}
*/
?>

@ -11,13 +11,14 @@
* TODO: Alle "" Strings in '' Strings umwandeln
* TODO: Funktioneller Aufruf, damit exit-Tags verschwinden koennen und somit der Chat angezeigt werden kann!!
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.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/erstellfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/usergroup.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/exp.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/erstellfunctions.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/usergroup.inc.php');
include_once(ROOT_PATH.'/include/exp.inc.php');
// GET-Section
@ -71,11 +72,11 @@ function handleErstelleCharRequestOfTestUser($user, $type, $name, $bild, $lvl, $
$type != 'Namekianer' && $type != 'Pirat' && $type != 'Schwertkämpfer' && $type != 'Grandline Maschine' && $type != 'Kaioshin' && $type != 'Shichibukai'){
displayErrorMessage(NULL,'Rasse kann nicht erstellt werden!',displayHistoryBackLink());
return;
}
}
if(!is_numeric($hp) || !is_numeric($mp) || !is_numeric($str) || !is_numeric($def) || !is_numeric($spd) || !is_numeric($end) || !is_numeric($lck)) {
displayErrorMessage(NULL,'Ungültige Eingabe bei den Stats!',displayHistoryBackLink());
return;
}
}
if($lp < ($hp+$mp+$str+$def+$spd+$end+$lck)) {
displayErrorMessage(NULL,'Es wurden mehr Lernpunkte ausgegeben als eigentlich möglich!',displayHistoryBackLink());
return;
@ -146,14 +147,14 @@ function handleSecondPhase($type, $name){
function handleSecondPhaseForTester($type, $name){
?>
<form action="index.php" method="GET">
<input type="hidden" name="as" value="char">
<input type="hidden" name="charm" value="3">
<input type="hidden" name="as" value="char">
<input type="hidden" name="charm" value="3">
<input type="hidden" name="char_name" value="<?php echo $name; ?>">
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
height="20">
<tr>
<th colspan="2" align="center">Charakter erstellen (2/3)</th>
<th colspan="2" align="center">Charakter erstellen (2/3)</th>
</tr>
<tr>
<th align="left">Rasse:</th>
@ -215,7 +216,7 @@ function handleThirdPhaseForTester($type, $name, $char_lvl){
?>
<form action="index.php" method="POST">
<input type="hidden" name="as" value="char">
<input type="hidden" name="charm" value="4">
<input type="hidden" name="charm" value="4">
<input type="hidden" name="char_type" value="<?php echo $type; ?>">
<input type="hidden" name="char_name" value="<?php echo $name; ?>">
<input type="hidden" name="lvl" value="<?php echo $char_lvl; ?>">
@ -224,19 +225,19 @@ function handleThirdPhaseForTester($type, $name, $char_lvl){
style="border-collapse: collapse" bordercolor="#111111" width="100%"
height="20">
<tr>
<th colspan="2" align="center">Charakter erstellen (3/3)</th>
</tr>
<tr>
<th align="left">CharakterTyp: </th>
<td><?php echo $type;?> </td>
<th colspan="2" align="center">Charakter erstellen (3/3)</th>
</tr>
<tr>
<th align="left">Charakterlevel: </th>
<td><?php echo $char_lvl;?> </td>
<tr>
<th align="left">CharakterTyp: </th>
<td><?php echo $type;?> </td>
</tr>
<tr>
<th align="left">Charakterlevel: </th>
<td><?php echo $char_lvl;?> </td>
</tr>
<tr>
<th align="left">verfügbare LP: </th>
<td><?php echo $lp?></td>
<td><?php echo $lp?></td>
</tr>
<tr>
<th align="left">HP (1LP = 10HP): </th>

@ -13,10 +13,11 @@
* TODO: Funktioneller Aufruf, damit exit-Tags verschwinden koennen und somit der Chat angezeigt werden kann!!
*/
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/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -52,7 +53,7 @@ if(count($chars) == 0){
?><tr><td align="center">Du hast noch keine Chars!</td></tr><?php
} else{
foreach ($chars as $row) {
?>
?>
<tr>
<td width="429" height="84" align="center"><?php
?>

@ -14,10 +14,11 @@
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.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/char.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
$chars = getCharsOfUser($user_ida['id']);
@ -25,7 +26,7 @@ include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
foreach($chars as $my_charz){
// $hp = explode(",", $my_charz[hp]);
// $mp = explode(",", $my_charz[mp]);
//
//
// $POWERLEVEL5 = $my_charz['starke']+$my_charz['verteidigung']+$my_charz['speed']+$my_charz['ausdauer']+$my_charz['glueck'] + $hp[1]/10 + $mp[1]/5;
$POWERLEVEL5 = $my_charz['starke']+$my_charz['verteidigung']+$my_charz['speed']+$my_charz['ausdauer']+$my_charz['glueck'];
if($my_charz['fusion']=="ja"){
@ -41,23 +42,23 @@ include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
$hptemp = explode(",", $my_charz['hp']);
$hpleft[$char_zahl] = $hptemp['0'] / $hptemp['1'] * 100;
$mptemp = explode(",", $my_charz['mp']);
$mpleft[$char_zahl] = $mptemp['0'] / $mptemp['1'] * 100;
$mpleft[$char_zahl] = $mptemp['0'] / $mptemp['1'] * 100;
$exptemp = explode(",", $my_charz['exp']);
$room = mysql_query('SELECT ci.name FROM clan_item ci inner join clan_ware cw on ci.id = cw.item_id WHERE cw.id='.$my_charz['clan_train']);
$clanroom=mysql_fetch_assoc($room);
if($clanroom['name']=="")
$clanroom['name']="kein";
$clanroom['name']="kein";
$temproom="<br><a href=index.php?as=clan/c_ware&char_id=$my_charz[id] id=popup> Trainingsraum: ".$clanroom['name']."</a>";
$hp = "HP: ".$hptemp['0']." / ".$hptemp['1'];
if($my_charz['status'] == "Schatz Suche")
$statustemp = "Schatz%20Suche";
else
$statustemp = $my_charz['status'];
if($my_charz['kampf_item'] != NULL && $my_charz['kampf_item'] != ',,,,'){
// echo 'Problematic Entry = '.$chara_1['kampf_item'].'<br>';
$char1_buffs = mysql_fetch_assoc(mysql_query('SELECT sum(i.hp) as hp, sum(i.mp) as mp, sum(i.starke) as starke, sum(i.verteidigung) as verteidigung, sum(i.speed) as speed FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE w.id IN (' . $my_charz['kampf_item'] . ')'));
@ -67,7 +68,7 @@ include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
$c_speed = $char1_buffs['speed']==0?$my_charz['speed']:($my_charz['speed']).' (+'.$char1_buffs['speed'].')';
$c_ausdauer = $char1_buffs['ausdauer']==0?$my_charz['ausdauer']:($my_charz['ausdauer']).' (+'.$char1_buffs['ausdauer'].')';
$c_glueck = $char1_buffs['glueck']==0?$my_charz['glueck']:($my_charz['glueck']).' (+'.$char1_buffs['glueck'].')';
$mp = "MP: ".$mptemp['0']." / ".$mptemp['1'];
$exp = "Exp: ".$exptemp['0']." / ".$exptemp['1'];
if($my_charz['status'] == 'Frei' ){
@ -87,24 +88,24 @@ include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
$werte = "St&auml;rke: ".$c_starke."<br>Verteidigung: ".$c_verteidigung."<br>Geschwindigkeit: ".$c_speed."<br>Ausdauer: ".$c_ausdauer."<br>Gl&uuml;ck: ".$c_glueck;
$lp = "<br><a href=index.php?as=lernpunkte&char_id=".$my_charz['id']." id=popup>Lernpunkte: ".$my_charz['lernpunkte']."</a>";
$tp = "<a href=index.php?as=training&char_id=".$my_charz['id']." id=popup>Trainingspunkte: ".$my_charz['training_points']."</a>".$temproom;
//$temp = $statustemp."";
$temp2 = "Level: ".$my_charz['level']."<br>Powerlevel: $POWERLEVEL5<br>Typ: ".$my_charz['type']."<br>Rasse: ".$my_charz['rasse'].$fusi.$frucht.$lp."<br>$tp<p>$hp<br>$mp<br>$exp<p>$werte";
$popup[$char_zahl] = $temp.'<br>'.'<span class=overviewcharname>'.$my_charz['name'].'</span><br>'.$temp2;
$status[$char_zahl]= $my_charz['status'];
$char_zahl++;
}
$visiblechars = 8;
for($i=$char_zahl;$i<$visiblechars;$i++){
$CHARAKTER_NAME[$i] = "Kein Charakter";
$CHARAKTER_VERWALTUNG[$i] = "none";
$CHARAKTER_LERNPUNKTE[$i] = "none";
$CHARAKTER_TRAINING[$i] = "none";
$CHARAKTER_STATUS[$i] = "none";
$CHARAKTER_SCHATZ[$i] = "none";
$CHARAKTER_SCHATZ[$i] = "none";
}
if(!$chars_bilds['0']) { $chars_bilds['0'] = "bilder/Char.gif"; }
@ -126,10 +127,10 @@ if(!$chars_bilds['7']) { $chars_bilds['7'] = "bilder/Char.gif"; }
{
if($chars_bilds[$i]!='bilder/Char.gif')
{
echo '<td width=25% valign=top id="content" align="center">';
echo '<img border="0" src="'.$chars_bilds[$i].'" width="75" height="75">';
echo '<table id="hptable"><tr>';
if($hpleft[$i] > 1)
echo '<td id="hptd" width="'.$hpleft[$i].'%"></td>';
@ -142,9 +143,9 @@ if(!$chars_bilds['7']) { $chars_bilds['7'] = "bilder/Char.gif"; }
if($mpleft[$i] < 100)
echo '<td height=5px></td>';
echo '</tr></table>';
echo $popup[$i].'</a></td>';
if($i==3){
echo '</tr></table><hr id="hrc"><table cellpadding="0" cellspacing="0" width="100%" height="0"><tr>';
}
@ -199,5 +200,5 @@ if(!$chars_bilds['7']) { $chars_bilds['7'] = "bilder/Char.gif"; }
};
</script>
</tr>
</table>

@ -6,13 +6,14 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/config.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');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/char_profil.inc.php'); //Allgemeine Funktionen für die Char darstellung
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/defines.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/attackenset.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'//include/config.inc.php');
include_once(ROOT_PATH.'//include/designfunctions.inc.php');
include_once(ROOT_PATH.'//include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'//include/parse.inc.php');
include_once(ROOT_PATH.'//include/char_profil.inc.php'); //Allgemeine Funktionen für die Char darstellung
include_once(ROOT_PATH.'//include/defines.inc.php');
include_once(ROOT_PATH.'//include/attackenset.inc.php');
defineIfNotDefined('MAX_ROUNDS', 10);
@ -32,7 +33,7 @@ function stelledar($char_id,$user_ida,$name) {
//Attackensets laden
$clanfight_attset = getCharAttackSet($char_id, CLANKAMPF);
$normfight_attset = getCharAttackSet($char_id, NORMALKAMPF);
//TODO:prüfen ob man nicht auch den name aus $learned_atts holen kann
$clanfight_attset_name = getAttackNamesFromAttackSet($clanfight_attset);
$normfight_attset_name = getAttackNamesFromAttackSet($normfight_attset);
@ -316,7 +317,7 @@ function stelledar($char_id,$user_ida,$name) {
</table>
</form>
<?php
} else {
} else {
displayErrorMessage(NULL,$fehler, displayHistoryBackLink());
exit;
}
@ -333,7 +334,7 @@ function eintragen($char_id,$name,$user_ida) {
displayErrorMessage(NULL,'Der Charakter ist zur Zeit nicht frei!', displayHistoryBackLink());
exit;
}
//übermittelte Variablen auslesen und in Variable speichern
$helm_e = validateUnsignedInteger($_POST['helm_e'], null);
$rustung_e = validateUnsignedInteger($_POST['rustung_e'], null);
@ -366,11 +367,11 @@ function eintragen($char_id,$name,$user_ida) {
'attacken2=\''.implode(',', $attset_nf).'\', '.
'bild=\''.$bild11.'\' WHERE id='.$char[id].' LIMIT 1';
mysql_query($qry);
//neues updaten von Attacken
updateCharAttackSet($char_id, $attset_cf, CLANKAMPF);
updateCharAttackSet($char_id, $attset_nf, NORMALKAMPF);
echo 'Profil erfolgreich ge&auml;ndert!!<br>';
echo '<a href=index.php?as=char_profil&char_id='.$char_id.'><div align=center>weiter...</div></a>';
} else {
@ -379,11 +380,11 @@ function eintragen($char_id,$name,$user_ida) {
}
}
if ($_POST['submit']==1) {
eintragen($char_id,$name,$user_ida);
} elseif ($char_id) {
stelledar($char_id,$user_ida,$name);
if ($_POST['submit']==1) {
eintragen($char_id,$name,$user_ida);
} elseif ($char_id) {
stelledar($char_id,$user_ida,$name);
} else {
echo 'Leider wurde die Seite nicht korrekt aufgerufen! Rufen Sie die Seite bitte korrekt auf';
echo 'Leider wurde die Seite nicht korrekt aufgerufen! Rufen Sie die Seite bitte korrekt auf';
}
?>

@ -5,11 +5,12 @@
* @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/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/char.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'//include/config.inc.php');
include_once(ROOT_PATH.'//include/designfunctions.inc.php');
include_once(ROOT_PATH.'//include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'//include/parse.inc.php');
include_once(ROOT_PATH.'//include/char.inc.php');
$char_id = validateUnsignedInteger($_REQUEST['char_id'], null);
$char = getChar($char_id);
@ -25,31 +26,31 @@ $char = getChar($char_id);
<tr>
<th align="left">Helm</th>
<td>
<select><option>Nichts</option></select>
<select><option>Nichts</option></select>
</td>
</tr>
<tr>
<th align="left">Rüstung</th>
<td>
<select><option>Nichts</option></select>
<select><option>Nichts</option></select>
</td>
</tr>
<tr>
<th align="left">Schild</th>
<td>
<select><option>Nichts</option></select>
<select><option>Nichts</option></select>
</td>
</tr>
<tr>
<th align="left">Schwert</th>
<td>
<select><option>Nichts</option></select>
<select><option>Nichts</option></select>
</td>
</tr>
<tr>
<th align="left">Schuhe</th>
<td>
<select><option>Nichts</option></select>
<select><option>Nichts</option></select>
</td>
</tr>
<tr>

@ -5,11 +5,11 @@
* @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/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/designfunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/parse.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/clan.inc.php');
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/clan.inc.php');
// GET-Section
// Kritisch (SQL-Injections)

@ -13,8 +13,8 @@
}
</SCRIPT>
<?php
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/clanfights.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/char.inc.php');
include_once(ROOT_PATH.'//include/clanfights.inc.php');
include_once(ROOT_PATH.'//include/char.inc.php');
if (!empty($_POST['id'])) {
$id= $_POST['id'];

@ -8,8 +8,8 @@
/*
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
?>
<body bgcolor="#202020">
@ -51,7 +51,7 @@ $a_mp2 = explode(",", $char_2[mp]);
$runde = 1;
// TODO: include_one und danach Funktionsaufruf!!
include($_SERVER['DOCUMENT_ROOT'].'ag/include/kampf_anzeige.php');
include(ROOT_PATH.'/include/kampf_anzeige.php');
displayErrorMessage(NULL,$fehler_m,$weiter_an);

@ -6,11 +6,11 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.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');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once(ROOT_PATH.'/include/clan.inc.php');
// GET-Section

@ -6,9 +6,9 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/config.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/parse.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/designfunctions.inc.php');
include_once(ROOT_PATH.'//include/config.inc.php');
include_once (ROOT_PATH . '//include/parse.inc.php');
include_once (ROOT_PATH . '//include/designfunctions.inc.php');
// GET-Section
// Kritisch (SQL-Injections)

@ -7,9 +7,9 @@
*
*/
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/parse.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
$char_id = validateUnsignedInteger($_GET['char_id'], null);
@ -19,11 +19,11 @@ $c_ware = validateUnsignedInteger($_GET['c_ware'], null);
$charm = $_GET['charm'];
if(!$char_id) {
include($_SERVER['DOCUMENT_ROOT'].'ag/char_index.php');
include(ROOT_PATH.'/char_index.php');
exit;
}
if($charm) {
if($charm) {
mysql_query("UPDATE chars SET clan_train='$c_ware' WHERE id='$char_id' AND besitzer='$user_ida[id]' LIMIT 1");
}
@ -67,7 +67,7 @@ echo "<option value='$row[id]' $save>$row[name] (".displayMoney($row['nutzkosten
}
?>
</select>
</select>
</td>
</tr>
<tr>

@ -6,9 +6,9 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan_fights.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/clan.inc.php');
include_once(ROOT_PATH.'/include/clan_fights.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
// GET-Section

@ -6,9 +6,9 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once(ROOT_PATH.'/include/clan.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
//Get-Section
if(isset($_GET['action'])) {
@ -83,7 +83,11 @@ function getFightType($id) {
function displayClanFightMenu($user) {
$user_clan = getClan($user['clan']);
$clans = getAllClans();
// $clans = getAllClans();
$clans_tmp = getClanFightCapableClanIds();
foreach ($clans_tmp as $clan_tmp_id) {
$clans[] = getClan($clan_tmp_id);
}
$challenges = getOpenChallengeRequests($user_clan['id']);
$test = getOpenChallengeIDs($user_clan['id']);
?>
@ -140,7 +144,7 @@ function displayClanFightMenu($user) {
}
?>
</table>
</div><?php
</div><?php
}
if($action == 'challengeclan') {

@ -5,11 +5,11 @@
* @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/designfunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/parse.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/clan.inc.php');
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/clan.inc.php');
// GET-Section
// Kritisch (SQL-Injections)

@ -6,11 +6,11 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.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');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/messagefunctions.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/messagefunctions.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
$text = validateString($_GET['text']);

@ -6,10 +6,10 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.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');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
$clan_geld=validateUnsignedInteger($_GET['clan_geld'], null);

@ -1,191 +0,0 @@
<?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/designfunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/fehlerausgabe.inc.php');
?>
<body bgcolor="#202020">
<?php
$pl = 0;
$clan1 = 0;
$clan2 = 0;
$pluto = -1;
$kampf9 = mysql_Fetch_array(mysql_query("SELECT char_set, dauer, char1, char2, x_satz FROM clan_kampf WHERE db_satz='$char_id' LIMIT 1"));
$c_a1 = explode(",", $kampf9[char_set]);
if ($kampf9['dauer'] > time()) {
displayErrorMessage(NULL, 'Der Kampf ist noch nicht vorbei!', displayHistoryBackLink());
exit;
}
while ($pl < 3) {
$pl2 = $pl +1;
$kampf1 = mysql_Fetch_array(mysql_query("SELECT * FROM clan_kampf WHERE char1='$c_a1[$pl]' OR char2='$c_a1[$pl]' AND x_satz='$kampf9[x_satz]' LIMIT 1"));
$user = mysql_fetch_array(mysql_query("SELECT id, geld FROM user WHERE nickname='$name' LIMIT 1"));
$char_1 = getChar($kampf1['char1']);mysql_Fetch_array(mysql_query("SELECT c.name, c.hp, c.mp, c.bild, c.id, u.clan FROM chars c LEFT JOIN user u ON(c.besitzer=u.id) WHERE c.id='$kampf1[char1]' LIMIT 1"));
$char_2 = getChar($kampf1['char1']);mysql_Fetch_array(mysql_query("SELECT c.name, c.hp, c.mp, c.bild, c.id, u.clan FROM chars c LEFT JOIN user u ON(c.besitzer=u.id) WHERE c.id='$kampf1[char2]' LIMIT 1"));
$arena = mysql_Fetch_array(mysql_query("SELECT name, besitzer, history_besucher, history_geld FROM arena WHERE id='$kampf1[arena_name]' LIMIT 1"));
$my_charakter = mysql_fetch_array(mysql_Query("SELECT name, siege, niederlagen, liga_siege, liga_niederlagen, preis, dead_list, besitzer FROM chars WHERE id='$char_id' LIMIT 1"));
$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');
if ($kampf1[win] == "$char_1[name]") {
$clan1++;
}
if ($kampf1[win] == "$char_2[name]") {
$clan2++;
}
if (!$kampf1[db_satz]) {
$pluto++;
}
$runde = $runde -1;
if ($kampf1[db_satz] == $char_id) {
$char_infos = mysql_fetch_Array(mysql_query("SELECT name, id, hp, mp, exp FROM chars WHERE id='$char_id' LIMIT 1"));
$alt_exp = explode(",", $char_infos[exp]);
if ($kampf1[char1] == $char_id) {
$new_exp = $alt_exp[0] + $kampf1[exp1];
$new_geld = $user[geld] + $kampf1[geld1] + $ex_geld;
$new_hp = $hp1[$runde];
$new_mp = $mp1[$runde];
if ($new_hp < 1) {
$new_hp = 1;
}
if ($new_mp < 1) {
$new_mp = 1;
}
if ($new_hp > $hp1[1]) {
$new_hp = $hp1[1];
}
if ($new_mp > $mp1[1]) {
$new_mp = $mp1[1];
}
mysql_query("UPDATE chars SET status='Frei', mp='$new_mp,$a_mp1[1]', hp='$new_hp,$a_hp1[1]', exp='$new_exp,$alt_exp[1]' WHERE id='$char_id' LIMIT 1");
} else {
$new_exp = $alt_exp[0] + $kampf1[exp2];
$new_geld = $user[geld] + $kampf1[geld2] + $ex_geld;
$new_hp = $hp2[$runde];
$new_mp = $mp2[$runde];
if ($new_hp < 1) {
$new_hp = 1;
}
if ($new_mp < 1) {
$new_mp = 1;
}
if ($new_hp > $hp2[1]) {
$new_hp = $hp2[1];
}
if ($new_mp > $mp2[1]) {
$new_mp = $mp2[1];
}
mysql_query("UPDATE chars SET status='Frei', mp='$new_mp,$a_mp2[1]', hp='$new_hp,$a_hp2[1]', exp='$new_exp,$alt_exp[1]' WHERE id='$char_id' LIMIT 1");
}
###################################################CHARAKTER WIN
if ($kampf1[win] == "$my_charakter[name]") {
$new_siege = $my_charakter[siege] + 1;
mysql_query("UPDATE chars SET siege='$new_siege' WHERE id='$char_id'");
} else {
###################################################CHARAKTER LOSE
$new_niederlage = $my_charakter[niederlage] + 1;
mysql_query("UPDATE chars SET niederlage='$new_niederlage' WHERE id='$char_id'");
}
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/exp.php');
mysql_query("UPDATE user SET geld='$new_geld' WHERE id='$user[id]' LIMIT 1");
mysql_query("UPDATE clan_kampf SET db_satz='' WHERE db_satz='$char_id'");
}
$pl++;
}
$clan_name1 = mysql_fetch_Array(mysql_query("SELECT clanname, siege, niederlagen, id FROM clan WHERE id='$char_1[clan]' LIMIT 1"));
$clan_name2 = mysql_fetch_Array(mysql_query("SELECT clanname, siege, niederlagen, id FROM clan WHERE id='$char_2[clan]' LIMIT 1"));
if ($c_a1[0] == $kampf9[char1] OR $c_a1[1] == $kampf9[char1] OR $c_a1[2] == $kampf9[char1]) {
if ($clan1 > $clan2) {
$new_siegea1 = $clan_name1[siege] + 1;
$clan_sieger = $clan_name1[clanname];
if ($pluto == -1) {
mysql_Query("UPDATE clan SET siege='$new_siegea1' WHERE id='$clan_name1[id]' LIMIT 1");
}
} else {
$clan_sieger = $clan_name2[clanname];
$new_niederlage1 = $clan_name1[niederlagen] + 1;
if ($pluto == -1) {
mysql_Query("UPDATE clan SET niederlagen='$new_niederlage1' WHERE id='$clan_name1[id]' LIMIT 1");
}
}
} else {
if ($clan1 < $clan2) {
$new_siegea1 = $clan_name2[siege] + 1;
$clan_sieger = $clan_name2[clanname];
if ($pluto == -1) {
mysql_Query("UPDATE clan SET siege='$new_siegea1' WHERE id='$clan_name2[id]' LIMIT 1");
}
} else {
$clan_sieger = $clan_name1[clanname];
$new_niederlage1 = $clan_name2[niederlagen] + 1;
if ($pluto == -1) {
mysql_Query("UPDATE clan SET niederlagen='$new_niederlage1' WHERE id='$clan_name2[id]' LIMIT 1");
}
}
}
if ($pluto == 1) {
mysql_query("DELETE FROM clan_kampf WHERE x_satz='$user_ida[clan]'");
}
echo "<p align=center>Clan Sieger: $clan_sieger";
*/
?>

@ -5,12 +5,13 @@
* @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/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/erstellfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/semaphore.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/erstellfunctions.inc.php');
include_once(ROOT_PATH.'/include/semaphore.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -49,8 +50,8 @@ function wuenscheTeufelsfrucht($user){
}
$natur_frucht = mysql_query('SELECT item, id,verteilung FROM wochen_markt WHERE art=\'natur\' order by id'); ///wieviel TF gibt es?.
$value = mt_rand(1,100);
$peak = 0;
while($row = mysql_fetch_assoc($natur_frucht)){
$peak += $row['verteilung'];
@ -72,12 +73,12 @@ function wuenscheSpecialChar($user, $specialcharname, $newname = ''){
displayErrorMessage(NULL,'Es koennen nur Kaioshin und Shichibukai gewünscht werden!!',displayHistoryBackLink());
return false;
}
if($newname == ''){
displayErrorMessage(NULL,'Der Name ist ungueltig!!',displayHistoryBackLink());
return false;
}
// Hat der User überhaupt das Item ???
$qry = mysql_query('SELECT count(*) AS anzahl FROM sp_ware WHERE item='.$spitem.' AND user='.$user['id']);
$row = mysql_fetch_assoc($qry);
@ -107,7 +108,7 @@ function wuenscheSpecialChar($user, $specialcharname, $newname = ''){
function wuenscheUserRename($user, $newname){
$sql = 'Insert into user_rename(pre_name, post_name, datum, userid, wunsch) values(\''.$user['nickname'].'\', \''.$newname.'\', now(), '.$user['id'].', 1)';
mysql_query($sql);
mysql_query($sql);
mysql_query('Update user set nickname = \''.$newname.'\' WHERE id = '.$user['id']);
return true;
}
@ -117,7 +118,7 @@ function worker($charm,$wunsch,$user,$newname){
// Wichtig, die Semaphore!!
if(!semaphoreUP($ressource)){ // TRUE, diese Anfrage darf bearbeitet werden
displayErrorMessage(NULL,'Verarbeitung gerade in Gange, bitte warten...', displayHistoryBackLink());
return;
return;
}
$dragonballs = mysql_fetch_assoc(mysql_query('SELECT count(id) as anzahl FROM sp_ware WHERE user='.$user['id'].' AND item=11'));
@ -129,7 +130,7 @@ function worker($charm,$wunsch,$user,$newname){
$sql = 'DELETE FROM sp_ware WHERE item=11 AND user='.$user['id'].' LIMIT 7';
mysql_query($sql);
$result = true;
if($charm == 1) {
if($wunsch == 1) {

@ -1,29 +0,0 @@
<?php
/*
* Created on 24.03.2009
*
* @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/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
$id = 3;
$user = $user_ida;
$chars = getCharsOfUser($user_ida['id']);
?>
<form>
<select id = "input" name="menu">
<option value ="-1">Charakter ausw&auml;hlen...</option>
<?php
foreach($chars as $row)
{
echo "<option value='$row[id]'>$row[name]>";
}
?>
</select>
</form>

@ -6,9 +6,10 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/kampf_anzeige.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config/db.inc.php');
include_once(ROOT_PATH.'/include/kampf_anzeige.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
$event_id = validateUnsignedInteger($_GET['event_id'], null);
$event_fight_id = validateUnsignedInteger($_GET['event_fight_id'], null);

@ -14,7 +14,8 @@
* Zuletzt verändert: 03.10.2007
*******************************************************************************/
include_once "include/faq.inc.php";
include_once('path.inc.php'); // get the path ;)
include_once ROOT_PATH.'include/faq.inc.php';
$themes = getTableOfContents('<tr><###ROW###><a href="#thema_###ID###" id="content">','</a></###ROW###></tr>');
$content = getContext('<tr><th><a name="thema_###ID###" id="content">','<tr><td id="content">','</a></th></tr>','</td></tr>');
?>

@ -6,8 +6,8 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
function checkref() {

@ -17,25 +17,25 @@ session_start();
* Zuletzt verändert: 03.10.2007
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.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/bann.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/faq.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/user.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/usergroup.inc.php');
include_once(ROOT_PATH.'/include/config/db.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/bann.inc.php');
include_once(ROOT_PATH.'/include/faq.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/user.inc.php');
include_once(ROOT_PATH.'/include/usergroup.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/attacken.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/bilderschau.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/clan.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/info.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/item.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/monster.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/npc.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/shop.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/user.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gm/include/tournament.inc.php');
include_once(ROOT_PATH.'/gm/include/attacken.inc.php');
include_once(ROOT_PATH.'/gm/include/bilderschau.inc.php');
include_once(ROOT_PATH.'/gm/include/clan.inc.php');
include_once(ROOT_PATH.'/gm/include/info.inc.php');
include_once(ROOT_PATH.'/gm/include/item.inc.php');
include_once(ROOT_PATH.'/gm/include/monster.inc.php');
include_once(ROOT_PATH.'/gm/include/npc.inc.php');
include_once(ROOT_PATH.'/gm/include/shop.inc.php');
include_once(ROOT_PATH.'/gm/include/user.inc.php');
include_once(ROOT_PATH.'/gm/include/tournament.inc.php');
function logaction($message){
$sql = 'Insert into gm_actions(userid, time, message, ip) values('.$_SESSION['user'].', now(), \''.$message.'\', \''.$_SERVER['REMOTE_ADDR'].'\')';
@ -66,15 +66,15 @@ function loginUser($user,$pass){
if(checkLoginPassword($user,$pass)){
$test = 'SELECT * from user where nickname = \''.$user.'\'';
$qry = mysql_query($test);
$result = mysql_fetch_assoc($qry);
$result = mysql_fetch_assoc($qry);
$usergroups = getUserGroups($user);
if(isUserInGroup($usergroups, ADMIN)) {
$_SESSION['user'] = $result['id'];
$_SESSION['username'] = $result['nickname'];
$_SESSION['password'] = $result['passwort'];
$_SESSION['usergroups'] = $usergroups;
echo '<a href="'.$_SERVER['PHP_SELF'].'">Zum Hauptmenu</a>';
echo '<a href="'.$_SERVER['PHP_SELF'].'">Zum Hauptmenu</a>';
return true;
}
return false;
@ -244,15 +244,15 @@ if(checkLoginData($_SESSION['user'],$_SESSION['password'])){
showActionLog();
} else if($_REQUEST['choose'] == 'cheat'){
displayCheater($_REQUEST['action'], $_REQUEST['from'], $_REQUEST['until'], $_REQUEST['user1'], $_REQUEST['user2'], $_REQUEST['tradeid'], $_REQUEST['verify']);
} else if($_REQUEST['choose'] == 'npc'){
} else if($_REQUEST['choose'] == 'npc'){
displayNPC($_REQUEST['action'], $_REQUEST['task'], $_REQUEST['charid'], $_REQUEST['table'], $_REQUEST['page'], $_REQUEST['data'], $_REQUEST['att_ids']);
} else if($_REQUEST['choose'] == 'shop'){
displayShop($_REQUEST['action'], $_REQUEST['s_id'],$_REQUEST['info'], $_REQUEST['s_name'] , $_REQUEST['s2_name'], $_REQUEST['s3_name'], $_REQUEST['s_typ'], $_REQUEST['preis'], $_REQUEST['frei'], $_REQUEST['anzahl']);
displayShop($_REQUEST['action'], $_REQUEST['s_id'],$_REQUEST['info'], $_REQUEST['s_name'] , $_REQUEST['s2_name'], $_REQUEST['s3_name'], $_REQUEST['s_typ'], $_REQUEST['preis'], $_REQUEST['frei'], $_REQUEST['anzahl']);
} else if($_REQUEST['choose'] == 'usergroups'){
displayUserGroups($_REQUEST['action'] ,$_REQUEST['uname'] ,$_REQUEST['ugname'], $_REQUEST['delete'], $_REQUEST['add']);
} else if($_REQUEST['choose'] == 'tournament'){
displayTournamentOptions($_REQUEST['action'], $_REQUEST['klein'], $_REQUEST['wochen']);
}else {
}else {
displayOptions();
}
} else if(isset($_POST['user'])){

@ -9,7 +9,7 @@
?>
<?php
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/attackenset.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/include/attackenset.inc.php');
function getNPCAttacks() {
$qry = mysql_query('SELECT name,id FROM attacken a WHERE info like "%NPC%";');

@ -15,7 +15,7 @@
* Zuletzt veraendert: 03.10.2007
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.inc.php');
include_once(ROOT_PATH.'/include/config/db.inc.php');
function getChatMessages(){
$result = mysql_query('SELECT *, Minute(zeit) as m, Hour(zeit) as h, DAY(zeit) as d , MONTH(zeit) as mon FROM ag_chat ORDER BY ID desc');

@ -5,8 +5,9 @@
* @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/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// Einziger Übergabewert (und der ist auch noch kritisch!!)
$page = validateUnsignedInteger($_GET['page'], null);

@ -5,9 +5,10 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
$page = validateUnsignedInteger($_GET['page'], null);
@ -50,7 +51,7 @@ while($row = mysql_fetch_assoc($qry)){
$eventhighscore[$row['art']] .= '</tr>'."\n";
$old = $row['art'];
}
$eventhighscore[$row['art']] .= '<tr>'."\n";
$eventhighscore[$row['art']] .= ' <td class="content" height="25" width="100" align="center">'.$row['datum'].'</td>'."\n";
if(!is_null($row['charid'])){
@ -63,7 +64,7 @@ while($row = mysql_fetch_assoc($qry)){
} else{
$eventhighscore[$row['art']] .= ' <td class="content" height="25" width="100" align="center">'.$row['username'].'</td>'."\n";
}
$eventhighscore[$row['art']] .= '</tr>'."\n";
$eventhighscore[$row['art']] .= '</tr>'."\n";
}
// Now echo the stuff!!

@ -5,9 +5,10 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/img.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/img.inc.php');
// Die möglichen Zeichen
// Einziger Übergabewert (und der ist auch noch kritisch!!)

@ -6,6 +6,6 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/awards.inc.php');
include_once(ROOT_PATH.'/include/config/awards.inc.php');
echo join('<br>'."\n", $awards);
?>

@ -6,8 +6,8 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/ads.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/ads.inc.php');
$char_zahl = 0;
$chars = getCharsOfUser($user_ida['id']);

@ -6,6 +6,6 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/partner.inc.php');
include_once(ROOT_PATH.'/include/config/partner.inc.php');
echo join('<br>'."\n", $partner);
?>

@ -6,7 +6,7 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/toplists.inc.php');
include_once(ROOT_PATH.'/include/config/toplists.inc.php');
?>
<div id="toplists"></div>
<script type="text/javascript">

@ -6,8 +6,8 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/online.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/designfunctions.inc.php');
include_once (ROOT_PATH . '//include/online.inc.php');
include_once(ROOT_PATH.'//include/designfunctions.inc.php');
$itemsx1 = mysql_num_rows(mysql_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]'"));
$itemsz1 = mysql_fetch_array(mysql_query("SELECT id FROM sp_ware WHERE item='1' AND user='$user_ida[id]' LIMIT 1"));

@ -6,7 +6,7 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
function calculateArenaData($owner_id, $char_1, $char_2, $factor){
// echo 'Berechne die Arena-Daten mit Faktor '.$factor;

@ -6,7 +6,7 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/defines.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
//Set-Arten
defineIfNotDefined('NORMALKAMPF', 1);

@ -7,7 +7,7 @@
*
*/
/******************************************************************************
* Dieser Skript enthält Funktionen für das Implementieren eines Auktionshauses
* Dieser Skript enthält Funktionen für das Implementieren eines Auktionshauses
* Ein Skript kann diese Funktionen verwenden, um Informationen darzustellen
*******************************************************************************
* Autor: Pascal Proksch
@ -18,9 +18,9 @@
* 15.10. Fehler in der Bietefunktion. if($userid == $anbieter) war immer ungueltig!!
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/messagefunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/semaphore.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
include_once(ROOT_PATH.'/include/semaphore.inc.php');
// Funktion um das aktuelle Mindestgebot einer Auktion zu ermitteln!
@ -62,7 +62,7 @@ function biete($userid, $auktionsid, $gebot){
}
$gebot = floor($gebot);
$auktionsdaten = getEntryInformation($auktionsid);
$itemname = $auktionsdaten['itemname'];
$aktuellesgebot = $auktionsdaten['aktuellesgebot'];
$startgebot = $auktionsdaten['startgebot'];
@ -70,38 +70,38 @@ function biete($userid, $auktionsid, $gebot){
$zeitdifferenz = $auktionsdaten['zeitdifferenz'];
$bieter = $auktionsdaten['bieter'];
$anbieter = $auktionsdaten['anbieter'];
if($userid == $anbieter){
return 'Sie k&ouml;nnen nicht auf eigene Items bieten';
}
// Nun erstmal pruefen ob noch geboten werden kann
if($zeitdifferenz < 0){
return 'Deadline abgelaufen!';
}
// Was ist das aktuelle startgebot?? Rufe die Funktion auf!
$klGebot = aktuellesMindestgebot($auktionsid);
if($klGebot == -1){
return 'Fehler beim Bieten aufgetreten';
}
if($gebot < $klGebot){
return 'Es muss mindestens '.$klGebot.' geboten werden';
}
//Nun muss noch geprueft werden ob der User genug Geld hat und auch mit allen Geboten gesamt nicht in den Minusbereich kommt
$user_a = mysql_fetch_assoc(mysql_query('SELECT nickname, geld FROM user WHERE id = '.$userid));
$usermoney = $user_a['geld'];
$auktionensumme = mysql_fetch_assoc(mysql_query('SELECT SUM(aktuellesgebot) as summe FROM auktion WHERE bieter = '.$userid.' AND auktionsid != '.$auktionsid.' GROUP BY bieter'));
$auktionensumme = $auktionensumme['summe'];
if($usermoney < $auktionensumme + $gebot){
return 'Nicht genug Geld!';
}
//Wenn 10 minuten vor Deadline-ende geboten wird wird die deadline um 10 Minuten verschoben
if($zeitdifferenz < 10){
mysql_query('UPDATE auktion SET bieter='.$userid.', aktuellesgebot='.$gebot.', deadline=TIMESTAMPADD(Minute,10,TIMESTAMPADD(Second,-second(now()),now())) WHERE auktionsid='.$auktionsid);
@ -113,8 +113,8 @@ function biete($userid, $auktionsid, $gebot){
mysql_query('UPDATE auktion SET bieter='.$userid.', aktuellesgebot='.$gebot.' WHERE auktionsid='.$auktionsid);
}
// Nun noch den aktuellen bieter eine Nachricht senden
sendMessage('Auktionsmarkt', $bieter, '&Uuml;berboten worden', 'Sie sind von '.$user_a['nickname'].' &uuml;berboten worden, er bietet '.$gebot.' f&uuml;r das Item '.debbcode($itemname).'. Deadline: '.$deadline.' Link: [url='.$GLOBALS['server_url_long'].'/ag/index.php?as=auktion&action=1&auktionsid='.$auktionsid.']Auktion[/url]');
sendMessage('Auktionsmarkt', $bieter, '&Uuml;berboten worden', 'Sie sind von '.$user_a['nickname'].' &uuml;berboten worden, er bietet '.$gebot.' f&uuml;r das Item '.debbcode($itemname).'. Deadline: '.$deadline.' Link: [url='.$GLOBALS['server_url_long'].ROOT_URL.'/index.php?as=auktion&action=1&auktionsid='.$auktionsid.']Auktion[/url]');
// mysql_query($new_query);
// echo '<br><br>'.$new_query.'<br><br>';
return ''; // Leerer String, also kein Fehler!
@ -132,7 +132,7 @@ function getItemOptions($userid,$preselected){
SELECT i.id, i.name,count(i.id) AS anzahl, \'sp_ware\' as tablename FROM sp_ware w INNER JOIN sp_item i ON(i.id=w.item) WHERE w.user = '.$userid.' GROUP BY i.id
union
SELECT i.id, i.item AS name, count(i.id) AS anzahl, \'wochen_ware\' as tablename FROM wochen_ware w INNER JOIN wochen_markt i ON(i.id=w.item) WHERE w.user = '.$userid.' GROUP BY (i.id)';
$qry = mysql_query($query);
// Damit waeren alle noetigen Datenbankaufrufe erledigt!
while($row = mysql_fetch_assoc($qry)){
@ -170,13 +170,13 @@ function insertItem($userid,$id_db_mix, $anzahl, $startgebot){
return 'Es muss eine g&uuml;ltige Anzahl angegeben werden.';
}
$anzahl = floor($anzahl);
preg_replace('#,#','',$id_db_mix); // Entferne die Gefaehrlichen \' !!!
$mix_explode = explode(',',$id_db_mix);
$id = $mix_explode[0]; // ID des items
$db = getDatabaseAdditions($mix_explode[1]); // Datenbank die das Item speichert, mit samt den Zusatzinformationen abholen
// Nun die Anzahl vergleichen
$test = 'SELECT count(i.id) AS anzahl FROM '.$db[0].' as w INNER JOIN '.$db[1].' as i ON(i.id=w.'.$db[2].') where w.user= '.$userid.' AND i.id = '.$id;
$result = mysql_fetch_assoc(mysql_query($test));
@ -242,7 +242,7 @@ function createTables(){
function getAuktionTotalCount($kategorie,$itemnamepart,$maxPrice){
// vorbereiten der uebergabevariablen zu sicherheitszwecken
$priceDelimiter = '';
$kategorieDelimitier ='';
$stringDelimiter = '';
@ -305,7 +305,7 @@ function getKategorieOptions($preselect){
$converter['ware'] = 'Tr&auml;nke';
$converter['sp_ware'] = 'Items';
$converter['wochen_ware'] = 'Teufelsfr&uuml;chte';
$total = 0;
$select = false;
$qry = mysql_query('SELECT tablename,count(tablename) as anzahl FROM auktion WHERE TIMESTAMPDIFF(Minute,now(),deadline) >= 0 GROUP BY tablename');

@ -16,8 +16,8 @@
*/
// required for status calculation!
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/event.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan_fights.inc.php');
include_once(ROOT_PATH.'/include/event.inc.php');
include_once(ROOT_PATH.'/include/clan_fights.inc.php');
/*
* Char Status

@ -5,7 +5,7 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
defineIfNotDefined('STATUS_FREI', 'Frei');

@ -6,8 +6,8 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/defines.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/clan_fights.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
include_once (ROOT_PATH . '/include/clan_fights.inc.php');
defineIfNotDefined('MAX_CHARS_CLANSIGN', 8);
$GLOBALS['clan_buffered_instances'] = array ();

@ -6,14 +6,14 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/defines.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/clan.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/messagefunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/attackenset.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/arena.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf_wrapper.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/semaphore.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/event.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
include_once (ROOT_PATH . '/include/clan.inc.php');
include_once (ROOT_PATH . '/include/messagefunctions.inc.php');
include_once (ROOT_PATH . '/include/attackenset.inc.php');
include_once (ROOT_PATH . '/include/arena.inc.php');
include_once (ROOT_PATH . '/include/kampf_wrapper.inc.php');
include_once (ROOT_PATH . '/include/semaphore.inc.php');
include_once (ROOT_PATH . '/include/event.inc.php');
defineIfNotDefined('MIN_MEMBERS', 5);
@ -21,8 +21,8 @@ defineIfNotDefined('MAX_OPEN_REQUESTS', 3);
defineIfNotDefined('CLANFIGHTS_MAX_FIGHTS_PER_24H', 6);
defineIfNotDefined('DAVY_BACK_FIGHT', 1);
defineIfNotDefined('SURVIVAL', 2);
defineIfNotDefined('DURATION_DAVY_BACK_FIGHT', 10);
defineIfNotDefined('DURATION_SURVIVAL_FIGHT', 10);
defineIfNotDefined('DURATION_DAVY_BACK_FIGHT', 15);
defineIfNotDefined('DURATION_SURVIVAL_FIGHT', 15);
defineIfNotDefined('ATTACK_SET_DAVY_BACK_FIGHT', 2);

@ -12,14 +12,15 @@
*/
// Immer den ganzen Pfad angeben, dann hat man es einfacher ^^
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/db.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/server.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/settings.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/speed_config.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/online.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/parse.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/user.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/usergroup.inc.php');
include_once('../path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config/db.inc.php');
include_once (ROOT_PATH . '/include/config/server.inc.php');
include_once (ROOT_PATH . '/include/config/settings.inc.php');
include_once (ROOT_PATH . '/include/speed_config.inc.php');
include_once (ROOT_PATH . '/include/online.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/user.inc.php');
include_once (ROOT_PATH . '/include/usergroup.inc.php');
// Referer statistics (no use for this in the moment)
//$rs = strpos($_SERVER['HTTP_REFERER'],'//');

@ -11,7 +11,7 @@
* Auskommentieren, wenn eigene Rassen genutzt werden sollen!
* Der Pfad muss auf eine Date zeigen, in der die Rassen (aehnlich wie bei der rassen.inc.php aufgelistet sind!)
*/
# $GLOBALS['races_location_file'] = $_SERVER['DOCUMENT_ROOT'].'ag/include/config/myraces.inc.php';
# $GLOBALS['races_location_file'] = ROOT_PATH.'/include/myraces.inc.php';
// Farben

@ -6,7 +6,7 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.inc.php');
include_once (ROOT_PATH.'/include/config/db.inc.php');
$GLOBALS['definesInitialized'] = FALSE;

@ -6,8 +6,8 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/usergroup.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/settings.inc.php');
include_once(ROOT_PATH.'/include/usergroup.inc.php');
include_once(ROOT_PATH.'/include/config/settings.inc.php');
// Diese Funktion muss in ein Darstellungspackage hinein und muss noch verlegt werden, Gestaltung in css-Datei

@ -8,11 +8,11 @@
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/exp.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/exp.inc.php');

@ -6,8 +6,8 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/user.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/defines.inc.php');
include_once(ROOT_PATH.'/include/user.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
defineIfNotDefined('EVENT_TEST', 0);
defineIfNotDefined('EVENT_SCHATZ_SUCHE', 1);

@ -6,7 +6,7 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
function beautifyNumericValue($value, $step){

@ -14,8 +14,8 @@
* Zuletzt verändert: 03.10.2007
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once(ROOT_PATH.'/include/config/db.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
function insertFaqEntry($parent, $header, $body){
mysql_query('INSERT INTO `faq_entries` ( `id` , `parent` , `header` , `body` ) VALUES (NULL , \''.$parent.'\', \''.encodeNoHTMLWithBB($header).'\', \''.encodeNoHTMLWithBB($body).'\')');

@ -6,7 +6,7 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
/**
*

@ -7,9 +7,9 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/cheater.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/cheater.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
function hasToAuthenticate($user){
return $user['code'] <= 0;

@ -222,7 +222,7 @@ echo '</table>' .
}
function displaySchatzSuche($char){
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/schatz.inc.php');
include_once(ROOT_PATH.'/include/schatz.inc.php');
// Erstmal die Schatzsuche-stammdaten laden!
$sql = 'Select * from quests where charid ='.$char['id'].' and dauer < now()';
$quest = mysql_fetch_assoc(mysql_query($sql));
@ -346,7 +346,7 @@ function displaySchatzSucheFightRound($char, $monster, $fight, $round){
function displayEventFight($event_id, $event_fight_id) {
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/event.inc.php'); // for the defines :)
include_once(ROOT_PATH.'/include/event.inc.php'); // for the defines :)
// Erstmal die Seite starten
echo '<html><head><link rel="stylesheet" type="text/css" href="design/FightStyle.css"></head><body><table width="100%">';

@ -6,7 +6,7 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/include/kampf_anzeige.inc.php');
include_once(ROOT_PATH.'//include/kampf_anzeige.inc.php');
?>
<html>

@ -6,7 +6,7 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/arena.inc.php');
include_once (ROOT_PATH . '/include/arena.inc.php');
/**
@ -141,7 +141,7 @@ function calculateFight(array $char1, array $char2) {
$technick2 = $attack_data[$k_attacke2[$x]];
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
include (ROOT_PATH . '/include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
$speeds_char1 = ($k_speed[0] + $technick1[speed]);
$speeds_char2 = ($k_speed[1] + $technick2[speed]);
@ -151,38 +151,38 @@ function calculateFight(array $char1, array $char2) {
$tmp_hp[0] = 0;
$tmp_hp[1] = 0;
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/majin.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/atk_wert.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/gift.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/frucht.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/mp.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hp.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hp2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/SSJ.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kaioken.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kaioken2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/copy.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/lose.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/lose2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/ausdauer.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/mpv.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/tausch.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hpmp.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include (ROOT_PATH . '/include/kampf/gift.php');
include (ROOT_PATH . '/include/kampf/frucht.php');
include (ROOT_PATH . '/include/kampf/mp.php');
include (ROOT_PATH . '/include/kampf/hp.php');
include (ROOT_PATH . '/include/kampf/hp2.php');
include (ROOT_PATH . '/include/kampf/SSJ.php');
include (ROOT_PATH . '/include/kampf/kaioken.php');
include (ROOT_PATH . '/include/kampf/kaioken2.php');
include (ROOT_PATH . '/include/kampf/copy.php');
include (ROOT_PATH . '/include/kampf/lose.php');
include (ROOT_PATH . '/include/kampf/lose2.php');
include (ROOT_PATH . '/include/kampf/ausdauer.php');
include (ROOT_PATH . '/include/kampf/mpv.php');
include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/hpmp.php');
//Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert)
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/konter_heal.php');
include (ROOT_PATH . '/include/kampf/konter_heal.php');
//include "kampf/summon.php";
}
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/schatten.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/runde.php');
include (ROOT_PATH . '/include/kampf/schatten.php');
include (ROOT_PATH . '/include/kampf/runde.php');
}
#####################################KAMPF SYSTEM
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kampf_rechnung.php');
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');
// $db_query = mysql_fetch_array(mysql_query("SELECT * FROM kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
// mysql_query("UPDATE kampf SET hp1='$db_query[hp1],$k_hp7[0]', hp2='$db_query[hp2],$k_hp7[1]', mp1='$db_query[mp1],$k_mp7[0]', mp2='$db_query[mp2],$k_mp7[1]', schaden1='$db_query[schaden1],$schaden_1', schaden2='$db_query[schaden2],$schaden_2', attacke1='$db_query[attacke1],$technick1[name]', attacke2='$db_query[attacke2],$technick2[name]', starke1='$db_query[starke1],$k_starke[0]', starke2='$db_query[starke2],$k_starke[1]', ver1='$db_query[ver1],$k_ver[0]', ver2='$db_query[ver2],$k_ver[1]', speed1='$db_query[speed1],$k_speed[0]', speed2='$db_query[speed2],$k_speed[1]', ausdauer1='$db_query[ausdauer1],$k_ausdauer[0]', ausdauer2='$db_query[ausdauer2],$k_ausdauer[1]', glueck1='$db_query[glueck1],$k_glueck[0]', glueck2='$db_query[glueck2],$k_glueck[1]' WHERE id='$db_query[id]'");

@ -16,10 +16,10 @@
* Zuletzt verändert: 03.10.2007
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/bann.inc.php');
include_once(ROOT_PATH.'/include/config/db.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/bann.inc.php');
function sendMessage($von, $besitzer, $betreff, $text){
// $betreff = $betreff;

@ -9,8 +9,8 @@
// Schauen ob eigene Rassen genutzt werden sollen?
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/settings.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once (ROOT_PATH . '/include/config/settings.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
function init_races() {
if (isset ($GLOBALS['races_location_file'])) {

@ -5,11 +5,11 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/db.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/exp.inc.php');
include_once(ROOT_PATH.'/include/config/db.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/exp.inc.php');
function interruptSchatzSuche($charid){
@ -183,7 +183,7 @@ function monsterfight_neu($chara_1, $fight_monster, $std, $ort){
$prozent_technik1 = (20 * $technick1['aktiv']) - 20;
$technick1 = mysql_fetch_assoc(mysql_query("SELECT * FROM attacken WHERE id='$technick1[at_id]' LIMIT 10"));
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/andere_technik.php');
include (ROOT_PATH . '/include/kampf/andere_technik.php');
$technick1['speed'] = $technick1['speed'] + (($technick1['speed'] / 100) * $prozent_technik1);
$technick1['verteidigung'] = $technick1['verteidigung'] + (($technick1['verteidigung'] / 100) * $prozent_technik1);
@ -194,35 +194,35 @@ function monsterfight_neu($chara_1, $fight_monster, $std, $ort){
$aussetzten_runde = ""; ////// MUSS SO BLEIBEN WICHTIG
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/majin.php');
if (!$aussetzten_runde) { /////DAS FueR MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/atk_wert.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/tausch2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/gift.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/frucht.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/runde.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/mp.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hp.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hp2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/SSJ.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kaioken.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kaioken2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/copy.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/lose.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/lose2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/ausdauer.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/mpv.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/tausch.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hpmp.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/tausch2.php');
include (ROOT_PATH . '/include/kampf/gift.php');
include (ROOT_PATH . '/include/kampf/frucht.php');
include (ROOT_PATH . '/include/kampf/runde.php');
include (ROOT_PATH . '/include/kampf/mp.php');
include (ROOT_PATH . '/include/kampf/hp.php');
include (ROOT_PATH . '/include/kampf/hp2.php');
include (ROOT_PATH . '/include/kampf/SSJ.php');
include (ROOT_PATH . '/include/kampf/kaioken.php');
include (ROOT_PATH . '/include/kampf/kaioken2.php');
include (ROOT_PATH . '/include/kampf/copy.php');
include (ROOT_PATH . '/include/kampf/lose.php');
include (ROOT_PATH . '/include/kampf/lose2.php');
include (ROOT_PATH . '/include/kampf/ausdauer.php');
include (ROOT_PATH . '/include/kampf/mpv.php');
include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/hpmp.php');
}
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FueR MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/schatten.php');
include (ROOT_PATH . '/include/kampf/schatten.php');
}
#####################################KAMPF SYSTEM
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kampf_rechnung.php');
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');
// schaden1='$db_query[schaden1],$schaden_1', schaden2='$db_query[schaden2],$schaden_2', attacke1='$db_query[attacke1],$technick1[name]', attacke2='$db_query[attacke2],$technick2[name]'
$x++;
$sql = 'Insert into quest_rounds(charid, fightnr, roundnr, c_attack, c_dmg, m_attack, m_dmg, c_st, c_sp, c_ver, c_hp, c_mp, c_aus, c_gl, m_st, m_sp, m_ver, m_hp, m_mp, m_aus, m_gl) values(' .

@ -6,8 +6,8 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/server.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/cheater.inc.php');
include_once(ROOT_PATH . '/include/config/server.inc.php');
include_once(ROOT_PATH.'/include/cheater.inc.php');
$GLOBALS['user_buffered_instances'] = array ();

@ -6,8 +6,8 @@
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/defines.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
//Konstanten
defineIfNotDefined('ADMIN', 1);

@ -8,12 +8,13 @@
ob_start();
ignore_user_abort(true);
// einmaliges Hinzufuegen der wichtigen Datei config.php
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan_fights.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/ads.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/schnell_start.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/messagefunctions.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/clan_fights.inc.php');
include_once(ROOT_PATH.'/include/config/ads.inc.php');
include_once(ROOT_PATH.'/include/schnell_start.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
// Fuer den Transit von register_globals auf normal
$name = $user_ida['nickname'];
@ -194,7 +195,7 @@ $agb = $_REQUEST['agb'];
<td width="6">&nbsp;</td>
<td>
<table cellspacing="0px" cellpadding="0px" style="position:relative; top:0px; left:6px;">
<?php include($_SERVER['DOCUMENT_ROOT'].'ag/inclu/toplists.inc.php'); ?>
<?php include(ROOT_PATH.'/inclu/toplists.inc.php'); ?>
<tr>
<td height="1"></td>
</tr>
@ -313,7 +314,7 @@ if($as != "login" AND $as != "anmeldung" AND $as != "info/logs" AND $as != "info
echo '<form action=index.php method="get"><input type="hidden" name="as" value="'.$as.'"><input name="agb" value="ok" type="hidden">Die Regeln haben sich ver&auml;ndert. Bist du mit den neuen Regeln einverstanden? <a href="index.php?as=info/agb" target="_blank">Hier Klicken um die neuen Regeln zu lesen</a><br><input type="submit" value="Einverstanden"></form>';
exit;
}
include($_SERVER['DOCUMENT_ROOT'].'ag/'.$as.'.php');
include(ROOT_PATH.'/'.$as.'.php');
}
}
else
@ -323,7 +324,7 @@ if($as != "login" AND $as != "anmeldung" AND $as != "info/logs" AND $as != "info
}
else
{
include($_SERVER['DOCUMENT_ROOT'].'ag/news.php');
include(ROOT_PATH.'/news.php');
}
?>
@ -402,8 +403,8 @@ if($user_ida){
// Adblockdetection
// <img src="/ag/design/banner_ad.gif">
?>
<script language="Javascript" src="/ag/java/adblock.js"></script>
<script language="Javascript" src="/ag/java/banner_ad.js"></script>
<script language="Javascript" src="<?php echo ROOT_URL; ?>/java/adblock.js"></script>
<script language="Javascript" src="<?php echo ROOT_URL; ?>/java/banner_ad.js"></script>
<script language="Javascript"><!--
var AdBlockTest = 0;
//-->

@ -5,12 +5,13 @@
* @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/designfunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/clan.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
include_once (ROOT_PATH . '/include/clan.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');

@ -9,7 +9,7 @@
<br><br>
<?php
if (isUserInGroup($usergroups, AKTIV_CHAT)) {
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/messagefunctions.inc.php');
include_once (ROOT_PATH . '/include/messagefunctions.inc.php');
if($user_ida['id'] === NULL){
$user_ida['id'] = -1;
}

@ -5,8 +5,8 @@
* @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/designfunctions.inc.php');
include_once (ROOT_PATH . '//include/config.inc.php');
include_once (ROOT_PATH . '//include/designfunctions.inc.php');
// TODO: Muss noch angepasst werden!
@ -78,7 +78,7 @@ function showAttDetails($at_id) {
$rassen_1 = explode(",", $at_info[rassen]);
$runde = 0;
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/array.php');
include (ROOT_PATH . '//include/array.php');
while ($runde +1 < count($rassen_1)) {

@ -6,7 +6,7 @@
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
if($item_id) {
$item_info = mysql_Fetch_array(mysql_query("SELECT * FROM item WHERE id='$item_id' LIMIT 1"));
?>
@ -72,7 +72,7 @@ $item_info = mysql_Fetch_array(mysql_query("SELECT * FROM item WHERE id='$item_i
<?php
$rassen_1 = explode(",", $item_info[rassen]);
$runde = 0;
include($_SERVER['DOCUMENT_ROOT'].'ag/include/array.php');
include(ROOT_PATH.'/include/array.php');
while($runde < count($rassen_1)){
$runden = $runde+1;

@ -6,16 +6,16 @@
*
*/
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');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
$char_id = validateUnsignedInteger($_GET['char_id'], null);
$attack_id = validateUnsignedInteger($_REQUEST['attack_id'], null);
if ($char_id == null) {
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/char_index.php');
include (ROOT_PATH . '/char_index.php');
exit;
} else {
if (!isUserOwnerOf($user_ida['id'],$char_id)) {
@ -28,7 +28,7 @@ if ($char_id == null) {
$qry = mysql_query($test);
}
$attacks_learned = getAttacksforChar($char_id, 0);
$attacks_unlearned = getAttacksforChar($char_id, 1);
$attacks_unlearned = getAttacksforChar($char_id, 1);
$testuser = isUserInGroup($usergroups, TESTER);
?>
@ -40,7 +40,7 @@ if ($char_id == null) {
<td height="50" width="480" colspan="2">
<p align="center">
<b>Technik System</b>
</td>
</tr>
<tr>
@ -83,7 +83,7 @@ if ($char_id == null) {
?>
</td>
<td align="center">0x</td>
<td align="center"><?php if(isset($item['req'])) {
<td align="center"><?php if(isset($item['req'])) {
foreach($item['req'] as $requirenment) {
echo $requirenment['reggs'].'x<br>';
}
@ -91,7 +91,7 @@ if ($char_id == null) {
echo '-';
?>
</td>
<td><?php if(isset($item['req'])) {
<td><?php if(isset($item['req'])) {
foreach($item['req'] as $requirenment) {
echo $requirenment['name'].'<br>';
}

@ -5,13 +5,14 @@
* @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/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/messagefunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/auktion_functions.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
include_once(ROOT_PATH.'/include/auktion_functions.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -32,11 +33,11 @@ $ak_no = $_GET['ak_no'];
<script type="text/javascript">
<!--
function disablebutton()
function disablebutton()
{
if(document.forms[0].elements['char_id2'].value!=-1)
document.forms[0].elements['submit'].disabled=false;
else document.forms[0].elements['submit'].disabled=true;
else document.forms[0].elements['submit'].disabled=true;
}
-->
@ -103,7 +104,7 @@ function getUserTransaction($user_id) {
}
function setUserTransaction($user_id, $trade_user_id, $item, $anzahl=1, $betrag=0) {
$qry = 'INSERT INTO transaktionen(kaeufer, verkaeufer, item, anzahl, betrag, zeit) VALUES ('.$trade_user_id.','.$user_id.',\''.$item.'\','.$anzahl.','.$betrag.',NOW())';
$qry = 'INSERT INTO transaktionen(kaeufer, verkaeufer, item, anzahl, betrag, zeit) VALUES ('.$trade_user_id.','.$user_id.',\''.$item.'\','.$anzahl.','.$betrag.',NOW())';
mysql_query($qry);
}
@ -245,7 +246,7 @@ if($charm == 3) {
$row = getTradeConditions($tausch_item[1], $tausch_item[0]);
if($tausch_anzahl <= $row['tausch_anzahl'] && $tausch_anzahl > 0) {
if($tausch_item[1] == 'ware') {
$qry = 'UPDATE ware SET user = '.$tausch_user_id.' WHERE item_id = '.$tausch_item[0].' AND user = '.$user['id'].' LIMIT '.$tausch_anzahl.';';
$qry = 'UPDATE ware SET user = '.$tausch_user_id.' WHERE item_id = '.$tausch_item[0].' AND user = '.$user['id'].' LIMIT '.$tausch_anzahl.';';
mysql_query($qry);
} else {
$qry = 'UPDATE '.$tausch_item[1].' SET user = '.$tausch_user_id.' WHERE item = '.$tausch_item[0].' AND user = '.$user['id'].' LIMIT '.$tausch_anzahl.';';
@ -253,7 +254,7 @@ if($charm == 3) {
}
sendMessage($user['nickname'], $tausch_user_id, 'Geschenk', 'Der Spieler '.$user['nickname'].' hat dir das Item '.$row['name'].$row['item'].' geschenkt!');
setUserTransaction($user['id'], $tausch_user_id, $row['item'].$row['name'], $tausch_anzahl);
displayErrorMessage(NULL, 'Item erfolgreich verschenkt!', '<a href="index.php?as=item">weiter...</a>');
exit;
} else {
@ -367,7 +368,7 @@ print_r($char_id1);
<th>Spezialitems nutzen</th>
</tr>
<tr>
<td width="488" height="50" align="center"><?php
<td width="488" height="50" align="center"><?php
$sp_items = array(1,2,11,404,415);
$sql = 'SELECT si.name, si.id, count(sw.item) as anzahl FROM sp_item si LEFT JOIN (Select item from sp_ware where user = '.$user_ida['id'].') sw ON sw.item = si.id WHERE si.id IN ('.join(',',$sp_items).') GROUP by si.id';
// echo $sql.'<br>';

@ -5,10 +5,11 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
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/arena.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/arena.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
$k_exp[0] = "";
$X23 = "";
@ -121,7 +122,7 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
include (ROOT_PATH . '/include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed] = $technick1[speed] + (($technick1[speed] / 100) * $prozent_technik1);
$technick2[speed] = $technick2[speed] + (($technick2[speed] / 100) * $prozent_technik2);
@ -150,42 +151,42 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
// $speed_char2 = mt_rand($speeds_char2_4, $speeds_char2);
////// MUSS SO BLEIBEN WICHTIG
$aussetzten_runde = "";
$aussetzten_runde = "";
$tmp_hp[0] = 0;
$tmp_hp[1] = 0;
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/majin.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/atk_wert.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/gift.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/frucht.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/mp.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hp.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hp2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/SSJ.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kaioken.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kaioken2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/copy.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/lose.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/lose2.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/ausdauer.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/mpv.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/tausch.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/hpmp.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include (ROOT_PATH . '/include/kampf/gift.php');
include (ROOT_PATH . '/include/kampf/frucht.php');
include (ROOT_PATH . '/include/kampf/mp.php');
include (ROOT_PATH . '/include/kampf/hp.php');
include (ROOT_PATH . '/include/kampf/hp2.php');
include (ROOT_PATH . '/include/kampf/SSJ.php');
include (ROOT_PATH . '/include/kampf/kaioken.php');
include (ROOT_PATH . '/include/kampf/kaioken2.php');
include (ROOT_PATH . '/include/kampf/copy.php');
include (ROOT_PATH . '/include/kampf/lose.php');
include (ROOT_PATH . '/include/kampf/lose2.php');
include (ROOT_PATH . '/include/kampf/ausdauer.php');
include (ROOT_PATH . '/include/kampf/mpv.php');
include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/hpmp.php');
//Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert)
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/konter_heal.php');
include (ROOT_PATH . '/include/kampf/konter_heal.php');
//include "kampf/summon.php";
}
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/schatten.php');
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/runde.php');
include (ROOT_PATH . '/include/kampf/schatten.php');
include (ROOT_PATH . '/include/kampf/runde.php');
}
#####################################KAMPF SYSTEM
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf/kampf_rechnung.php');
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');
$db_query = mysql_fetch_array(mysql_query("SELECT * FROM kampf WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
@ -236,7 +237,7 @@ while ($s < 2) {
}
if ($k_hp[1] < $k_aufgabe[1] OR $X13 == "HALLO") {
$k_exp[0] = (getPowerLevelWithBuffs($chara_1['id']) + getPowerLevelWithBuffs($chara_2['id'])) * 2.2 * $exp001;
// $k_geld[0] = ((($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck]) / 2)) * $exp001;
@ -259,11 +260,11 @@ while ($s < 2) {
$nw_preis = $chara_1['preis'];
$k_exp[1] = (getPowerLevelWithBuffs($chara_1['id']) + getPowerLevelWithBuffs($chara_2['id'])) * 2.2 * $exp001;
// $k_geld[1] = ((($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck]) / 2)) * $exp001;
$k_exp[0] = (getPowerLevelWithBuffs($chara_1['id']) + getPowerLevelWithBuffs($chara_2['id'])) * $exp001;
// $k_geld[0] = ((((($chara_1[starke] + $chara_1[verteidigung] + $chara_1[speed] + $chara_1[ausdauer] + $chara_1[glueck] + $chara_2[starke] + $chara_2[verteidigung] + $chara_2[speed] + $chara_2[ausdauer] + $chara_2[glueck]) / 2)) / 2)) * $exp001;
}
@ -283,8 +284,8 @@ if ($sieger == $chara_1['name']) {
$k_geld[0] = round(0.6 * $arena_data['geld']);
// Heimchar
$k_geld[1] = $arena_data['geld'] - $k_geld[0];
} else {
// Heimchar
$k_geld[1] = round(0.7 * $arena_data['geld']);
@ -327,4 +328,4 @@ if ($kampf_info['rasse'] != "NPC") {
mysql_query("INSERT top_kampf SET preis='$nw_preis', art='$kampf_info[art]', art2='$kampf_info[rasse]', hp1='$db_query2[hp1]', hp2='$db_query2[hp2]', mp1='$db_query2[mp1]', mp2='$db_query2[mp2]', attacke1='$db_query2[attacke1]', attacke2='$db_query2[attacke2]', schaden1='$db_query2[schaden1]', schaden2='$db_query2[schaden2]', char1='$db_query2[char1]', char2='$db_query2[char2]', starke1='$db_query2[starke1]', starke2='$db_query2[starke2]', ver1='$db_query2[ver1]', ver2='$db_query2[ver2]', speed1='$db_query2[speed1]',speed2='$db_query2[speed2]', ausdauer1='$db_query2[ausdauer1]', ausdauer2='$db_query2[ausdauer2]', glueck1='$db_query2[glueck1]', glueck2='$db_query2[glueck2]', exp1='$db_query2[exp1]', exp2='$db_query2[exp2]', geld1='$db_query2[geld1]', geld2='$db_query2[geld2]', loge='$db_query2[loge]', sitz=$db_query2[sitz], steh=$db_query2[steh], win='$db_query2[win]', lose='$db_query2[lose]', arena_name='$db_query2[arena_name]', arena_exp='$db_query2[arena_exp]', dauer='$dauer_Z', db_satz ='$chara_2[id]'");
}
?>
?>

@ -5,14 +5,15 @@
* @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/abholcodes.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/semaphore.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/parse.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/exp.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/abholcodes.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/semaphore.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/exp.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -104,7 +105,7 @@ $a_mp2[0] = round($a_mp2[0]);
$a_hp1[0] = round($a_hp1[0]);
$a_hp2[0] = round($a_hp2[0]);
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf_anzeige.php');
include_once (ROOT_PATH . '/include/kampf_anzeige.php');
$runde = $runde -1;
if ($kampf1['id']) {
@ -242,38 +243,38 @@ if ($kampf1['id']) {
}
if($user['id'] == $char_2['besitzer']){
// $arenas_new = round($arenas_exps[0] + (50* ($char_1['level']+$char_2['level'] )));
// Leveln der Arena :) (Um Rundungsfehler zu vermeiden diese umstaendliche Rechnung)
addExpToArena($char_2['besitzer'], $kampf1['arena_exp']-round($kampf1['arena_exp']*0.25));
// Umsatz wird schon vorher ermittelt :)
// mysql_query('UPDATE arena SET einnahmen = einnahmen + '.$kampf1['arena_geld'].' WHERE besitzer='.$char_2['besitzer']);
// include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/arena_exp.php');
// include_once (ROOT_PATH . '/include/arena_exp.php');
} else{
addExpToArena($char_1['besitzer'], round($kampf1['arena_exp']*0.25));
}
$row = mysql_fetch_assoc(mysql_query('Select mietlasten FROM arena WHERE besitzer='.$user['id']));
if($row['mietlasten'] > 2){
// Steuerschulden
$tilgung = ceil($new_geld_offset * 0.75);
$restgeld = $new_geld_offset - $tilgung;
mysql_query('UPDATE user SET geld=geld+'.$restgeld.' WHERE id= '.$user['id']);
echo '<script type="text/javascript">alert("Da du 3 Tage hintereinander nicht deine Umsatzsteuerverbindlichkeit beglichen hast wird ab jetzt automatisch von jedem Kampf ein Teil zur Tilgung verwendet. Daher fliessen '.$tilgung.' zum Gl&auml;biger");</script>';
echo '<script type="text/javascript">alert("Da du 3 Tage hintereinander nicht deine Umsatzsteuerverbindlichkeit beglichen hast wird ab jetzt automatisch von jedem Kampf ein Teil zur Tilgung verwendet. Daher fliessen '.$tilgung.' zum Gl&auml;biger");</script>';
mysql_query('UPDATE arena SET steuerlasten = steuerlasten - '.$tilgung. ' WHERE besitzer ='.$user['id']);
} else{
mysql_query('UPDATE user SET geld=' . $new_geld . ' WHERE id=' . $user['id'] . ' LIMIT 1');
}
// mysql_query("DELETE FROM kampf_nachricht WHERE charakter='$char_id'");
// include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/exp.php');
// include_once (ROOT_PATH . '/include/exp.php');
// Hinzufuegen der Exp und der Attacken :)
addExpToChar($char_id, $new_exp); // That was easy :)
// Nun die Attacken ins richtige Format setzen :)
// Momentan ist es so (1D Array)
// Schlag,Schlag,Kick,Schlag,Block,Schlag
@ -294,10 +295,10 @@ if ($kampf1['id']) {
$l_attacken[] = array('a_name' => $attacken[$i], 'anzahl' => 1);
}
}
// Rufe nun die Funktion zum req'en der attacken auf :)
addAttackUsageToChar($char_id, $l_attacken);
if ($itemname) {
$item_names = mysql_query("SELECT name FROM $new_item WHERE id IN(" . $itemname . ")");
$x2 = 0;

@ -5,9 +5,10 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
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/arena.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/arena.inc.php');
$k_exp[0] = "";
$X23 = "";
@ -119,7 +120,7 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[at_id]' LIMIT 10"));
///////////////////Hier laedt er den RELOAD der technik wenn die zusammen setzung nicht stimmen sollte
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
include (ROOT_PATH . '//include/kampf/andere_technik.php'); /////////////////// Wenn man ne andere technik sich aussuchen will...
$technick1[speed] = $technick1[speed] + (($technick1[speed] / 100) * $prozent_technik1);
$technick2[speed] = $technick2[speed] + (($technick2[speed] / 100) * $prozent_technik2);
@ -149,36 +150,36 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
$aussetzten_runde = ""; ////// MUSS SO BLEIBEN WICHTIG
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/majin.php');
include (ROOT_PATH . '//include/kampf/majin.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/atk_wert.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/gift.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/frucht.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/mp.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/hp.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/hp2.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/SSJ.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/kaioken.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/kaioken2.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/copy.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/lose.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/lose2.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/ausdauer.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/mpv.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/tausch.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/hpmp.php');
include (ROOT_PATH . '//include/kampf/atk_wert.php');
include (ROOT_PATH . '//include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include (ROOT_PATH . '//include/kampf/gift.php');
include (ROOT_PATH . '//include/kampf/frucht.php');
include (ROOT_PATH . '//include/kampf/mp.php');
include (ROOT_PATH . '//include/kampf/hp.php');
include (ROOT_PATH . '//include/kampf/hp2.php');
include (ROOT_PATH . '//include/kampf/SSJ.php');
include (ROOT_PATH . '//include/kampf/kaioken.php');
include (ROOT_PATH . '//include/kampf/kaioken2.php');
include (ROOT_PATH . '//include/kampf/copy.php');
include (ROOT_PATH . '//include/kampf/lose.php');
include (ROOT_PATH . '//include/kampf/lose2.php');
include (ROOT_PATH . '//include/kampf/ausdauer.php');
include (ROOT_PATH . '//include/kampf/mpv.php');
include (ROOT_PATH . '//include/kampf/tausch.php');
include (ROOT_PATH . '//include/kampf/hpmp.php');
//include "kampf/summon.php";
}
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/atk_wert.php');
include (ROOT_PATH . '//include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/schatten.php');
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/runde.php');
include (ROOT_PATH . '//include/kampf/schatten.php');
include (ROOT_PATH . '//include/kampf/runde.php');
}
#####################################KAMPF SYSTEM
include ($_SERVER['DOCUMENT_ROOT'] . '/ag/include/kampf/kampf_rechnung.php');
include (ROOT_PATH . '//include/kampf/kampf_rechnung.php');
#$db_query = mysql_fetch_array(mysql_query("SELECT * FROM clan_fights WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') AND dauer='0' order by id DESC LIMIT 1"));
$db_query = mysql_fetch_array(mysql_query("SELECT * FROM clan_fights WHERE (char1='$chara_1[id]' OR char1='$chara_2[id]') order by id DESC LIMIT 1"));
@ -208,4 +209,4 @@ if ($k_hp[0] < $k_aufgabe[0] OR $k_hp[0] < $k_hp[1]) {
mysql_query("UPDATE clan_fights SET win='$sieger', lose='$verlierer' WHERE id='$db_query[id]'");
?>
?>

@ -5,15 +5,15 @@
* @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/abholcodes.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/semaphore.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/img.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/exp.inc.php');
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/abholcodes.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/semaphore.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/img.inc.php');
include_once(ROOT_PATH.'/include/exp.inc.php');
// GET-Section
// Kritisch (SQL-Injections)

@ -5,8 +5,9 @@
* @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('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
?>
<SCRIPT language="JavaScript">

@ -5,11 +5,12 @@
* @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');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -20,7 +21,7 @@ $kampf_id = validateUnsignedInteger($_GET['kampf_id'], null);
<body bgcolor="#202020">
<?php
if(!$spleoic) { $spleoic = "top_kampf";
if(!$spleoic) { $spleoic = "top_kampf";
} else {
echo "<p align=center>$back<br>&nbsp;<br>";
$kampf1 = mysql_Fetch_array(mysql_query("SELECT * FROM $spleoic WHERE id='$kampf_id' LIMIT 1"));
@ -35,7 +36,7 @@ $char_1 = getChar($kampf1['char1']);
$char_2 = getChar($kampf1['char2']);
$arena = mysql_Fetch_array(mysql_query("SELECT name, besitzer FROM arena WHERE id='$kampf1[arena_name]' LIMIT 1"));
if($kampf1['dauer'] > time()) {
if($kampf1['dauer'] > time()) {
displayErrorMessage(NULL,'Der Kampf ist noch nicht vorbei!', displayHistoryBackLink());
exit;
}
@ -68,4 +69,4 @@ $a_mp1 = explode(",", $char_1[mp]);
$a_mp2 = explode(",", $char_2[mp]);
$runde = 1;
include($_SERVER['DOCUMENT_ROOT'].'ag/include/kampf_anzeige.php');
include(ROOT_PATH.'/include/kampf_anzeige.php');

@ -7,9 +7,10 @@
*/
$nodisturb = 'YES';
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/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -20,7 +21,7 @@ $art = validateString($_GET['art']);
?>
<body bgcolor="#202020">
<?php
if(!$spleoic) { $spleoic = "top_kampf";
if(!$spleoic) { $spleoic = "top_kampf";
} else {
echo "<p align=center>$back<br>&nbsp;<br>";
$kampf2 = mysql_Fetch_array(mysql_query("SELECT id FROM $spleoic ORDER BY id ASC LIMIT 1"));
@ -72,5 +73,5 @@ $a_mp1 = explode(",", $char_1[mp]);
$a_mp2 = explode(",", $char_2[mp]);
$runde = 1;
include($_SERVER['DOCUMENT_ROOT'].'ag/include/kampf_anzeige.php');
include(ROOT_PATH.'/include/kampf_anzeige.php');
?>

@ -5,11 +5,12 @@
* @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');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
//nur zum test
// GET-Section
@ -22,7 +23,7 @@ $kampf_id = validateUnsignedInteger($_GET['kampf_id'], null);
<body bgcolor="#202020">
<?php
if(!$spleoic) { $spleoic = "top_kampf";
if(!$spleoic) { $spleoic = "top_kampf";
} else {
echo '<p align=center><a href="javascript:window.close();">Schlie&szlig;en</a><br>&nbsp;<br>';
$kampf1 = mysql_Fetch_array(mysql_query("SELECT * FROM $spleoic WHERE id='$kampf_id' LIMIT 1"));
@ -36,7 +37,7 @@ $kampf1 = mysql_Fetch_array(mysql_query("SELECT * FROM $spleoic WHERE id='$kampf
$char_1 = getChar2($kampf1['char1']);
$char_2 = getChar2($kampf1['char2']);
if($kampf1['dauer'] > time()) {
if($kampf1['dauer'] > time()) {
displayErrorMessage(NULL,'Der Kampf ist noch nicht vorbei!', displayHistoryBackLink());
exit;
}
@ -67,4 +68,4 @@ $a_mp1 = explode(",", $char_1[mp]);
$a_mp2 = explode(",", $char_2[mp]);
$runde = 1;
include($_SERVER['DOCUMENT_ROOT'].'/ag/include/kampf_anzeige.php');
include(ROOT_PATH.'//include/kampf_anzeige.php');

@ -5,12 +5,13 @@
* @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/messagefunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -28,7 +29,7 @@ $charm = $_GET['charm'];
if (!$char_id) {
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/char_index.php');
include (ROOT_PATH . '/char_index.php');
exit;
}
@ -77,7 +78,7 @@ if ($charm) {
HP: old($char_hp[1]) new($new_hp)<br>
MP: old($char_mp[1]) new($new_mp)<br>
";
insertUserTickerMessage($user_ida['id'], 'Es wurden Lernpunkte des Chars '.$char['name'].'(ID:'.$char['id'].') eingesetzt. Neue Werte sind: Str: '.$new_st.',Def: '.$new_ver.',Lck: '.$new_glueck.',Spd: '.$new_speed.', Aus: '.$new_ausdauer.', HP: '.$new_hp.', MP: '.$new_mp.', LP: '.$new_lern);
displayErrorMessage(NULL,$fehler_m, '<a href=index.php?as=lernpunkte>weiter...</a>');
exit;
@ -100,7 +101,7 @@ var aktiv;
function button_plus(feld,schritt)
{max = <?php echo $char[lernpunkte]; ?> - document.forms[0].elements["ges_lern"].value;
if(document.forms[0].elements[feld].value<=max)
{
{
if( document.forms[0].elements["ges_lern"].value>0) {
document.forms[0].elements["ges_lern"].value = document.forms[0].elements["ges_lern"].value - parseInt(schritt);
nummer=parseInt(document.forms[0].elements[feld].value)+schritt;
@ -120,7 +121,7 @@ function button_minus(feld,min,schritt)
}
function start_plus(feld,schritt)
{
{
aktiv = setInterval("button_plus('"+feld+"',"+schritt+")",50);
}

@ -5,9 +5,10 @@
* @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/gfx/gfx_config.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/gfx/gfx_config.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section
// Leer

@ -5,9 +5,10 @@
* @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/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/char.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -83,7 +84,7 @@ if ($kampf_id) {
$a_mp2 = explode(",", $char_2[mp]);
$runde = 1;
include ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/kampf_anzeige.php');
include (ROOT_PATH . '/include/kampf_anzeige.php');
exit;
} else {

@ -6,9 +6,9 @@
*
*/
if (isset($_POST['nick_name']) and isset($_POST['pw_1'])) {
include_once($_SERVER['DOCUMENT_ROOT'] . '/ag/include/config/db.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/ag/include/user.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/ag/include/parse.inc.php');
include_once(ROOT_PATH . '//include/config/db.inc.php');
include_once(ROOT_PATH . '//include/user.inc.php');
include_once(ROOT_PATH . '//include/parse.inc.php');
$nick_name = validateName($_POST['nick_name']);
$pw_1 = validateString($_POST['pw_1']);
@ -18,7 +18,7 @@ if (isset($_POST['nick_name']) and isset($_POST['pw_1'])) {
if (checkLoginPassword($nick_name, $pw_1)) {
// MumbleAddon!!
if(isset($GLOBALS['mumble_db_name'])){
include_once($_SERVER['DOCUMENT_ROOT'] . 'ag/include/mumble.inc.php');
include_once(ROOT_PATH . '/include/mumble.inc.php');
insertUser($_POST['nick_name'], $_POST['pw_1']);
}

@ -5,12 +5,13 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/speed_config.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/config/db.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');
include_once($_SERVER['DOCUMENT_ROOT'] . 'ag/include/user.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config/speed_config.inc.php');
include_once (ROOT_PATH . '/include/config/db.inc.php');
include_once(ROOT_PATH . '/include/designfunctions.inc.php');
include_once(ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH . '/include/parse.inc.php');
include_once(ROOT_PATH . '/include/user.inc.php');
$nick_name = validateName($_POST['nick_name']);
$pw_1 = validateString($_POST['pw_1']);
@ -24,10 +25,10 @@ if (!checkLoginPassword($nick_name, $pw_1)) {
// MumbleAddon!!
if(isset($GLOBALS['mumble_db_name'])){
include_once($_SERVER['DOCUMENT_ROOT'] . 'ag/include/mumble.inc.php');
include_once(ROOT_PATH . '/include/mumble.inc.php');
insertUser($_POST['nick_name'], $_POST['pw_1']);
}
setCookies($nick_name, $pw_1);
header ("Location: index.php");
header ("Location: index.php");
?>

@ -5,13 +5,14 @@
* @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/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/gfx/gfx_config.php');
include_once(ROOT_PATH.'/gfx/gfx_config.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -42,7 +43,7 @@ $oder = validateString($_GET['oder']);
$ords = validateString($_GET['ords']);
$charm = validateString($_GET['charm']);
// Unkritisch
// Unkritisch
$as = $_GET['as'];
/////////////////////////Item Info
@ -186,7 +187,7 @@ exit;
$user_item = mysql_query("SELECT name, id FROM item ");
$GELD = $user[geld];
if ($ords == 'Trank') {
$MAXLENGTH= 2;
$MAXNUMBER= 98;

@ -5,12 +5,13 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/messagefunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/messagefunctions.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -50,7 +51,7 @@ function insertInIgnorelist($userid, $ignorename){ /// if($charm == 6) {
}
displayErrorMessage('&Auml;nderungen &uuml;bernommen',$fehler_m,$weiter_an);
}
function showIngorelist($userid){//if($charm == 5) {
?>
@ -144,7 +145,7 @@ $o++;
if(isset($nachrichten)){
$weiter_an = '<a href="index.php?as=nachricht">weiter...</a>';
// echo implode(',', $nachrichten);
mysql_query('DELETE FROM nachricht WHERE besitzer='.$userid.' AND id IN ('.implode(',',$nachrichten).')');
mysql_query('DELETE FROM nachricht WHERE besitzer='.$userid.' AND id IN ('.implode(',',$nachrichten).')');
displayErrorMessage('&Auml;nderungen &uuml;bernommen','Nachrichten Erfolgreich gel&ouml;scht',$weiter_an);
} else{
displayErrorMessage(NULL, 'Nachrichten konnten nicht gel&ouml;scht werden',displayHistoryBackLink());
@ -182,7 +183,7 @@ function sendMessageForumlar($userid,$username,$besitzer,$betreff,$text){// if($
$qry = mysql_query('SELECT nickname FROM user where gm = \'ja\'');
echo 'val == "hecht"';
while($row = mysql_fetch_assoc($qry)){
echo ' || val == "'.strtolower($row['nickname']).'"';
echo ' || val == "'.strtolower($row['nickname']).'"';
}
?>){
document.getElementById('notify').innerHTML = "Bugreports, Sittinganfragen und andere Adminangelegenheiten bitte nicht via pn verschicken (auch nicht im Forum)!!";
@ -264,9 +265,9 @@ function mainPage($userid,$aktualPage){
?>
<tr>
<td height="28" valign="top" align="left" colspan="5">
<script language="JavaScript">
function mark(){
for(var i=0;i<document.forms["nachrichten"].length;i++){
document.forms["nachrichten"].elements[i].checked = true;
@ -274,10 +275,10 @@ function mainPage($userid,$aktualPage){
}
</script>
<input id="input" type="button" name="mark_all" value="alle markieren" onClick="javascript:mark()"/>
<input id="input" type="submit" value="L&ouml;schen" />
</td>
</tr>

@ -5,9 +5,10 @@
* @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/designfunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -102,7 +103,7 @@ function displayNews($pagenum) {
if (!is_numeric($pagenum) || $pagenum < 0) {
$pagenum = 0;
}
$nachrichten = mysql_query('SELECT * FROM ff11_news order by id DESC LIMIT ' . ($pagenum*5) . ', 5');
while ($row = mysql_fetch_assoc($nachrichten)) {

@ -5,8 +5,9 @@
* @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/designfunctions.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
?>
<table cellpadding="0" cellspacing="0" height="45">
<tr>

@ -0,0 +1,23 @@
<?php
//define('ROOT_PATH', ROOT_PATH.'ag
// okay and now define the url ;)
if(!defined('ROOT_PATH')) {
$actual_path = $_SERVER['SCRIPT_FILENAME'];
$url_path = $_SERVER['SCRIPT_NAME' ];
//s echo $actual_path .'<br>';
// okay this is the script that has included us :) -> lets search for the include/config/ directory
while(strlen($actual_path) > 0) {
$actual_path = substr($actual_path,0,strrpos($actual_path,'/'));
$url_path = substr($url_path,0,strrpos($url_path,'/'));
if(is_dir($actual_path . '/include/config')) {
define('ROOT_PATH', $actual_path);
define('ROOT_URL', $url_path);
}
}
}
?>

@ -5,11 +5,12 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/user.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/user.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -84,7 +85,7 @@ function changeProfil($user, $usergroups, $new_pw, $new_nick, $new_nick2, $alt_p
}
setPassword($user['nickname'], $new_pw);
}
if($chat == 1) {
if(!isUserInGroup($usergroups, AKTIV_CHAT)) {
addUserToGroup($user['nickname'], AKTIV_CHAT);
@ -94,7 +95,7 @@ function changeProfil($user, $usergroups, $new_pw, $new_nick, $new_nick2, $alt_p
removeUserFromGroup($user['nickname'], AKTIV_CHAT);
}
}
if($ads == 1) {
if(!isUserInGroup($usergroups, WERBUNG_AN)) {
addUserToGroup($user['nickname'], WERBUNG_AN);
@ -104,7 +105,7 @@ function changeProfil($user, $usergroups, $new_pw, $new_nick, $new_nick2, $alt_p
removeUserFromGroup($user['nickname'], WERBUNG_AN);
}
}
if($acc_delete == 1) {
if(!isUserInGroup($usergroups, AKTIV_LOESCHSCHUTZ)) {
addUserToGroup($user['nickname'], AKTIV_LOESCHSCHUTZ);
@ -182,7 +183,7 @@ function display($user, $usergroups){
</tr>
<tr>
<th align="center">Werbegrad:</th>
<td><?php
<td><?php
if(!isUserInGroup($usergroups, WERBUNG_AN)) {
$che1 = 'checked="checked"';
$che2 = '';

@ -5,7 +5,8 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/parse.inc.php');
// GET-Section

@ -5,11 +5,12 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
// GET-Section
// Kritisch (SQL-Injections)

@ -5,17 +5,18 @@
* @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/parse.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/fehlerausgabe.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/abholcodes.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/designfunctions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/schatz.inc.php'); // Hilfsfunktionen
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/char.inc.php'); // Hilfsfunktionen
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/semaphore.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/img.inc.php');
include 'gfx/gfx_config.php';
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/parse.inc.php');
include_once (ROOT_PATH . '/include/fehlerausgabe.inc.php');
include_once (ROOT_PATH . '/include/abholcodes.inc.php');
include_once (ROOT_PATH . '/include/designfunctions.inc.php');
include_once (ROOT_PATH . '/include/schatz.inc.php'); // Hilfsfunktionen
include_once (ROOT_PATH . '/include/char.inc.php'); // Hilfsfunktionen
include_once (ROOT_PATH . '/include/semaphore.inc.php');
include_once (ROOT_PATH . '/include/img.inc.php');
include_once ROOT_PATH . 'gfx/gfx_config.php';
// GET-Section
// Kritisch (SQL-Injections)
@ -39,13 +40,13 @@ $quest = mysql_query('SELECT * FROM quest_ort');
$char = getChar($char_id);
if(!isUserOwnerOf($user_ida['id'], $char_id)){
displayErrorMessage(NULL, 'Das ist nicht dein Char!!', displayHistoryBackLink());
exit;
exit;
}
$c_hp = preg_split('#,#',$char['hp']);
if($c_hp[0] < 50){
displayErrorMessage(NULL, 'Dein Char hat zu wenig HP (Mindestens 50)!!', displayHistoryBackLink());
exit;
exit;
}
$auth = true;
if(hasToAuthenticate($user_ida)){
@ -70,7 +71,7 @@ $coords[0] = $char_ort['x_coord'];
$coords[1] = $char_ort['y_coord'];
if ($charm == 1) {
if (!semaphoreUP($ressource)) { // Blockiere alle Aktionen die der User gleichzeitig ausfuehren will (Ausgaben, Chars etc.) um Problemen vorzubeugen!!
displayErrorMessage(NULL, 'Verarbeitung gerade in Gange, bitte warten...', displayHistoryBackLink());
exit;
@ -82,7 +83,7 @@ if ($charm == 1) {
$coords2[0] = $city['x_coord'];
$coords2[1] = $city['y_coord'];
$std = max(round(sqrt(pow($coords[0]-$coords2[0],2) + pow($coords[1] - $coords2[1],2))/35),1);
$kosten = $city['kosten']+round(log($std*0.1+1.25)*$city['kosten'],0);
@ -109,14 +110,14 @@ if ($charm == 1) {
}
// transferMonster();
$load_monster = getMonster($char['level'], $city['id'], $std, $std*2+2);
if($load_monster == NULL){
displayErrorMessage(NULL, 'Dein Char traut sich nicht dorthin zu gehen, versuchs sp&auml;ter nochmal!!', displayHistoryBackLink());
semaphoreDown($ressource); // Gebe die Useraktionen wieder frei :)
exit;
}
// Change: Ort wird jetzt beim abholen Eingetragen
mysql_query('UPDATE chars SET status=\'Schatz Suche\' WHERE id=' . $char_id);
@ -161,7 +162,7 @@ if ($charm == 1) {
</tr>
<tr>
<th valign="top" align="center" id="reisedauer"></th>
</tr>
</tr>
<tr>
<th valign="top" align="center" id="info"></th>
</tr>

@ -4,15 +4,17 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/abholcodes.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/semaphore.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/kampf_anzeige.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/schatz.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
*/
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/abholcodes.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/semaphore.inc.php');
include_once(ROOT_PATH.'/include/kampf_anzeige.inc.php');
include_once(ROOT_PATH.'/include/schatz.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -58,7 +60,7 @@ if($abort == 'cancel'){
displayErrorMessage(NULL,'Die Schatzsuche wurde abgebrochen!', displayIndexBackLink());
} else {
echo '<p>Schatz Suche wirklich abbrechen?</p>';
echo '<p><a href="./schatz3.php?char_id='.$char_id.'&code='.$code.'&abort=cancel&true=1">Ja</a> | <a href="./index.php?as=abholen&ab=Schatz Suche&char_id='.$char_id.'">Nein</a></p>';
echo '<p><a href="./schatz3.php?char_id='.$char_id.'&code='.$code.'&abort=cancel&true=1">Ja</a> | <a href="./index.php?as=abholen&ab=Schatz Suche&char_id='.$char_id.'">Nein</a></p>';
}
} else{
if(($text = displaySchatzSuche($char)) !== null){

@ -6,7 +6,8 @@
* @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('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
if(!$char_id) {
include "char_index.php";
exit;

@ -5,11 +5,12 @@
* @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/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/fehlerausgabe.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/char.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/config.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
// GET-Section
// Kritisch (SQL-Injections)
@ -27,7 +28,7 @@ function useChest($item_id, $user){
mysql_query('DELETE from sp_ware WHERE item='.$item_id.' and user = '.$user['id'].' LIMIT 1');
if(mysql_affected_rows() == 1){
$row = mysql_fetch_assoc(mysql_query('SELECT wert FROM sp_item where id = '.$item_id));
// Calc the treasure
$treasure = mt_rand(0,1000) * $row['wert'];
// $treasure = 0;
@ -63,13 +64,13 @@ function useBohne($item_id, $user){
}
// So nun nutzen
mysql_query('DELETE from sp_ware WHERE item='.$item_id.' and user = '.$user['id'].' LIMIT 1');
foreach($chars as $row){
$hp = explode(',', $row['hp']);
$mp = explode(',', $row['mp']);
mysql_query('UPDATE chars SET hp=\''.$hp[1].','.$hp[1].'\', mp=\''.$mp[1].','.$mp[1].'\' WHERE id='.$row['id']);
}
displayErrorMessage('&Auml;nderungen &uuml;bernommen','Item erfolgreich benutzt. Die HP und MP all deiner Chars sind wieder voll hergestellt!!','<a href="index.php?as=item">weiter...</a>');
}
@ -78,14 +79,14 @@ function usePotaraReally($user, $item_id, $char1, $char2, $new_name = ''){
if($new_name === NULL || $new_name == ''){
displayErrorMessage(NULL,'Name nicht angegeben',displayHistoryBackLink());
}
$char_v_1 = getChar($char1);
$char_v_2 = getChar($char2);
if($char_v_1['name'] != $new_name && $char_v_2['name'] != $new_name){ // Der Name der Fusion darf auch der Name eines der Chars sein
$char_v_3 = mysql_Fetch_array(mysql_query('SELECT id FROM chars WHERE name=\''.$new_name.'\' LIMIT 1'));
}
if($char_v_1['besitzer'] != $user['id'] || $char_v_2['besitzer'] != $user['id']) {
displayErrorMessage(NULL,$char_v_1['name'].' oder '.$char_v_2['name'].' geh&ouml;rt dir nicht!!',displayHistoryBackLink());
return;
@ -110,8 +111,8 @@ function usePotaraReally($user, $item_id, $char1, $char2, $new_name = ''){
$mp2 = explode(',', $char_v_2['mp']);
$new_hp = ($hp1[1] + $hp2[1]) ;
$new_mp = ($mp1[1] + $mp2[1]);
$sql = 'UPDATE chars SET fusion_rasse = \''.$char_v_2['rasse'].'\',' .
'fusion=\'ja\',' .
// 'name=\''.$new_name.'\',' .
@ -120,7 +121,7 @@ function usePotaraReally($user, $item_id, $char1, $char2, $new_name = ''){
'speed=speed+'.$char_v_2['speed'].',' .
'ausdauer=ausdauer+'.$char_v_2['ausdauer'].',' .
'glueck=glueck+'.$char_v_2['glueck'].',' .
'training_points=training_points+'.$char_v_2['training_points'].',' .
'training_points=training_points+'.$char_v_2['training_points'].',' .
'lernpunkte=lernpunkte+'.$char_v_2['lernpunkte'].',' .
'hp=\''.$new_hp.','.$new_hp.'\',' .
'mp=\''.$new_mp.','.$new_mp.'\',' .
@ -145,7 +146,7 @@ function usePotaraReally($user, $item_id, $char1, $char2, $new_name = ''){
return;
}
mysql_query('DELETE from sp_ware WHERE item='.$item_id.' and user = '.$user['id'].' LIMIT 1'); // Potara loeschen!!
// 1. Ermitteln der Attacken die beide chars gemeinsam hatten
$qry = mysql_query('select l1.at_id,l1.benutzt + l2.benutzt as benutzt from lernen l1 inner join lernen l2' .
' on l1.at_id = l2.at_id ' .
@ -159,11 +160,11 @@ function usePotaraReally($user, $item_id, $char1, $char2, $new_name = ''){
mysql_query('Update lernen set besitzer = '.$char1.' where besitzer = '.$char2.' and at_id NOT IN('.join($attarray,',').')');
// 4. Loeschen der Eintraege von char2
mysql_query('Delete from lernen where besitzer = '.$char2);
mysql_query('DELETE FROM chars WHERE id='.$char2.' LIMIT 1'); // Char kann erst jetzt gelöscht werden
mysql_query('Update chars set name=\''.$new_name.'\' WHERE id = '.$char1);
displayErrorMessage('&Auml;nderungen &uuml;bernommen','Charakter: '.$new_name.' erfolgreich fusioniert!!','<a href="index.php?as=char_index">weiter...</a>');
return;
}
@ -171,7 +172,7 @@ function usePotaraReally($user, $item_id, $char1, $char2, $new_name = ''){
function confirmPotaraUse($item_id, $char1, $char2, $new_name){
$char_v_1 = getChar($char1);
$char_v_2 = getChar($char2);
$weiter_an = '<a href="index.php?as=sp_item&ab=1&item_id='.$item_id.'&new_name='.$new_name.'&char1='.$char1.'&char2='.$char2.'&ak=1">Ja</a>' .
' | <a href="index.php">abbrechen</a>';
displayErrorMessage('Frage','Wollen sie echt die Chars '.$char_v_1['name'].' + '.$char_v_2['name'].' fusionieren??',$weiter_an);
@ -217,12 +218,12 @@ function askForPotaraUse($user, $item_id){
// This function has been changed (item_id points now on item-class not on an single object)
function useItem($user,$item_id, $ab, $ak, $char1, $char2, $new_name){
$item = mysql_fetch_assoc(mysql_query('SELECT si.name, si.info, si.id, count(sw.item) as anzahl FROM sp_item si LEFT JOIN (Select item from sp_ware where user = '.$user['id'].') sw ON sw.item = si.id WHERE si.id = '.$item_id));
if($item['anzahl'] <= 0){
displayErrorMessage('Kann Item nicht nutzen', 'Du hast nicht genügend Items vom Typ '.$item['name'], displayHistoryBackLink());
return;
}
if($ab !== NULL && $item['id'] == 2){ // Bohne
useBohne($item_id,$user);
} else if($ab !== NULL && $item['id'] == 1){
@ -234,7 +235,7 @@ function useItem($user,$item_id, $ab, $ak, $char1, $char2, $new_name){
askForPotaraUse($user, $item_id);
}
} else if($ab !== NULL && ($item['id'] == 404 || $item['id'] == 415)){ // Chests
useChest($item_id, $user);
useChest($item_id, $user);
} else {
display($item_id, $item['name'],$item['info']);
}

@ -6,7 +6,8 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/donate.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/donate.inc.php');

@ -5,11 +5,11 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/user.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/clan_fights.inc.php');
include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/user.inc.php');
include_once(ROOT_PATH.'/include/parse.inc.php');
include_once(ROOT_PATH.'/include/clan.inc.php');
include_once(ROOT_PATH.'/include/clan_fights.inc.php');
$acceptTestCase = true;
@ -54,7 +54,7 @@ if($acceptTestCase) {
if($result !== NULL) {
echo $result.'<br>';
}
/*
if(getOpenChallengeRequestCount($clan1['id']) > 0) {
echo 'Fehler in getOpenChallengeRequestCount: Es sollte kein Fight-Request offen sein!!<br>';
}
@ -103,7 +103,7 @@ if($acceptTestCase) {
$result = joinChallenge($clan_challenge_id, $leaderClan2, $chars2[0]['id'], 1);
if($result !== NULL) {
echo $result .'<br>';
}
}*/

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save