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


PHP getnickname函数代码示例

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


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

示例1: sendmessage

function sendmessage($touser, $title, $message, $from = '0')
{
    global $hp_url, $admin_email, $admin_name, $hp_title;
    $_language_tmp = new Language();
    $systemmail = false;
    if (!$from) {
        $systemmail = true;
        $from = '1';
    }
    if (!$systemmail) {
        safe_query("INSERT INTO " . PREFIX . "messenger (userID, date, fromuser, touser, title, message, viewed) values('{$from}', '" . time() . "', '{$from}', '{$touser}', '{$title}', '" . $message . "', '0')");
        safe_query("UPDATE " . PREFIX . "user SET pmsent=pmsent+1 WHERE userID='{$from}'");
    }
    if (!isignored($touser, $from) or $systemmail) {
        if ($touser != $from || $systemmail) {
            safe_query("INSERT INTO " . PREFIX . "messenger (userID, date, fromuser, touser, title, message, viewed) VALUES ('{$touser}', '" . time() . "', '{$from}', '{$touser}', '{$title}', '" . $message . "', '0')");
        }
        safe_query("UPDATE " . PREFIX . "user SET pmgot=pmgot+1 WHERE userID='{$touser}'");
        if (wantmail($touser) and isonline($touser) == "offline") {
            $ds = mysql_fetch_array(safe_query("SELECT email, language FROM " . PREFIX . "user WHERE userID='{$touser}'"));
            $_language_tmp->set_language($ds['language']);
            $_language_tmp->read_module('messenger');
            $mail_body = str_replace("%nickname%", getnickname($touser), $_language_tmp->module['mail_body']);
            $mail_body = str_replace("%hp_url%", $hp_url, $mail_body);
            mail($ds['email'], $hp_title . ': ' . $_language_tmp->module['mail_subject'], $mail_body, "Content-Type: text/html; charset=utf-8\nFrom: " . $admin_email . "\n");
        }
    }
}
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:28,代码来源:messenger.php

示例2: getlastcommentposter

function getlastcommentposter($id, $type)
{
    $ds = mysql_fetch_array(safe_query("SELECT userID, nickname FROM `" . PREFIX . "comments` WHERE parentID='{$id}' AND type='{$type}' ORDER BY date DESC LIMIT 0,1"));
    if ($ds['userID']) {
        return getnickname($ds['userID']);
    } else {
        return htmlspecialchars($ds['nickname']);
    }
}
开发者ID:hellagent75,项目名称:ign_live,代码行数:9,代码来源:news.php

示例3: getmoderators

function getmoderators($boardID)
{
    $moderatoren = safe_query("SELECT * FROM " . PREFIX . "forum_moderators WHERE boardID='{$boardID}'");
    $moderators = '';
    $j = 1;
    while ($dm = mysql_fetch_array($moderatoren)) {
        $username = getnickname($dm['userID']);
        if ($j > 1) {
            $moderators .= ', <a href="index.php?site=profile&amp;id=' . $dm['userID'] . '">' . $username . '</a>';
        } else {
            $moderators = '<a href="index.php?site=profile&amp;id=' . $dm['userID'] . '">' . $username . '</a>';
        }
        $j++;
    }
    return $moderators;
}
开发者ID:hellagent75,项目名称:ign_live,代码行数:16,代码来源:board.php

