示例#1
0
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");
        }
    }
}
示例#2
0
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']);
    }
}
示例#3
0
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;
}
示例#4
0
        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;
示例#5
0
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;
                            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 (isclanmember($userID) 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_goToURL(\'parent\',\'index.php?site=calendar&amp;action=editdate&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'];
                        $announce = '';
                        $adminaction = '';
                    }
                    $bg1 = BG_1;
                    $bg2 = BG_2;
                    $bg3 = BG_3;
                    $bg4 = BG_4;
                    eval("\$upcoming_date_details = \"" . gettemplate("upcoming_date_details") . "\";");
                    echo $upcoming_date_details;
                }
            }
        }
    } else {
        echo $_language->module['no_entries'];
    }
}
示例#6
0
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
示例#7
0
         $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();
            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";
示例#9
0
         $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> ';
示例#10
0
        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>';
    }
}
示例#11
0
 $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, "||")) {
示例#12
0
 }
 $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) {
示例#13
0
 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 {
示例#14
0
                        $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>';
示例#15
0
}
$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();
示例#16
0
#                                                                        #
##########################################################################
*/
$_language->read_module('sc_randompic');
//get files
$pic_array = array();
$picpath = './images/userpics/';
$picdir = opendir($picpath);
while (false !== ($file = readdir($picdir))) {
    if ($file != "." && $file != ".." && $file != "nouserpic.gif" && is_file($picpath . $file) && $file != "Thumbs.db") {
        $pic_array[] = $file;
    }
}
closedir($picdir);
//sort array
natcasesort($pic_array);
reset($pic_array);
//get randompic
$anz = count($pic_array);
if ($anz) {
    $the_pic = $pic_array[rand(0, $anz - 1)];
    $picID = str_replace(strrchr($the_pic, '.'), '', $the_pic);
    $nickname = getnickname($picID);
    $nickname_fixed = getinput($nickname);
    $registerdate = getregistered($picID);
    $picurl = $picpath . $the_pic;
    eval("\$sc_randompic = \"" . gettemplate("sc_randompic") . "\";");
    echo $sc_randompic;
} else {
    echo $_language->module['no_user'];
}
     $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 = '';
 $viewed = $ds['viewed'];
 $poster = '<a href="index.php?site=profile&amp;id=' . $ds['poster'] . '">
     <strong>' . getnickname($ds['poster']) . '</strong>
 </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']) {
示例#18
0
if (isset($_GET['action'])) {
    $action = $_GET['action'];
} else {
    $action = '';
}
if ($action == "mods") {
    echo '<h1>&curren; <a href="admincenter.php?site=boards" class="white">' . $_language->module['boards'] . '</a> &raquo; ' . $_language->module['moderators'] . '</h1>';
    $boardID = $_GET['boardID'];
    $moderators = safe_query("SELECT * FROM " . PREFIX . "user_groups WHERE moderator='1'");
    $ergebnis = safe_query("SELECT * FROM " . PREFIX . "forum_boards WHERE boardID='{$boardID}'");
    $ds = mysql_fetch_array($ergebnis);
    echo $_language->module['choose_moderators'] . ' <b>' . $ds['name'] . '</b><br /><br />';
    echo '<form method="post" action="admincenter.php?site=boards">
  <select name="mods[]" multiple="multiple" size="10">';
    while ($dm = mysql_fetch_array($moderators)) {
        $nick = getnickname($dm['userID']);
        $ismod = mysql_num_rows(safe_query("SELECT * FROM " . PREFIX . "forum_moderators WHERE boardID='{$boardID}' AND userID='" . $dm['userID'] . "'"));
        if ($ismod) {
            echo '<option value="' . $dm['userID'] . '" selected="selected">' . $nick . '</option>';
        } else {
            echo '<option value="' . $dm['userID'] . '">' . $nick . '</option>';
        }
    }
    $CAPCLASS = new Captcha();
    $CAPCLASS->create_transaction();
    $hash = $CAPCLASS->get_hash();
    echo '</select><br /><br />
	<input type="hidden" name="captcha_hash" value="' . $hash . '" />
  <input type="hidden" name="boardID" value="' . $boardID . '" />
  <input type="submit" name="savemods" value="' . $_language->module['select_moderators'] . '" />
  </form>';
示例#19
0
     } else {
         $tempurl = $settings['url'] . "/pod/" . $tempurl;
     }
 }
 if (!isset($_GET['post']) or $_GET['post'] == "1") {
     //start building the item
     echo "\n\n<item>\n";
     //some important general stuff
     echo "    <pubDate>" . date("r", strtotime($fields['posted'])) . "</pubDate>\n";
     echo "    <title>" . html_to_xml($fields['title']) . "</title>\n";
     echo "    <link>" . $settings['url'] . "/index.php?id=" . $fields['id'] . "</link>\n";
     echo "    <guid>" . $settings['url'] . "/index.php?id=" . $fields['id'] . "</guid>\n";
     //author
     $postauthor = html_to_xml(getfullname($fields['author_id']));
     if (veryempty($postauthor)) {
         $postauthor = html_to_xml(getnickname($fields['author_id']));
     }
     echo "    <dc:creator>" . $postauthor . "</dc:creator>\n";
     echo "    <itunes:author>" . $postauthor . "</itunes:author>\n";
     //explicit or not?
     if ($settings['itunes_explicit'] == "1") {
         $setexpl = "yes";
     } else {
         $setexpl = "no";
     }
     echo "    <itunes:explicit>" . $setexpl . "</itunes:explicit>\n";
     //comments
     if ($fields['comment_on'] == "1") {
         echo "    <comments>" . $settings['url'] . "/index.php?id=" . $fields['id'] . "#comments</comments>\n";
     }
     //show categories
function author()
{
    //returns the author of a posting (works within postings-loop)
    global $postings;
    global $currentid;
    return getnickname($postings[$currentid]['author_id']);
}
示例#21
0
function lastpostings($content)
{
    //returns a list of postings starting with the most recent
    global $currentid;
    global $postings;
    global $settings;
    //lb:lastpostings can have 5 attributes - number (no of postings to show),
    //cat (category), alpha (to show list in alphabetical order of titles),
    //posted (to show posting date/time alongside post title), and
    //author (to show author name)
    //so lets get those attributes
    $att = "";
    $att = getattributes($content);
    //some initial values
    $return = "";
    $start = 0;
    $order = "DESC";
    //possible attributes and default-values
    if (isset($att['number'])) {
        $loops = $att['number'];
    } else {
        $loops = 5;
    }
    if (isset($att['cat'])) {
        $cat = $att['cat'];
    }
    if (isset($att['alpha'])) {
        $alpha = $att['alpha'];
    } else {
        $alpha = "false";
    }
    if (isset($att['posted'])) {
        $posted = $att['posted'];
    } else {
        $posted = "false";
    }
    if (isset($att['author'])) {
        $author = $att['author'];
    } else {
        $author = "false";
    }
    //start building the data-base query
    $dosql = "SELECT * FROM " . $GLOBALS['prefix'] . "lb_postings WHERE ";
    //posting must be "live" to be displayed
    $dosql .= "status = '3' ";
    //posting must not be published in the future
    $dosql .= "AND posted < '" . date("Y-m-d H:i:s") . "' ";
    //if category is set, filter postings which don't fit
    if (isset($att['cat'])) {
        //which category-id do we request?
        $tempcatid = getcategoryidshort($cat);
        if ($tempcatid != "") {
            $dosql .= "AND (category1_id = " . $tempcatid . " ";
            $dosql .= "OR category2_id = " . $tempcatid . " ";
            $dosql .= "OR category3_id = " . $tempcatid . " ";
            $dosql .= "OR category4_id = " . $tempcatid . ") ";
        }
    }
    //if alpha is "true", order the output alphabetically
    if ($alpha == "true") {
        $dosql .= "ORDER BY title " . 'ASC';
    } else {
        $dosql .= "ORDER BY posted " . $order;
    }
    //we get the data and put it in an array
    $tempp = $GLOBALS['lbdata']->SelectLimit($dosql, $loops, $start);
    $allrows = $tempp->GetArray();
    //make html for post titles as an unstructured list
    $return = "<ul>";
    //loop through the array
    foreach ($allrows as $temp) {
        $currentid = $temp['id'];
        $postings[$currentid] = $temp;
        //each list item starts with the posting name with a link to the posting
        $return .= "<li><a href=\"?id=";
        $return .= $currentid;
        $return .= "\">";
        $return .= $postings[$currentid]['title'];
        $return .= "</a>";
        //if posted is "true", add the posting date
        if ($posted == "true") {
            $format = $settings['dateformat'];
            $date = date($format, strtotime($postings[$currentid]['posted']));
            $return .= " posted " . $date;
        }
        //if author is "true", add the author name
        if ($author == "true") {
            $name = getnickname($postings[$currentid]['author_id']);
            $return .= ", by " . $name;
        }
        $return .= "</li>";
    }
    //and close the unstructured list
    $return .= "</ul>";
    return $return;
}
示例#22
0
 eval("\$comments_head = \"" . gettemplate("comments_head") . "\";");
 echo $comments_head;
 while ($ds = mysql_fetch_array($ergebnis)) {
     $n % 2 ? $bg1 = BG_1 : ($bg1 = BG_3);
     $date = date("d.m.Y - H:i", $ds['date']);
     if ($ds['userID']) {
         $ip = '';
         $poster = '<a class="titlelink" href="index.php?site=profile&amp;id=' . $ds['userID'] . '"><b>' . strip_tags(getnickname($ds['userID'])) . '</b></a>';
         if (isclanmember($ds['userID'])) {
             $member = $_language->module['clanmember_icon'];
         } else {
             $member = '';
         }
         $quotemessage = addslashes(getinput($ds['comment']));
         $quotemessage = str_replace(array("\r\n", "\r", "\n"), array('\\r\\n', '\\r', '\\n'), $quotemessage);
         $quotenickname = addslashes(getinput(getnickname($ds['userID'])));
         $quote = str_replace(array('%nickname%', '%message%'), array($quotenickname, $quotemessage), $_language->module['quote_link']);
         $country = '[flag]' . getcountry($ds['userID']) . '[/flag]';
         $country = flags($country);
         if ($email = getemail($ds['userID']) and !getemailhide($ds['userID'])) {
             $email = str_replace('%email%', mail_protect($email), $_language->module['email_link']);
         } else {
             $email = '';
         }
         $gethomepage = gethomepage($ds['userID']);
         if ($gethomepage != "" && $gethomepage != "http://" && $gethomepage != "http:///" && $gethomepage != "n/a") {
             $hp = '<a href="http://' . $gethomepage . '" target="_blank"><img src="images/icons/hp.gif" border="0" width="14" height="14" alt="' . $_language->module['homepage'] . '" /></a>';
         } else {
             $hp = '';
         }
         if (isonline($ds['userID']) == "offline") {
示例#23
0
#   - 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('overview');
if (!isanyadmin($userID) or mb_substr(basename($_SERVER['REQUEST_URI']), 0, 15) != "admincenter.php") {
    die($_language->module['access_denied']);
}
include '../version.php';
$username = '******' . getnickname($userID) . '</b>';
$lastlogin = date('d.m.Y, H:i', $_SESSION['ws_lastlogin']);
/*$wsversion = file_get_contents("http://update.webspell.org/index.php?show=version");
if($wsversion == $version) {
	$version = '<font color="#008000">'.$version.'</font>';
} else {
	$version = '<font color="#FF0000">'.$version.'</font> <small>('.$_language->module['current'].' <a href="admincenter.php?site=update&amp;action=update">'.$wsversion.'</a>)</small>';
}*/
$phpversion = phpversion() < '4.3' ? '<font color="#FF0000">' . phpversion() . '</font>' : '<font color="#008000">' . phpversion() . '</font>';
$zendversion = zend_version() < '1.3' ? '<font color="#FF0000">' . zend_version() . '</font>' : '<font color="#008000">' . zend_version() . '</font>';
$mysqlversion = mysql_get_server_info() < '4.0' ? '<font color="#FF0000">' . mysql_get_server_info() . '</font>' : '<font color="#008000">' . mysql_get_server_info() . '</font>';
$get_phpini_path = get_cfg_var('cfg_file_path');
$get_allow_url_fopen = get_cfg_var('allow_url_fopen') ? '<font color="#008000">' . $_language->module['on'] . '</font>' : '<font color="#FF0000">' . $_language->module['off'] . '</font>';
$get_allow_url_include = get_cfg_var('allow_url_include') ? '<font color="#FF0000">' . $_language->module['on'] . '</font>' : '<font color="#008000">' . $_language->module['off'] . '</font>';
$get_display_errors = get_cfg_var('display_errors') ? '<font color="#FFA500">' . $_language->module['on'] . '</font>' : '<font color="#008000">' . $_language->module['off'] . '</font>';
$get_file_uploads = get_cfg_var('file_uploads') ? '<font color="#008000">' . $_language->module['on'] . '</font>' : '<font color="#FF0000">' . $_language->module['off'] . '</font>';
示例#24
0
   <td width="30%" class="td_head"><b>' . $_language->module['position'] . '</b></td>
   <td width="12%" class="td_head"><b>' . $_language->module['activity'] . '</b></td>
   <td width="20%" class="td_head"><b>' . $_language->module['actions'] . '</b></td>
   <td width="8%" class="td_head"><b>' . $_language->module['sort'] . '</b></td>
 </tr>';
     $i = 1;
     while ($dm = mysql_fetch_array($members)) {
         if ($i % 2) {
             $td = 'td1';
         } else {
             $td = 'td2';
         }
         $country = '[flag]' . getcountry($dm['userID']) . '[/flag]';
         $country = flags($country);
         $country = str_replace("images/", "../images/", $country);
         $nickname = '<a href="../index.php?site=profile&amp;id=' . $dm['userID'] . '" target="_blank">' . strip_tags(stripslashes(getnickname($dm['userID']))) . '</a>';
         if ($dm['activity']) {
             $activity = '<font color="green">' . $_language->module['active'] . '</font>';
         } else {
             $activity = '<font color="red">' . $_language->module['inactive'] . '</font>';
         }
         echo '<tr>
     <td class="' . $td . '">' . $country . ' ' . $nickname . '</td>
     <td class="' . $td . '">' . $dm['position'] . '</td>
     <td class="' . $td . '" align="center">' . $activity . '</td>
     <td class="' . $td . '" align="center"><input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=members&amp;action=edit&amp;id=' . $dm['userID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" />
     <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'admincenter.php?site=members&amp;delete=true&amp;id=' . $dm['userID'] . '&amp;squadID=' . $dm['squadID'] . '&amp;captcha_hash=' . $hash . '\')" value="' . $_language->module['delete'] . '" /></td>
     <td class="' . $td . '" align="center"><select name="sort[]">';
         for ($j = 1; $j <= $anzmembers; $j++) {
             if ($dm['sort'] == $j) {
                 echo '<option value="' . $dm['sqmID'] . '-' . $j . '" selected="selected">' . $j . '</option>';
示例#25
0
#   visit webspell.org                                                   #
#                                                                        #
##########################################################################
*/
if (isset($_GET['action'])) {
    $action = $_GET['action'];
} else {
    $action = null;
}
if ($action == "save") {
    $message = trim($_POST['message']);
    $name = trim($_POST['name']);
    $run = 0;
    if ($userID) {
        $run = 1;
        $name = mysql_real_escape_string(getnickname($userID));
    } else {
        $CAPCLASS = new Captcha();
        if ($CAPCLASS->check_captcha($_POST['captcha'], $_POST['captcha_hash'])) {
            $run = 1;
        }
        if (mysql_num_rows(safe_query("SELECT * FROM " . PREFIX . "user WHERE nickname = '{$name}' "))) {
            $name = '*' . $name . '*';
        }
        $name = clearfromtags($name);
    }
    if (!empty($name) && !empty($message) && $run) {
        $date = time();
        $ip = $GLOBALS['ip'];
        $ergebnis = safe_query("SELECT * FROM " . PREFIX . "shoutbox ORDER BY date DESC LIMIT 0,1");
        $ds = mysql_fetch_array($ergebnis);
示例#26
0
文件: seo.php 项目: Blaz3r/webSPELL
         $vote = mysql_fetch_array(safe_query("SELECT titel FROM " . PREFIX . "poll WHERE pollID='" . $vote . "'"));
         define('PAGETITLE', settitle($_language->module['polls'] . '&nbsp; &raquo; &nbsp;' . $vote['titel']));
     } elseif (isset($_GET['pollID'])) {
         $pollID = mysql_fetch_array(safe_query("SELECT titel FROM " . PREFIX . "poll WHERE pollID='" . $pollID . "'"));
         define('PAGETITLE', settitle($_language->module['polls'] . '&nbsp; &raquo; &nbsp;' . $pollID['titel']));
     } else {
         define('PAGETITLE', settitle($_language->module['polls']));
     }
     break;
 case 'profile':
     if (isset($_GET['id'])) {
         $id = (int) $_GET['id'];
     } else {
         $id = '';
     }
     define('PAGETITLE', settitle($_language->module['profile'] . ' ' . getnickname($id)));
     break;
 case 'register':
     define('PAGETITLE', settitle($_language->module['register']));
     break;
 case 'registered_users':
     define('PAGETITLE', settitle($_language->module['registered_users']));
     break;
 case 'search':
     define('PAGETITLE', settitle($_language->module['search']));
     break;
 case 'server':
     define('PAGETITLE', settitle($_language->module['server']));
     break;
 case 'shoutbox':
     define('PAGETITLE', settitle($_language->module['shoutbox']));
示例#27
0
   <td width="22%" class="title"><a href="admincenter.php?site=users&amp;type=' . $type . '&amp;sort=nickname&amp;page=' . $page . '&amp;type=' . $type . '&amp;search=' . $search . '"><b>' . $_language->module['nickname'] . '</b></a></td>
   <td width="17%" class="title"><a href="admincenter.php?site=users&amp;type=' . $type . '&amp;sort=status&amp;page=' . $page . '&amp;type=' . $type . '&amp;search=' . $search . '"><b>' . $_language->module['status'] . '</b></a></td>
   <td width="12%" class="title"><b>' . $_language->module['ban_status'] . '</b></td>
   <td width="33%" class="title" colspan="2"><b>' . $_language->module['actions'] . '</b></td>
 </tr>';
   $n = 1;
   $i = 1;
   while ($ds = mysql_fetch_array($ergebnis)) {
       if ($i % 2) {
           $td = 'td1';
       } else {
           $td = 'td2';
       }
       $id = $ds['userID'];
       $registered = date("d.m.Y - H:i", $ds['registerdate']);
       $nickname_c = getnickname($ds['userID']);
       $replaced_search = str_replace("%", "", $search);
       $nickname = str_replace($replaced_search, '<b>' . $replaced_search . '</b>', $nickname_c);
       if (issuperadmin($ds['userID']) && isclanmember($ds['userID'])) {
           $status = $_language->module['superadmin'] . '<br />&amp; ' . $_language->module['clanmember'];
       } elseif (issuperadmin($ds['userID'])) {
           $status = $_language->module['superadmin'];
       } elseif (isanyadmin($ds['userID']) && isclanmember($ds['userID'])) {
           $status = $_language->module['admin'] . '<br />&amp; ' . $_language->module['clanmember'];
       } elseif (isanyadmin($ds['userID'])) {
           $status = $_language->module['admin'];
       } elseif (isanymoderator($ds['userID']) && isclanmember($ds['userID'])) {
           $status = $_language->module['moderator'] . '<br />&amp; ' . $_language->module['clanmember'];
       } elseif (isanymoderator($ds['userID'])) {
           $status = $_language->module['moderator'];
       } elseif (isclanmember($ds['userID'])) {
示例#28
0
}
if ($_l['topics']) {
    $query .= " UNION (SELECT `topicID` as `lastID`, `date`, `userID` as `addedby`,'f_topic' as `type`, `boardID` as `parent`, `topic` as `title` FROM " . PREFIX . "forum_topics)";
}
if ($_l['replys']) {
    $query .= " UNION (SELECT p.`postID` as `lastID`,p.`date`, p.`poster` as `addedby`, 'f_reply' as `type`, p.`topicID` as `parent`, t.`topic` as `title` FROM " . PREFIX . "forum_posts as p, " . PREFIX . "forum_topics as t WHERE t.date<>p.date)";
}
if ($_l['awards']) {
    $query .= " UNION (SELECT `awardID` as `lastID`,`date`,0 as `addedby`,'award' as `type`,`squadID` as `parent`, `award` as `title` FROM " . PREFIX . "awards)";
}
$query .= " ORDER BY `date` DESC LIMIT 0,10";
$query = mysql_query($query);
$i = 1;
while ($res = mysql_fetch_array($query)) {
    $uID = $res['type'] == 'newuser' ? $res['lastID'] : $res['addedby'];
    $nick = '<a href="index.php?site=profile&id=' . $res['addedby'] . '">' . getnickname($uID) . '</a>';
    $ret = $nick . ' ';
    $dateformat = $res['type'] == 'award' ? "d.m.Y" : "d.m.Y H:i";
    $date = date($dateformat, $res['date']);
    $type = $_language->module['type_' . $res['type']];
    if ($res['type'] == "news") {
        $ret .= $_language->module['published_news'] . ' <i><a href="index.php?site=news_comments&amp;newsID=' . $res['lastID'] . '">' . $res['title'] . '</a></i>';
    } elseif ($res['type'] == "com") {
        $ret .= $_language->module['comment_to'] . ' ' . $_language->module['comtype_' . $res['title']] . ' <i>' . get_headline($res['parent'], $res['title']) . '</i>';
    } elseif ($res['type'] == "file") {
        $ret .= $_language->module['added_file'] . '  <i><a href="index.php?site=file&amp;file=' . $res['lastID'] . '">' . $res['title'] . '</a></i>';
    } elseif ($res['type'] == "f_topic") {
        $ret .= $_language->module['created_topic'] . '  <i><a href="index.php?site=forum_topic&amp;topic=' . $res['lastID'] . '&amp;type=ASC&amp;page=1">' . $res['title'] . '</a></i>';
    } elseif ($res['type'] == "f_reply") {
        $ret .= $_language->module['replyed_to'] . '  <a href="index.php?site=forum_topic&amp;topic=' . $res['parent'] . '&amp;type=ASC&amp;page=1"><i>' . $res['title'] . '</i></a>';
    } elseif ($res['type'] == "newuser") {
示例#29
0
     }
 }
 // member's details and the output
 if (is_array($playerlist)) {
     $i = 1;
     foreach ($playerlist as $id) {
         if ($i % 2) {
             $bg1 = BG_1;
             $bg2 = BG_2;
         } else {
             $bg1 = BG_3;
             $bg2 = BG_4;
         }
         $country = '[flag]' . getcountry($id) . '[/flag]';
         $country = flags($country);
         $member = '<a href="index.php?site=profile&amp;id=' . $id . '"><b>' . getnickname($id) . '</b></a>';
         if (!isset($anz[$id])) {
             $anz[$id] = '';
         }
         $wars = $anz[$id];
         if (empty($wars)) {
             $wars = '0';
         }
         $perc = percent($wars, $total, 2);
         if ($perc) {
             $percpic = '<img src="images/icons/poll_start.gif" width="1" height="5" alt="" /><img src="images/icons/poll.gif" width="' . round($perc, 0) . '" height="5" alt="" /><img src="images/icons/poll_end.gif" width="1" height="5" alt="" /> ' . $perc . '%';
         } else {
             $percpic = '<img src="images/icons/poll_start.gif" width="1" height="5" alt="" /><img src="images/icons/poll_end.gif" width="1" height="5" alt="" /> ' . $perc . '%';
         }
         eval("\$clanwars_stats_player_content = \"" . gettemplate("clanwars_stats_player_content") . "\";");
         echo $clanwars_stats_player_content;
示例#30
0
#                                                                        #
#   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('login');
if ($loggedin) {
    $username = '******' . $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 {