Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
/**
* @version $Id: mod_login.php 5866 2006-11-28 01:13:26Z friesengeist $
* @package Joomla
* @copyright Copyright (C) 2002 - 2007 Äæóìëà! Áúëãàðèÿ
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_frontend_login;
if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) {
return;
}
// url of current page that user will be returned to after login
if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) {
$return = 'index.php?' . $query_string;
} else {
$return = 'index.php';
}
// converts & to & for xtml compliance
$return = str_replace( '&', '&', $return );
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$message_login = $params->def( 'login_message', 0 );
$message_logout = $params->def( 'logout_message', 0 );
$login = $params->def( 'login', $return );
$logout = $params->def( 'logout', $return );
$name = $params->def( 'name', 1 );
$greeting = $params->def( 'greeting', 1 );
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$name = $my->name;
} else {
$name = $my->username;
}
?>
<form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="logout">
<?php
if ( $greeting ) {
echo _HI;
echo $name;
}
?>
<br />
<div align="center">
<input type="submit" name="Submit" class="button" value="<?php echo _BUTTON_LOGOUT; ?>" />
</div>
<input type="hidden" name="option" value="logout" />
<input type="hidden" name="op2" value="logout" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo sefRelToAbs( $logout ); ?>" />
<input type="hidden" name="message" value="<?php echo $message_logout; ?>" />
</form>
<?php
} else {
// Login output
// ie HTML when not logged in and trying to login
// used for spoof hardening
$validate = josSpoofValue(1);
?>
<form action="<?php echo sefRelToAbs( 'index.php' ); ?>" method="post" name="login" >
<?php
echo $pretext;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<label for="mod_login_username">
<?php echo _USERNAME; ?>
</label>
<br />
<input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" size="10" />
<br />
<label for="mod_login_password">
<?php echo _PASSWORD; ?>
</label>
<br />
<input type="password" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="password" />
<br />
<input type="checkbox" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="Remember Me" />
<label for="mod_login_remember">
<?php echo _REMEMBER_ME; ?>
</label>
<br />
<input type="submit" name="Submit" class="button" value="<?php echo _BUTTON_LOGIN; ?>" />
</td>
</tr>
<tr>
<td>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>">
<?php echo _LOST_PASSWORD; ?></a>
</td>
</tr>
<?php
if ( $registration_enabled ) {
?>
<tr>
<td> <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>">
<?php echo _CREATE_ACCOUNT; ?></a> </td>
</tr>
<?php
}
?>
</table>
<?php
echo $posttext;
?>
<input type="hidden" name="option" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo sefRelToAbs( $login ); ?>" />
<input type="hidden" name="message" value="<?php echo $message_login; ?>" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="<?php echo $validate; ?>" value="1" />
</form>
<?php
}
?>
input,
textarea {
padding: 1px 3px;
margin: 3px 0;
font: 1em Helvetica,Arial,sans-serif;
color: #ffffff;
background-image: url(images/bckgr.gif);
border: 1px solid #11a8c9;
}
input {
width: 21%;
}
textarea {
width: 21%;
/*
scrollbar-3dlight-color : #F1E3D3;
scrollbar-arrow-color : #895519;
scrollbar-darkshadow-color : #F1E3D3;
scrollbar-face-color : #F1E3D3;
scrollbar-highlight-color : #895519;
scrollbar-shadow-color : #895519;
scrollbar-track-color : #F1E3D3; */
}
input:hover,
input:focus,
textarea:hover,
textarea:focus {
color: #11a8c9;
background-color: #cccccc;
border: 1px solid #f2933e;
}
<input type="text">
<input type="password">
<input type="submit" value="login">
<form action="http://твоясайт.com/login.php" method="POST">
Потребиел : <input type="text" name="username"> <br />
Парола : <input type="password" name="password"> <br />
<input type="submit" name="login" value="Вход">
</form>
сложи в цсс-аMaDHaCkEr каза:![]()
Ето аз съм сложил боксове искам да са свързани с мода за логин.
Мога и да задам там да се отваря мода обаче няма да пасне точно така както съм ги нарисувал и искам да стане![]()