Now has favicon (just a placeholder, really) and informs about database reset.

This commit is contained in:
Alexander Yakovlev 2011-10-15 14:33:30 +07:00
parent 8c8b61dd29
commit 29bb075aaf
5 changed files with 5 additions and 1 deletions

View file

@ -20,6 +20,7 @@ class Controller_Install extends Controller_Template {
$admin_role = new Model_Role(array('name' =>'admin'));
$user->add('roles',$admin_role);
$user->add('roles',$login_role);
$this->template->message="Установка успешно завершена."
}
}
}

View file

@ -6,7 +6,7 @@ class Controller_Login extends Controller_Template {
if(Auth::instance()->logged_in()) return $this->request->redirect('');
if ($_POST){
$user = ORM::factory('user');
$status = Auth::instance()->login($_POST['login'], $_POST['password']);
$status = Auth::instance()->login($this->request->post('login'), $this->request->post('password'));
if ($status) return $this->request->redirect('');
else $this->template->error = "Неверный логин или пароль.";
}

View file

@ -3,6 +3,7 @@
<head>
<title><?php echo $title ?></title>
<meta charset="utf-8">
<link href='<?php echo URL::site('favicon.ico')?>' rel='shortcut icon' type='image/x-icon'/>
<?php echo $styles ?>
<?php echo $scripts ?>
</head>

View file

@ -1,5 +1,7 @@
<?php echo Request::factory('header/standard')->post('title','Установка движка')->post('styles','main.css')->execute() ?>
<h1>Установка движка</h1>
<div id="message"><?php if(!empty($message)) echo $message;?></div>
<div id="error"><?php if(!empty($error)) echo $error;?></div>
<p>Внимание! При продолжении база данных будет переписана.</p>
<p>Предполагается, что база данных MySQL находится по адресу localhost и использует кодировку UTF-8. Вы можете поменять настройки в файле config/database.php.</p>
<?php echo form::open('install') ?>

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B