Quellcodeviewer der Dragonslayer-Edition
Quellcodeviewer der Dragonslayer-Edition : 0.9.7+jt ext (GER)


Anmerkung: Dies ist nur ein Auszug aus dem Source. Um das jeweils aktuelle, vollständige Release zu erhalten, ist eine Anfrage mit gültiger Email-Adresse erforderlich. Ebenso sollte darin die Serveradresse bzw. sonstiger Verwendungszweck aufgeführt sein. Was wir uns unbedingt verbitten, ist Diebstahl unserer Arbeit ohne Nennung des Copyrights.

Falls beim Lesen des Source ein Bug entdeckt werden sollte, bitten wir um sofortige Meldung per Anfrage!


./bio.php

zurück

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:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
<?php

/*********************************************************************
 * MODIFIZIERT DURCH
 * Admin @ Dreythal
 * September 2013
*********************************************************************/

require_once 'common.php';
checkday();

/**
* Allow these tags
*/
$allowedTags '<h1><b><i><a><ul><li><pre><hr><blockquote><img><table><tr><td><font>';

/**
* 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("".preg_replace("'[`].'","",$row[name]));

$specialty=array(0=>'nicht spezifiziert','Dunkle Künste','Mystische Kräfte','Diebeskunst','Feuer Künste','Druidenzauber','Luftmagie');
$volk=array(1=>'`!B`xl`!u`xt`!f`xa`!l`xk`!e',2=>'`6Do`7rn`8enf`7uc`6hs',3=>'`mSi`plb`qer`pwo`mlf',4=>'`&Unbekannt');

/*
$superuser = array(1=>'RP-Wächter',
                     2=>'Schriftenhüter',
                     3=>'Schmied',
                     4=>'Stadtwache');
*/                     

output('<center><table align="center" cellpadding="10" cellspacing="10" width="100%"><tr>
        <td class="trhead" colspan="3" style="text-align: center;">`bCharakterbogen von`b`n</td></tr></table>
        <span style="color: #FFFF80;">`b'
.$row['name'].'`b</span>`0',true);

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" title="Nachricht senden"></a>',true);

/*
if($row['name']['superuser']==1 || $row['name']['superuser']==2 || $row['name']['superuser']==3 || $row['name']['superuser']==4)
output('`n`n`b`%Sondertitel: '.$superuser.'`b`0');
*/

output('`n`n<table cellpadding="5" cellspacing="5"><tr>',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('<td><img align="middle" src="'.$row['avatar'].'" ',true);

        if (
$pic_width 300)
        
output('width="300" ',true );

        if (
$pic_height 300)
        
output('height="300" ',true );
        
        
output("alt=\"".preg_replace("'[`].'","",$row[name])."\"></td><td valign='middle'>",true);
    } 
    
    else 
    {
output('<td width="300" height="300">`c(kein Bild)`c</td><td>',true);}
}

output('<table align="center" style="border-left: dotted;" cellpadding="5" cellspacing="5"><tr>
        <td style="text-align: right;"><span style="color: #C0C0C0;">T</span><span style="color: #CFB0B0;">i</span><span style="color: #DFA0A0;">t</span><span style="color: #EF9090;">e</span><span style="color: #FF8080;">l</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$row['title'].'`0</td></tr>
        <tr><td style="text-align: right;"><span style="color: #C0C0C0;">L</span><span style="color: #CFB0B0;">e</span><span style="color: #DFA0A0;">v</span><span style="color: #EF9090;">e</span><span style="color: #FF8080;">l</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$row['level'].'`0</td></tr>
        <tr><td style="text-align: right;"><span style="color: #C0C0C0;">R</span><span style="color: #CFB0B0;">a</span><span style="color: #DFA0A0;">s</span><span style="color: #EF9090;">s</span><span style="color: #FF8080;">e</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$races[$row['race']].'`0</td></tr>
        <tr><td style="text-align: right;"><span style="color: #C0C0C0;">B</span><span style="color: #C7B8B8;">l</span><span style="color: #CFB0B0;">u</span><span style="color: #D7A8A8;">t</span><span style="color: #DFA0A0;">l</span><span style="color: #E79898;">i</span><span style="color: #EF9090;">n</span><span style="color: #F78888;">i</span><span style="color: #FF8080;">e</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$volk[$row['volk']].'`0</td></tr>
        <tr><td style="text-align: right;"><span style="color: #C0C0C0;">G</span><span style="color: #C7B8B8;">e</span><span style="color: #CEB1B1;">s</span><span style="color: #D5AAAA;">c</span><span style="color: #DCA3A3;">h</span><span style="color: #E39C9C;">l</span><span style="color: #EA9595;">e</span><span style="color: #F18E8E;">c</span><span style="color: #F88787;">h</span><span style="color: #FF8080;">t</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.($row['sex']?'`fweiblich`0':'`1männlich`0').'`0</td></tr>
        <tr><td style="text-align: right;"><span style="color: #C0C0C0;">S</span><span style="color: #C5BABA;">p</span><span style="color: #CAB5B5;">e</span><span style="color: #CFB0B0;">z</span><span style="color: #D5AAAA;">i</span><span style="color: #DAA5A5;">a</span><span style="color: #DFA0A0;">l</span><span style="color: #E49A9A;">g</span><span style="color: #EA9595;">e</span><span style="color: #EF9090;">b</span><span style="color: #F48A8A;">i</span><span style="color: #F98585;">e</span><span style="color: #FF8080;">t</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$specialty[$row['specialty']].'`0</td></tr>',true);

