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:
What.CD 2011-05-26 08:00:10 +00:00
parent 1ae6832107
commit 442b4f75ec
2 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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)."'";