",true); output("`c`bDag Durnick's Tisch`b`c"); if ($_GET['op']=="list"){ output("Dag fischt ein kleines, ledergebundenes Buch unter seinem Mantel hervor, blättert es zu einer bestimmten Seite durch und hält es dir zum Lesen hin.`n`n"); output("`c`bDie Kopfgeldliste`b`c`n"); $sql = "SELECT name,alive,sex,level,laston,loggedin,bounty,location FROM accounts WHERE bounty>0 ORDER BY bounty DESC"; $result = db_query($sql) or die(sql_error($sql)); output("
| Kopfgeld | Level | Name | Ort | Geschlecht | Zuletzt online | ",true); output("`^$row[bounty]`0"); output(" | ",true); output("`^$row[level]`0"); output(" | ",true); output("`&$row[name]`0"); if ($session['user']['loggedin']) output("",true); output(" | ",true); $loggedin=(date("U") - strtotime($row[laston]) < getsetting("LOGINTIMEOUT",900) && $row[loggedin]); if ($row[location]==0) output($loggedin?"`#Online`0":"`3Die Felder`0"); if ($row[location]==1) output("`3Zimmer in Kneipe`0"); if ($row[location]==2) output("`3Im Haus`0"); output(" | ",true); output($row[sex]?"`!Weiblich`0":"`!Männlich`0"); output(" | ",true); //$laston=round((strtotime("0 days")-strtotime($row[laston])) / 86400,0)." Tage"; $laston=round((strtotime(date("r"))-strtotime($row[laston])) / 86400,0)." Tage"; if (substr($laston,0,2)=="1 ") $laston="1 Tag"; if (date("Y-m-d",strtotime($row[laston])) == date("Y-m-d")) $laston="Heute"; if (date("Y-m-d",strtotime($row[laston])) == date("Y-m-d",strtotime(date("r")."-1 day"))) $laston="Gestern"; if ($loggedin) $laston="Jetzt"; output($laston); output(" | ",true); } output("