Пример #1
0
#   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('squads');
if (!isuseradmin($userID) or mb_substr(basename($_SERVER['REQUEST_URI']), 0, 15) != "admincenter.php") {
    die($_language->module['access_denied']);
}
if (isset($_GET['delete'])) {
    $CAPCLASS = new Captcha();
    if ($CAPCLASS->check_captcha(0, $_GET['captcha_hash'])) {
        $squadID = $_GET['squadID'];
        $ergebnis = safe_query("SELECT userID FROM " . PREFIX . "squads_members WHERE squadID='{$squadID}'");
        while ($ds = mysql_fetch_array($ergebnis)) {
            $squads = mysql_num_rows(safe_query("SELECT userID FROM " . PREFIX . "squads_members WHERE userID='{$ds['userID']}'"));
            if ($squads < 2 and !issuperadmin($ds['userID'])) {
                safe_query("DELETE FROM " . PREFIX . "user_groups WHERE userID='{$ds['userID']}'");
            }
        }
        safe_query("DELETE FROM " . PREFIX . "squads_members WHERE squadID='{$squadID}' ");
        safe_query("DELETE FROM " . PREFIX . "squads WHERE squadID='{$squadID}' ");
Пример #2
0
 if (isnewswriter($id)) {
     $newswriter = '<input type="checkbox" name="newswriter" value="1" onmouseover="showWMTT(\'id2\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $newswriter = '<input type="checkbox" name="newswriter" onmouseover="showWMTT(\'id2\')" onmouseout="hideWMTT()" value="1" />';
 }
 if (ispollsadmin($id)) {
     $polls = '<input type="checkbox" name="pollsadmin" value="1" onmouseover="showWMTT(\'id3\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $polls = '<input type="checkbox" name="pollsadmin" value="1" onmouseover="showWMTT(\'id3\')" onmouseout="hideWMTT()" />';
 }
 if (isfeedbackadmin($id)) {
     $feedback = '<input type="checkbox" name="feedbackadmin" value="1" onmouseover="showWMTT(\'id4\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $feedback = '<input type="checkbox" name="feedbackadmin" value="1" onmouseover="showWMTT(\'id4\')" onmouseout="hideWMTT()" />';
 }
 if (isuseradmin($id)) {
     $useradmin = '<input type="checkbox" name="useradmin" value="1" onmouseover="showWMTT(\'id5\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $useradmin = '<input type="checkbox" name="useradmin" value="1" onmouseover="showWMTT(\'id5\')" onmouseout="hideWMTT()" />';
 }
 if (isclanwaradmin($id)) {
     $cwadmin = '<input type="checkbox" name="cwadmin" value="1" onmouseover="showWMTT(\'id6\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $cwadmin = '<input type="checkbox" name="cwadmin" value="1" onmouseover="showWMTT(\'id6\')" onmouseout="hideWMTT()" />';
 }
 if (isforumadmin($id)) {
     $board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" />';
 }
 if (isanymoderator($id)) {
Пример #3
0
<script type="text/javascript" src="system/js/core.js"></script>
<script type="text/javascript" src="system/js/fx.js"></script>
<script type="text/javascript" src="system/js/blah.js"></script>
<script type="text/javascript" src="system/js/line.js"></script>
</head>
<body>
<noscript>
<div id="noscript-bg"></div>
<div id="noscript-text"><b>This Site needs JavaScript for Ajax etc.</b><br>
  Please <a href="https://www.google.com/support/adsense/bin/answer.py?answer=12654" target="_blank">enable JavaScript</a> in your browser.</div>
</noscript>
<table width="100%" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
  <tr>
    <td width="15%" valign="top" bgcolor="#FFFFFF" align="center">
      <br>
<?php if(isuseradmin($userID)) { ?>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
        <tr>
          <td bgcolor="#CCCCCC"><strong>User-Settings:</strong></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF"><p>&#8226; <a href="?site=squads">Squads</a><br>
              &#8226; <a href="?site=members">Clanmembers</a><br>
              &#8226; <a href="?site=users">Registered Users</a>
            </p></td>
        </tr>
      </table>
<?php } ?>
      <br> <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
        <tr>
          <td bgcolor="#CCCCCC"><strong>Rubrics</strong></td>
Пример #4
0
            <li><a href="admincenter.php?site=countries">Countries</a></li>
            <li><a href="admincenter.php?site=games">Games</a></li>
            <li><a href="admincenter.php?site=database">Database</a></li>
          </ul>
          <?php 
}
if (isuseradmin($userID)) {
    ?>
          <h1>Users</h1>
          <ul>
            <li><a href="admincenter.php?site=users">Registered Users</a></li>
            <li><a href="admincenter.php?site=newsletter">Newsletter</a></li>
          </ul>
          <?php 
}
if (isuseradmin($userID)) {
    ?>
          <h1>Teams / Players</h1>
          <ul>
            <li><a href="admincenter.php?site=squads">Teams</a></li>
            <li><a href="admincenter.php?site=members">Members</a></li>
            <li><a href="admincenter.php?site=about">About</a></li>
          </ul>
          <?php 
}
if (isnewsadmin($userID)) {
    ?>
          <h1>Articles, News</h1>
          <ul>
            <li><a href="admincenter.php?site=articles_rubrics">Articles - Rubrics</a></li>
            <li><a href="admincenter.php?site=rubrics">News - Rubrics</a></li>