Exemple #1
0
     $index = error(_error_have_to_be_logged, 1);
 } else {
     $qry = db("SELECT * FROM " . $db['buddys'] . "\n\t\t\t\t\t\t   WHERE user = "******"";
     while ($get = _fetch($qry)) {
         $pn = show(_pn_write, array("id" => $get['buddy'], "nick" => data($get['buddy'], "nick")));
         $delete = show(_buddys_delete, array("id" => $get['buddy']));
         $yesnocheck = db("SELECT * FROM " . $db['buddys'] . "\n\t  \t\t\t\t\t\t\t\t\t\twhere user = '******'buddy'] . "'\n                        AND buddy = '" . $userid . "'");
         if (_rows($yesnocheck)) {
             $too = _buddys_yesicon;
         } else {
             $too = _buddys_noicon;
         }
         $class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
         $color++;
         $buddys .= show($dir . "/buddys_show", array("nick" => autor($get['buddy']), "onoff" => onlinecheck($get['buddy']), "pn" => $pn, "class" => $class, "too" => $too, "delete" => $delete));
     }
     $qry = db("SELECT id,nick FROM " . $db['users'] . "\n               WHERE level != 0\n\t\t\t\t\t\t\t ORDER BY nick");
     while ($get = _fetch($qry)) {
         $users .= show(_to_users, array("id" => $get['id'], "nick" => data($get['id'], "nick")));
     }
     $add = show("" . $dir . "/buddys_add", array("users" => $users, "value" => _button_value_addto));
     $index = show($dir . "/buddys", array("buddyhead" => _buddyhead, "nick" => _nick, "pn" => _pnicon_blank, "mybuddys" => _buddys, "addbuddys" => _addbuddys, "buddynick" => _buddynick, "delete" => _deleteicon_blank, "too" => _yesno, "show" => $buddys, "add" => $add, "legende" => _legende, "yes" => _buddys_yesicon, "no" => _buddys_noicon, "legendeaddedtoo" => _buddys_legende_addedtoo, "legendedontaddedtoo" => _buddys_legende_dontaddedtoo));
     if ($_GET['do'] == "add") {
         if ($_POST['users'] == "-") {
             $index = error(_error_select_buddy, 1);
         } elseif ($_POST['users'] == $userid) {
             $index = error(_error_buddy_self, 1);
         } elseif (!check_buddy($_POST['users'])) {
             $index = error(_error_buddy_already_in, 1);
         } else {
             $hp = show(_hpicon_forum, array("hp" => $getc['hp']));
         } else {
             $hp = "";
         }
         if ($getc['email']) {
             $email = '<br />' . show(_emailicon_forum, array("email" => eMailAddr($getc['email'])));
         } else {
             $email = "";
         }
         $onoff = "";
         $avatar = "";
         $nick = show(_link_mailto, array("nick" => re($getc['nick']), "email" => eMailAddr($getc['email'])));
     } else {
         $email = "";
         $hp = "";
         $onoff = onlinecheck($getc['reg']);
         $nick = autor($getc['reg']);
     }
     $titel = show(_eintrag_titel, array("postid" => $i, "datum" => date("d.m.Y", $getc['datum']), "zeit" => date("H:i", $getc['datum']) . _uhr, "edit" => $edit, "delete" => $delete));
     if ($chkMe == "4") {
         $posted_ip = $getc['ip'];
     } else {
         $posted_ip = _logged;
     }
     $comments .= show("page/comments_show", array("titel" => $titel, "comment" => bbcode($getc['comment']), "editby" => bbcode($getc['editby']), "nick" => $nick, "email" => $email, "hp" => $hp, "avatar" => useravatar($getc['reg']), "onoff" => $onoff, "rank" => getrank($getc['reg']), "ip" => $posted_ip));
     $i--;
 }
 if (settings("reg_artikel") == "1" && $chkMe == "unlogged") {
     $add = _error_unregistered_nc;
 } else {
     if (isset($userid)) {
Exemple #3
0
        $get_hp = $_POST['hp'];
        $get_email = $_POST['email'];
        $get_nick = $_POST['nick'];
        if (!$regCheck) {
            if ($get_hp) {
                $hp = show(_hpicon_forum, array("hp" => links($get_hp)));
            }
            if ($get_email) {
                $email = '<br />' . show(_emailicon_forum, array("email" => eMailAddr($get_email)));
            }
            $onoff = "";
            $avatar = "";
            $nick = show(_link_mailto, array("nick" => re($get_nick), "email" => $get_email));
        } else {
            $hp = "";
            $email = "";
            $onoff = onlinecheck($get_userid);
            $nick = cleanautor($get_userid);
        }
        $titel = show(_eintrag_titel, array("postid" => $get_id, "datum" => date("d.m.Y", $get_date), "zeit" => date("H:i", $get_date) . _uhr, "edit" => $edit, "delete" => $delete));
        $index = show("page/comments_show", array("titel" => $titel, "comment" => bbcode($_POST['comment'], 1), "nick" => $nick, "editby" => bbcode($editedby, 1), "email" => $email, "hp" => $hp, "avatar" => useravatar($get_userid), "onoff" => $onoff, "rank" => getrank($get_userid), "ip" => $userip . _only_for_admins));
        echo '<table class="mainContent" cellspacing="1">' . $index . '</table>';
        exit;
        break;
}
## SETTINGS ##
$time_end = generatetime();
$time = round($time_end - $time_start, 4);
page($index, $title, $where, $time);
## OUTPUT BUFFER END ##
gz_output();
Exemple #4
0
         }
         if (empty($getm['steamid'])) {
             $steamid = "";
             $steam = "-";
         } else {
             $steamid = $getm['steamid'];
             $steam = _steamicon_blank;
         }
         $class = $color % 2 ? "contentMainFirst" : "contentMainSecond";
         $color++;
         $nick = autor($getm['user'], '', '', '', '', '&amp;sq=' . $getm['squad']);
         if (!empty($getm['rlname'])) {
             $real = explode(" ", re($getm['rlname']));
             $nick = '<b>' . $real[0] . ' &#x93;</b> ' . $nick . ' <b>&#x94; ' . $real[1] . '</b>';
         }
         $member .= show($dir . "/squads_member", array("icqs" => $icq, "icq" => $icqnr, "email" => $email, "hlsw" => $hlsw, "emails" => eMailAddr($getm['email']), "id" => $getm['user'], "steamid" => $steamid, "steam" => $steam, "class" => $class, "nick" => $nick, "onoff" => onlinecheck($getm['id']), "posi" => getrank($getm['id'], $getm['squad']), "pic" => userpic($getm['id'], 60, 80)));
     }
     $squad = re($get['name']);
     foreach ($picformat as $end) {
         if (file_exists(basePath . '/inc/images/squads/' . intval($get['id']) . '.' . $end)) {
             $style = 'padding:0;';
             $squad = '<img src="../inc/images/squads/' . intval($get['id']) . '.' . $end . '" alt="' . re($get['name']) . '" />';
             break;
         }
     }
     $index = show($dir . "/squads_full", array("member" => empty($member) ? _member_squad_no_entrys : $member, "desc" => empty($get['beschreibung']) ? '' : '<tr><td class="contentMainSecond">' . bbcode($get['beschreibung']) . '</td></tr>', "squad" => $squad, "style" => $style, "back" => _error_back, "id" => intval($_GET['id'])));
     break;
 default:
     $qry = db("SELECT * FROM " . $db['squads'] . " WHERE team_show = 1 ORDER BY pos");
     while ($get = _fetch($qry)) {
         $class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
Exemple #5
0
         $icq = "";
     } else {
         $uin = show(_icqstatus_forum, array("uin" => $getu['icq']));
         $icq = '<a href="http://www.icq.com/whitepages/about_me.php?uin=' . $getu['icq'] . '" target="_blank">' . $uin . '</a>';
     }
     if (empty($getu['hp'])) {
         $hp = "";
     } else {
         $hp = show(_hpicon_forum, array("hp" => $getu['hp']));
     }
     if (data($pUId, "signatur")) {
         $sig = _sig . bbcode(data($pUId, "signatur"), 1);
     } else {
         $sig = "";
     }
     $onoff = onlinecheck($userid);
     $userposts = show(_forum_user_posts, array("posts" => userstats($pUId, "forumposts") + 1));
 } else {
     $pn = "";
     $icq = "";
     $email = show(_emailicon_forum, array("email" => eMailAddr($_POST['email'])));
     if (empty($_POST['hp'])) {
         $hp = "";
     } else {
         $hp = show(_hpicon_forum, array("hp" => links($_POST['hp'])));
     }
 }
 $qryw = db("SELECT s1.kid,s1.topic,s2.kattopic,s2.sid\n                FROM " . $db['f_threads'] . " AS s1\n                LEFT JOIN " . $db['f_skats'] . " AS s2\n                ON s1.kid = s2.id\n                WHERE s1.id = '" . intval($tID) . "'");
 $getw = _fetch($qryw);
 $qrykat = db("SELECT name FROM " . $db['f_kats'] . "\n                  WHERE id = '" . $getw['sid'] . "'");
 $kat = _fetch($qrykat);