示例4: elseif

        include "comments.php";
    }
} elseif (isset($_GET['galleryID'])) {
    $_language->read_module('gallery');
    $galclass = new Gallery();
    eval("\$gallery = \"" . gettemplate("title_gallery") . "\";");
    echo $gallery;
    $ds = mysql_fetch_array(safe_query("SELECT name FROM " . PREFIX . "gallery WHERE galleryID='" . $_GET['galleryID'] . "'"));
    $title = str_break(clearfromtags($ds['name']), 45);
    $pics = mysql_num_rows(safe_query("SELECT picID FROM " . PREFIX . "gallery_pictures WHERE galleryID='" . $_GET['galleryID'] . "'"));
    $pages = ceil($pics / $gallerypictures);
    $galleryID = $_GET['galleryID'];
    if ($galclass->getgroupid_by_gallery($_GET['galleryID'])) {
        $group = '<a href="index.php?site=gallery&amp;groupID=' . $galclass->getgroupid_by_gallery($_GET['galleryID']) . '" class="titlelink">' . $galclass->getgroupname($galclass->getgroupid_by_gallery($_GET['galleryID'])) . '</a>';
    } else {
        $group = '<a href="index.php?site=gallery&amp;groupID=0" class="titlelink">' . $_language->module['usergalleries'] . '</a> &gt;&gt; <a href="index.php?site=profile&amp;action=galleries&amp;id=' . $galclass->getgalleryowner($_GET['galleryID']) . '" class="titlelink">' . getnickname($galclass->getgalleryowner($_GET['galleryID'])) . '</a>';
    }
    if (!isset($_GET['page'])) {
        $page = 1;
    } else {
        $page = $_GET['page'];
    }
    if ($pages > 1) {
        $pagelink = makepagelink("index.php?site=gallery&amp;galleryID=" . $_GET['galleryID'], $page, $pages);
    } else {
        $pagelink = '<img src="images/icons/multipage.gif" width="10" height="12" alt="" /> <small>' . $_language->module['pg_1_1'] . '</small>';
    }
    if ($page == "1") {
        $ergebnis = safe_query("SELECT * FROM " . PREFIX . "gallery_pictures WHERE galleryID='" . $_GET['galleryID'] . "' ORDER BY picID LIMIT 0, " . $gallerypictures);
    } else {
        $start = $page * $gallerypictures - $gallerypictures;
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:gallery.php

示例5: 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

示例6: addToUrl

echo "<th><a" . $pink['author_id'] . " href=\"index.php" . addToUrl("sort", $dirauth . "author_id") . "\">" . bla("post_author") . "</a></th>\n";
//echo "<th>".bla("post_sticky")."</th>\n";
echo "<th><a" . $pink['title'] . " href=\"index.php" . addToUrl("sort", $dirtitl . "title") . "\">" . bla("post_title") . "</a></th>\n";
echo "<th>" . bla("post_play") . "</th>\n";
echo "<th><a" . $pink['audio_length'] . " href=\"index.php" . addToUrl("sort", $diraudi . "audio_length") . "\">" . bla("post_length") . "</a></th>\n";
echo "<th><a" . $pink['status'] . " href=\"index.php" . addToUrl("sort", $dirstat . "status") . "\">" . bla("post_status") . "</a></th>\n";
echo "<th></th>\n</tr>\n\n";
//one table-row for each entry in the database
for ($i = 0; $i < $rowcount; $i++) {
    echo "<tr>\n";
    //showing the date/time
    $dateformat = $settings['dateformat'];
    $showdate = date($dateformat, strtotime($showtable[$i]['posted']));
    echo "<td>" . $showdate . "</td>\n";
    //showing the author
    $tempauth = getnickname($showtable[$i]['author_id']);
    if ($tempauth == $_SESSION['nickname']) {
        $tempauth = "<b>" . bla("post_yourself") . "</b>";
    }
    echo "<td>" . $tempauth . "</td>\n";
    //generating the link
    if ($showtable[$i]['filelocal'] == 1) {
        $link = $settings['url'] . "/audio/" . $showtable[$i]['audio_file'];
    } else {
        $link = $showtable[$i]['audio_file'];
    }
    //is sticky?
    //echo "<td>";
    //echo $showtable[$i]['sticky']>0 ? '<strong>!!</strong>' : ' ';
    //echo "</td>\n";
    //showing the title
开发者ID:kldeepak,项目名称:swara,代码行数:31,代码来源:backend_postings.php

示例7: getnickname

         $n--;
     } else {
         $n++;
     }
 }
 if (!isset($gbook_comments)) {
     $gbook_comments = '<div style=" padding: 5px; font-weight: bold; width: 282px; float: left;">No Comments</div>';
 }
 if (isfeedbackadmin($userID) || $userID == $id) {
     $submit = '<span style="margin: 2px 0px 20px 0px;float: right;"><input type="submit" value="' . $_language->module['delete_selected'] . '" /></span>';
 } else {
     $submit = '';
 }
 $gbook_form_footer = '' . $page_link . '' . $submit . '</form>';
 if ($loggedin) {
     $name = getnickname($userID);
     if (getemailhide($userID)) {
         $email = '';
     } else {
         $email = getemail($userID);
     }
     $url = gethomepage($userID);
     $icq = geticq($userID);
     $_language->read_module('bbcode', true);
     eval("\$addbbcode = \"" . gettemplate("addbbcode") . "\";");
     eval("\$profile_guestbook_loggedin = \"" . gettemplate("profile_guestbook_loggedin") . "\";");
     $profile_guestbook_loggedin;
 } else {
     $CAPCLASS = new Captcha();
     $captcha = $CAPCLASS->create_captcha();
     $hash = $CAPCLASS->get_hash();
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:profile.php

示例8: urldecode

            echo ">" . urldecode($cats[$j]['name']) . "</option>\n";
            $j += 1;
        }
        echo "</select>\n";
    }
    ?>

