Replace basic auth with PHP session login
This commit is contained in:
parent
d088eb90cf
commit
2ffb90d17e
4 changed files with 89 additions and 8 deletions
2
new.php
2
new.php
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
require __DIR__ . '/auth.php';
|
||||
mvlog_require_login();
|
||||
$config = require __DIR__ . "/config.php";
|
||||
foreach (["videos_dir", "thumbs_dir", "uploads_dir"] as $d) if (!is_dir($config[$d])) mkdir($config[$d], 0775, true);
|
||||
function h($s){ return htmlspecialchars((string)$s, ENT_QUOTES, "UTF-8"); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue