mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
15 lines
340 B
PHP
15 lines
340 B
PHP
|
<?php
|
||
|
|
||
|
$config = array(
|
||
|
'admin_user' => 'admin',
|
||
|
'admin_pass' => '$2y$10$YKIyWAmnQLtiJAy6QgHQ.eCpY4m.HCEbiHaTgN6.acNC6bDElzt.i'
|
||
|
);
|
||
|
|
||
|
if ( $auth_details = fopen(RASPI_CONFIG.'/raspap.auth', 'r') ) {
|
||
|
$config['admin_user'] = trim(fgets($auth_details));
|
||
|
$config['admin_pass'] = trim(fgets($auth_details));
|
||
|
fclose($auth_details);
|
||
|
}
|
||
|
|
||
|
?>
|