</div>

<div id="rightcolumn">


<!--                                      file  -->

<?php 
    $tempauth = getnickname($fields['author_id']);
    if ($tempauth == $_SESSION['nickname']) {
        $tempauth = "yourself";
    }
    echo "<h3>audio (uploaded by " . $tempauth . ")</h3>\n";
    //showing and linking to audiofile. local or not?
    if ($fields['filelocal'] == 1) {
        $link = $settings['url'] . "/audio/" . $fields['audio_file'];
    } else {
        $link = $fields['audio_file'];
    }
    //can...only...play...mp3...with...flash...player
    if ($fields['audio_type'] == 1) {
        echo "<object class=\"topspace2\" type=\"application/x-shockwave-flash\"\n";
        echo "data=\"backend/emff_rec2.swf?src=" . $link . "\"";
        echo " width=\"295\" height=\"9\">\n";
开发者ID:BackupTheBerlios,项目名称:loudblog-svn,代码行数:31,代码来源:backend_record2.php

示例9: htmloutput

         $langs .= '<span style="padding-left:2px"><a href="index.php?site=news_comments&amp;newsID=' . $ds['newsID'] . '&amp;lang=' . $val['lang'] . '"><img src="images/flags/' . $val['countryShort'] . '.gif" width="18" height="12" border="0" alt="' . $val['country'] . '" /></a></span>';
     }
     $i++;
 }
 $headline = $message_array[$showlang]['headline'];
 $content = $message_array[$showlang]['message'];
 if ($ds['intern'] == 1) {
     $isintern = '(' . $_language->module['intern'] . ')';
 } else {
     $isintern = '';
 }
 $content = htmloutput($content);
 $content = toggle($content, $ds['newsID']);
 $headline = clearfromtags($headline);
 $comments = '';
 $poster = '<a href="index.php?site=profile&amp;id=' . $ds['poster'] . '"><b>' . getnickname($ds['poster']) . '</b></a>';
 $related = '';
 if ($ds['link1'] && $ds['url1'] != "http://" && $ds['window1']) {
     $related .= '&#8226; <a href="' . $ds['url1'] . '" target="_blank">' . $ds['link1'] . '</a> ';
 }
 if ($ds['link1'] && $ds['url1'] != "http://" && !$ds['window1']) {
     $related .= '&#8226; <a href="' . $ds['url1'] . '">' . $ds['link1'] . '</a> ';
 }
 if ($ds['link2'] && $ds['url2'] != "http://" && $ds['window2']) {
     $related .= '&#8226; <a href="' . $ds['url2'] . '" target="_blank">' . $ds['link2'] . '</a> ';
 }
 if ($ds['link2'] && $ds['url2'] != "http://" && !$ds['window2']) {
     $related .= '&#8226; <a href="' . $ds['url2'] . '">' . $ds['link2'] . '</a> ';
 }
 if ($ds['link3'] && $ds['url3'] != "http://" && $ds['window3']) {
     $related .= '&#8226; <a href="' . $ds['url3'] . '" target="_blank">' . $ds['link3'] . '</a> ';
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:news_comments.php

示例10: safe_query

        echo '</table></form><br /><br />';
        echo '<h1>&curren; <a href="admincenter.php?site=gallery" class="white">' . $_language->module['gallery'] . '</a> &raquo; ' . $_language->module['usergalleries'] . '</h1>';
        $ergebnis = safe_query("SELECT * FROM " . PREFIX . "gallery WHERE userID!='0'");
        echo '<form method="post" name="ws_gallery" action="admincenter.php?site=gallery&amp;part=gallerys">
    <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#DDDDDD">
      <tr>
        <td width="50%" class="title"><b>' . $_language->module['gallery_name'] . '</b></td>
        <td width="30%" class="title"><b>' . $_language->module['usergallery_of'] . '</b></td>
        <td width="20%" class="title"><b>' . $_language->module['actions'] . '</b></td>
      </tr>';
        $CAPCLASS = new Captcha();
        $CAPCLASS->create_transaction();
        $hash = $CAPCLASS->get_hash();
        $i = 1;
        while ($ds = mysql_fetch_array($ergebnis)) {
            if ($i % 2) {
                $td = 'td1';
            } else {
                $td = 'td2';
            }
            echo '<tr>
        <td class="' . $td . '"><a href="../index.php?site=gallery&amp;galleryID=' . $ds['galleryID'] . '" target="_blank">' . getinput($ds['name']) . '</a></td>
        <td class="' . $td . '"><a href="../index.php?site=profile&amp;id=' . $userID . '" target="_blank">' . getnickname($ds['userID']) . '</a></td>
        <td class="' . $td . '" align="center"><input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=gallery&amp;part=gallerys&amp;action=edit&amp;galleryID=' . $ds['galleryID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" />
        <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete_gallery'] . '\', \'admincenter.php?site=gallery&amp;part=gallerys&amp;delete=true&amp;galleryID=' . $ds['galleryID'] . '&amp;captcha_hash=' . $hash . '\')" value="' . $_language->module['delete'] . '" /></td>
      </tr>';
            $i++;
        }
        echo '</table></form>';
    }
}
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:gallery.php

