mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
20 lines
508 B
PHP
Executable File
20 lines
508 B
PHP
Executable File
<?php
|
|
|
|
function getConfig()
|
|
{
|
|
$config = array(
|
|
'admin_user' => 'admin',
|
|
'admin_pass' => '$2y$10$YKIyWAmnQLtiJAy6QgHQ.eCpY4m.HCEbiHaTgN6.acNC6bDElzt.i'
|
|
);
|
|
|
|
if (file_exists(RASPI_CONFIG . '/raspap.auth')) {
|
|
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);
|
|
}
|
|
}
|
|
return $config;
|
|
}
|
|
|