//output('<table align="center"><tr><td>`b`%Titel:`b</td><td>'.$row['title'].'</td></tr><tr><td>`b`%Level:`b</td><td>'.$row['level'].'</td></tr><tr><td>`b`%Rasse:`b</td><td>'.$races[$row['race']].'</td></tr><tr><td>`b`%Blutlinie:`b</td><td>'.$volk[$row['volk']].'</td></tr><tr><td>`b`%Geschlecht:`b</td><td>'.($row['sex']?'`fweiblich`0':'`1männlich`0').'</td></tr><tr><td>`b`%Spezialgebiet:`b</td><td>'.$specialty[$row['specialty']].'</td></tr>',true);

$sql 'SELECT mountname FROM mounts_usr WHERE acctid="'.$row['acctid'].'"';
$result db_query($sql);
$mount db_fetch_assoc($result);

if (
$mount['mountname']=='')
$mount['mountname'] = '`ikeines`i';

output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">T</span><span style="color: #D5AAAA;">i</span><span style="color: #EA9595;">e</span><span style="color: #FF8080;">r</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$mount['mountname'].'`0</td></tr>',true);

/*
$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('<tr><td>`b`%Tier:`b</td><td>'.$mount['mountname'].'</td></tr>',true);

output('<tr><td>`b`%Tier:`b</td><td>'.($row['horsename']=='' ?''.$mount['mountname'].'':''.$row['horsename'].'`@ ('.$mount['mountname'].'`@)').'</td></tr>',true);
*/  

output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">A</span><span style="color: #CAB5B5;">n</span><span style="color: #D5AAAA;">s</span><span style="color: #DFA0A0;">e</span><span style="color: #EA9595;">h</span><span style="color: #F48A8A;">e</span><span style="color: #FF8080;">n</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.grafbar(100,($row['reputation']+50),100,12).'`0</td></tr>',true);

if (
$row['housekey']) 
output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">H</span><span style="color: #C7B8B8;">a</span><span style="color: #CEB1B1;">u</span><span style="color: #D5AAAA;">s</span><span style="color: #DCA3A3;">n</span><span style="color: #E39C9C;">u</span><span style="color: #EA9595;">m</span><span style="color: #F18E8E;">m</span><span style="color: #F88787;">e</span><span style="color: #FF8080;">r</span></td><td width="3%"></td>
        <td style="text-align: left;">`l'
.$row['housekey'].'`0</td></tr>',true);

if (
$row['marriedto'])
{
    if (
$row['marriedto']==4294967295)
    {
        
output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">E</span><span style="color: #C7B8B8;">h</span><span style="color: #CEB1B1;">e</span><span style="color: #D5AAAA;">p</span><span style="color: #DCA3A3;">a</span><span style="color: #E39C9C;">r</span><span style="color: #EA9595;">t</span><span style="color: #F18E8E;">n</span><span style="color: #F88787;">e</span><span style="color: #FF8080;">r</span></td><td width="3%"></td>
                <td style="text-align: left;">`l'
.($row['sex']?'`yW`$i`%ll`$e`ym':'`kA`jm`gel`ji`ka').'`0</td></tr>',true);
    }
    
    elseif (
$row['charisma']==4294967295)
    {
        
$sql 'SELECT name FROM accounts WHERE acctid="'.$row['marriedto'].'"';
        
$result db_query($sql);
        
$partner db_fetch_assoc($result);
        
        
output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">E</span><span style="color: #C7B8B8;">h</span><span style="color: #CEB1B1;">e</span><span style="color: #D5AAAA;">p</span><span style="color: #DCA3A3;">a</span><span style="color: #E39C9C;">r</span><span style="color: #EA9595;">t</span><span style="color: #F18E8E;">n</span><span style="color: #F88787;">e</span><span style="color: #FF8080;">r</span></td><td width="3%"></td>
                <td style="text-align: left;">`l'
.$partner['name'].'`0</td></tr>',true);
    }
}