示例11: detectfilesize

 $filesize = $file['filesize'];
 if (!$filesize) {
     $filesize = 0;
 }
 $downloads = $file['downloads'];
 if (!$downloads) {
     $downloads = 0;
 }
 $filevotes = $file['votes'];
 $filevotes ? $filevotes = ', ' . $filevotes . ' votes' : ($filevotes = ', unrated');
 $traffic = detectfilesize($filesize * $downloads);
 $filesize = detectfilesize($file['filesize']);
 $reportlink = '<a href="index.php?site=files&amp;action=report&amp;link=' . $file['fileID'] . '"><b>' . $_language->module['report_dead_link'] . '</b></a>';
 $date = date("d.m.Y", $file['date']);
 // FILE-AUTHOR
 $uploader = cleartext('[flag]' . getcountry($file['poster']) . '[/flag]') . ' <a href="index.php?site=profile&amp;id=' . $file['poster'] . '">' . getnickname($file['poster']) . '</a>';
 // FILE-CATEGORY
 $cat = mysql_fetch_array(safe_query("SELECT * FROM " . PREFIX . "files_categorys WHERE filecatID='" . $file['filecatID'] . "'"));
 $category = '<a href="index.php?site=files&amp;cat=' . $cat['filecatID'] . '" class="titlelink">' . $cat['name'] . '</a>';
 $categories = '<a href="index.php?site=files&amp;cat=' . $cat['filecatID'] . '"><b>' . $cat['name'] . '</b></a>';
 $cat_id = $cat['subcatID'];
 while ($cat_id != 0) {
     $subcat = mysql_fetch_array(safe_query("SELECT filecatID, name, subcatID FROM " . PREFIX . "files_categorys WHERE filecatID='" . $cat_id . "'"));
     $category = "<a href=\"index.php?site=files&amp;cat=" . $subcat['filecatID'] . "\" class=\"titlelink\">" . $subcat['name'] . "</a> >> " . $category;
     $categories = "<a href=\"index.php?site=files&amp;cat=" . $subcat['filecatID'] . "\"><b>" . $subcat['name'] . "</b></a> >> " . $categories;
     $cat_id = $subcat['subcatID'];
 }
 // FILE-MIRRORS (remember: the primary mirror is still the uploaded or external file!)
 $mirrors = $file['mirrors'];
 if ($mirrors) {
     if (stristr($mirrors, "||")) {
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:files.php

示例12: getsquadname

 }
 $squad = '' . getsquadname($ds['squad']) . '';
 $opptag = getinput($ds['opptag']);
 $oppteam = getinput($ds['oppteam']);
 $server = getinput($ds['server']);
 $hltv = getinput($ds['hltv']);
 if (!empty($ds['hometeam'])) {
     $array = unserialize($ds['hometeam']);
     $n = 1;
     foreach ($array as $id) {
         if (!empty($id)) {
             if ($n > 1) {
                 $hometeam .= ', <a href="index.php?site=profile&amp;id=' . $id . '">' . getnickname($id) . '</a>';
                 $hometampic .= '<a href="index.php?site=profile&amp;id=' . $id . '"><img src="images/avatars/' . getavatar($id) . '" alt="" style="margin-left:2px" /></a>';
             } else {
                 $hometeam .= '<a href="index.php?site=profile&amp;id=' . $id . '">' . getnickname($id) . '</a>';
                 $hometampic .= '<a href="index.php?site=profile&amp;id=' . $id . '"><img src="images/avatars/' . getavatar($id) . '" alt="" style="margin-left:2px" /></a>';
             }
             $n++;
         }
     }
 }
 if (!empty($ds['screens'])) {
     $screens = explode("|", $ds['screens']);
 }
 if (is_array($screens)) {
     $n = 1;
     foreach ($screens as $screen) {
         if (!empty($screen)) {
             $screenshots .= '<img src="images/clanwar-screens/' . $screen . '" target="_blank">';
             if ($nbr == 2) {
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:clanwars_details.php

示例13: safe_query

 echo $ignore_head;
 $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 {
开发者ID:Talfagoron,项目名称:webSPELL-1,代码行数:31,代码来源:buddys.php

示例14: safe_query

                        $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'");
                        if (mysql_num_rows($anmeldung)) {
                            $i = 1;
                            $players = "";
                            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 . '">' . strip_tags(stripslashes(getnickname($da['userID']))) . '</font></a>';
                                } else {
                                    $players .= '<a href="index.php?site=profile&amp;id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . strip_tags(stripslashes(getnickname($da['userID']))) . '</font></a>';
                                }
                                $i++;
                            }
                        } else {
                            $players = $_language->module['no_players_announced'];
                        }
                        $tag = date("d", $ds['date']);
                        $monat = date("m", $ds['date']);
                        $yahr = date("Y", $ds['date']);
                        $clanwars .= '<tr>
						<td bgcolor="' . $bg . '">' . $date . '</td>
						<td bgcolor="' . $bg . '"><a href="' . $ds['opphp'] . '" target="_blank">' . $ds['opptag'] . ' / ' . $ds['opponent'] . '</a></td>
						<td bgcolor="' . $bg . '">' . $players . '</td>
						<td bgcolor="' . $bg . '"><a href="index.php?site=calendar&amp;action=announce&amp;upID=' . $ds['upID'] . '&amp;tag=' . $tag . '&amp;month=' . $monat . '&amp;year=' . $yahr . '#event">' . $_language->module['click'] . '</a></td>
					</tr>';
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:loginoverview.php

示例15: safe_query

}
$getemail = '';
$ergebnis = safe_query("SELECT * FROM " . PREFIX . "contact ORDER BY sort");
while ($ds = mysql_fetch_array($ergebnis)) {
    if ($getemail == $ds['email']) {
        $getemail .= '<option value="' . $ds['email'] . '" selected="selected">' . $ds['name'] . '</option>';
    } else {
        $getemail .= '<option value="' . $ds['email'] . '">' . $ds['name'] . '</option>';
    }
}
$bg1 = BG_1;
if ($loggedin) {
    if (!isset($showerror)) {
        $showerror = '';
    }
    $name = getinput(stripslashes(getnickname($userID)));
    $from = getinput(getemail($userID));
    if (isset($_POST['subject'])) {
        $subject = getforminput($_POST['subject']);
    } else {
        $subject = '';
    }
    if (isset($_POST['text'])) {
        $text = getforminput($_POST['text']);
    } else {
        $text = '';
    }
    eval("\$contact_loggedin = \"" . gettemplate("contact_loggedin") . "\";");
    echo $contact_loggedin;
} else {
    $CAPCLASS = new Captcha();
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:contact.php


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