[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: login.php 4057 2006-06-19 20:00:59Z stingrey $ 4 * @package Joomla 5 * @subpackage Users 6 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 7 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // no direct access 16 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 17 18 // load the html drawing class 19 require_once( $mainframe->getPath( 'front_html' ) ); 20 21 global $database, $my, $mainframe; 22 global $mosConfig_live_site, $mosConfig_frontend_login, $mosConfig_db; 23 24 if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) { 25 header( "HTTP/1.0 403 Forbidden" ); 26 echo _NOT_AUTH; 27 return; 28 } 29 30 $menu = $mainframe->get( 'menu' ); 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', _LOGIN_DESCRIPTION ); 45 $params->def( 'description_logout_text', _LOGOUT_DESCRIPTION ); 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 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |