refactor externalize settings
This commit is contained in:
parent
88a23c2a92
commit
84d833a217
|
@ -37,8 +37,7 @@
|
|||
<a accesskey="l" href="index.php">View list</a> <a accesskey="n" href="index.php?create=true">New note</a>
|
||||
<?php
|
||||
|
||||
$password = '';
|
||||
$dir = '../../data/bbn';
|
||||
require 'settings.php';
|
||||
|
||||
if (!isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW'] != $password) {
|
||||
header('WWW-Authenticate: Basic realm="bbn"');
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
$password = '';
|
||||
$dir = '';
|
||||
?>
|
Loading…
Reference in New Issue