Browse Source

- Fix some little issues

pull/16/head
Jaussoin Timothée 12 years ago
parent
commit
6fb3ab4e72
  1. 4
      app/controllers/AdminloginController.php
  2. 2
      bootstrap.php
  3. 2
      config/db.example.inc.php

4
app/controllers/AdminloginController.php

@ -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';
}

2
bootstrap.php

@ -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);

2
config/db.example.inc.php

@ -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',

Loading…
Cancel
Save