@ -17,8 +17,8 @@ class AdminloginController extends BaseController
$cd = new \Modl\ConfigDAO();
$config = $cd->get();
if($config->user == $_POST['username']
&& $config->pass == sha1($_POST['password'])) {
if($config->username == $_POST['username']
&& $config->password == sha1($_POST['password'])) {
$_SESSION['admin'] = true;
$this->name = 'admin';
}
@ -275,7 +275,7 @@ class Bootstrap {
if(file_exists(DOCUMENT_ROOT.'/config/db.inc.php')) {
require DOCUMENT_ROOT.'/config/db.inc.php';
} else {
throw new MovimException('Cannot find config/db.ini file');
throw new MovimException('Cannot find config/db.inc.php file');
$db->setConnectionArray($conf);
@ -1,6 +1,6 @@
<?php
# This is the database configuration of Movim
# You need to copy an rename this file to 'db.ini' and complete the values
# You need to copy an rename this file to 'db.inc.php' and complete the values
$conf = array(
# The type can be 'pgsql' or 'mysql'
'type' => 'mysql',