| [ 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 class loginHTML { 21 22 function loginpage ( &$params, $image ) { 23 global $mosConfig_locale; 24 $return = $params->get( 'login','index.php' ); 25 ?> 26 <form action="<?php echo sefRelToAbs( 'index.php?option=login' ); ?>" method="post" name="login" id="login"> 27 <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="contentpane<?php echo $params->get( 'pageclass_sfx' ); ?>"> 28 <tr> 29 <td colspan="2"> 30 <?php 31 if ( $params->get( 'page_title' ) ) { 32 ?> 33 <div class="componentheading<?php echo $params->get( 'pageclass_sfx' ); ?>"> 34 <?php echo $params->get( 'header_login' ); ?> 35 </div> 36 <?php 37 } 38 ?> 39 <div> 40 <?php echo $image; ?> 41 <?php 42 if ( $params->get( 'description_login' ) ) { 43 ?> 44 <?php echo $params->get( 'description_login_text' ); ?> 45 <br /><br /> 46 <?php 47 } 48 ?> 49 </div> 50 </td> 51 </tr> 52 <tr> 53 <td align="center" width="50%"> 54 <br /> 55 <table> 56 <tr> 57 <td align="center"> 58 <?php echo T_('Username'); ?> 59 <br /> 60 </td> 61 <td align="center"> 62 <?php echo T_('Password'); ?> 63 <br /> 64 </td> 65 </tr> 66 <tr> 67 <td align="center"> 68 <input name="username" type="text" class="inputbox" size="20" /> 69 </td> 70 <td align="center"> 71 <input name="passwd" type="password" class="inputbox" size="20" /> 72 </td> 73 </tr> 74 <tr> 75 <td align="center" colspan="2"> 76 <br /> 77 <?php echo T_('Remember me'); ?> 78 <input type="checkbox" name="remember" class="inputbox" value="yes" /> 79 <br /> 80 <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>"> 81 <?php echo T_('Password Reminder'); ?> 82 </a> 83 <?php 84 if ( $params->get( 'registration' ) ) { 85 ?> 86 <br /> 87 <?php echo T_('No account yet?'); ?> 88 <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>"> 89 <?php echo T_('Create one');?> 90 </a> 91 <?php 92 } 93 ?> 94 <br /><br /><br /> 95 </td> 96 </tr> 97 </table> 98 </td> 99 <td> 100 <div align="center"> 101 <input type="submit" name="submit" class="button" value="<?php echo T_('Login'); ?>" /> 102 </div> 103 104 </td> 105 </tr> 106 <tr> 107 <td colspan="2"> 108 <noscript> 109 <?php echo T_('!Warning! Javascript must be enabled for proper operation.'); ?> 110 </noscript> 111 </td> 112 </tr> 113 </table> 114 <?php 115 // displays back button 116 mosHTML::BackButton ( $params ); 117 ?> 118 119 <input type="hidden" name="op2" value="login" /> 120 <input type="hidden" name="return" value="<?php echo sefRelToAbs( $return ); ?>" /> 121 <input type="hidden" name="lang" value="<?php echo $mosConfig_locale; ?>" /> 122 <input type="hidden" name="message" value="<?php echo $params->get( 'login_message' ); ?>" /> 123 </form> 124 <?php 125 } 126 127 function logoutpage( &$params, $image ) { 128 global $mosConfig_locale; 129 130 $return = $params->get( 'logout' ,'index.php'); 131 ?> 132 <form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="login" id="login"> 133 <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="contentpane<?php echo $params->get( 'pageclass_sfx' ); ?>"> 134 <tr> 135 <td valign="top"> 136 <?php 137 if ( $params->get( 'page_title' ) ) { 138 ?> 139 <div class="componentheading<?php echo $params->get( 'pageclass_sfx' ); ?>"> 140 <?php echo $params->get( 'header_logout' ); ?> 141 </div> 142 <?php 143 } 144 ?> 145 <div> 146 <?php 147 echo $image; 148 149 if ( $params->get( 'description_logout' ) ) { 150 echo $params->get( 'description_logout_text' ); 151 ?> 152 <br /><br /> 153 <?php 154 } 155 ?> 156 </div> 157 </td> 158 </tr> 159 <tr> 160 <td align="center"> 161 <div align="center"> 162 <input type="submit" name="Submit" class="button" value="<?php echo T_('Logout'); ?>" /> 163 </div> 164 </td> 165 </tr> 166 </table> 167 <?php 168 // displays back button 169 mosHTML::BackButton ( $params ); 170 ?> 171 172 <input type="hidden" name="op2" value="logout" /> 173 <input type="hidden" name="return" value="<?php echo sefRelToAbs( $return ); ?>" /> 174 <input type="hidden" name="lang" value="<?php echo $mosConfig_locale; ?>" /> 175 <input type="hidden" name="message" value="<?php echo $params->get( 'logout_message' ); ?>" /> 176 </form> 177 <?php 178 } 179 } 180 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 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 |