1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130:
|
<?php
// 22062004
require_once "common.php"; checkday(); $result = db_query("SELECT login,name,level,guildID, guildRank,guildID,sex,title,specialty,hashorse,acctid,age,marriedto,herotattoo,pvpflag,charisma,resurrections,bio,dragonkills,race,avatar,housekey,punch,reputation,birthday FROM accounts WHERE login='$_GET[char]'"); $row = db_fetch_assoc($result); $row[login] = rawurlencode($row[login]);
page_header("Charakter Biographie: ".preg_replace("'[`].'","",$row[name])); $specialty=array(0=>"nicht spezifiziert","Dunkle Künste","Mystische Kräfte","Diebeskunst"); //$horses=array(0=>"None","Pony","Gelding","Stallion"); output("`3Biographie für $row[name]"); if ($session[user][loggedin]) output("<a href=\"mail.php?op=write&to=$row[login]\" target=\"_blank\" onClick=\"".popup("mail.php?op=write&to=$row[login]").";return false;\"><img src='images/newscroll.GIF' width='16' height='16' alt='Mail schreiben' border='0'></a>",true); if (getsetting("avatare",0)==1){ if ($row[avatar]){ $pic_size = rgetimagesize($row[avatar]); $pic_width = $pic_size[0]; $pic_height = $pic_size[1]; output("<table><tr><td valign='top'>`n`n<img src=\"$row[avatar]\" ",true); if ($pic_width > 200) output("width=\"200\" ",true ); if ($pic_height > 200) output("height=\"200\" ",true ); output("alt=\"".preg_replace("'[`].'","",$row[name])."\"> </td><td valign='top'>",true); } else { output("<table><tr><td>(kein Bild) </td><td>",true); } } output("`n`n`3Titel: `r$row[title]`n"); if (getsetting("activategamedate","0")==1 && $row[birthday]!="") output("`3Geburtstag: `r$row[birthday]`n"); output("`3Level: `r$row[level]`n"); output("`3Alter seit DK: `r$row[age]`3 Tage`n"); output("`3Wiedererweckt: `r$row[resurrections]x`n"); output("`3Rasse: `r{$races[$row['race']]}`n"); output("`3Geschlecht: `r".($row[sex]?"Weiblich":"Männlich")."`n"); output("`3Spezialgebiet: `r".$specialty[$row[specialty]]."`n");
$sql = "SELECT mountname FROM mounts WHERE mountid='{$row['hashorse']}'"; $result = db_query($sql); $mount = db_fetch_assoc($result); if ($mount['mountname']=="") $mount['mountname'] = "`iKeines`i"; output("`3Tier: `r{$mount['mountname']}`n");
if ($row['dragonkills']>0) output("`3Drachenkills: `r{$row['dragonkills']}`n");
output("`3Bester Angriff: `r$row[punch]`n");
output("<table border='0' cellspacing='0' cellpadding='0'><tr><td>`3Ansehen: </td><td>".grafbar(100,($row['reputation']+50),100,12)."</td></tr></table>",true); if ($row[housekey]) output("`3Hausnummer: `r$row[housekey]`n"); if ($row[marriedto]){ if ($row[marriedto]==4294967295){ output("`3Verheiratet mit: `r".($row[sex]?"Seth":"Violet")."`n"); }elseif ($row[charisma]==4294967295){ $sql = "SELECT name FROM accounts WHERE acctid='{$row['marriedto']}'"; $result = db_query($sql); $partner = db_fetch_assoc($result); output("`3Verheiratet mit: `r{$partner['name']}`n"); } } if ($row['pvpflag']=="5013-10-06 00:42:00") output("`4`iSteht unter besonderem Schutz`i"); if (getsetting("avatare",0)==1)output ("</td></tr></table>",true); if ($row['bio']>"") output("`n`3Bio: `r`n".soap($row['bio'])."`n"); if($row['herotattoo']>0){ output("`n`^Tätowierungen:`n <table border=0><tr>",true); for($i=1;$i<=$row['herotattoo'];$i++){ output("<td align='center'>`r$ghosts[$i]</td>",true); } output("</tr><tr>",true); for($i=1;$i<=$row['herotattoo'];$i++){ output("<td><img src='images/t".$i.".jpg' alt='Tatoo ".$i."'>",true); } output("</tr></table>",true); } // Guilds/Clans Change if ($row['guildID']!=0) { Require_once("guildclanfuncs.php"); $ThisGuild=$session['guilds'][$row['guildID']]; $GuildName=$ThisGuild['Name']; $PublicText=$ThisGuild['PublicText']; $sql2="select DisplayTitle from lotbd_guildranks where RankID='".$row['guildRank']."'"; $result2=db_query($sql2); $row2 = db_fetch_assoc($result2); $Rank=$row2['DisplayTitle']; output("`3Clan/Gilde: `r".$ThisGuild['Name']."`n",true); output("`3Rang: `r".$Rank."`n",true); output("`3Motto: `r".$PublicText."`n`n"); } // End Guilds/Clans Change
if ($row['clanID']!=0) { Require_once("guildclanfuncs.php"); $ThisClan=$session['guilds'][$row['clanID']]; $ClanName=$ThisClan['Name']; $PublicText=$ThisClan['PublicText']; $sql2="select DisplayTitle from lotbd_guildranks where RankID='".$row['guildRank']."'"; $result2=db_query($sql2); $row2 = db_fetch_assoc($result2); $Rank=$row2['DisplayTitle']; output("`3Clan: `r".$ClanName."`n",true); output("`3Rang: `r".$Rank."`n",true); output("`3Motto: `r".$PublicText."`n`n"); } // End Guilds/Clans Change output("`n`3Letzte Leistungen (und Niederlagen) von $row[name]`3"); $result = db_query("SELECT * FROM news WHERE accountid=$row[acctid] ORDER BY newsdate DESC,newsid ASC LIMIT 100"); $odate=""; for ($i=0;$i<db_num_rows($result);$i++){ $row = db_fetch_assoc($result); if ($odate!=$row[newsdate]){ output("`n`b`r".date("D, M d",strtotime($row[newsdate]))."`b`n"); $odate=$row[newsdate]; } output($row[newstext]."`n"); }
if ($_GET[ret]==""){ addnav("Zur Liste der Krieger","list.php"); }else{ $return = preg_replace("'[&?]c=[[:digit:]-]+'","",$_GET[ret]); $return = substr($return,strrpos($return,"/")+1); addnav("Zurück",$return); } page_footer();
?>
|