mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-10 12:23:12 +00:00
Fixed password reset bug
Added logs for password resets Added checks to sanity
This commit is contained in:
parent
2d7d359cde
commit
60f0877a5c
10 changed files with 153 additions and 117 deletions
|
@ -1,11 +1,21 @@
|
|||
<?php
|
||||
if (defined('ROOT') && $_SESSION['id'] == 1) {
|
||||
if (!is_file(__DIR__."/../../../usr/conf/msg.json")) {
|
||||
$results[] = array(
|
||||
'type'=>'warning',
|
||||
'message'=>'msg.json is missing',
|
||||
'fix'=>'auto'
|
||||
);
|
||||
$manifest = json_decode(file_get_contents(__DIR__."/../../../usr/conf/conf.json"), true);
|
||||
|
||||
if (isset($manifest['welcome_msg'])) {
|
||||
$results[] = array(
|
||||
'type'=>'warning',
|
||||
'message'=>'Welcome message is currently stored in conf.json. Please move it to msg.json',
|
||||
'fix'=>'auto'
|
||||
);
|
||||
} else {
|
||||
$results[] = array(
|
||||
'type'=>'warning',
|
||||
'message'=>'msg.json is missing',
|
||||
'fix'=>'auto'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_file(__DIR__."/../../../usr/conf/conf.json")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue