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>
|
<a accesskey="l" href="index.php">View list</a> <a accesskey="n" href="index.php?create=true">New note</a>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$password = '';
|
require 'settings.php';
|
||||||
$dir = '../../data/bbn';
|
|
||||||
|
|
||||||
if (!isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW'] != $password) {
|
if (!isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW'] != $password) {
|
||||||
header('WWW-Authenticate: Basic realm="bbn"');
|
header('WWW-Authenticate: Basic realm="bbn"');
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?php
|
||||||
|
$password = '';
|
||||||
|
$dir = '';
|
||||||
|
?>
|
Loading…
Reference in New Issue