Project

General

Profile

« Previous | Next » 

Revision 1529

Added by Dietmar almost 13 years ago

add new backend theme handling (Tks to Stefek)

View differences:

class.login.php
1 1
<?php
2 2
/**
3 3
 *
4
 * @category        backend
5
 * @package         login
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
4
 * @category        framework
5
 * @package         backend login
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
......
65 64
		$this->url = $this->get_post('url');
66 65
		if ($this->redirect_url!='') {
67 66
			$this->url = $this->redirect_url;
68
		}		
67
		}
69 68
		if(strlen($this->url) < 2) {
70 69
			$this->url = $config_array['DEFAULT_URL'];
71 70
		}
......
340 339
		// Show the login form
341 340
		if($this->frontend != true) {
342 341
			require_once(WB_PATH.'/include/phplib/template.inc');
343
			$template = new Template($this->template_dir);
342
			// $template = new Template($this->template_dir);
343
			// Setup template object, parse vars to it, then parse it
344
			$ThemePath = realpath(WB_PATH.$this->correct_theme_source($this->template_file));
345
			$template = new Template($ThemePath);
344 346
			$template->set_file('page', $this->template_file);
345 347
			$template->set_block('page', 'mainBlock', 'main');
346 348
			if($this->remember_me_option != true) {
......
381 383
			}
382 384
			
383 385
			$template->set_var('CHARSET', $charset);	
384
									
385
									
386

  
386 387
			$template->parse('main', 'mainBlock', false);
387 388
			$template->pparse('output', 'page');
388 389
		}

Also available in: Unified diff