From 15bd1fbb6ecd053e082b8fbcfb45e1efb6fc0e7e Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 25 Jun 2013 13:46:39 +1000 Subject: [PATCH] Basic layout and login functioning --- application/classes/Auth/LDAP.php | 2 +- application/classes/Config.php | 2 +- application/classes/Cookie.php | 15 +++++++++++++++ .../classes/PLA/Auth/{Ldap.php => LDAP.php} | 3 ++- application/classes/PLA/Controller/Template.php | 2 +- application/config/config.php | 2 +- includes/kohana | 2 +- 7 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 application/classes/Cookie.php rename application/classes/PLA/Auth/{Ldap.php => LDAP.php} (98%) diff --git a/application/classes/Auth/LDAP.php b/application/classes/Auth/LDAP.php index 6cb9cfe..f6eced6 100644 --- a/application/classes/Auth/LDAP.php +++ b/application/classes/Auth/LDAP.php @@ -1,4 +1,4 @@ diff --git a/application/classes/Config.php b/application/classes/Config.php index 7d9f554..f10f07f 100644 --- a/application/classes/Config.php +++ b/application/classes/Config.php @@ -96,7 +96,7 @@ class Config extends Kohana_Config { } public static function theme() { - return Kohana::$config->load('config')->theme; + return 'theme/'.Kohana::$config->load('config')->theme; } public static function version() { diff --git a/application/classes/Cookie.php b/application/classes/Cookie.php new file mode 100644 index 0000000..179d6b1 --- /dev/null +++ b/application/classes/Cookie.php @@ -0,0 +1,15 @@ + diff --git a/application/classes/PLA/Auth/Ldap.php b/application/classes/PLA/Auth/LDAP.php similarity index 98% rename from application/classes/PLA/Auth/Ldap.php rename to application/classes/PLA/Auth/LDAP.php index ff1eafb..246abce 100644 --- a/application/classes/PLA/Auth/Ldap.php +++ b/application/classes/PLA/Auth/LDAP.php @@ -1,4 +1,5 @@ template = Kohana::$config->load('config')->theme; + $this->template = Config::theme().'/page'; return parent::__construct($request,$response); } diff --git a/application/config/config.php b/application/config/config.php index 136b4af..6e94933 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -18,6 +18,6 @@ return array( 'mode' => Kohana::PRODUCTION, // Our custom theme 'loginpage' => 'welcome', - 'theme' => 'claro', + 'theme' => 'bootstrap', ); ?> diff --git a/includes/kohana b/includes/kohana index f96694b..f5c623d 160000 --- a/includes/kohana +++ b/includes/kohana @@ -1 +1 @@ -Subproject commit f96694b18fdaa9bd6310debca71427068fe24046 +Subproject commit f5c623d89783fc9bf3c8dbea7699fcefa0015c3d