/* Gildenaddon by Eliwood für Eliwoods Gilden */
if($row['memberid']>0)
{
    
$sql 'SELECT gildenid,gildenname,gildenprefix FROM gilden WHERE gildenid="'.$row['memberid'].'" LIMIT 1';
    
$gilde db_fetch_assoc(db_query($sql));
  
    
output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">G</span><span style="color: #CFB0B0;">i</span><span style="color: #DFA0A0;">l</span><span style="color: #EF9090;">d</span><span style="color: #FF8080;">e</span></td><td width="3%"></td>
                <td style="text-align: left;">`l'
.$gilde['gildenname'].' `l[<a href="showdetail.php?id='.$gilde['gildenid'].'" target="window_popup" onClick="'.popup('showdetail.php?id='.$gilde['gildenid']).'; return false;">`l'.stripslashes($gilde['gildenprefix']).'</a>`l]`0</td></tr>',true);
  
    
$sql 'SELECT rankname FROM gildenranks WHERE rankid="'.$row['rankid'].'" LIMIT 1';
    
$rank db_fetch_assoc(db_query($sql));
  
    
output('<tr><td style="text-align: right;"><span style="color: #C0C0C0;">R</span><span style="color: #D5AAAA;">a</span><span style="color: #EA9595;">n</span><span style="color: #FF8080;">g</span></td><td width="3%"></td>
                <td style="text-align: left;">`l'
.$rank['rankname'].'`0</td></tr>',true);
}

output ('</table>',true);

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['dragonkills']>0)
output('`n`i`b<span style="color: #FF8040;">D</span><span style="color: #FF8844;">i</span><span style="color: #FF9048;">e</span><span style="color: #FF994C;">s</span><span style="color: #FFA151;">e</span><span style="color: #FFAA55;">r</span><span style="color: #FFB259;"> </span><span style="color: #FFBB5D;">C</span><span style="color: #FFC362;">h</span><span style="color: #FFCC66;">a</span><span style="color: #FFD46A;">r</span><span style="color: #FFDD6E;">a</span><span style="color: #FFE573;">k</span><span style="color: #FFEE77;">t</span><span style="color: #FFF67B;">e</span><span style="color: #FFFF7F;">r hat dem `lH`me`pr`qrn `rder `tS`rt`qi`pl`ml`le <span style="color: #FFFF7F;">bereits <span style="color: #FF8040;">'.$row['dragonkills'].' <span style="color: #FFFF7F;">Mal d<span style="color: #FFFF80;">i</span><span style="color: #FFF77C;">e</span><span style="color: #FFEF78;"> </span><span style="color: #FFE774;">S</span><span style="color: #FFDF70;">t</span><span style="color: #FFD76C;">i</span><span style="color: #FFCF68;">r</span><span style="color: #FFC764;">n</span><span style="color: #FFBF60;"> </span><span style="color: #FFB75C;">g</span><span style="color: #FFAF58;">e</span><span style="color: #FFA754;">b</span><span style="color: #FF9F50;">o</span><span style="color: #FF974C;">t</span><span style="color: #FF8F48;">e</span><span style="color: #FF8744;">n</span><span style="color: #FF8040;">.</span>`b`i`0`n',true);

output('</center>',true);

/*
if ($row['bio']>""){
output("`n`^Bio: `@`n".CloseTags(removeEvilTags(soap($row['bio'])),"`c`b`i")."`n",true);
}
*/

if ($row['bio']>'')
output('<center><table align="center" cellpadding="10" cellspacing="10" width="100%"><tr>
        <td class="trhead" colspan="3" style="text-align: center;">`bBiographie`b`n
        </td></tr></table></center><br />'
.soap($row['bio']).'<br />`0',true);

output('<br /><center><table align="center" cellpadding="10" cellspacing="10" width="100%"><tr>
        <td class="trhead" colspan="3" style="text-align: center;">`bneueste Meldungen`b`n
        </td></tr></table></center>`0'
,true);

$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<u>'.date('D, d. M Y',strtotime($row['newsdate'])).'</u>`b`n`0',true);
        
$odate=$row['newsdate'];
    }

    
output($row['newstext'].'`n`0',true);
}

if (
$_GET['ret']=='')
{
    
addnav('Zurück');
    
addnav('zur Bewohnerliste','list.php');
}

else
{
    
$return preg_replace("'[&?]c=[[:digit:]-]+'","",$_GET[ret]);
    
$return substr($return,strrpos($return,"/")+1);

    
addnav('Zurück');
    
addnav('auf die vorherige Seite',$return);
}

page_footer();
?>
0.9.7+jt ext (GER)