remove redundant manager check, empty secrets folder
This commit is contained in:
parent
591c1e7317
commit
61e559ec8c
1 changed files with 0 additions and 18 deletions
|
|
@ -1,24 +1,6 @@
|
|||
<?php
|
||||
require 'common.php';
|
||||
|
||||
if (isset($_GET["manage"])) {
|
||||
$fh = fopen('secrets/password.secret','r');
|
||||
if (!$fh) {
|
||||
$manage = false;
|
||||
} else {
|
||||
while ($hash = fgets($fh)) {
|
||||
if (password_verify($_GET["manage"], $hash)) {
|
||||
$manage = true;
|
||||
} else {
|
||||
$manage = false;
|
||||
}
|
||||
}
|
||||
fclose($fh);
|
||||
}
|
||||
} else {
|
||||
$manage = false;
|
||||
}
|
||||
|
||||
if (isset($_GET["page"])) {
|
||||
$page = intval($_GET["page"]);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue