| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Users 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 // load the html drawing class 21 require_once( $mainframe->getPath( 'front_html' ) ); 22 23 global $database, $my; 24 global $mosConfig_live_site; 25 26 $return = mosGetParam( $_SERVER, 'REQUEST_URI', null ); 27 $return = ampReplace( $return ); 28 29 $menuhandler =& mosMenuHandler::getInstance(); 30 $menu =& $menuhandler->getMenuByID($Itemid); 31 $params =& new mosParameters( $menu->params ); 32 33 $params->def( 'page_title', 1 ); 34 $params->def( 'header_login', $menu->name ); 35 $params->def( 'header_logout', $menu->name ); 36 $params->def( 'pageclass_sfx', '' ); 37 $params->def( 'back_button', $mainframe->getCfg( 'back_button' ) ); 38 $params->def( 'login', $mosConfig_live_site ); 39 $params->def( 'logout', $mosConfig_live_site ); 40 $params->def( 'login_message', 0 ); 41 $params->def( 'logout_message', 0 ); 42 $params->def( 'description_login', 1 ); 43 $params->def( 'description_logout', 1 ); 44 $params->def( 'description_login_text', T_('To access the Private areas of this site please Login') ); 45 $params->def( 'description_logout_text', T_('You are now Logged in to a private area of this site') ); 46 $params->def( 'image_login', 'key.jpg' ); 47 $params->def( 'image_logout', 'key.jpg' ); 48 $params->def( 'image_login_align', 'right' ); 49 $params->def( 'image_logout_align', 'right' ); 50 $params->def( 'registration', $mainframe->getCfg( 'allowUserRegistration' ) ); 51 52 $image_login = ''; 53 $image_logout = ''; 54 if ( $params->get( 'image_login' ) <> -1 ) { 55 $image = $mosConfig_live_site .'/images/stories/'. $params->get( 'image_login' ); 56 $image_login = '<img src="'. $image .'" align="'. $params->get( 'image_login_align' ) .'" hspace="10" alt="" />'; 57 } 58 if ( $params->get( 'image_logout' ) <> -1 ) { 59 $image = $mosConfig_live_site .'/images/stories/'. $params->get( 'image_logout' ); 60 $image_logout = '<img src="'. $image .'" align="'. $params->get( 'image_logout_align' ) .'" hspace="10" alt="" />'; 61 } 62 63 if ( $my->id ) { 64 loginHTML::logoutpage( $params, $image_logout ); 65 } else { 66 loginHTML::loginpage( $params, $image_login ); 67 } 68 69 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |