/** * Die Adminnavigation aus der angegeben XML-Datei auslesen * * @param $file die zu lesende XML-Datei */ function get_ini_menu($file) { $menus = simplexml_load_file($file); $umenu = ''; $tpl = new tpl('adminsubmenu', 1); if ($menus->attributes()->hide == 'true') { $tpl->out(4); return $umenu; } foreach ($menus->list as $liste) { $tpl->set_out('headline', $liste->attributes()->title, 0); $tpl->out(1); foreach ($liste->modul as $mod) { // wenn der nutzer die nötigen rechte hat if ($mod->right >= $_SESSION['authright'] or !isset($mod->right)) { $tpl->set_ar_out(array('url' => $mod->url, 'title' => utf8_decode($mod->title)), 2); } } $tpl->out(3); } return $umenu; }
function search_finduser() { $design = new design('Finduser', '', 0); $design->header(); $tpl = new tpl('search_finduser'); $tpl->out(0); if (isset($_POST['sub']) and !empty($_POST['name'])) { $name = str_replace('*', "%", $_POST['name']); $name = escape($name, 'string'); $q = "SELECT `name`,`name` FROM `prefix_user` WHERE `name` LIKE '" . $name . "'"; $tpl->set('username', dbliste('', $tpl, 'username', $q)); $tpl->out(1); } $tpl->out(2); $design->footer(); }
function sharchiv() { $tpl = new tpl('shbox4', 0); echo '<div> <h4 align="center" class="Chead">' . $this->version . ' Archiv</h4> </div>'; $erg = db_query('SELECT * FROM `prefix_shbox4` ORDER BY `id` DESC'); while ($row = db_fetch_assoc($erg)) { $text = $row['txt']; $text = $this->shtext($text); $ar = array('AUSGABE' => '<p class="Cdark" style="margin:0;">' . $this->shdate($row['time'], $row['uid']) . '</p> <p class="Cnorm" style="margin:0;">' . $this->colortext($this->sh_usercheck($row['uid']), $text) . '</p> <br />'); $tpl->set_ar_out($ar, 2); } $tpl->set_ar(array('VERS' => $this->version())); $tpl->out(3); }
$r['uname'] = $_SESSION['authname']; $r['text'] = bbcode($r['text']); $tpl->set_ar_out($r, 4); $i = 1; $erg = db_query("SELECT id, name, text FROM prefix_koms WHERE uid = " . $id . " AND cat = 'GBOOK' ORDER BY id DESC"); $anz = db_num_rows($erg) + 1; while ($r1 = db_fetch_assoc($erg)) { $r1['zahl'] = $anz - $i; $r1['text'] = bbcode($r1['text']); if (has_right(-7, 'gbook')) { $r1['text'] .= '<a href="index.php?gbook-show-' . $id . '-d' . $r1['id'] . '"><img src="include/images/icons/del.gif" alt="' . $lang['delete'] . '" border="0" title="' . $lang['delete'] . '" /></a>'; } $tpl->set_ar_out($r1, 5); $i++; } $tpl->out(6); } break; default: $limit = $allgAr['gbook_posts_per_site']; // Limit $page = $menu->getA(1) == 'p' ? escape($menu->getE(1), 'integer') : 1; $MPL = db_make_sites($page, "", $limit, "?gbook", 'gbook'); $anfang = ($page - 1) * $limit; $tpl = new tpl('gbook.htm'); $ei1 = @db_query("SELECT COUNT(ID) FROM prefix_gbook"); $ein = @db_result($ei1, 0); $ar = array('EINTRAGE' => $ein); $tpl->set_ar_out($ar, 0); $erg = db_query("SELECT * FROM prefix_gbook ORDER BY time DESC LIMIT " . $anfang . "," . $limit) or die(db_error()); while ($row = db_fetch_object($erg)) {
if ($menu->getA(2) == 'U' or $menu->getA(2) == 'O') { $pos = $menu->getE(2); $nps = $menu->getA(2) == 'U' ? $pos + 1 : $pos - 1; $anz = db_result(db_query("SELECT COUNT(*) FROM `prefix_loader`"), 0); if ($nps < $anz and $pos >= 0) { db_query("UPDATE `prefix_loader` SET `pos` = -1 WHERE `pos` = " . $pos); db_query("UPDATE `prefix_loader` SET `pos` = " . $pos . " WHERE `pos` = " . $nps); db_query("UPDATE `prefix_loader` SET `pos` = " . $nps . " WHERE `pos` = -1"); } } // Class $class = 'Cmite'; // Template laden $tpl = new tpl('modules/loader', 1); // Template-Header $tpl->out(0); // Module abfragen und Ausgeben $erg = db_query("SELECT `id`, `pos`, `task`, `file`, `description` FROM `prefix_loader` ORDER BY `pos` ASC"); if (db_num_rows($erg) > 0) { $tpl->out(3); while ($row = db_fetch_assoc($erg)) { $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; $row['class'] = $class; $tpl->set_ar_out($row, 4); } } // Tabellenuebergang $tpl->out(1); // Aendern oder Einfuegen if ($aid == 'edit') { $lid = $menu->get(3);
} showTooltips($tpl, $tooltips); } else { $aus['LIST_I'] = '-'; $aus['LIST_D'] = '-'; $aus['LIST_T'] = '-'; $aus['LIST_CLASS'] = 'Cnorm'; $tpl->set_ar_out($aus, 'listitem'); unset($aus); } } $tpl->out('listend'); } if (AJAXCALL) { kalender_listoutput(); } else { if ($eid != 0 and isset($data_id[$eid])) { list($day, $month, $year) = explode('.', date('d.m.Y', $data_id[$eid]['time'])); } elseif ($gday == 0) { $day = '01'; } // Template Ausgabe $tpl->set_ar_out(array('MONAT' => $month, 'TAG' => $day, 'YEAR' => $year, 'VIEW' => $view), 0); // Kalenderliste/-details etc kalender_listoutput(); // Detailansicht // old calender // $tpl->set('calender', getCalendar($month, $year, 'index.php?kalender-v1-m{mon}-y{jahr}-d{tag}', 'index.php?kalender-v' . $view . '-m{mon}-y{jahr}', $data)); $tpl->out('kalenderend'); } $design->footer();
$design->addheader('<script type="text/javascript" src="include/includes/js/uprofil.js"></script>'); $design->addheader('<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>'); $design->addheader('<script type="text/javascript" src="include/includes/js/jquery.textareaAutoResize.js"></script>'); $design->addheader('<script type="text/javascript" src="include/includes/js/bbcode.js"></script>'); $design->header(); if (loggedin() and $menu->get(2) == $_SESSION['authid']) { //Header include __DIR__ . DIRECTORY_SEPARATOR . '../header.php'; $tpl = new tpl('uprofil/fcheck.htm'); $FAnzahl = db_count_query('SELECT count(id) FROM prefix_friendscheck WHERE fid = ' . $uid); $BAnzahl = db_count_query('SELECT count(id) FROM prefix_userblock WHERE uid = ' . $uid); $abfF = 'SELECT u.*, f.* FROM prefix_friendscheck f LEFT JOIN prefix_user u ON u.id = f.uid WHERE f.fid = ' . $uid . ' ORDER BY f.id ASC'; $ergF = db_query($abfF); $abfBlock = 'SELECT u.*, f.* FROM prefix_userblock f LEFT JOIN prefix_user u ON u.id = f.bid WHERE f.uid = ' . $uid . ' ORDER BY f.id ASC'; $ergBlock = db_query($abfBlock); $tpl->out(0); if ($FAnzahl > 0) { while ($rowF = db_fetch_assoc($ergF)) { $rowF['FNAME'] = '<a href="?user-details-' . $rowF['uid'] . '">' . $rowF['name'] . '</a>'; if (file_exists($rowF['avatar'])) { $rowF['AVATAR'] = '<img src="' . $rowF['avatar'] . '" width="80" height="80" border="0">'; } else { $rowF['AVATAR'] = '<img src="include/images/userprofil/avatar/nouser.png" width="75" height="75" border="0">'; } $rowF['OTHER'] = '<br /><br /><div class="friendButton friendAccept" onclick="location.href = \'?user-fcheck-accept-' . $rowF['uid'] . '\';">Annehmen</div>'; $rowF['OTHER'] .= '<div class="friendButton friendRefuse" onclick="location.href = \'?user-fcheck-refuse-' . $rowF['uid'] . '\';">Ablehnen</div>'; $tpl->set_ar_out($rowF, 1); } } else { echo '<br /><div id="contenText" align="center">Keine Freundschaftsanfragen vorhanden.</div>'; }
while ($r = db_fetch_row($q)) { $l .= $tpl->list_get('links', array(str_replace('{id}', $r[0], $lv), $r[1])); } $tpl->set_ar_out(array('MPL' => $MPL, 'site' => $was, 'links' => $l), 1); } // sitemap fuer module // - fourm // - news // - wars // - downloads // - links (cats) // - faqs switch ($menu->get(1)) { default: $tpl = new tpl('sitemap'); $tpl->out(0); break; case 'forum': show_sitemap("SELECT `id`,`name` FROM `prefix_topics` ORDER BY `id` ASC", '?forum-showposts-{id}', 'topics', $menu, '', 'Forum'); break; case 'downloads': show_sitemap("SELECT `id`, concat(`name`,' ',`version`) as `x` FROM `prefix_downloads` WHERE `cat` >= 0 ORDER BY `id` ASC", '?downloads-show-{id}', 'downloads', $menu, '', 'Downloads'); break; case 'links': show_sitemap("SELECT `id`,`name` FROM `prefix_linkcats` ORDER BY `id` ASC", '?links-{id}', 'links', $menu, '', 'Links'); break; case 'news': show_sitemap("SELECT `news_id`,`news_title` FROM `prefix_news` ORDER BY `news_id` ASC", '?news-{id}', 'news', $menu, "WHERE `news_recht` >= " . $_SESSION['authright'], 'News'); break; } $design->footer();
} else { $id = $menu->getA(1) == 'S' ? $menu->getE(1) : (is_numeric($firstcat) ? $firstcat : 0); } $tpl->set_out('cid', $id, 0); $class = ''; $erg = db_query("SELECT id, cid, name as cname, pos as cpos FROM prefix_forumcats WHERE id = {$id} ORDER BY pos"); while ($row = db_fetch_assoc($erg)) { $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; $row['class'] = $class; $tpl->set_ar_out($row, 1); $erg1 = db_query("SELECT\r\n prefix_forums.id as fid,\r\n prefix_forums.name as fname,\r\n prefix_forums.pos as fpos,\r\n case when view <= 0 then vg.name else vt.name end as view,\r\n case when reply <= 0 then rg.name else rt.name end as reply,\r\n case when start <= 0 then sg.name else st.name end as start\r\n FROM prefix_forums\r\n LEFT JOIN prefix_grundrechte as vg ON prefix_forums.view = vg.id\r\n LEFT JOIN prefix_grundrechte as rg ON rg.id = prefix_forums.reply\r\n LEFT JOIN prefix_grundrechte as sg ON sg.id = prefix_forums.start\r\n\r\n\t\t\tLEFT JOIN prefix_groups as vt ON prefix_forums.view = vt.id\r\n LEFT JOIN prefix_groups as rt ON rt.id = prefix_forums.reply\r\n LEFT JOIN prefix_groups as st ON st.id = prefix_forums.start\r\n WHERE prefix_forums.cid = " . $row['id'] . " ORDER BY prefix_forums.pos"); while ($row1 = db_fetch_assoc($erg1)) { $row1['class'] = $row['class']; $row1['cid'] = $id; $tpl->set_ar_out($row1, 2); } } $tpl->out(3); forum_admin_showcats(0, ''); $topcid = is_numeric($r->topcid) ? $r->topcid : 0; $Cout = array(); $Cout['cid'] = $cid; $Cout['ak'] = $um == 'changeCategorie' ? 'change' : 'new'; $Cout['sub'] = $um == 'changeCategorie' ? 'ändern' : 'erstellen'; $Cout['name'] = $um == 'changeCategorie' ? $r->name : ''; forum_admin_selectcats('0', '', $Cout['cat'], $topcid); $Cout['cat'] = '<option value="0">Keine</option>' . $Cout['cat']; $tpl->set_ar_out($Cout, 4); } //-----------------------------------------------------------| $design->footer();
* * @param int $time die zeit (timestamp), ab der die news zurück gegeben werden sollen. */ function get_news_since($time) { $erg = db_query("SELECT\n `a`.`news_title` as `title`,\n `a`.`news_id` as `id`,\n DATE_FORMAT(`a`.`news_time`,'%d. %m. %Y') as `datum`,\n DATE_FORMAT(`a`.`news_time`,'%W') as `dayofweek`,\n `a`.`news_kat` as `kate`,\n `a`.`news_text` as `text`,\n `b`.`name` as `username`\n FROM `prefix_news` as `a`\n LEFT JOIN `prefix_user` as `b` ON `a`.`user_id` = `b`.`id`\n WHERE (" . $_SESSION['authright'] . " <= `a`.`news_recht`\n \t\t\tOR `a`.`news_recht` = 0)\n AND `a`.`news_time` > FROM_UNIXTIME(" . $time . ")\n ORDER BY `news_time` DESC\n LIMIT 0,5"); $news = array(); while ($row = mysql_fetch_assoc($erg)) { $news[] = $row; } return $news; } // checken, ob der nutzer eingeloggt ist if (!loggedin()) { // Fehlermeldung ausgeben $tpl->out("please log in"); $design->footer(); exit; } $news = get_news_since($_SESSION["lastlogin"]); // die neuen news holen $newsout = ""; if (sizeof($news) == 0) { $newsout = $tpl->get("no news"); } else { foreach ($news as $new) { $newsout .= $tpl->list_get('news', array($new["id"], $new["title"])); } } // die neuen topics holen $hottopics = get_topics_since_last_login();
} else { $bild = 'include/images/icons/admin/na.png'; } } $tpl->set_ar_out(array('url' => $row['url'], 'pic' => $bild, 'name' => $row['name']), 2); } if ($katname != '' and $katname != 'Admin') { $tpl->out(3); } } // Kategorie-Name $katname = ''; // Template laden $tpl = new tpl('admin', 1); // Template-Header $tpl->out(0); // Module abfragen und Ausgeben $first_erg = db_query("SELECT * FROM `prefix_modules` WHERE `menu` = 'admin' ORDER BY `pos` ASC"); $second_erg = db_query("SELECT * FROM `prefix_modules` WHERE `menu` != '' AND `menu` != 'admin' ORDER BY `menu`, `pos` ASC"); // Admin gesondert ausgeben make_menu_list($first_erg); // Restliche Module make_menu_list($second_erg, 'Admin'); // Template-Footer $tpl->out(4); break; case 'versionsKontrolle': // ICON Anzeige... echo '<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="include/images/icons/admin/version_check.png" /></td><td width="30"></td><td valign="bottom"><h1>Versionskontrolle</h1></td></tr></table>'; echo 'Scripte Version: ' . $scriptVersion . '<br />Update Version: ' . $scriptUpdate . '<br /><br />'; echo '<script language="JavaScript" type="text/javascript" src="http://www.ilch.de/down/ilchClan/update.php?version=' . $scriptVersion . '&update=' . $scriptUpdate . '"></script>';
/** * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) * @copyright (C) 2000-2010 ilch.de * @version $Id$ */ defined('main') or die('no direct access'); $title = $allgAr['title'] . ' :: Forum :: Beitrag melden'; $hmenu = $extented_forum_menu . $extented_forum_menu_sufix; $design = new design($title, $hmenu, 1); $design->header(); $topicId = escape($menu->get(2), "integer"); $postId = escape($menu->get(3), "integer"); $tpl = new tpl('forum/report_post'); // wenn einer der beiden parameter leer ist if (empty($topicId) || empty($postId)) { $tpl->out("error_no_ids"); // wenn dieser beitrag nicht existiert } else { if (!post_exists($postId)) { $tpl->out("no_such_post"); } else { // PM Versenden $getmodids = getmod_ids(get_forum_id($topicId)); if (empty($getmodids)) { // An den Admin schicken if (isset($_SESSION["authid"])) { $fromUser = $_SESSION["authid"]; } else { $fromUser = 0; } $tpl->set("NAME", get_n($fromUser));
if (isset($_POST['kommentar_fuer_last_wars'])) { if (loggedin()) { $name = $_SESSION['authname']; $userid = $_SESSION['authid']; } else { $name = escape($_POST['name'], 'string') . ' (Gast)'; $userid = 0; } $text = escape($_POST['text'], 'string'); db_query("INSERT INTO prefix_koms (name,userid,cat,time,text,uid) VALUES ('" . $name . "'," . $userid . ",'WARSLAST','" . time() . "','" . $text . "', " . $_GET['mehr'] . " )"); } if (isset($_GET['kommentar_fuer_last_wars_loeschen']) and is_siteadmin('wars')) { db_query("DELETE FROM prefix_koms WHERE cat = 'WARSLAST' AND uid = " . $_GET['mehr'] . " AND id = " . $_GET['kommentar_fuer_last_wars_loeschen']); } // anzeigen $tpl->out("koms_on"); $erg = db_query("SELECT `name`,`userid`,`text`,`time`,`id` FROM prefix_koms WHERE cat = 'WARSLAST' AND `uid` = " . $_GET['mehr'] . " ORDER BY id DESC"); $anz = db_num_rows($erg); if ($anz == 0) { echo $lang['nocomments']; } else { while ($r = db_fetch_assoc($erg)) { if (is_siteadmin('wars')) { $del = ' <a href="index.php?wars-more-' . $_GET['mehr'] . '=0&kommentar_fuer_last_wars_loeschen=' . $r['id'] . '"><img src="include/images/icons/del.gif" title="löschen" alt="löschen" border="0"></a>'; } $r['zahl'] = $anz; $r['avatar'] = get_avatar($r['userid']); $r['time'] = post_date($r['time'], 1) . $del; $r['text'] = bbcode($r['text']); $tpl->set_ar_out($r, "koms_self"); $anz--;
<?php /** * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) * @copyright (C) 2000-2010 ilch.de * @version $Id$ */ defined('main') or die('no direct access'); $title = $allgAr['title'] . ' :: Forum :: ' . aktForumCats($aktForumRow['kat'], 'title'); $hmenu = $extented_forum_menu . '<a class="smalfont" href="index.php?forum">Forum</a><b> » </b>' . aktForumCats($aktForumRow['kat']) . $extented_forum_menu_sufix; $design = new design($title, $hmenu, 1); $design->header(); $tpl = new tpl('forum/show_cat'); $tpl->out(0); $cid = escape($menu->get(2), 'integer'); $q = "SELECT\r\n `a`.`id`, `a`.`cid`, `a`.`name`, `a`.`besch`,\r\n `a`.`topics`, `a`.`posts`, `b`.`name` as `topic`,\r\n `c`.`id` as `pid`, `c`.`tid`, `b`.`rep`, `c`.`erst`, `c`.`time`,\r\n `a`.`cid`, `k`.`name` as `cname`\r\nFROM `prefix_forums` `a`\r\n LEFT JOIN `prefix_forumcats` `k` ON `k`.`id` = `a`.`cid`\r\n LEFT JOIN `prefix_posts` `c` ON `a`.`last_post_id` = `c`.`id`\r\n LEFT JOIN `prefix_topics` `b` ON `c`.`tid` = `b`.`id`\r\n\r\n LEFT JOIN `prefix_groupusers` `vg` ON `vg`.`uid` = " . $_SESSION['authid'] . " AND `vg`.`gid` = `a`.`view`\r\n LEFT JOIN `prefix_groupusers` `rg` ON `rg`.`uid` = " . $_SESSION['authid'] . " AND `rg`.`gid` = `a`.`reply`\r\n LEFT JOIN `prefix_groupusers` `sg` ON `sg`.`uid` = " . $_SESSION['authid'] . " AND `sg`.`gid` = `a`.`start`\r\n\r\nWHERE ((" . $_SESSION['authright'] . " <= `a`.`view` AND `a`.`view` < 1)\r\n OR (" . $_SESSION['authright'] . " <= `a`.`reply` AND `a`.`reply` < 1)\r\n OR (" . $_SESSION['authright'] . " <= `a`.`start` AND `a`.`start` < 1)\r\n\t OR `vg`.`fid` IS NOT NULL\r\n\t OR `rg`.`fid` IS NOT NULL\r\n\t OR `sg`.`fid` IS NOT NULL\r\n\t OR -9 >= " . $_SESSION['authright'] . ")\r\n AND `k`.`id` = " . $cid . "\r\nORDER BY `k`.`pos`, `a`.`pos`"; $erg1 = db_query($q); $xcid = 0; while ($r = db_fetch_assoc($erg1)) { $r['topicl'] = $r['topic']; $r['topic'] = html_enc_substr($r['topic'], 0, 23); $r['ORD'] = forum_get_ordner($r['time'], $r['id']); $r['mods'] = getmods($r['id']); $r['datum'] = post_date($r['time']); $r['page'] = ceil(($r['rep'] + 1) / $allgAr['Fpanz']); $tpl->set_ar($r); if ($r['cid'] != $xcid) { $tpl->out(1); // Unterkategorien $sql = db_query("SELECT DISTINCT `a`.`name` as `cname`, `a`.`id` as `cid` FROM `prefix_forumcats` `a` LEFT JOIN `prefix_forums` `b` ON `a`.`id` = `b`.`cid` WHERE `a`.`cid` = {$r['cid']} AND `a`.`id` = `b`.`cid` ORDER BY `a`.`pos`, `a`.`name`"); while ($ucat = db_fetch_assoc($sql)) {
<?php # Copyright by: Manuel # Support: www.ilch.de defined('main') or die('no direct access'); $title = $allgAr['title'] . ' :: Forum'; $hmenu = $extented_forum_menu . 'Forum' . $extented_forum_menu_sufix; $design = new design($title, $hmenu, 1); $design->header(); if ($menu->get(1) == 'markallasread') { user_markallasread(); } $tpl = new tpl('forum/showforum'); $tpl->out(0); $category_array = array(); $forum_array = array(); $q = "SELECT\r\n a.id, a.cid, a.name, a.besch,\r\n a.topics, a.posts, b.name as topic,\r\n c.id as pid, c.tid, b.rep, c.erst, c.time,\r\n a.cid, k.name as cname\r\nFROM prefix_forums a\r\n LEFT JOIN prefix_forumcats k ON k.id = a.cid\r\n LEFT JOIN prefix_posts c ON a.last_post_id = c.id\r\n LEFT JOIN prefix_topics b ON c.tid = b.id\r\n\t\r\n LEFT JOIN prefix_groupusers vg ON vg.uid = " . $_SESSION['authid'] . " AND vg.gid = a.view\r\n LEFT JOIN prefix_groupusers rg ON rg.uid = " . $_SESSION['authid'] . " AND rg.gid = a.reply\r\n LEFT JOIN prefix_groupusers sg ON sg.uid = " . $_SESSION['authid'] . " AND sg.gid = a.start\r\n\t\r\nWHERE ((" . $_SESSION['authright'] . " <= a.view AND a.view < 1) \r\n OR (" . $_SESSION['authright'] . " <= a.reply AND a.reply < 1)\r\n OR (" . $_SESSION['authright'] . " <= a.start AND a.start < 1)\r\n\t OR vg.fid IS NOT NULL\r\n\t OR rg.fid IS NOT NULL\r\n\t OR sg.fid IS NOT NULL\r\n\t OR -9 = " . $_SESSION['authright'] . ")\r\n\t AND k.cid = 0\r\nORDER BY k.pos, a.pos"; $erg1 = db_query($q); $xcid = 0; while ($r = db_fetch_assoc($erg1)) { $r['topicl'] = $r['topic']; $r['topic'] = html_enc_substr($r['topic'], 0, 23); $r['ORD'] = forum_get_ordner($r['time'], $r['id']); $r['mods'] = getmods($r['id']); $r['datum'] = date('d.m.y - H:i', $r['time']); $r['page'] = ceil(($r['rep'] + 1) / $allgAr['Fpanz']); $tpl->set_ar($r); if ($r['cid'] != $xcid) { $tpl->out(1); //Unterkategorien $sql = db_query("SELECT DISTINCT a.name as cname, a.id as cid FROM `prefix_forumcats` a LEFT JOIN `prefix_forums` b ON a.id = b.cid WHERE a.cid = {$r['cid']} AND a.id = b.cid ORDER BY a.pos, a.name");
<?php /** * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) * @copyright (C) 2000-2010 ilch.de * @version $Id$ */ defined('main') or die('no direct access'); defined('admin') or die('only admin access'); $design->header(); $tpl = new tpl('selfbp/overview', 1); // zuerst die seiten $tpl->out("overview pages start"); $pages = read_ext("include/contents/selfbp/selfp", "php"); if (sizeof($pages) > 0) { foreach ($pages as $page) { $properties = get_properties(get_text("p" . $page)); $tpl->set("filename", $page); $tpl->set_ar_out($properties, "overview pages_item"); } } else { $tpl->out("overview no pages"); } $tpl->out("overview pages end"); // end of pages // dann die boxen $tpl->out("overview boxes start"); $boxes = read_ext("include/contents/selfbp/selfb", "php"); if (sizeof($boxes) > 0) { foreach ($boxes as $box) { $properties = get_properties(get_text("b" . $box));
$UGAnzahl = db_count_query('SELECT count(uid) FROM prefix_usergallery WHERE uid = ' . $uid); $FAnzahl = db_count_query('SELECT count(uid) FROM prefix_friends WHERE uid = ' . $uid); $GBAnzahl = db_count_query('SELECT count(uid) FROM prefix_usergbook WHERE uid = ' . $uid); $tpl = new tpl('uprofil/leftbox.htm'); $ar = array('UID' => $row['id'], 'GEBURTSTAG' => $gebdatum, 'WOHNORT' => $wohnort, 'GESCHLECHT' => $geschlecht, 'UGBILDER' => $UGAnzahl, 'JOINED' => '<img src="include/images/userprofil/icons/icon_calendar.png"> ' . date('d. M Y', $row['regist']) . '<br />', 'SITELINK' => $MPL); $tpl->set_ar_out($ar, 0); if ($UGAnzahl > 0) { $tpl->set_out('UGBILDER', ' (' . $UGAnzahl . ')', 1); while ($rowUG = db_fetch_assoc($ergUG)) { if (empty($rowUG['txt'])) { $rowUG['txt'] = $rowUG['name']; } else { $rowUG['txt'] = $rowUG['txt']; } $rowUG['BILDER'] = '<div class="boxUserFotos"><a href="include/images/usergallery/img_' . $rowUG['id'] . '.' . $rowUG['endung'] . '" target="_blank"><img src="include/images/usergallery/img_thumb_' . $rowUG['id'] . '.' . $rowUG['endung'] . '" title="' . $rowUG['txt'] . '" width="80px" height="80px"></a></div>'; $tpl->set_ar_out($rowUG, 2); } $tpl->out(3); } if ($FAnzahl > 0) { $tpl->set_out('ZFRIENDS', ' (' . $FAnzahl . ')', 4); while ($rowF = db_fetch_assoc($ergF)) { if (file_exists($rowF['avatar'])) { $rowF['FRIENDA'] = '<div class="boxFriends"><a href="?user-details-' . $rowF['fid'] . '" title="' . $rowF['name'] . '"><img src="' . $rowF['avatar'] . '" title="' . $rowF['name'] . '" width="80px" heigt="80px;" class="boxFriendsAvatar"><div class="boxFriendsName">' . $rowF['name'] . '</div></a></div>'; } else { $rowF['FRIENDA'] = '<div class="boxFriends"><a href="?user-details-' . $rowF['fid'] . '" title="' . $rowF['name'] . '"><img src="include/images/userprofil/avatar/nouser.png" title="' . $rowF['name'] . '" width="80px" heigt="80px;" class="boxFriendsAvatar"><div class="boxFriendsName">' . $rowF['name'] . '</div></a></div>'; } $tpl->set_ar_out($rowF, 5); } $tpl->out(6); }
$namezw = ''; } $cattitle = ':: ' . $titelzw . $row['name']; $catname = '<b> » </b>' . $namezw . $row['name']; } else { $cattitle = ''; $catname = ''; } $title = $allgAr['title'] . ' :: Gallery ' . $cattitle; $hmenu = '<a class="smalfont" href="?gallery">Gallery</a>' . $catname; $design = new design($title, $hmenu); $design->header(); $tpl = new tpl('gallery'); $erg = db_query("SELECT id,name,`besch` FROM prefix_gallery_cats WHERE recht >= {$_SESSION['authright']} AND cat = " . $cid . " ORDER BY pos"); if (db_num_rows($erg) > 0) { $tpl->out(1); $class = 'Cnorm'; while ($row = db_fetch_assoc($erg)) { $row['gallery'] = count_files($row['id']); $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; $row['class'] = $class; $tpl->set_ar_out($row, 2); } $tpl->out(3); } $limit = $img_per_site; $page = $menu->getA(2) == 'p' ? escape($menu->getE(2), 'integer') : 1; $MPL = db_make_sites($page, '', $limit, '?gallery-' . $cid, "gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = " . $cid . " AND (recht >= " . $_SESSION['authright'] . " OR recht IS NULL)"); $anfang = ($page - 1) * $limit; $erg = db_query("SELECT prefix_gallery_imgs.id,prefix_gallery_imgs.cat,datei_name,endung,prefix_gallery_imgs.`besch`,klicks,vote_wertung,vote_klicks FROM prefix_gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = " . $cid . " AND (recht >= " . $_SESSION['authright'] . " OR recht IS NULL) ORDER BY id ASC LIMIT " . $anfang . "," . $limit); if (db_num_rows($erg) > 0) {
<?php /** * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) * @copyright (C) 2000-2010 ilch.de * @version $Id$ */ defined('main') or die('no direct access'); $title = $allgAr['title'] . ' :: Awards'; $hmenu = 'Awards'; $design = new design($title, $hmenu); $design->header(); $tpl = new tpl('awards.htm'); $tpl->out(0); $class = 'Cnorm'; $erg = db_query("SELECT `platz`, `text`, `wofur`, `team`, `bild`, DATE_FORMAT(time, '%d.%m.%Y') as `time` FROM `prefix_awards` ORDER BY `time` DESC"); while ($row = db_fetch_assoc($erg)) { $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; if ($row['bild'] != '' and trim($row['bild']) != 'http://') { $row['bildutime'] = '<span style="float: left; margin-right: 10px;"><img src="' . $row['bild'] . '" alt="' . $row['wofur'] . '" title="' . $row['wofur'] . '"/><br /><font class="smalfont">' . $row['time'] . '</font></span><br />'; } else { $row['bildutime'] = $lang['date'] . ': ' . $row['time'] . '<br />'; } $row['class'] = $class; $tpl->set_ar_out($row, "tabelle"); } $tpl->out("ende"); $design->footer();
if (escape($menu->get(1), 'string') == 'farben') { $erg = db_query('SELECT * FROM `prefix_shbox4config` WHERE id = "1"'); $row = db_fetch_assoc($erg); $url = 'farben'; $ar = array('GASTNAME' => $var->check_var('ngast', 'Name Gäste', $row['ngast'], $url), 'GASTTEXT' => $var->check_var('tgast', 'Text Gäste', $row['tgast'], $url), 'USERNAME' => $var->check_var('nuser', 'Name User', $row['nuser'], $url), 'USERTEXT' => $var->check_var('tuser', 'Text User', $row['tuser'], $url), 'ADMINNAME' => $var->check_var('nadmin', 'Name Admin', $row['nadmin'], $url), 'ADMINTEXT' => $var->check_var('tadmin', 'Text Admin', $row['tadmin'], $url), 'NGAST' => $var->shfarben($var->shconfig('ngast'), 'Farbe: Name der Gäste', 'fngast', $row['fngast'], $url, 0), 'TGAST' => $var->shfarben($var->shconfig('tgast'), 'Farbe:Text der Gäste', 'ftgast', $row['ftgast'], $url, 0), 'NUSER' => $var->shfarben($var->shconfig('nuser'), 'Farbe:Name der User', 'fnuser', $row['fnuser'], $url, 0), 'TUSER' => $var->shfarben($var->shconfig('tuser'), 'Farbe:Text der User', 'ftuser', $row['ftuser'], $url, 0), 'NADMIN' => $var->shfarben($var->shconfig('nadmin'), 'Farbe:Name der Admins', 'fnadmin', $row['fnadmin'], $url, 0), 'TADMIN' => $var->shfarben($var->shconfig('tadmin'), 'Farbe:Text der Admins', 'ftadmin', $row['ftadmin'], $url, 0)); $tpl->set_ar_out($ar, 2); } if (escape($menu->get(1), 'string') == 'style') { $erg = db_query('SELECT * FROM `prefix_shbox4config` WHERE id = "1"'); $row = db_fetch_assoc($erg); $url = 'style'; $ar = array('AUSRICHTUNG' => $var->check_var('ausr', 'Eigene Ausrichtung', $row['ausr'], $url), 'HINTERGRUND' => $var->check_var('hgrund', 'Eigener Hintergrund', $row['hgrund'], $url), 'BBREITE' => $var->shfarben($var->shconfig('ausr'), 'Breite der Box in %', 'bbreite', $row['bbreite'], $url, 1), 'BAUS' => $var->shfarben($var->shconfig('ausr'), 'Ausrichtung der Box', 'baus', $row['baus'], $url, 2), 'HFNAME' => $var->shfarben($var->shconfig('hgrund'), 'Hintergrundfarbe vom Namen', 'hfname', $row['hfname'], $url, 0), 'HFTEXT' => $var->shfarben($var->shconfig('hgrund'), 'Hintergrundfarbe vom Text', 'hftext', $row['hftext'], $url, 0), 'HFINPUT' => $var->shfarben($var->shconfig('hgrund'), 'Hintergrundfarbe vom Eingabefeld', 'hfinput', $row['hfinput'], $url, 0)); $tpl->set_ar_out($ar, 3); } if (escape($menu->get(1), 'string') == 'show' || escape($menu->get(1), 'string') == '') { $tpl->out(4); $erg = db_query('SELECT * FROM `prefix_shbox4` ORDER BY `id` DESC'); while ($row = db_fetch_assoc($erg)) { $ar = array('ID' => $row['id'], 'NAME' => $var->colorname($var->sh_usercheck($row['uid']), get_n($row['uid'])), 'TEXTNOBB' => $row['txt'], 'TEXT' => BBcode(substr($row['txt'], 0, 70))); $tpl->set_ar_out($ar, 5); } $tpl->out(6); } /* function showedit($gid) { $ed = db_query('SELECT * FROM `prefix_shbox4` WHERE `id` = "' . $gid . '"'); $e = db_fetch_assoc($ed); return '<form action="?shbox4admin-show-send-'.$gid.'" method="POST"> <tr> <td style="background-color:#FF0000">' . $e['id'] . '</td> <td style="background-color:#FF0000">' . get_n($e['uid']) . '</td>
db_query('UPDATE `prefix_rules` SET `text` = "' . $text . '", `titel` = "' . $titel . '", `zahl` = "' . $zahl . '" WHERE `id` = "' . $sid . '"'); } } if (!empty($_GET['delete'])) { $delete = escape($_GET['delete'], 'integer'); db_query('DELETE FROM `prefix_rules` WHERE `id` = "' . $delete . '" LIMIT 1'); } if (empty($_GET['sid'])) { $row = array(); $row['sub'] = 'Eintragen'; $row['zahl'] = ''; $row['titel'] = ''; $row['text'] = $row['sid'] = ''; } else { $abf = 'SELECT `text`,`zahl`,`titel`,`id` as `sid` FROM `prefix_rules` WHERE `id` = "' . escape($_GET['sid'], 'integer') . '"'; $erg = db_query($abf); $row = db_fetch_assoc($erg); $row['sub'] = 'Ändern'; } $clas = ''; $tpl = new tpl('rules', 1); $row['ANTISPAM'] = get_antispam('adminuser_action', 0, true); $tpl->set_ar_out($row, 0); $erg = db_query('SELECT * FROM `prefix_rules` ORDER BY `zahl`'); while ($row = db_fetch_assoc($erg)) { $clas = $clas == 'Cmite' ? 'Cnorm' : 'Cmite'; $row['class'] = $clas; $tpl->set_ar_out($row, 1); } $tpl->out(2); $design->footer();
db_query("UPDATE prefix_partners SET pos = " . $pos . " WHERE pos = " . $nps); db_query("UPDATE prefix_partners SET pos = " . $nps . " WHERE id = " . $id); } } // aendern vorbereiten. if ($menu->getA(2) == 'e') { $erg = db_query("SELECT id,name,banner,link FROM prefix_partners WHERE id = '" . $menu->getE(2) . "'"); $_ilch = db_fetch_assoc($erg); $_ilch['pkey'] = $menu->getE(2); } else { $_ilch = array('pkey' => '', 'id' => '', 'banner' => '', 'name' => '', 'link' => ''); } $tpl->set_ar_out($_ilch, 0); $page = $menu->getA(2) == 'p' ? $menu->getE(2) : 1; $limit = 20; $class = 'Cnorm'; $MPL = db_make_sites($page, '', $limit, '?archiv-partners', 'partners'); $anfang = ($page - 1) * $limit; $abf = "SELECT id,name,link, pos FROM prefix_partners ORDER BY pos ASC LIMIT " . $anfang . "," . $limit; $erg = db_query($abf); while ($row = db_fetch_assoc($erg)) { $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; $row['class'] = $class; $tpl->set_ar($row); $tpl->out(1); } $tpl->set('MPL', $MPL); $tpl->out(2); $design->footer(); break; }
<?php /** * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) * @copyright (C) 2000-2010 ilch.de * @version $Id$ */ defined('main') or die('no direct access'); defined('admin') or die('only admin access'); if ($menu->get(1) == "phpinfo") { phpinfo(); } else { $design = new design('Ilch Admin-Control-Panel :: Serverkonfiguration', '', 2); $design->header(); $tpl = new tpl('checkconf', 1); $tpl->out(0); // # Server conf $tpl->set_out('head', $lang['phpserverconf'], 1); $tpl->set_ar_out(array('class' => 'Cmite', 'opt' => 'version', 'val' => phpversion()), 3); $confstrings = array("safe_mode", "display_errors", "max_execution_time", "memory_limit", "register_globals", "file_uploads", "upload_max_filesize", "post_max_size", "disable_functions"); $class = 'Cmite'; foreach ($confstrings as $str) { if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $tpl->set("class", $class); $tpl->set("opt", $str); $tpl->set("val", ini_get($str)); $tpl->out(3);
/** * zeigt den preview des texts an * nur aufrufen, wenn in $_POST["txt"] der text steht */ function showPreview() { $tpl = new tpl('gbook'); $tpl->set("TEXT", BBcode(escape($_POST["txt"], "textarea"))); $tpl->out('preview'); }
$bis = get_datum(escape($_POST['bis'], 'string')); $bet = escape($_POST['betreff'], 'string'); $uid = $_SESSION['authid']; if (empty($_POST['ch'])) { away_sendpmtoleaders($message1, $uid, 0); db_query("INSERT INTO `prefix_awaycal` (`uid`,`von`,`bis`,`betreff`) VALUES (" . $uid . ",'" . $von . "','" . $bis . "','" . $bet . "')"); } else { $id = escape($_POST['ch'], 'integer'); $uid = db_result(db_query("SELECT `uid` FROM `prefix_awaycal` WHERE `id` = " . $id), 0); if (is_siteadmin('awaycal') or $uid == $_SESSION['authid']) { away_sendpmtoleaders($message2, $uid, 1); db_query("UPDATE `prefix_awaycal` SET `von` = '" . $von . "', `bis` = '" . $bis . "', `betreff` = '" . $bet . "' WHERE `id` = " . $id); } } } $tpl->out(1); $class = ''; $statusar = array(2 => $lang['reported'], 1 => $lang['rejected'], 3 => $lang['allowed']); $erg = db_query("SELECT `pruef`, DATE_FORMAT(von,'%d.%m.%Y') as `von`, DATE_FORMAT(bis,'%d.%m.%Y') as `bis`, `betreff`, `prefix_user`.`name`, `uid`, `prefix_awaycal`.`id` FROM `prefix_awaycal` LEFT JOIN `prefix_user` ON `prefix_user`.`id` = `prefix_awaycal`.`uid` ORDER BY `id` DESC"); while ($r = db_fetch_assoc($erg)) { $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; $r['class'] = $class; $r['status'] = $statusar[$r['pruef']]; if ($r['uid'] == $_SESSION['authid'] or is_siteadmin('awaycal')) { $r['betreff'] .= '<br /><span style="float: right;"><a href="index.php?awaycal-d' . $r['id'] . '"><img src="include/images/icons/del.gif" alt="' . $lang['delete'] . '" title="' . $lang['delete'] . '" border="0" /></a> - <a href="index.php?awaycal-e' . $r['id'] . '"><img src="include/images/icons/edit.gif" alt="' . $lang['change'] . '" title="' . $lang['change'] . '" border="0" /></a>'; if (is_siteadmin('awaycal')) { $r['betreff'] .= ' - <a href="index.php?awaycal-c' . $r['id'] . '-1"><img src="include/images/icons/nop.gif" alt="' . $lang['reject'] . '" title="' . $lang['reject'] . '" border="0" /></a> - <a href="index.php?awaycal-c' . $r['id'] . '-3"><img src="include/images/icons/jep.gif" alt="' . $lang['allow'] . '" title="' . $lang['allow'] . '" border="0" /></a>'; } $r['betreff'] .= '</span>'; } $tpl->set_ar_out($r, 2);
$menu->set_url(1, ''); } else { db_query("INSERT INTO `prefix_awards` (time, platz, team, wofur, bild, text) VALUES\r\n ('" . $datum . "', '" . $platz . "', '" . $team . "', '" . $wofur . "', '" . $bild . "', '" . $text . "')"); } } #Ändern/Ausgabearray füllen if ($menu->getA(1) == 'e' and is_numeric($menu->getE(1))) { $r = db_fetch_assoc(db_query("SELECT * FROM `prefix_awards` WHERE id = " . $menu->getE(1))); $r['id'] = '-e' . $r['id']; $t = explode('-', $r['time']); $r['datum'] = $t[2] . '.' . $t[1] . '.' . $t[0]; } else { $r = array('id' => '', 'datum' => date('d.m.Y'), 'platz' => '', 'wofur' => '', 'bild' => '', 'text' => '', 'teams' => getTeams()); } #Ausgabe $tpl = new tpl('awards', 1); $tpl->set_ar_out($r, 0); if (empty($r['team'])) { $tpl->set_ar_out($r, 1); } else { $tpl->set_ar_out($r, 2); } $tpl->set_ar_out($r, 3); $erg = db_query('SELECT * FROM `prefix_awards` ORDER BY time DESC'); while ($row = db_fetch_assoc($erg)) { $t = explode('-', $row['time']); $row['datum'] = $t[2] . '.' . $t[1] . '.' . $t[0]; $tpl->set_ar_out($row, 4); } $tpl->out(5); $design->footer();
$mail = escape($_POST['mail'], 'string'); $page = escape($_POST['page'], 'string'); $text = escape($_POST['text'], 'string'); if (empty($_POST['gid'])) { db_query("INSERT INTO prefix_gbook (name, mail, page, txt, time) VALUES ('" . $name . "','" . $mail . "','" . $page . "','" . $text . "', '" . time() . "')"); } else { $gid = escape($_POST['gid'], 'integer'); db_query("UPDATE prefix_gbook SET name = '" . $name . "', mail = '" . $mail . "', page = '" . $page . "', txt = '" . $text . "' WHERE id = " . $gid); } } $r = array('name' => '', 'mail' => '', 'page' => '', 'text' => '', 'id' => ''); if (isset($_GET['edit'])) { $id = escape($_GET['edit'], 'integer'); $r = db_fetch_assoc(db_query("SELECT id, name, mail, page, txt as text FROM prefix_gbook WHERE id = " . $id)); } $tpl = new tpl('gbook', 1); $tpl->set_ar_out($r, 0); $class = ''; $erg = db_query('SELECT name, mail, txt, id FROM `prefix_gbook` ORDER BY time DESC'); while ($r = db_fetch_assoc($erg)) { $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite'; $text = substr(preg_replace("/\r\n|\r|\n/", " ", htmlentities(strip_tags(stripslashes($r['txt'])), ILCH_ENTITIES_FLAGS, ILCH_CHARSET)), 0, 75); echo '<tr class="' . $class . '">'; echo '<td><a href="admin.php?gbook=0&edit=' . $r['id'] . '"><img src="include/images/icons/edit.gif" /></a></td>'; echo '<td><a href="javascript:delcheck(' . $r['id'] . ')"><img src="include/images/icons/del.gif"></a></td>'; echo '<td><b><a href="mailto:' . $r['mail'] . '">' . $r['name'] . '</a></b> <span class="smalfont">'; echo $text . '</span></td>'; echo '</tr>'; } $tpl->out(1); $design->footer();
$design->header(); if (!is_admin()) { echo 'Dieser Bereich ist nicht für dich...'; $design->footer(); exit; } // Load needed functions $funcs = read_ext('include/admin/inc/allg', 'php'); foreach ($funcs as $file) { require_once 'include/admin/inc/allg/' . $file; } if (empty($_POST['submit'])) { // Template laden $tpl = new tpl('allg', 1); // Template-Header ausgeben $tpl->out(0); // Kategorien-ID und NAME $katid = 0; $katname = ''; // Abfrage für Menü und admin/allg.php starten $abf = 'SELECT * FROM `prefix_config` WHERE hide = 0 ORDER BY `kat`,`pos`,`typ` ASC'; $erg = db_query($abf); while ($row = db_fetch_assoc($erg)) { // Werte in Array speichern $cache[] = $row; // Kategorie ausgeben, falls neu if ($katname != $row['kat']) { $katid++; $katname = $row['kat']; $tpl->set_ar_out(array('katid' => $katid, 'katname' => $katname), 1); }
$fehler = $lang['yourdata']; } elseif ($name != $xname) { $fehler = $lang['wrongnickname']; } elseif ($ch_name == false) { $fehler = $lang['namealreadyinuse']; } elseif ($email != $xemail) { $fehler = $lang['wrongemail']; } elseif ($ch_email == false) { $fehler = $lang['emailalreadyinuse']; } $tpl = new tpl('user/regist'); $tpl->set('name', $name); $tpl->set('email', $email); $tpl->set_out('FEHLER', $fehler, 1); if ($allgAr['forum_regist_user_pass'] == 1) { $tpl->out(2); } $tpl->out(3); } else { $pass = genkey(8); if (!empty($_POST['pass'])) { $pass = escape($_POST['pass'], 'string'); } user_regist($name, $email, $pass); $tpl = new tpl('user/regist'); $title = $allgAr['title'] . ' :: Users :: Registrieren :: Step 3 von 3'; $hmenu = $extented_forum_menu . '<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 3 von 3' . $extented_forum_menu_sufix; $design = new design($title, $hmenu, 1); $design->header(); $tpl->set_out('NAME', $name, 4); }
$tpl = new tpl('news.htm'); if (loggedin()) { $uname = $_SESSION['authname']; $readonly = 'readonly'; } else { $uname = ''; $readonly = ''; } $ar = array('TEXT' => $textToShow, 'KATE' => $kategorie, 'NID' => $nid, 'uname' => $uname, 'readonly' => $readonly, 'ANTISPAM' => get_antispam('newskom', 0), 'NAME' => $row->news_title); $tpl->set_ar_out($ar, 2); if ($komsOK) { $tpl->set_ar_out(array('NAME' => $row->news_title, 'NID' => $nid), "koms_on"); $erg1 = db_query("SELECT `text`, `name`, `userid`, `id`, `time` FROM `prefix_koms` WHERE `uid` = " . $nid . " AND `cat` = 'NEWS' ORDER BY `id` DESC"); $anz = db_num_rows($erg1); if ($anz == 0) { echo $lang['nocomments']; } else { while ($row1 = db_fetch_assoc($erg1)) { $row1['text'] = bbcode(trim($row1['text'])); if (has_right(-7, 'news')) { $del = ' <a href="?news-' . $nid . '-d' . $row1['id'] . '"><img src="include/images/icons/del.gif" alt="löschen" border="0" title="löschen" /></a>'; } $tpl->set_ar_out(array('TEXT' => $row1['text'], 'AVATAR' => get_avatar($row1['userid']), 'NAME' => $row1['name'], 'TIME' => post_date($row1['time'], 1) . $del, 'ZAHL' => $anz), "koms_self"); $anz--; } } $tpl->out("koms_off"); } } } $design->footer();