mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 12:11:36 +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
|
||||
$DB->query("SELECT
|
||||
p.Body
|
||||
FROM forums_posts as p
|
||||
JOIN forums_topics as t on p.TopicID = t.ID
|
||||
JOIN forums as f ON t.ForumID=f.ID
|
||||
WHERE
|
||||
p.ID='$PostID' AND
|
||||
f.MinClassRead<='$LoggedUser[Class]'");
|
||||
list($Body) = $DB->next_record(MYSQLI_NUM);
|
||||
p.Body, t.ForumID
|
||||
FROM forums_posts as p JOIN forums_topics as t on p.TopicID = t.ID
|
||||
WHERE p.ID='$PostID'");
|
||||
list($Body, $ForumID) = $DB->next_record(MYSQLI_NUM);
|
||||
|
||||
// Is the user allowed to view the post?
|
||||
if(!check_forumperm($ForumID)) {
|
||||
error(0);
|
||||
}
|
||||
|
||||
// This gets sent to the browser, which echoes it wherever
|
||||
|
||||
|
@ -247,6 +247,7 @@
|
||||
$SQL .= "m.Paranoia='".db_string(serialize($Paranoia))."'";
|
||||
|
||||
if($ResetPassword) {
|
||||
$ChangerIP = db_string($LoggedUser['IP']);
|
||||
$Secret=make_secret();
|
||||
$PassHash=make_hash($_POST['new_pass_1'],$Secret);
|
||||
$SQL.=",m.Secret='".db_string($Secret)."',m.PassHash='".db_string($PassHash)."'";
|
||||
|
Loading…
Reference in New Issue
Block a user