mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
1018150eb3
commit
3fef0a5870
@ -33,7 +33,7 @@ public function __construct() {
|
||||
|
||||
public function connect() {
|
||||
//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);
|
||||
|
||||
//create a socket to listen on
|
||||
|
@ -91,7 +91,10 @@
|
||||
<label for="subscribebox">Subscribe to topic</label>
|
||||
</td>
|
||||
</tr>
|
||||
<? if (check_perms('forums_polls_create')) { ?>
|
||||
<?
|
||||
|
||||
if (check_perms('forums_polls_create')) {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var AnswerCount = 1;
|
||||
|
||||
|
@ -1,36 +1,36 @@
|
||||
<?
|
||||
enforce_login();
|
||||
|
||||
// Get user level
|
||||
$DB->query("
|
||||
SELECT
|
||||
i.SupportFor,
|
||||
p.DisplayStaff
|
||||
FROM users_info as i
|
||||
JOIN users_main as m ON m.ID = i.UserID
|
||||
JOIN permissions as p ON p.ID = m.PermissionID
|
||||
WHERE i.UserID = ".$LoggedUser['ID']
|
||||
);
|
||||
list($SupportFor, $DisplayStaff) = $DB->next_record();
|
||||
|
||||
if (!($SupportFor != '' || $DisplayStaff == '1')) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
if ($ID = (int)$_GET['id']) {
|
||||
$DB->query("SELECT Message FROM staff_pm_responses WHERE ID=$ID");
|
||||
list($Message) = $DB->next_record();
|
||||
if ($_GET['plain'] == 1) {
|
||||
echo $Message;
|
||||
} else {
|
||||
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
|
||||
$Text = new TEXT;
|
||||
echo $Text->full_format($Message);
|
||||
}
|
||||
|
||||
} else {
|
||||
// No id
|
||||
echo '-1';
|
||||
}
|
||||
?>
|
||||
<?
|
||||
enforce_login();
|
||||
|
||||
// Get user level
|
||||
$DB->query("
|
||||
SELECT
|
||||
i.SupportFor,
|
||||
p.DisplayStaff
|
||||
FROM users_info as i
|
||||
JOIN users_main as m ON m.ID = i.UserID
|
||||
JOIN permissions as p ON p.ID = m.PermissionID
|
||||
WHERE i.UserID = ".$LoggedUser['ID']
|
||||
);
|
||||
list($SupportFor, $DisplayStaff) = $DB->next_record();
|
||||
|
||||
if (!$IsFLS) {
|
||||
// Logged in user is not FLS or Staff
|
||||
error(403);
|
||||
}
|
||||
|
||||
if ($ID = (int)$_GET['id']) {
|
||||
$DB->query("SELECT Message FROM staff_pm_responses WHERE ID=$ID");
|
||||
list($Message) = $DB->next_record();
|
||||
if ($_GET['plain'] == 1) {
|
||||
echo $Message;
|
||||
} else {
|
||||
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
|
||||
$Text = new TEXT;
|
||||
echo $Text->full_format($Message);
|
||||
}
|
||||
|
||||
} else {
|
||||
// No id
|
||||
echo '-1';
|
||||
}
|
||||
?>
|
||||
|
@ -74,7 +74,7 @@
|
||||
include('takemoderate.php');
|
||||
break;
|
||||
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);
|
||||
}
|
||||
$UserID = $_REQUEST['id'];
|
||||
|
@ -190,7 +190,7 @@ function check_paranoia_here($Setting) {
|
||||
?>
|
||||
[<a href="userhistory.php?action=token_history&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&id=<?=$UserID?>">Clear Cache</a>]
|
||||
<? } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user