added check if file is there
This commit is contained in:
parent
bffe0f1660
commit
85049635de
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ class AdminController extends Katharsis_Controller_Abstract
|
||||||
|
|
||||||
private function getPassword()
|
private function getPassword()
|
||||||
{
|
{
|
||||||
$admin_ini = parse_ini_file('config/admin.ini');
|
$path = 'config/admin.ini';
|
||||||
|
if(!is_readable($path)) die($path . " not found");
|
||||||
|
|
||||||
|
$admin_ini = parse_ini_file($path);
|
||||||
$password = $admin_ini["password"];
|
$password = $admin_ini["password"];
|
||||||
|
|
||||||
return $password;
|
return $password;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue