refactor externalize settings

This commit is contained in:
quenousimporte 2024-02-14 08:33:10 +01:00
parent 88a23c2a92
commit 84d833a217
2 changed files with 5 additions and 2 deletions

View File

@ -37,8 +37,7 @@
<a accesskey="l" href="index.php">View list</a>&nbsp;<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"');

4
settings.php.sample.php Normal file
View File

@ -0,0 +1,4 @@
<?php
$password = '';
$dir = '';
?>