mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
f217f0c1bb
functions.inc.php: - function check_language - new optional parameter $use_post (needed by login.php) - check for language cookie - check for $_POST['lang'] - removed substr() call because it made pt-br translation unuseable - new function language_selector - returns a HTML dropdown language selector - new function safecookie - similar to safeget, but for cookies templates/login.php, templates/users_login.php: - display language selector dropdown login.php, users/login.php: - check for selected language - set cookie if user selected non-default language languages/language.php: (NEW FILE) - list of supported languages - language names taken from phpMyAdmin login form common.php: - include languages/language.php git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@280 a1433add-5e2c-0410-b055-b7f2511e0802
30 lines
1002 B
PHP
30 lines
1002 B
PHP
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
|
<div id="login">
|
|
<form name="login" method="post">
|
|
<table id="login_table" cellspacing="10">
|
|
<tr>
|
|
<td colspan="2"><h4><?php print $PALANG['pUsersLogin_welcome']; ?></h4></td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php print $PALANG['pUsersLogin_username'] . ":"; ?></td>
|
|
<td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php print $PALANG['pUsersLogin_password'] . ":"; ?></td>
|
|
<td><input class="flat" type="password" name="fPassword" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<?php echo language_selector(); ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pUsersLogin_button']; ?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="standout"><?php print $tMessage; ?></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|