diff --git a/ag/ag_popupchat.php b/ag/ag_popupchat.php
index ec05226..a25b9c0 100644
--- a/ag/ag_popupchat.php
+++ b/ag/ag_popupchat.php
@@ -12,6 +12,7 @@ include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH . '/include/config.inc.php');
include_once (ROOT_PATH . '/include/messagefunctions.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
+include_once(ROOT_PATH.'/include/random.inc.php');
defineIfNotDefined('AG_CHAT_ROWS', 25);
defineIfNotDefined('AG_CHAT_ORDER', 'ASC');
@@ -43,7 +44,7 @@ if(isset($user_ida['nickname'])){
}
$usr = mysql_fetch_assoc(mysql_query('Select * from anon_chatter where ip = \''.$_SESSION['anon_ip'].'\''));
while(!$usr){
- mysql_query('Insert into anon_chatter(ip, anon_id) values(\''.$_SESSION['anon_ip'].'\', '.mt_rand(90000,99999).')');
+ mysql_query('Insert into anon_chatter(ip, anon_id) values(\''.$_SESSION['anon_ip'].'\', '.mt_random_wrapper(90000,99999).')');
$usr = mysql_fetch_assoc(mysql_query('Select * from anon_chatter where ip = \''.$_SESSION['anon_ip'].'\''));
}
$user_ida['id'] = $usr['anon_id'];
diff --git a/ag/arena.php b/ag/arena.php
index eeb610f..a473609 100644
--- a/ag/arena.php
+++ b/ag/arena.php
@@ -313,9 +313,9 @@ function renovate($user, $arena, $vermoegen){
}
-$arena = getArena($user_ida[id]);
+$arena = getArena($user_ida['id']);
-$auktionensumme = mysql_fetch_assoc(mysql_query('SELECT SUM(aktuellesgebot) as summe FROM auktion WHERE bieter = '.$user_ida[id].' GROUP BY bieter'));
+$auktionensumme = mysql_fetch_assoc(mysql_query('SELECT SUM(aktuellesgebot) as summe FROM auktion WHERE bieter = '.$user_ida['id'].' GROUP BY bieter'));
$auktionensumme = $auktionensumme['summe'];
$vermoegen = $user['geld'] - $auktionensumme;
$unterhalt = calculateUnterhaltsKosten($arena);
diff --git a/ag/auktion.php b/ag/auktion.php
index 8efd347..a2daf94 100644
--- a/ag/auktion.php
+++ b/ag/auktion.php
@@ -384,7 +384,7 @@ function zieheAuktionZurueck($userid,$auktionsid,$pay){
}
-if(isset($user_ida[id])){
+if(isset($user_ida['id'])){
// Abfrage der uebergebenen Aktionen
if($action == 1){ // Bieten für eine Auktion
stelleBietenMaskeDar($user_ida['id'],$auktionsid, $gebot);
diff --git a/ag/char_overview.php b/ag/char_overview.php
index b6e1873..30b91ef 100644
--- a/ag/char_overview.php
+++ b/ag/char_overview.php
@@ -24,10 +24,6 @@ include_once(ROOT_PATH.'/include/char.inc.php');
$chars = getCharsOfUser($user_ida['id']);
$char_zahl = 0;
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"){
$fusi = "
Fusionsrasse: ".$my_charz['fusion_rasse'];
diff --git a/ag/char_profil.php b/ag/char_profil.php
index 858c410..92a5735 100644
--- a/ag/char_profil.php
+++ b/ag/char_profil.php
@@ -92,7 +92,7 @@ function stelledar($char_id,$user_ida,$name) {
- Raum für
+ Raum für
|
|