<?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/online.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/ag/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"));
$itemsx2 = mysql_num_rows(mysql_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]'"));
$itemsz2 = mysql_fetch_array(mysql_query("SELECT id FROM sp_ware WHERE item='2' AND user='$user_ida[id]' LIMIT 1"));
$anmeldungen = mysql_num_rows(mysql_Query("SELECT id FROM user"));
$db_info = mysql_num_rows(mysql_Query("SELECT id FROM sp_ware WHERE user='$user_ida[id]' AND item='11'"));
$user_info_test = mysql_Fetch_array(mysql_Query("SELECT geld FROM user WHERE nickname='$name' LIMIT 1"));
//$nnn_nn = mysql_num_rows(mysql_query("SELECT id FROM nachricht WHERE besitzer='$user_ida[id]' AND ag='neu'"));
//echo $nnn_nn;
$zeit = date("H:i:s");
$date = date("d.m.y");
$user_info_test2['geld'] = displayMoney($user_info_test['geld']);
?>
< SCRIPT language = "JavaScript" >
function markt(){
var Info = window.open("markt.php","","status=no,hotkeys=no,Height=500,Width=700,scrollbars=yes");
}
< / SCRIPT >
<?php
if ($name AND $passwort) {
$charakter_009 = "
< a href = 'index.php?as=char' > Charakter Erstellen< / a > < br >
< a href = 'index.php?as=char_index' > Charakter Verwaltung< / a > < br >
< a href = 'index.php?as=training' > Charakter Training< / a > < br >
< a href = 'index.php?as=info/lern' > Meine Techniken< / a > < br >
< a href = 'index.php?as=lernpunkte' > Lernpunkte< / a > < br >
< a href = 'index.php?as=schatz_suche' > Schatz Suche< / a > < br >
< a href = 'index.php?as=arena' > Arena< / a > < br >
< a href = 'index.php?as=liga_kampf_anzeige' > Meine Liga Kä mpfe< / a > < br >
< a href = 'index.php?as=wanted_kampf_anzeige' > Meine Wanted Kä mpfe< / a > < br >
";
$charakter_009 = "< a href = index.php?as=char_overview > Charakter Ü bersicht< / a > < br > ".$charakter_009;
$training_009 = "";
$turnier_009 = '< a href = "index.php?as=turnier&art=wochen" > Wochen Turnier Anmeldung< / a > < br > ' .
'< a href = "index.php?as=turnier&art=klein" > Anfä nger Turnier Anmeldung< / a > < br > ' .
'< a href = "index.php?as=turnier_auswahl" > Turnier Angucken< / a > < br > ';
if ($user_ida['clan'] == 0) {
$clan_009 = "
< a href = index.php?as=clan/new > Clan Grü nden< / a > < br >
< a href = index.php?as=clan/add > Clan Beitreten< / a > < br > ";
} else {
?>
< SCRIPT language = "JavaScript" >
function showgames(){
var Info = window.open("./clan/kampf_list.php","","status=no,hotkeys=no,Height=600,Width=820,scrollbars=yes");
}
function pkampf(){
var Info = window.open("c_kampf_anzeige.php","","status=no,hotkeys=no,Height=600,Width=820,scrollbars=yes");
}
< / SCRIPT >
<?php
$clan_009 = "
< a href = index.php?as=clan/clan_info > Mein Clan< / a > < br >
< a href = index.php?as=clan/c_markt > Clan Markt< / a > < br >
< a href = index.php?as=clan/c_ware > Clan Item Nutzung< / a > < br >
< a href = index.php?as=clan/spende > Geld Spenden< / a > < br >
< a href = index.php?as=clan/c_ticker > Clan Ticker< / a > < br >
< a href = index.php?as=clan/add > Clan Wechseln< / a > < br >
";
}
// $clan_009 .= "< a href = index.php?as=clan/c_kampf&id=fights > Clan Kä mpfe Anzeige< / a > < br > ";
// Ist user der leader?
// $chiefs = mysql_fetch_assoc(mysql_query('Select co_leader, leader from clan where id = '.$user_ida['clan']));
// if($chiefs['co_leader'] == $user_ida['id'] || $chiefs['leader'] == $user_ida['id']){
// $clan_009 .= '< a href = index.php?as=clan/c_kampf > Clan Kä mpfe< / a > < br > ';
// }
$info_009 = "
< a href = index.php?as=auser > Alle User< / a > < br >
< a href = index.php?as=info/attacken > Alle Attacken< / a > < br >
< a href = index.php?as=ranglist > Top 50 User< / a > < br >
< a href = index.php?as=clan/c_ranglist > Top 10 Clan< / a > < br >
< a href = index.php?as=wanted > Top 10 wanted< / a > < br >
< a href = index.php?as=online > Wer ist Online?< / a > < br >
< a href = index.php?as=liga1 > Liga 1< / a > < br >
< a href = index.php?as=halloffame > Halle der Helden< / a > < br >
< a href = index.php?as=last_fight > Letzten 20 Kä mpfe< / a > < br > ";
$auktionensumme = mysql_fetch_assoc(mysql_query('SELECT SUM(aktuellesgebot) as summe FROM auktion WHERE bieter = ' . $user_ida[id] . ' GROUP BY bieter'));
$auktionensumme = $auktionensumme[summe];
if ($auktionensumme == 0) {
$geldstring = $user_info_test2[geld];
} else {
$geldstring = displayMoney($user_info_test['geld'] - $auktionensumme) . ' (' . $user_info_test2['geld'] . ')';
}
$points = mysql_Fetch_array(mysql_Query("SELECT pkt FROM user WHERE nickname='$name' LIMIT 1"));
$points2[pkt] = number_format($points[pkt], 0, "", ".");
$points3 = $points2[pkt];
if ($name == 'Pegasus') {
$status_009 .= "< a href = 'index.php?as=status' > Status< / a > < br > ";
}
$status_009 .= "Geld: $geldstring< br > ";
// $status_009 .= "IP: $points3 < br > ";
$status_009 .= '< a href = "index.php?as=profil" > Profil< / a > < br > ';
$status_009 .= '< a href = "index.php?as=ticker" > User Ticker< / a > < br > ';
$status_009 .= '< a href = "index.php?as=nachricht" > User Postfach< / a > < br > ';
$status_009 .= '< a href = "index.php?as=item" > Meine Items< / a > < br > ';
$status_009 .= '< a href = "javascript:markt();" > Markt< / a > < br > ';
$status_009 .= '< a href = "index.php?as=auktion" > Auktions Markt< / a > < br > ';
// $status_009 .= '< a href = "index.php?as=shop" > Shakkys Abzockbar< / a > < br > ';
$status_009 .= '< a href = "logout.php" > Logout< / a > < br > ';
} else {
$agc_009 = "
< a href = index.php?as=anmeldung > Anmeldung< / a > < br >
< a href = index.php?as=login > Login< / a > < br >
< a href = index.php?as=aktiv > Account Aktivieren< / a > < br >
< a href = index.php?as=pw > Passwort Vergessen?< / a > < br >
< a href = index.php?as=info/logs > Login Probleme?< / a > < br >
";
}
$active = mysql_fetch_assoc(mysql_query('select count(*) as anzahl from user where online_zeit between TIMESTAMPADD(DAY, -7, now()) and now()'));
$o_datum = preg_split('# #',$online_rekord_1_0['datum']);
$info_019 = "
< a href = \"$GLOBALS[faq_url]\" > FAQ< / a > < br >
< a href = \"$GLOBALS[noobguide_url]\" > Anfä ngerguide< / a > < br >
< a href = index.php?as=support > AG Unterstü tzen< / a > < br >
< a href = index.php?as=info/agb target = _blank > Regeln lesen< / a > < br >
< a href = index.php?as=umfrage > Umfragen< / a > < br >
< a href = index.php?as=impressum > I m p r e s s u m < / a > < hr id = hru >
Angemeldet: $anmeldungen < br > " .
"Aktiv: $active[anzahl]< br >
Online: $online_r< br >
Online Rekord: $online_rekord_1_0[anzahl]< br >
Am: $o_datum[0]< br >
Um: $o_datum[1] Uhr< br > ";
?>
< / ul >