* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: xorg.page.inc.php,v 1.40 2004-09-19 15:50:45 x2000habouzit Exp $
+ $Id: xorg.page.inc.php,v 1.41 2004-09-23 17:44:17 x2000habouzit Exp $
***************************************************************************/
require("diogenes.core.page.inc.php");
$this->doAuth();
}
+ function changeTpl($newtpl, $type=SKINNED) {
+ $this->_tpl = $tpl;
+ $this->_page_type = $type;
+ $this->caching = ($type == SKINNED);
+ }
+
function setLang($lang=null) {
global $globals;
if(empty($lang)) {
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: xorg.session.inc.php,v 1.24 2004-09-05 12:24:41 x2000habouzit Exp $
+ $Id: xorg.session.inc.php,v 1.25 2004-09-23 17:44:17 x2000habouzit Exp $
***************************************************************************/
require("diogenes.core.session.inc.php");
*/
function doLogin(&$page, $new_name=false) {
if(isset($_COOKIE['ORGaccess']) and isset($_COOKIE['ORGuid']) and !$new_name) {
- $page->_tpl = 'password_prompt_logged.tpl';
+ $page->changeTpl('password_prompt_logged.tpl');
$page->assign("xorg_head", "password_prompt_logged.head.tpl");
$page->assign("xorg_tpl", "password_prompt_logged.tpl");
$page->run();
} else {
- $page->_tpl = 'password_prompt.tpl';
+ $page->changeTpl('password_prompt.tpl');
$page->assign("xorg_head", "password_prompt.head.tpl");
$page->assign("xorg_tpl", "password_prompt.tpl");
$page->run();