Basic layout and login functioning
This commit is contained in:
parent
7e2cdac7e9
commit
15bd1fbb6e
@ -1,4 +1,4 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
class Auth_LDAP extends PLA_Auth_Ldap {}
|
class Auth_LDAP extends PLA_Auth_LDAP {}
|
||||||
?>
|
?>
|
||||||
|
@ -96,7 +96,7 @@ class Config extends Kohana_Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function theme() {
|
public static function theme() {
|
||||||
return Kohana::$config->load('config')->theme;
|
return 'theme/'.Kohana::$config->load('config')->theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function version() {
|
public static function version() {
|
||||||
|
15
application/classes/Cookie.php
Normal file
15
application/classes/Cookie.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class overrides Kohana's Cookie
|
||||||
|
*
|
||||||
|
* @package PLA/Modifications
|
||||||
|
* @category Helpers
|
||||||
|
* @author Deon George
|
||||||
|
* @copyright (c) 2010 Deon George
|
||||||
|
* @license http://dev.phpldapadmin.org/license.html
|
||||||
|
*/
|
||||||
|
class Cookie extends Kohana_Cookie {
|
||||||
|
public static $salt = 'PLA';
|
||||||
|
}
|
||||||
|
?>
|
@ -1,4 +1,5 @@
|
|||||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LDAP Auth driver.
|
* LDAP Auth driver.
|
||||||
*
|
*
|
||||||
@ -9,7 +10,7 @@
|
|||||||
* @copyright (c) phpLDAPadmin Development Team
|
* @copyright (c) phpLDAPadmin Development Team
|
||||||
* @license http://dev.phpldapadmin.org/license.html
|
* @license http://dev.phpldapadmin.org/license.html
|
||||||
*/
|
*/
|
||||||
class PLA_Auth_Ldap extends Auth {
|
class PLA_Auth_LDAP extends Auth {
|
||||||
// Unnused required abstract functions
|
// Unnused required abstract functions
|
||||||
public function password($username) {}
|
public function password($username) {}
|
||||||
public function check_password($password) {}
|
public function check_password($password) {}
|
@ -15,7 +15,7 @@ abstract class PLA_Controller_Template extends Kohana_Controller_Template {
|
|||||||
private $meta;
|
private $meta;
|
||||||
|
|
||||||
public function __construct(Request $request, Response $response) {
|
public function __construct(Request $request, Response $response) {
|
||||||
$this->template = Kohana::$config->load('config')->theme;
|
$this->template = Config::theme().'/page';
|
||||||
|
|
||||||
return parent::__construct($request,$response);
|
return parent::__construct($request,$response);
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,6 @@ return array(
|
|||||||
'mode' => Kohana::PRODUCTION,
|
'mode' => Kohana::PRODUCTION,
|
||||||
// Our custom theme
|
// Our custom theme
|
||||||
'loginpage' => 'welcome',
|
'loginpage' => 'welcome',
|
||||||
'theme' => 'claro',
|
'theme' => 'bootstrap',
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f96694b18fdaa9bd6310debca71427068fe24046
|
Subproject commit f5c623d89783fc9bf3c8dbea7699fcefa0015c3d
|
Loading…
Reference in New Issue
Block a user