mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Prevent the merging of non-music groups
Include empty values in cache debug table Clear cache when replying to staff pm Internal cache is useless in get_artists and get_groups Prevent users from clearing certain cache keys Check restricted forums on get_post Get IP on pass change
This commit is contained in:
parent
1ae6832107
commit
442b4f75ec
@ -21,14 +21,15 @@
|
|||||||
|
|
||||||
// Mainly
|
// Mainly
|
||||||
$DB->query("SELECT
|
$DB->query("SELECT
|
||||||
p.Body
|
p.Body, t.ForumID
|
||||||
FROM forums_posts as p
|
FROM forums_posts as p JOIN forums_topics as t on p.TopicID = t.ID
|
||||||
JOIN forums_topics as t on p.TopicID = t.ID
|
WHERE p.ID='$PostID'");
|
||||||
JOIN forums as f ON t.ForumID=f.ID
|
list($Body, $ForumID) = $DB->next_record(MYSQLI_NUM);
|
||||||
WHERE
|
|
||||||
p.ID='$PostID' AND
|
// Is the user allowed to view the post?
|
||||||
f.MinClassRead<='$LoggedUser[Class]'");
|
if(!check_forumperm($ForumID)) {
|
||||||
list($Body) = $DB->next_record(MYSQLI_NUM);
|
error(0);
|
||||||
|
}
|
||||||
|
|
||||||
// This gets sent to the browser, which echoes it wherever
|
// This gets sent to the browser, which echoes it wherever
|
||||||
|
|
||||||
|
@ -247,6 +247,7 @@
|
|||||||
$SQL .= "m.Paranoia='".db_string(serialize($Paranoia))."'";
|
$SQL .= "m.Paranoia='".db_string(serialize($Paranoia))."'";
|
||||||
|
|
||||||
if($ResetPassword) {
|
if($ResetPassword) {
|
||||||
|
$ChangerIP = db_string($LoggedUser['IP']);
|
||||||
$Secret=make_secret();
|
$Secret=make_secret();
|
||||||
$PassHash=make_hash($_POST['new_pass_1'],$Secret);
|
$PassHash=make_hash($_POST['new_pass_1'],$Secret);
|
||||||
$SQL.=",m.Secret='".db_string($Secret)."',m.PassHash='".db_string($PassHash)."'";
|
$SQL.=",m.Secret='".db_string($Secret)."',m.PassHash='".db_string($PassHash)."'";
|
||||||
|
Loading…
Reference in New Issue
Block a user