Revision 1529
Added by Dietmar over 12 years ago
index.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category admin |
5 | 5 |
* @package login |
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
6 |
* @author Ryan Djurovich, WebsiteBaker Project |
|
8 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
9 | 8 |
* @link http://www.websitebaker2.org/ |
10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
... | ... | |
112 | 111 |
$message_color = 'FF0000'; |
113 | 112 |
} |
114 | 113 |
|
115 |
// Setup the template |
|
116 |
$template = new Template(THEME_PATH.'/templates'); |
|
114 |
// Setup template object, parse vars to it, then parse it |
|
115 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('login_forgot.htt')); |
|
116 |
// Create new template object |
|
117 |
$template = new Template($ThemePath); |
|
117 | 118 |
$template->set_file('page', 'login_forgot.htt'); |
118 | 119 |
$template->set_block('page', 'main_block', 'main'); |
119 | 120 |
if(defined('FRONTEND')) { |
... | ... | |
159 | 160 |
|
160 | 161 |
$template->parse('main', 'main_block', false); |
161 | 162 |
$template->pparse('output', 'page'); |
162 |
|
|
163 |
?> |
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)