当前位置: 首页>>代码示例>>PHP>>正文


PHP isclanmember函数代码示例

本文整理汇总了PHP中isclanmember函数的典型用法代码示例。如果您正苦于以下问题:PHP isclanmember函数的具体用法?PHP isclanmember怎么用?PHP isclanmember使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了isclanmember函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: unset

             }
         }
         if (isset($alreadythere)) {
             unset($res_title[$i]);
             unset($res_message[$i]);
             unset($res_link[$i]);
             unset($res_occurr[$i]);
             unset($res_date[$i]);
             unset($res_type[$i]);
         } else {
             $i++;
         }
     }
 }
 if (isset($_GET['news'])) {
     $ergebnis_news = safe_query("SELECT \r\n\t\t\t\t\t\t\t\t\t\t\t\tdate,\r\n\t\t\t\t\t\t\t\t\t\t\t\tposter,\r\n\t\t\t\t\t\t\t\t\t\t\t\tnewsID\r\n\t\t\t\t\t\t\t\t\t\t   FROM\r\n\t\t\t\t\t\t\t\t\t\t   \t\t" . PREFIX . "news\r\n\t\t\t\t\t\t\t\t\t\t   WHERE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublished = '1'\r\n\t\t\t\t\t\t\t\t\t\t\t\tAND\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tintern <= '" . isclanmember($userID) . "'\r\n\t\t\t\t\t\t\t\t\t\t\t\tAND\r\n\t\t\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdate between " . $after . " AND " . $before . "\r\n\t\t\t\t\t\t\t\t\t\t\t\t)");
     while ($ds = mysql_fetch_array($ergebnis_news)) {
         $ergebnis_news_contents = safe_query("SELECT language, headline, content FROM " . PREFIX . "news_contents WHERE newsID = '" . $ds['newsID'] . "' and (content LIKE '%" . $text . "%' or headline LIKE '%" . $text . "%')");
         if (mysql_num_rows($ergebnis_news_contents)) {
             $message_array = array();
             while ($qs = mysql_fetch_array($ergebnis_news_contents)) {
                 $message_array[] = array('lang' => $qs['language'], 'headline' => $qs['headline'], 'message' => $qs['content']);
             }
             $showlang = select_language($message_array);
             $newsID = $ds['newsID'];
             $res_title[$i] = $message_array[$showlang]['headline'];
             $res_message[$i] = clearfromtags($message_array[$showlang]['message']);
             $res_link[$i] = '<a href="index.php?site=news_comments&amp;newsID=' . $newsID . '">' . $_language->module['news_link'] . '</a>';
             $res_occurr[$i] = substri_count_array($message_array, stripslashes($text));
             $res_date[$i] = $ds['date'];
             $res_type[$i] = $_language->module['news'];
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:search.php

示例2: vote

function vote($poll)
{
    global $userID, $_language;
    $pagebg = PAGEBG;
    $border = BORDER;
    $bghead = BGHEAD;
    $bgcat = BGCAT;
    if ($poll) {
        $lastpoll = safe_query("SELECT * FROM " . PREFIX . "poll WHERE aktiv='1' AND laufzeit>" . time() . " AND intern<=" . isclanmember($userID) . " and pollID='" . $poll . "' LIMIT 0,1");
    } else {
        $num = mysql_num_rows(safe_query("SELECT * FROM " . PREFIX . "poll WHERE aktiv='1' AND laufzeit>" . time() . " AND intern<=" . isclanmember($userID) . ""));
        if ($num) {
            $start = rand(0, $num - 1);
            $lastpoll = safe_query("SELECT * FROM " . PREFIX . "poll WHERE aktiv='1' AND laufzeit>" . time() . " AND intern<=" . isclanmember($userID) . " ORDER BY pollID DESC LIMIT " . $start . "," . ($start + 1) . "");
        } else {
            echo $_language->module['no_active_poll'] . '<br /><br />&#8226; <a href="index.php?site=polls">' . $_language->module['show_polls'] . '</a>';
            return true;
        }
    }
    $anz = mysql_num_rows($lastpoll);
    $ds = mysql_fetch_array($lastpoll);
    if ($anz) {
        $anz = mysql_num_rows(safe_query("SELECT pollID FROM `" . PREFIX . "poll` WHERE pollID='" . $ds['pollID'] . "' AND hosts LIKE '%" . $_SERVER['REMOTE_ADDR'] . "%' AND intern<=" . isclanmember($userID) . ""));
        $anz_user = false;
        if ($userID) {
            $user_ids = explode(";", $ds['userIDs']);
            if (in_array($userID, $user_ids)) {
                $anz_user = true;
            }
        }
        $cookie = false;
        if (isset($_COOKIE['poll']) && is_array($_COOKIE['poll'])) {
            $cookie = in_array($ds['pollID'], $_COOKIE['poll']);
        }
        if ($cookie or $anz or $anz_user) {
            if ($ds['intern'] == 1) {
                $isintern = '(' . $_language->module['intern'] . ')';
            } else {
                $isintern = '';
            }
            $title = $ds['titel'];
            for ($n = 1; $n <= 10; $n++) {
                if ($ds['o' . $n]) {
                    $options[] = clearfromtags($ds['o' . $n]);
                }
            }
            $votes = safe_query("SELECT * FROM " . PREFIX . "poll_votes WHERE pollID='" . $ds['pollID'] . "'");
            $dv = mysql_fetch_array($votes);
            $gesamtstimmen = $dv['o1'] + $dv['o2'] + $dv['o3'] + $dv['o4'] + $dv['o5'] + $dv['o6'] + $dv['o7'] + $dv['o8'] + $dv['o9'] + $dv['o10'];
            eval("\$poll_voted_head = \"" . gettemplate("poll_voted_head") . "\";");
            echo $poll_voted_head;
            $n = 1;
            $bg = BG_2;
            foreach ($options as $option) {
                $stimmen = $dv['o' . $n];
                if ($gesamtstimmen) {
                    $perc = $stimmen / $gesamtstimmen * 10000;
                    settype($perc, "integer");
                    $perc = $perc / 100;
                } else {
                    $perc = 0;
                }
                $picwidth = $perc;
                settype($picwidth, "integer");
                eval("\$poll_voted_content = \"" . gettemplate("poll_voted_content") . "\";");
                echo $poll_voted_content;
                $n++;
            }
            $anzcomments = getanzcomments($ds['pollID'], 'po');
            $comments = '<a href="index.php?site=polls&amp;pollID=' . $ds['pollID'] . '">[' . $anzcomments . '] ' . $_language->module['comments'] . '</a>';
            eval("\$poll_voted_foot = \"" . gettemplate("poll_voted_foot") . "\";");
            echo $poll_voted_foot;
            unset($options);
        } else {
            if ($ds['intern'] == 1) {
                $isintern = '(' . $_language->module['intern'] . ')';
            } else {
                $isintern = '';
            }
            $title = $ds['titel'];
            eval("\$poll_head = \"" . gettemplate("poll_head") . "\";");
            echo $poll_head;
            for ($n = 1; $n <= 10; $n++) {
                if ($ds['o' . $n]) {
                    $options[] = $ds['o' . $n];
                }
            }
            $n = 1;
            foreach ($options as $option) {
                $option = $option;
                eval("\$poll_content = \"" . gettemplate("poll_content") . "\";");
                echo $poll_content;
                $n++;
            }
            $pollID = $ds['pollID'];
            eval("\$poll_foot = \"" . gettemplate("poll_foot") . "\";");
            echo $poll_foot;
        }
    } else {
        echo $_language->module['no_active_poll'] . '<br /><br />&#8226; <a href="index.php?site=polls">' . $_language->module['show_polls'] . '</a>';
//.........这里部分代码省略.........
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:101,代码来源:poll.php

示例3: safe_query

 if ($userID != $id && $userID != 0) {
     safe_query("UPDATE " . PREFIX . "user SET visits=visits+1 WHERE userID='" . $id . "'");
     if (mysql_num_rows(safe_query("SELECT visitID FROM " . PREFIX . "user_visitors WHERE userID='" . $id . "' AND visitor='" . $userID . "'"))) {
         safe_query("UPDATE " . PREFIX . "user_visitors SET date='" . $date . "' WHERE userID='" . $id . "' AND visitor='" . $userID . "'");
     } else {
         safe_query("INSERT INTO " . PREFIX . "user_visitors (userID, visitor, date) values ('" . $id . "', '" . $userID . "', '" . $date . "')");
     }
 }
 $anzvisits = $ds['visits'];
 if ($ds['userpic']) {
     $userpic = '<img src="images/userpics/' . $ds['userpic'] . '" alt="" />';
 } else {
     $userpic = '<img src="images/userpics/nouserpic.gif" alt="" />';
 }
 $nickname = $ds['nickname'];
 if (isclanmember($id)) {
     $member = ' <img src="images/icons/member.gif" alt="' . $_language->module['clanmember'] . '" />';
 } else {
     $member = '';
 }
 $registered = date("d.m.Y - H:i", $ds['registerdate']);
 $lastlogin = date("d.m.Y - H:i", $ds['lastlogin']);
 if ($ds['avatar']) {
     $avatar = '<img src="images/avatars/' . $ds['avatar'] . '" alt="" />';
 } else {
     $avatar = '<img src="images/avatars/noavatar.gif" border="0" alt="" />';
 }
 $status = isonline($ds['userID']);
 if ($ds['email_hide']) {
     $email = $_language->module['n_a'];
 } else {
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:profile.php

示例4: print_termine

function print_termine($tag, $month, $year)
{
    global $wincolor;
    global $loosecolor;
    global $drawcolor;
    global $userID;
    global $_language;
    $_language->read_module('calendar');
    $pagebg = PAGEBG;
    $border = BORDER;
    $bghead = BGHEAD;
    $bgcat = BGCAT;
    $start_date = mktime(0, 0, 0, $month, $tag, $year);
    $end_date = mktime(23, 59, 59, $month, $tag, $year);
    unset($termin);
    $ergebnis = safe_query("SELECT * FROM " . PREFIX . "upcoming");
    $anz = mysql_num_rows($ergebnis);
    if ($anz) {
        while ($ds = mysql_fetch_array($ergebnis)) {
            if ($ds['type'] == "c") {
                if ($ds['date'] >= $start_date && $ds['date'] <= $end_date) {
                    $date = date("d.m.Y", $ds['date']);
                    $time = date("H:i", $ds['date']);
                    $squad = getsquadname($ds['squad']);
                    $oppcountry = "[flag]" . $ds['oppcountry'] . "[/flag]";
                    $oppcountry = flags($oppcountry);
                    $opponent = $oppcountry . ' <a href="' . $ds['opphp'] . '" target="_blank">' . clearfromtags($ds['opptag']) . ' / ' . clearfromtags($ds['opponent']) . '</a>';
                    $maps = clearfromtags($ds['maps']);
                    $server = clearfromtags($ds['server']);
                    $league = '<a href="' . $ds['leaguehp'] . '" target="_blank">' . clearfromtags($ds['league']) . '</a>';
                    if (isclanmember($userID)) {
                        $warinfo = cleartext($ds['warinfo']);
                    } else {
                        $warinfo = $_language->module['you_have_to_be_clanmember'];
                    }
                    $players = "";
                    $announce = "";
                    $adminaction = '';
                    if (isclanmember($userID) or isanyadmin($userID)) {
                        $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'");
                        if (mysql_num_rows($anmeldung)) {
                            $i = 1;
                            while ($da = mysql_fetch_array($anmeldung)) {
                                if ($da['status'] == "y") {
                                    $fontcolor = $wincolor;
                                } elseif ($da['status'] == "n") {
                                    $fontcolor = $loosecolor;
                                } else {
                                    $fontcolor = $drawcolor;
                                }
                                if ($i > 1) {
                                    $players .= ', <a href="index.php?site=profile&amp;id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>';
                                } else {
                                    $players .= '<a href="index.php?site=profile&amp;id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>';
                                }
                                $i++;
                            }
                        } else {
                            $players = $_language->module['no_announced'];
                        }
                        if (issquadmember($userID, $ds['squad']) and $ds['date'] > time()) {
                            $announce = '&#8226; <a href="index.php?site=calendar&amp;action=announce&amp;upID=' . $ds['upID'] . '">' . $_language->module['announce_here'] . '</a>';
                        } else {
                            $announce = "";
                        }
                        if (isclanwaradmin($userID)) {
                            $adminaction = '<div align="right">
            <input type="button" onclick="MM_openBrWindow(\'clanwars.php?action=new&amp;upID=' . $ds['upID'] . '\',\'Clanwars\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=490\')" value="' . $_language->module['add_clanwars'] . '" />
            <input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=calendar&amp;action=editwar&amp;upID=' . $ds['upID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" />
            <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'calendar.php?action=delete&amp;upID=' . $ds['upID'] . '\')" value="' . $_language->module['delete'] . '" /></div>';
                        } else {
                            $adminaction = '';
                        }
                    } else {
                        $players = $_language->module['access_member'];
                    }
                    $bg1 = BG_1;
                    $bg2 = BG_2;
                    $bg3 = BG_3;
                    $bg4 = BG_4;
                    eval("\$upcoming_war_details = \"" . gettemplate("upcoming_war_details") . "\";");
                    echo $upcoming_war_details;
                }
            } else {
                if ($start_date <= $ds['date'] && $end_date >= $ds['date'] || $start_date >= $ds['date'] && $end_date <= $ds['enddate'] || $start_date <= $ds['enddate'] && $end_date >= $ds['enddate']) {
                    $date = date("d.m.Y", $ds['date']);
                    $time = date("H:i", $ds['date']);
                    $enddate = date("d.m.Y", $ds['enddate']);
                    $endtime = date("H:i", $ds['enddate']);
                    $title = clearfromtags($ds['title']);
                    $location = '<a href="' . $ds['locationhp'] . '" target="_blank">' . clearfromtags($ds['location']) . '</a>';
                    $dateinfo = cleartext($ds['dateinfo']);
                    $dateinfo = toggle($dateinfo, $ds['upID']);
                    $country = "[flag]" . $ds['country'] . "[/flag]";
                    $country = flags($country);
                    $players = "";
                    if (isclanmember($userID)) {
                        $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'");
                        if (mysql_num_rows($anmeldung)) {
                            $i = 1;
//.........这里部分代码省略.........
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:101,代码来源:calendar.php

示例5: showtopic


//.........这里部分代码省略.........
                $notifyqry = safe_query("SELECT * FROM " . PREFIX . "forum_notify WHERE topicID='" . $topic . "' AND userID='" . $userID . "'");
                if (mysql_num_rows($notifyqry)) {
                    $notify = '<input class="input" type="checkbox" name="notify" value="1" checked="checked" /> ' . $_language->module['notify_reply'];
                } else {
                    $notify = '<input class="input" type="checkbox" name="notify" value="1" /> ' . $_language->module['notify_reply'];
                }
                //STICKY
                if (isforumadmin($userID) || ismoderator($userID, $board)) {
                    $chk_sticky = '<br />' . "\n" . ' <input class="input" type="checkbox" name="sticky" value="1" ' . $_sticky . ' /> ' . $_language->module['make_sticky'];
                } else {
                    $chk_sticky = '';
                }
                $dr['message'] = getinput($dr['message']);
                eval("\$addbbcode = \"" . gettemplate("addbbcode") . "\";");
                eval("\$forum_editpost = \"" . gettemplate("forum_editpost") . "\";");
                echo $forum_editpost;
            }
        } else {
            echo $_language->module['permission_denied'] . '<br /><br />';
        }
        $replys = safe_query("SELECT * FROM " . PREFIX . "forum_posts WHERE topicID='{$topic}' ORDER BY date DESC LIMIT {$start}, {$max}");
    } elseif ($addreply && !$dt['closed']) {
        if ($loggedin and $writer) {
            if (isset($_POST['preview'])) {
                $bg1 = BG_1;
                $bg2 = BG_2;
                $time = date("H:i", time());
                $date = $_language->module['today'];
                $message_preview = getforminput($_POST['message']);
                $postID = 0;
                $message = cleartext(getforminput($_POST['message']));
                $message = toggle($message, 'xx');
                $username = '<a href="index.php?site=profile&amp;id=' . $userID . '"><b>' . getnickname($userID) . '</b></a>';
                if (isclanmember($userID)) {
                    $member = ' <img src="images/icons/member.gif" alt="' . $_language->module['clanmember'] . '" />';
                } else {
                    $member = '';
                }
                if ($getavatar = getavatar($userID)) {
                    $avatar = '<img src="images/avatars/' . $getavatar . '" alt="" />';
                } else {
                    $avatar = '';
                }
                if ($getsignatur = getsignatur($userID)) {
                    $signatur = cleartext($getsignatur);
                } else {
                    $signatur = '';
                }
                if ($getemail = getemail($userID) and !getemailhide($userID)) {
                    $email = '<a href="mailto:' . mail_protect($getemail) . '"><img src="images/icons/email.gif" border="0" alt="email" /></a>';
                } else {
                    $email = '';
                }
                if (isset($_POST['notify'])) {
                    $notify = 'checked="checked"';
                } else {
                    $notify = '';
                }
                $pm = '';
                $buddy = '';
                $statuspic = '<img src="images/icons/online.gif" alt="online" />';
                if (!validate_url(gethomepage($userID))) {
                    $hp = '';
                } else {
                    $hp = '<a href="' . gethomepage($userID) . '" target="_blank"><img src="images/icons/hp.gif" border="0" alt="' . $_language->module['homepage'] . '" /></a>';
                }
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:67,代码来源:forum_topic.php

示例6: safe_query

 $ergebnis = safe_query("SELECT * FROM " . PREFIX . "buddys WHERE userID='{$userID}' AND banned='1'");
 $anz = mysql_num_rows($ergebnis);
 if ($anz) {
     $n = 1;
     while ($ds = mysql_fetch_array($ergebnis)) {
         if ($n % 2) {
             $bg1 = BG_1;
             $bg2 = BG_2;
         } else {
             $bg1 = BG_3;
             $bg2 = BG_4;
         }
         $flag = '[flag]' . getcountry($ds['buddy']) . '[/flag]';
         $country = flags($flag);
         $nickname = getnickname($ds['buddy']);
         if (isclanmember($ds['buddy'])) {
             $member = ' <img src="images/icons/member.gif" width="6" height="11" alt="Clanmember" />';
         } else {
             $member = '';
         }
         if (isonline($ds['buddy']) == "offline") {
             $statuspic = '<img src="images/icons/offline.gif" width="7" height="7" alt="offline" />';
         } else {
             $statuspic = '<img src="images/icons/online.gif" width="7" height="7" alt="online" />';
         }
         eval("\$ignore_content = \"" . gettemplate("ignore_content") . "\";");
         echo $ignore_content;
         $n++;
     }
 } else {
     echo '<tr><td colspan="4" bgcolor="' . BG_1 . '">' . $_language->module['ignore_nousers'] . '</td></tr>';
开发者ID:Talfagoron,项目名称:webSPELL-1,代码行数:31,代码来源:buddys.php

示例7: strip_tags

#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#                                                                        #
##########################################################################
*/
$_language->read_module('login');
if ($loggedin) {
    $username = '<a href="user/' . $userID . '">' . strip_tags(getnickname($userID)) . '</a>';
    $myprofile = '<a href="user/' . $userID . '">My profile</a>';
    if (isanyadmin($userID)) {
        $admin = '<a href="admin/admincenter.php" target="_blank">Admin</a>';
    } else {
        $admin = '';
    }
    if (isclanmember($userID) or iscashadmin($userID)) {
        $cashbox = '&#8226; <a href="index.php?site=cash_box">' . $_language->module['cash-box'] . '</a>';
    } else {
        $cashbox = '';
    }
    $anz = getnewmessages($userID);
    if ($anz) {
        $newmessages = ' (<b>' . $anz . '</b>)';
    } else {
        $newmessages = '0';
    }
    if ($getavatar = getavatar($userID)) {
        $l_avatar = '<img src="images/avatars/' . $getavatar . '" alt="Avatar" />';
    } else {
        $l_avatar = $_language->module['n_a'];
    }
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:login.php

示例8: hidereplace

function hidereplace($content)
{
    global $userID;
    if (isclanmember($userID)) {
        $content = str_replace('[hide]', '<br />', $content);
        $content = str_replace('[/hide]', '<br />', $content);
    } else {
        $content = preg_replace("#\\[hide\\](.*?)\\[\\/hide\\]#si", "", $content);
    }
    return $content;
}
开发者ID:hellagent75,项目名称:ign_live,代码行数:11,代码来源:bbcode.php

示例9: Clanpackage

#   Copyright 2005-2011 by webspell.org                                  #
#                                                                        #
#   visit webSPELL.org, webspell.info to get webSPELL for free           #
#   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
#   - It's NOT allowed to remove this copyright-tag                      #
#   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
#                                                                        #
#   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#                                                                        #
##########################################################################
*/
$_language->read_module('news');
$ergebnis = safe_query("SELECT newsID FROM " . PREFIX . "news WHERE newsID='" . $topnewsID . "' AND intern<=" . isclanmember($userID) . " AND published='1' LIMIT 0,1");
$anz = mysql_num_rows($ergebnis);
if ($anz) {
    $dn = mysql_fetch_array($ergebnis);
    $message_array = array();
    $query = safe_query("SELECT * FROM " . PREFIX . "news_contents WHERE newsID='" . $dn['newsID'] . "'");
    while ($qs = mysql_fetch_array($query)) {
        $message_array[] = array('lang' => $qs['language'], 'headline' => $qs['headline'], 'message' => $qs['content']);
    }
    $showlang = select_language($message_array);
    $headline = clearfromtags($message_array[$showlang]['headline']);
    $content = $message_array[$showlang]['message'];
    if (mb_strlen($content) > $maxtopnewschars) {
        $content = mb_substr($content, 0, $maxtopnewschars);
        $content .= '...';
    }
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:sc_topnews.php

示例10: showboard


//.........这里部分代码省略.........
                $onhoticon = '<img src="images/icons/foldericons/newhotfolder.gif" alt="' . $_language->module['new_posts'] . ' [' . $_language->module['popular'] . ']" />';
                $offhoticon = '<img src="images/icons/foldericons/hotfolder.gif" alt="no ' . $_language->module['new_posts'] . ' [' . $_language->module['popular'] . ']" />';
            }
            if ($dt['closed']) {
                $folder = '<img src="images/icons/foldericons/lockfolder.gif" alt="' . $_language->module['closed'] . '" />';
            } elseif ($dt['moveID']) {
                $folder = '<img src="images/icons/topicicons/pfeil.gif" alt="' . $_language->module['moved'] . '" />';
            } elseif ($userID) {
                $is_unread = mysql_num_rows(safe_query("SELECT userID FROM " . PREFIX . "user WHERE topics LIKE '%|" . $dt['topicID'] . "|%' AND userID='" . $userID . "'"));
                if ($is_unread) {
                    if ($dt['replys'] > 15 || $dt['views'] > 150) {
                        $folder = $onhoticon;
                    } else {
                        $folder = $onicon;
                    }
                } else {
                    if ($dt['replys'] > 15 || $dt['views'] > 150) {
                        $folder = $offhoticon;
                    } else {
                        $folder = $officon;
                    }
                }
            } else {
                if ($gesamt > 15) {
                    $folder = $offhoticon;
                } else {
                    $folder = $officon;
                }
            }
            // end viewed topics
            $topictitle = getinput($dt['topic']);
            $topictitle = str_break($topictitle, 40);
            $poster = '<a href="index.php?site=profile&amp;id=' . $dt['userID'] . '">' . getnickname($dt['userID']) . '</a>';
            if (isset($posterID) and isclanmember($posterID)) {
                $member1 = ' <img src="images/icons/member.gif" alt="' . $_language->module['clanmember'] . '" />';
            } else {
                $member1 = '';
            }
            $replys = '0';
            $views = '0';
            if ($dt['moveID']) {
                // MOVED TOPIC
                $move = safe_query("SELECT * FROM " . PREFIX . "forum_topics WHERE topicID='" . $dt['moveID'] . "'");
                $dm = mysql_fetch_array($move);
                if ($dm['replys']) {
                    $replys = $dm['replys'];
                }
                if ($dm['views']) {
                    $views = $dm['views'];
                }
                $date = date("d.m.y", $dm['lastdate']);
                $time = date("H:i", $dm['lastdate']);
                $today = date("d.m.y", time());
                $yesterday = date("d.m.y", time() - 3600 * 24);
                if ($date == $today) {
                    $date = $_language->module['today'] . ", " . $time;
                } elseif ($date == $yesterday && $date < $today) {
                    $date = $_language->module['yesterday'] . ", " . $time;
                } else {
                    $date = $date . ", " . $time;
                }
                $lastposter = '<a href="index.php?site=profile&amp;id=' . $dm['lastposter'] . '">' . getnickname($dm['lastposter']) . '</a>';
                if (isclanmember($dm['lastposter'])) {
                    $member = ' <img src="images/icons/member.gif" alt="' . $_language->module['clanmember'] . '" />';
                } else {
                    $member = '';
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:67,代码来源:forum.php

示例11: makepagelink

 } else {
     $showonly = '';
 }
 /*news pages switch*/
 if ($pages > 1) {
     $page_link = makepagelink("index.php?site=news", $page, $pages);
 } else {
     $page_link = '';
 }
 if ($page == "1") {
     /*news pages switch ende*/
     $result = safe_query("SELECT\n\t\t * \n\tFROM \n\t\t" . PREFIX . "news\n\tWHERE\n\t\tpublished='1' AND\n\t\tintern<=" . (int) isclanmember($userID) . " " . $showonly . "\n\tORDER BY \n\t\tdate DESC \n\tLIMIT 0," . $maxshownnews);
     $n = $gesamt;
 } else {
     $start = $page * $max - $max;
     $result = safe_query("SELECT\n\t\t\t *\n\t\tFROM \n\t\t\t" . PREFIX . "news \n\t\tWHERE \n\t\t\tpublished='1' AND\n\t\t\tintern<=" . (int) isclanmember($userID) . " \n\t\tORDER BY \n\t\t\tdate DESC\n\t\tLIMIT " . $start . "," . $maxshownnews);
     $n = $gesamt - $page * $max + $max;
 }
 $i = 1;
 while ($ds = mysqli_fetch_array($result)) {
     if ($i % 2) {
         $bg1 = BG_1;
     } else {
         $bg1 = BG_2;
     }
     $date = getformatdate($ds['date']);
     $time = getformattime($ds['date']);
     $rubrikname = getrubricname($ds['rubric']);
     $rubrikname_link = getinput($rubrikname);
     $rubricpic_path = "images/news-rubrics/" . getrubricpic($ds['rubric']);
     $rubricpic = '<img src="' . $rubricpic_path . '" alt="">';
开发者ID:Talfagoron,项目名称:WebSPELL_4.3.0_News_Bild_individual,代码行数:31,代码来源:news.php

示例12: print_cashbox

        function print_cashbox($squadID, $id)
        {
            global $_language;
            $_language->read_module('cash_box');
            $bg1 = BG_1;
            $bg2 = BG_2;
            $pagebg = PAGEBG;
            $border = BORDER;
            $bghead = BGHEAD;
            $bgcat = BGCAT;
            global $wincolor;
            global $loosecolor;
            global $drawcolor;
            global $userID;
            if ($id) {
                $squadergebnis = safe_query("SELECT squad FROM " . PREFIX . "cash_box WHERE cashID='" . $id . "'");
                $dv = mysql_fetch_array($squadergebnis);
                $squadID = $dv['squad'];
            }
            $costs_squad = '';
            if ($squadID == 0) {
                $usersquad = $_language->module['clan'];
            } else {
                $ergebnis_squad = safe_query("SELECT * FROM " . PREFIX . "cash_box_payed, " . PREFIX . "cash_box WHERE " . PREFIX . "cash_box_payed.payed='1' AND " . PREFIX . "cash_box_payed.cashID=" . PREFIX . "cash_box.cashID AND " . PREFIX . "cash_box.squad = '" . $squadID . "'");
                $anz_squad = mysql_num_rows($ergebnis_squad);
                $costs_squad = 0.0;
                if ($anz_squad) {
                    while ($dss = mysql_fetch_array($ergebnis_squad)) {
                        $costs_squad += $dss['costs'];
                    }
                }
                $ergebnis_squad = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE squad='{$squadID}'");
                $anz_squad = mysql_num_rows($ergebnis_squad);
                if ($anz_squad) {
                    while ($dss = mysql_fetch_array($ergebnis_squad)) {
                        $costs_squad -= $dss['totalcosts'];
                    }
                }
                $costs_squad = ' (' . $costs_squad . ' euro)';
                $usersquad = $_language->module['squad'] . ": " . getsquadname($squadID);
            }
            $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE squad='" . $squadID . "' ORDER BY paydate DESC LIMIT 0,1");
            echo '<br /><br /><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" width="180"><b>' . $usersquad . $costs_squad . '</b></td>
        </tr>
        <tr>
          <td height="1" bgcolor="' . BG_1 . '" width="100%" colspan="4"></td>
        </tr>
        <tr><td height="15"></td></tr>';
            echo '<tr>
							<td valign="top" width="180">';
            if (mysql_num_rows($ergebnis)) {
                $ds = mysql_fetch_array($ergebnis);
                if (!$id) {
                    $id = $ds['cashID'];
                }
                $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE cashID='{$id}'");
                $ds = mysql_fetch_array($ergebnis);
                $date = date("d.m.Y", $ds['date']);
                $paydate = date("d.m.Y", $ds['paydate']);
                $bezahlen = safe_query("SELECT * FROM " . PREFIX . "cash_box_payed WHERE cashID='{$id}' AND payed='1' ");
                $payed = mysql_num_rows($bezahlen);
                $konto = cleartext($ds['konto']);
                $usage = $ds['usedfor'];
                if (iscashadmin($userID)) {
                    $adminaction = '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=cash_box&amp;action=edit&amp;id=' . $id . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" /> <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'cash_box.php?delete=true&amp;id=' . $id . '\')" value="' . $_language->module['delete'] . '" />';
                }
                eval("\$cash_box_usage = \"" . gettemplate("cash_box_usage") . "\";");
                echo $cash_box_usage;
                $all = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE squad='" . $squadID . "' ORDER BY paydate DESC");
                echo '<br /><br />';
                while ($ds = mysql_fetch_array($all)) {
                    echo '&#8226; <a href="index.php?site=cash_box&amp;id=' . $ds['cashID'] . '&amp;squad=' . $squadID . '"><b>' . $ds['usedfor'] . '</b></a><br />';
                }
                echo '</td><td width="10">&nbsp;</td>
					<td valign="top">';
                $members = array();
                $ergebnis = safe_query("SELECT * FROM " . PREFIX . "user ORDER BY nickname");
                while ($du = mysql_fetch_array($ergebnis)) {
                    if ($squadID == 0) {
                        if (isclanmember($du['userID'], $squadID)) {
                            $members[] = $du['userID'];
                        }
                    } else {
                        if (issquadmember($du['userID'], $squadID)) {
                            $members[] = $du['userID'];
                        }
                    }
                }
                eval("\$cash_box_head = \"" . gettemplate("cash_box_head") . "\";");
                echo $cash_box_head;
                if (count($members)) {
                    foreach ($members as $usID) {
                        $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box_payed WHERE userID='{$usID}' AND cashID='{$id}'");
                        $du = mysql_fetch_array($ergebnis);
                        $user = '<a href="index.php?site=profile&amp;id=' . $usID . '"><b>' . getnickname($usID) . '</b></a>';
                        if ($du['payed']) {
                            $paydate = date("d.m.Y", $du['date']);
                            $payed = '<font color="' . $wincolor . '">' . $_language->module['paid'] . ': ' . $paydate . '</font>';
//.........这里部分代码省略.........
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:101,代码来源:cash_box.php

示例13: date

 } else {
     $bg1 = BG_3;
     $bg2 = BG_4;
 }
 $date = date("d.m.Y - H:i", $ds['date']);
 if ($userID == $ds['fromuser']) {
     $buddy = '';
 } elseif (isignored($userID, $ds['touser'])) {
     $buddy = '<a href="buddys.php?action=readd&amp;id=' . $ds['touser'] . '&amp;userID=' . $userID . '"><img src="images/icons/buddy_readd.gif" border="0" alt="%readd_ignored%" /></a>';
 } elseif (isbuddy($userID, $ds['touser'])) {
     $buddy = '<a href="buddys.php?action=ignore&amp;id=' . $ds['touser'] . '&amp;userID=' . $userID . '"><img src="images/icons/buddy_ignore.gif" border="0" alt="%ignore%" /></a>';
 } else {
     $buddy = '<a href="buddys.php?action=add&amp;id=' . $ds['touser'] . '&amp;userID=' . $userID . '"><img src="images/icons/buddy_add.gif" border="0" alt="%add_buddylist%" /></a>';
 }
 $receptionist = '<a href="index.php?site=profile&amp;id=' . $ds['touser'] . '"><b>' . getnickname($ds['touser']) . '</b></a>';
 if (isclanmember($ds['touser'])) {
     $member = ' <img src="images/icons/member.gif" width="6" height="11" alt="Clanmember" />';
 } else {
     $member = '';
 }
 if (isonline($ds['touser']) == "offline") {
     $statuspic = '<img src="images/icons/offline.gif" alt="offline" />';
 } else {
     $statuspic = '<img src="images/icons/online.gif" alt="online" />';
 }
 if (trim($ds['title']) != "") {
     $title = clearfromtags($ds['title']);
 } else {
     $title = $_language->module['no_subject'];
 }
 $title = '&#8226; <a href="index.php?site=messenger&amp;action=show&amp;id=' . $ds['messageID'] . '">' . $title . '</a>';
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:messenger.php

示例14: Captcha

        if (!$userID) {
            $CAPCLASS = new Captcha();
            $captcha = $CAPCLASS->create_captcha();
            $hash = $CAPCLASS->get_hash();
            $CAPCLASS->clear_oldcaptcha();
            $captcha_form = $captcha . ' <input type="text" name="captcha" size="5" maxlength="5" /><input name="captcha_hash" type="hidden" value="' . $hash . '" /><br />';
        }
        eval("\$report_deadlink = \"" . gettemplate("report_deadlink") . "\";");
        echo $report_deadlink;
    } else {
        redirect("index.php?site=files", $_language->module['cant_report_without_fileID'], "3");
    }
} else {
    $accesslevel = 1;
    $adminactions = '';
    if (isclanmember($userID)) {
        $accesslevel = 2;
    }
    if (isfileadmin($userID)) {
        $adminactions = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="right">';
        $adminactions .= '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=files&amp;action=newfile\');return document.MM_returnValue" value="' . $_language->module['new_file'] . '" /> ';
        $adminactions .= '<input type="button" onclick="MM_openBrWindow(\'admin/admincenter.php?site=filecategorys\',\'\')" value="' . $_language->module['new_category'] . '" />';
        $adminactions .= '</td></tr></table><br />';
    }
    // STATS
    // categories in database
    $catQry = safe_query("SELECT * FROM " . PREFIX . "files_categorys WHERE subcatID = '0' ORDER BY name");
    $totalcats = mysql_num_rows($catQry);
    if ($totalcats) {
        // files in database
        $fileQry = safe_query("SELECT * FROM " . PREFIX . "files");
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:files.php

示例15: safe_query

 if (isnewsadmin($userID)) {
     $unpublished = safe_query("SELECT newsID FROM " . PREFIX . "news WHERE published='0' AND saved='1'");
     $unpublished = mysql_num_rows($unpublished);
     if ($unpublished) {
         $publish = '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=news&amp;action=unpublished\');return document.MM_returnValue;" value="' . $unpublished . ' ' . $_language->module['unpublished_news'] . '" /> ';
     }
 }
 echo $post . ' ' . $publish . '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=news&amp;action=archive\');return document.MM_returnValue;" value="' . $_language->module['news_archive'] . '" /><hr />';
 if (isset($_GET['show'])) {
     $result = safe_query("SELECT rubricID FROM " . PREFIX . "news_rubrics WHERE rubric='" . $_GET['show'] . "' LIMIT 0,1");
     $dv = mysql_fetch_array($result);
     $showonly = "AND rubric='" . $dv['rubricID'] . "'";
 } else {
     $showonly = '';
 }
 $result = safe_query("SELECT * FROM " . PREFIX . "news WHERE published='1' AND intern<=" . isclanmember($userID) . " " . $showonly . " ORDER BY date DESC LIMIT 0," . $maxshownnews);
 $i = 1;
 while ($ds = mysql_fetch_array($result)) {
     if ($i % 2) {
         $bg1 = BG_1;
     } else {
         $bg1 = BG_2;
     }
     $date = date("d.m.Y", $ds['date']);
     $time = date("H:i", $ds['date']);
     $rubrikname = getrubricname($ds['rubric']);
     $rubrikname_link = getinput($rubrikname);
     $rubricpic_path = "images/news-rubrics/" . getrubricpic($ds['rubric']);
     $rubricpic = '<img src="' . $rubricpic_path . '" border="0" alt="" />';
     if (!is_file($rubricpic_path)) {
         $rubricpic = '';
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:news.php


注:本文中的isclanmember函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。