mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-05 22:10:11 +00:00
Empty commit
This commit is contained in:
parent
26d5bcf758
commit
472df5a7c0
@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
$Body = $_POST['body'];
|
$Body = $_POST['body'];
|
||||||
|
|
||||||
|
|
||||||
if (!empty($LoggedUser['DisablePosting'])) {
|
if (!empty($LoggedUser['DisablePosting'])) {
|
||||||
error('Your posting privileges have been removed.');
|
error('Your posting privileges have been removed.');
|
||||||
}
|
}
|
||||||
@ -65,6 +66,9 @@
|
|||||||
Subscriptions::subscribe($TopicID);
|
Subscriptions::subscribe($TopicID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Now lets handle the special case of merging posts, we can skip bumping the thread and all that fun
|
//Now lets handle the special case of merging posts, we can skip bumping the thread and all that fun
|
||||||
if ($ThreadInfo['LastPostAuthorID'] == $LoggedUser['ID'] && ((!check_perms('site_forums_double_post') && !in_array($ForumID, $ForumsDoublePost)) || isset($_POST['merge']))) {
|
if ($ThreadInfo['LastPostAuthorID'] == $LoggedUser['ID'] && ((!check_perms('site_forums_double_post') && !in_array($ForumID, $ForumsDoublePost)) || isset($_POST['merge']))) {
|
||||||
//Get the id for this post in the database to append
|
//Get the id for this post in the database to append
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
$SQLTime = sqltime();
|
$SQLTime = sqltime();
|
||||||
$DoPM = isset($_POST['pm']) ? $_POST['pm'] : 0;
|
$DoPM = isset($_POST['pm']) ? $_POST['pm'] : 0;
|
||||||
|
|
||||||
|
|
||||||
// Mainly
|
// Mainly
|
||||||
$DB->query("
|
$DB->query("
|
||||||
SELECT
|
SELECT
|
||||||
@ -55,6 +56,8 @@
|
|||||||
WHERE p.ID = '$PostID'");
|
WHERE p.ID = '$PostID'");
|
||||||
list($OldBody, $AuthorID, $TopicID, $IsLocked, $ForumID, $MinClassWrite, $Page) = $DB->next_record();
|
list($OldBody, $AuthorID, $TopicID, $IsLocked, $ForumID, $MinClassWrite, $Page) = $DB->next_record();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Make sure they aren't trying to edit posts they shouldn't
|
// Make sure they aren't trying to edit posts they shouldn't
|
||||||
// We use die() here instead of error() because whatever we spit out is displayed to the user in the box where his forum post is
|
// We use die() here instead of error() because whatever we spit out is displayed to the user in the box where his forum post is
|
||||||
if (!Forums::check_forumperm($ForumID, 'Write') || ($IsLocked && !check_perms('site_moderate_forums'))) {
|
if (!Forums::check_forumperm($ForumID, 'Write') || ($IsLocked && !check_perms('site_moderate_forums'))) {
|
||||||
|
@ -37,8 +37,6 @@
|
|||||||
$ThreadID = $_GET['threadid'];
|
$ThreadID = $_GET['threadid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (isset($LoggedUser['PostsPerPage'])) {
|
if (isset($LoggedUser['PostsPerPage'])) {
|
||||||
$PerPage = $LoggedUser['PostsPerPage'];
|
$PerPage = $LoggedUser['PostsPerPage'];
|
||||||
} else {
|
} else {
|
||||||
@ -430,7 +428,6 @@
|
|||||||
list($PostID, $AuthorID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername) = array_values($Post);
|
list($PostID, $AuthorID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername) = array_values($Post);
|
||||||
list($AuthorID, $Username, $PermissionID, $Paranoia, $Artist, $Donor, $Warned, $Avatar, $Enabled, $UserTitle) = array_values(Users::user_info($AuthorID));
|
list($AuthorID, $Username, $PermissionID, $Paranoia, $Artist, $Donor, $Warned, $Avatar, $Enabled, $UserTitle) = array_values(Users::user_info($AuthorID));
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<table class="forum_post wrap_overflow box vertical_margin<?
|
<table class="forum_post wrap_overflow box vertical_margin<?
|
||||||
if (((!$ThreadInfo['IsLocked'] || $ThreadInfo['IsSticky'])
|
if (((!$ThreadInfo['IsLocked'] || $ThreadInfo['IsSticky'])
|
||||||
|
Loading…
Reference in New Issue
Block a user