Empty commit

This commit is contained in:
Git 2012-05-03 08:00:25 +00:00
parent 1018150eb3
commit 3fef0a5870
5 changed files with 43 additions and 40 deletions

View File

@ -33,7 +33,7 @@ public function __construct() {
public function connect() { public function connect() {
//Open a socket to the IRC server //Open a socket to the IRC server
$this->Socket = fsockopen('ssl://'.BOT_SERVER, BOT_PORT_SSL); $this->Socket = fsockopen('tls://'.BOT_SERVER, BOT_PORT_SSL);
stream_set_blocking($this->Socket, 0); stream_set_blocking($this->Socket, 0);
//create a socket to listen on //create a socket to listen on

View File

@ -91,7 +91,10 @@
<label for="subscribebox">Subscribe to topic</label> <label for="subscribebox">Subscribe to topic</label>
</td> </td>
</tr> </tr>
<? if (check_perms('forums_polls_create')) { ?> <?
if (check_perms('forums_polls_create')) {
?>
<script type="text/javascript"> <script type="text/javascript">
var AnswerCount = 1; var AnswerCount = 1;

View File

@ -1,36 +1,36 @@
<? <?
enforce_login(); enforce_login();
// Get user level // Get user level
$DB->query(" $DB->query("
SELECT SELECT
i.SupportFor, i.SupportFor,
p.DisplayStaff p.DisplayStaff
FROM users_info as i FROM users_info as i
JOIN users_main as m ON m.ID = i.UserID JOIN users_main as m ON m.ID = i.UserID
JOIN permissions as p ON p.ID = m.PermissionID JOIN permissions as p ON p.ID = m.PermissionID
WHERE i.UserID = ".$LoggedUser['ID'] WHERE i.UserID = ".$LoggedUser['ID']
); );
list($SupportFor, $DisplayStaff) = $DB->next_record(); list($SupportFor, $DisplayStaff) = $DB->next_record();
if (!($SupportFor != '' || $DisplayStaff == '1')) { if (!$IsFLS) {
// Logged in user is not FLS or Staff // Logged in user is not FLS or Staff
error(403); error(403);
} }
if ($ID = (int)$_GET['id']) { if ($ID = (int)$_GET['id']) {
$DB->query("SELECT Message FROM staff_pm_responses WHERE ID=$ID"); $DB->query("SELECT Message FROM staff_pm_responses WHERE ID=$ID");
list($Message) = $DB->next_record(); list($Message) = $DB->next_record();
if ($_GET['plain'] == 1) { if ($_GET['plain'] == 1) {
echo $Message; echo $Message;
} else { } else {
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
$Text = new TEXT; $Text = new TEXT;
echo $Text->full_format($Message); echo $Text->full_format($Message);
} }
} else { } else {
// No id // No id
echo '-1'; echo '-1';
} }
?> ?>

View File

@ -74,7 +74,7 @@
include('takemoderate.php'); include('takemoderate.php');
break; break;
case 'clearcache': case 'clearcache':
if (!check_perms('admin_clear_cache') || !check_perms('users_mod')) { if (!check_perms('admin_clear_cache') || !check_perms('users_override_paranoia')) {
error(403); error(403);
} }
$UserID = $_REQUEST['id']; $UserID = $_REQUEST['id'];

View File

@ -190,7 +190,7 @@ function check_paranoia_here($Setting) {
?> ?>
[<a href="userhistory.php?action=token_history&amp;userid=<?=$UserID?>">FL Tokens</a>] [<a href="userhistory.php?action=token_history&amp;userid=<?=$UserID?>">FL Tokens</a>]
<? } <? }
if (check_perms('admin_clear_cache') && check_perms('users_mod')) { if (check_perms('admin_clear_cache') && check_perms('users_override_paranoia')) {
?> ?>
[<a href="user.php?action=clearcache&amp;id=<?=$UserID?>">Clear Cache</a>] [<a href="user.php?action=clearcache&amp;id=<?=$UserID?>">Clear Cache</a>]
<? } ?> <? } ?>