17 lines
449 B
Plaintext
17 lines
449 B
Plaintext
<?php
|
|
|
|
$GLOBALS['appconf']['users_hash_secret'] = 'change me to a stronger secret here';
|
|
$GLOBALS['appconf']['users'] = [];
|
|
$users = explode("\n", <<<EOSU
|
|
#start_users
|
|
admin 7b838b6df1976f81ba93ecd33b65d0c3ff676cb431d55d6251240d04e81bc783 # pass: 1234
|
|
#end_users
|
|
EOSU);
|
|
foreach ($users as $user) {
|
|
$user = trim($user);
|
|
if ($user[0] === '#' || $user === '')
|
|
continue;
|
|
$ps = explode(' ', $user);
|
|
$GLOBALS['appconf']['users'][$ps[0]] = $ps[1];
|
|
}
|