# 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}' "); $ergebnis = safe_query("SELECT upID FROM " . PREFIX . "upcoming WHERE squad='{$squadID}'"); while ($ds = mysql_fetch_array($ergebnis)) { safe_query("DELETE FROM " . PREFIX . "upcoming_announce WHERE upID='{$ds['upID']}'"); } safe_query("DELETE FROM " . PREFIX . "upcoming WHERE squad='{$squadID}' "); $ergebnis = safe_query("SELECT cwID FROM " . PREFIX . "clanwars WHERE squad='{$squadID}'"); while ($ds = mysql_fetch_array($ergebnis)) { safe_query("DELETE FROM " . PREFIX . "comments WHERE type='cw' AND parentID='{$ds['cwID']}'"); } safe_query("DELETE FROM " . PREFIX . "clanwars WHERE squad='{$squadID}' ");
$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 />& ' . $_language->module['clanmember']; } elseif (issuperadmin($ds['userID'])) { $status = $_language->module['superadmin']; } elseif (isanyadmin($ds['userID']) && isclanmember($ds['userID'])) { $status = $_language->module['admin'] . '<br />& ' . $_language->module['clanmember']; } elseif (isanyadmin($ds['userID'])) { $status = $_language->module['admin']; } elseif (isanymoderator($ds['userID']) && isclanmember($ds['userID'])) { $status = $_language->module['moderator'] . '<br />& ' . $_language->module['clanmember']; } elseif (isanymoderator($ds['userID'])) { $status = $_language->module['moderator']; } elseif (isclanmember($ds['userID'])) { $status = $_language->module['clanmember']; } else { $status = $_language->module['user']; } if (isbanned($ds['userID'])) {
echo '<th>Actions</th>'; } } echo ' </tr> </center>'; while ($row = @mysql_fetch_array($result)) { $lastplayed = $row['_LastPlayed']; $steam = $row['_SteamID']; $parsed = SteamID2CommunityID($steam); echo "<tr>"; echo "<td>" . $row['_Name'] . "</td>"; echo "<td>" . $row['_Faction'] . "</td>"; echo "<td><a href='http://steamcommunity.com/profiles/{$parsed}'>" . $row['_SteamName'] . "</a></td>"; echo "<td>" . date('r', $lastplayed) . "</td>"; if (issuperadmin($convertedsteamid) == "1") { echo '<td> <form action="edit.php" method="post" style="display: inline;"> <input type="hidden" name="admin" value="yes" /> <input type="hidden" name="key" value="' . $row['_Key'] . '" /> <button type="submit" class="btn btn-success" onclick="return confirm(\'Are you sure you want to edit \\n' . $row['_Name'] . ' owned by ' . $row['_SteamName'] . ' ?\')" >Edit</button> </form> </td>'; } echo "</tr>"; } echo "</table>"; ?> <hr>
<tr> <td>' . $newswriter . ' ' . $_language->module['news_writer'] . '</td> <td>' . $mod . ' ' . $_language->module['messageboard_moderator'] . '</td> <td>' . $cash . ' ' . $_language->module['cash_admin'] . '</td> </tr> <tr> <td>' . $polls . ' ' . $_language->module['polls_admin'] . '</td> <td>' . $gallery . ' ' . $_language->module['gallery_admin'] . '</td> <td>' . $useradmin . ' ' . $_language->module['user_admin'] . '</td> </tr> <tr> <td>' . $feedback . ' ' . $_language->module['feedback_admin'] . '</td> <td>' . $page . ' ' . $_language->module['page_admin'] . '</td> <td>' . $file . ' ' . $_language->module['file_admin'] . '</td> </tr>'; if (issuperadmin($userID)) { echo '<tr> <td colspan="3">' . $super . ' <b>' . $_language->module['super_admin'] . '</b></td> </tr>'; } echo '<tr> <td colspan="3"><hr /></td> </tr> <tr> <td colspan="3"><b>' . $_language->module['group_access'] . '</b></td> </tr>'; $sql = safe_query("SELECT * FROM " . PREFIX . "forum_groups"); echo '<tr>'; $i = 1; while ($dc = mysql_fetch_array($sql)) { $name = $dc['name'];
function isjoinusmember($userID) { $anz = mysql_num_rows(safe_query("SELECT userID FROM `" . PREFIX . "squads_members` WHERE userID='" . $userID . "'")); if (!$anz) { $anz = issuperadmin($userID); } return $anz; }
if ($row['_UnbanTime'] == '0') { echo "<td><span class='label label-important'>Permanent Ban</span></td>"; } else { if ($row['_UnbanTime'] < $today) { echo "<td><span class='label label-success'>" . date("Y-m-d H:i:s", $row["_UnbanTime"]) . "</span></td>"; } else { echo "<td><span class='label label-warning'>" . date("Y-m-d H:i:s", $row["_UnbanTime"]) . "</span></td>"; } } if ($row['_Duration'] == '0') { echo "<td><span class='label label-important'>Permanent Ban</span></td>"; } else { echo "<td><span class='label label-warning'>" . date('G \\h\\o\\u\\r\\s i \\m\\i\\n\\u\\t\\e\\s', $row["_Duration"]) . "</span></td>"; } echo "<td>" . $row['_Reason'] . "</td>"; if (issuperadmin($steamid) == "1") { echo ' <td> <form action="banedit.php" method="post" style="display: inline;"> <input type="hidden" name="action" value="banmanage" /> <input type="hidden" name="action1" value="edit" /> <input type="hidden" name="key" value="' . $row['_Key'] . '" /> <button type="submit" class="btn btn-inverse">Edit</button> </form> <form action="banedit.php" method="post" style="display: inline;"> <input type="hidden" name="action" value="banmanage" /> <input type="hidden" name="action1" value="delete" /> <input type="hidden" name="key" value="' . $row['_Key'] . '" /> <button type="submit" class="btn btn-danger" onclick="return confirm(\'Are you sure you want to delete the ban on \\n' . $row['_SteamName'] . '\\nwho will be unbanned at \\n' . date("l jS \\of F Y h:i:s A", $row["_UnbanTime"]) . '?\')" >Delete</button> </form></td> ';