$cnt = "1";
         $eintrag = _new_gal_1;
     } else {
         $cnt = $check;
         $eintrag = _new_gal_2;
     }
     $can_erase = true;
     $gal = show(_user_new_gallery, array("cnt" => $cnt, "eintrag" => $eintrag));
 }
 /** Neue Aways anzeigen */
 $qryawayn = db("SELECT * FROM " . $db['away'] . " ORDER BY id");
 $away_new = '';
 if (_rows($qryawayn) >= 1) {
     $awayn = '';
     while ($getawayn = _fetch($qryawayn)) {
         if (check_new($getawayn['date'], 1) && data('level') >= 2) {
             $awayn .= show(_user_away_new, array("id" => $getawayn['id'], "user" => autor($getawayn['userid']), "ab" => date("d.m.y", $getawayn['start']), "wieder" => date("d.m.y", $getawayn['end']), "what" => $getawayn['titel']));
         }
     }
     $can_erase = true;
     $away_new = show(_user_away, array("naway" => _lobby_away_new, "away" => $awayn));
 }
 /** Alle Aways anzeigen */
 $qryawaya = db("SELECT * FROM " . $db['away'] . " WHERE start <= '" . time() . "' AND end >= '" . time() . "' ORDER BY start");
 $away_now = "";
 if (_rows($qryawaya) >= 1) {
     $awaya = "";
     while ($getawaya = _fetch($qryawaya)) {
         if (_rows($qryawaya) && data('level') >= 2) {
             $wieder = '';
             if ($getawaya['end'] > time()) {
Esempio n. 2
0
     if ($check == "1") {
         $cnt = "1";
         $eintrag = _new_gal_1;
     } else {
         $cnt = $check;
         $eintrag = _new_gal_2;
     }
     $erase = _user_new_erase;
     $gal = show(_user_new_gallery, array("cnt" => $cnt, "eintrag" => $eintrag));
 }
 // New Aways
 $chklevel = db("SELECT level FROM " . $db['users'] . " WHERE id = '" . $userid . "'");
 $getchklevel = _fetch($chklevel);
 $qryawayn = db("SELECT * FROM " . $db['away'] . "\n                    ORDER BY id");
 while ($getawayn = _fetch($qryawayn)) {
     if (check_new($getawayn['date'], 1) && $getchklevel['level'] >= 2) {
         $erase = _user_new_erase;
         $awayn .= show(_user_away_new, array("id" => $getawayn['id'], "user" => autor($getawayn['userid']), "ab" => date("d.m.y", $getawayn['start']), "wieder" => date("d.m.y", $getawayn['end']), "what" => $getawayn['titel']));
         $away_new = show(_user_away, array("naway" => _lobby_away_new, "away" => $awayn));
     } else {
         $away_new = "";
     }
 }
 // Aways
 $qryawaya = db("SELECT * FROM " . $db['away'] . "\n                    WHERE start <= '" . time() . "'\n\t\t\t\t    AND end >= '" . time() . "'\n                    ORDER BY start");
 while ($getawaya = _fetch($qryawaya)) {
     if (_rows($qryawaya) && $getchklevel['level'] >= 2) {
         if ($getawaya['end'] > time()) {
             $wieder = _away_to2 . ' <b>' . date("d.m.y", $getawaya['end']) . '</b>';
         }
         if (date("d.m.Y", $getawaya['end']) == date("d.m.Y", time())) {
Esempio n. 3
0
                 } else {
                     $pagenr = ceil($cntpage / $maxfposts);
                 }
                 $qrylp = db("SELECT date,nick,reg,email FROM " . $db['f_posts'] . "\n                         WHERE sid = '" . $get['id'] . "'\n                         ORDER BY date DESC");
                 if (_rows($qrylp)) {
                     $getlp = _fetch($qrylp);
                     $lpost = show(_forum_thread_lpost, array("nick" => autor($getlp['reg'], '', $getlp['nick'], $getlp['email']), "date" => date("d.m.y H:i", $getlp['date']) . _uhr));
                     $lpdate = $getlp['date'];
                 } else {
                     $lpost = "-";
                     $lpdate = "";
                 }
                 $threadlink = show(_forum_thread_search_link, array("topic" => cut(re($get['topic']), $lforumtopic), "id" => $get['id'], "sticky" => $sticky, "hl" => $_GET['search'], "closed" => $closed, "lpid" => $cntpage + 1, "page" => $pagenr));
                 $class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
                 $color++;
                 $results .= show($dir . "/forum_search_results", array("new" => check_new($get['lp']), "topic" => $threadlink, "subtopic" => cut(re($get['subtopic']), $lforumsubtopic), "hits" => $get['hits'], "replys" => cnt($db['f_posts'], " WHERE sid = '" . $get['id'] . "'"), "class" => $class, "lpost" => $lpost, "autor" => autor($get['t_reg'], '', $get['t_nick'], $get['t_email'])));
             }
         }
         $nav = nav($entrys, $maxfsearch, $getstr);
         $show = show($dir . "/forum_search_show", array("head" => _forum_search_results, "autor" => _autor, "thread" => _forum_thread, "lpost" => _forum_lpost, "nav" => $nav, "results" => $results, "replys" => _forum_replys, "hits" => _hits));
     }
 }
 //Diverse Abfragen
 if ($_GET['searchplugin'] == true) {
     $onclick = 'onclick="more(1)" style="cursor:pointer"';
     $img = '<img id="img1" src="../inc/images/expand.gif" alt="" />';
     $style = 'style="display:none"';
     if ($_GET['si_board'] == true) {
         $si_board = "checked=\"checked\"";
     }
     if (empty($strkat)) {