Wir reden beide vond er bio.php...oderß nein das steht meienr meinung nicht drinne...
das ist meien bio php:
<?php
// 22062004
require_once "common.php";
checkday();
global $session;
/**
* Allow these tags
*/
$allowedTags = '<h1><h3><b><i><a><ul><li><pre><hr><blockquote><img>';
/**
* Disallow these attributes/prefix within a tag
*/
$stripAttrib = 'javascript:|onclick|ondblclick|onmousedown|onmouseup|onmouseover|'.
'onmousemove|onmouseout|onkeypress|onkeydown|onkeyup|onabort|'.
'onfocus|onload|onblur|onchange|onerror|onreset|onselect|obsubmit|onunload';
/**
* @return string
* @param string
* @desc Strip forbidden tags and delegate tag-source check to removeEvilAttributes()
*/
function removeEvilTags($source)
{
global $allowedTags;
$source = strip_tags($source, $allowedTags);
return preg_replace('/<(.*?)>/ie', "'<'.removeEvilAttributes('\\1').'>'", $source);
}
/**
* @return string
* @param string
* @desc Strip forbidden attributes from a tag
*/
function removeEvilAttributes($tagSource)
{
global $stripAttrib;
return stripslashes(preg_replace("/$stripAttrib/i", 'forbidden', $tagSource));
}
$result = db_query("SELECT * 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");
$gott=array(
1=>"MorganleFay",
2=>"Sirius",
3=>"Tal",
4=>"Deneir",
0=>"`)Keiner");
//$horses=array(0=>"None","Pony","Gelding","Stallion");
$jobid=array(
1=>"Schmied",
2=>"Pfleger",
3=>"Hebamme",
4=>"Schankknecht",
5=>"Schankmaid",
6=>"Radmacher",
7=>"Florist",
8=>"Floristin",
9=>"Krämer",
10=>"Kerzenzieher",
11=>"Gaukler",
12=>"Barde",
13=>"Redner",
14=>"Wirt",
15=>"Bote",
16=>"Kunstschmied",
17=>"Heiler",
18=>"Gärtner",
19=>"Lehrer",
20=>"Zahnreisser",
21=>"Tänzer",
22=>"Geschichtenerzähler",
23=>"Schreiber",
24=>"Buchbinder",
25=>"Rechtsgelehrter",
26=>"Philosoph",
27=>"Schauspieler",
28=>"Richter",
29=>"Kartograph",
30=>"Ausbilder",
0=>"`)Arbeitslos");
output("`^Biographie 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 = @getimagesize($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`^Titel: `@$row[title]`n");
output("`^Gottheit: `@".$gott[$row[gott]]."`n");
if (getsetting("activategamedate","0")==1 && $row[birthday]!="") output("`^Geburtstag: `@$row[birthday]`n");
output("`^Level: `@$row[level]`n");
output("`^Alter seit DK: `@$row[age]`^ Tage`n");
output("`^Wiedererweckt: `@$row[resurrections]x`n");
output("`^Rasse: `@{$races[$row['race']]}`n");
output("`^Geschlecht: `@".($row[sex]?"Weiblich":"Männlich")."`n");
output("`^Arbeit: `@".$jobid[$row[jobid]]."`n");
output("`^Spezialgebiet: `@".$specialty[$row[specialty]]."`n");
if ($row['herkunft']!=""){output("`^Herkunft : `@{$row['herkunft']}`n");}
if ($row['old']!=""){output("`^Alter: `@{$row['old']}`n");}
if ($row['eltern']!=""){output("`^Eltern: `@{$row['eltern']}`n");}
if ($row['adoptiertekinder']!=""){output("`^adoptierte Kinder: `@{$row['adoptiertekinder']}`n");}
if ($row['affaeren']!=""){output("`^Affären: `@{$row['affaeren']}`n");}
if ($row['pate']!=""){output("`^Pate: `@{$row['pate']}`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("`^Tier: `@{$mount['mountname']}`n");
if ($row['dragonkills']>0) output("`^Drachenkills: `@{$row['dragonkills']}`n");
output("`^Bester Angriff: `@$row[punch]`n");
output("<table border='0' cellspacing='0' cellpadding='0'><tr><td>`^Ansehen: </td><td>".grafbar(100,($row['reputation']+50),100,12)."</td></tr></table>",true);
if ($row[housekey]) output("`^Hausnummer: `@$row[housekey]`n");
if ($row[marriedto]){
if ($row[marriedto]==4294967295){
output("`^Verheiratet mit: `@".($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("`^Verheiratet mit: `@{$partner['name']}`n");
}
}
if($row[ssstatus] > 0 && $row[ssmonat] <= 16)
{
output("`^Ist Schwanger`n");
}
if($row[sex])
$sqlkin = "SELECT * FROM kinder where mama = " . $row[acctid];
else
$sqlkin = "SELECT * FROM kinder where papa = " . $row[acctid];
$resultkin = db_query($sqlkin);
$kinder = array();
while ($rowkin = db_fetch_assoc($resultkin))
{
array_push($kinder, $rowkin[name]);
}
if($kinder[0] != "")
{
if($row[sex])
output("`^Ist Mutter von:`@ ");
else
output("`^Ist Vater von:`@ ");
output(implode(", ", $kinder));
output("`0`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`^Bio: `@`n".CloseTags(removeEvilTags(soap($row['bio'])),"`c`b`i")."`n",true);
}
// Guilds/Clans Change
if ($row['guildID']!=0) {
Require_once("guildclanfuncs.php");
$ThisGuild=$session['guilds'][$row['guildID']];
$GuildName=$ThisGuild['Name'];
$PublicText=$ThisGuild['PublicText'];
$avatar2=$ThisGuild['avatar'];
$sql2="select DisplayTitle from lotbd_guildranks where RankID=".$row['guildrank'];
$result2=db_query($sql2);
$row2 = db_fetch_assoc($result2);
$Rank=$row2['DisplayTitle'];
output("`n`n`c`^$row[name] `^ist Mitglied der Gilde `0".$ThisGuild[Name]."",true);
if ($Rank == "") {
output("`^und und hat noch keinen Rang.`c",true);
}else{
output("`^und erhielt dort den Rang `0".$Rank."`^.`c",true);
}
if (getsetting("banner",1)) {
if($avatar2!="") output("`n`n`c<img src='$avatar2' width='200'>`n`n`c",true);
}
output("`n`n`^ Gildenbeschreibung :`0`n`c".$PublicText."`c",true);
}
if ($row['clanID']!=0) {
Require_once("guildclanfuncs.php");
$ThisGuild=$session['guilds'][$row['clanID']];
$GuildName=$ThisGuild['Name'];
$PublicText=$ThisGuild['PublicText'];
$avatar2=$ThisGuild['avatar'];
$sql2="select DisplayTitle from lotbd_guildranks where RankID=".$row['guildrank'];
$result2=db_query($sql2);
$row2 = db_fetch_assoc($result2);
$Rank=$row2['DisplayTitle'];
output("`n`n`c`^$row[name] `^ist Mitglied des Clans `0".$ThisGuild[Name]."",true);
if ($Rank == "") {
output("`^und und hat noch keinen Rang.`c",true);
}else{
output("`^und erhielt dort den Rang `0".$Rank."`^.`c",true);
}
if (getsetting("banner",1)) {
if($avatar2!="") output("`n`n`c<img src='$avatar2' width='200'>`n`n`c",true);
}
output("`n`n`^ Clanbeschreibung :`0`n`c".$PublicText."`c",true);
}
// End Guilds/Clans Change
output("`n`^Letzte Leistungen (und Niederlagen) von $row[name]`^");
$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`@".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();
?>
so...da ist etwas das könnte sowas ähnlciches sein.....wer kann mir sasgen wo das gesuchte ist?? =)
|