PostfixAdmin for BananaNetwork - to apply required patches before release or release in async to the official version https://github.com/postfixadmin/postfixadmin
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Christian Boltz f217f0c1bb Summary: Added language selector to login form
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
17 years ago
ADDITIONS enabled expansion of $Id$ and $Rev$ on all non-binary files 17 years ago
DOCUMENTS UPGRADE.txt: 17 years ago
VIRTUAL_VACATION vacation.pl: updating spam check bit 17 years ago
admin Finally got rid of admin/ :-) 17 years ago
debian new .deb release 17 years ago
images Initial Import in SourceForge 18 years ago
languages Summary: Added language selector to login form 17 years ago
templates Summary: Added language selector to login form 17 years ago
users Summary: Added language selector to login form 17 years ago
CHANGELOG.TXT Added optional feature to indicate broken aliases and where mailboxes deliver to. Includes 17 years ago
DATABASE_MYSQL.TXT - remove DROP TABLE statements - they can do more harm than good 17 years ago
DATABASE_PGSQL.TXT DATABASE_PGSQL.TXT: schema typo fix; thanks to http://sourceforge.net/forum/forum.php?thread_id=1843123&forum_id=676076 and jpalmer on irc 17 years ago
GPL-LICENSE.TXT Initial Import in SourceForge 18 years ago
INSTALL.TXT INSTALL.TXT: minor edits 17 years ago
LICENSE.TXT Initial Import in SourceForge 18 years ago
backup.php rename templates to .php instead of .tpl 17 years ago
broadcast-message.php broadcast-message.php: 17 years ago
common.php Summary: Added language selector to login form 17 years ago
config.inc.php config.inc.php: update - use dirname(__FILE__) for path resolution 17 years ago
create-admin.php rename templates to .php instead of .tpl 17 years ago
create-alias.php rename templates to .php instead of .tpl 17 years ago
create-domain.php create-domain.php: 17 years ago
create-mailbox.php rename templates to .php instead of .tpl 17 years ago
delete.php rename templates to .php instead of .tpl 17 years ago
edit-active-admin.php rename templates to .php instead of .tpl 17 years ago
edit-active-domain.php rename templates to .php instead of .tpl 17 years ago
edit-active.php rename templates to .php instead of .tpl 17 years ago
edit-admin.php rename templates to .php instead of .tpl 17 years ago
edit-alias.php fix possible XSS hole (security fix) 17 years ago
edit-domain.php rename templates to .php instead of .tpl 17 years ago
edit-mailbox.php edit-mailbox.php; indentation fix 17 years ago
edit-vacation.php rename templates to .php instead of .tpl 17 years ago
fetchmail.php rename templates to .php instead of .tpl 17 years ago
functions.inc.php Summary: Added language selector to login form 17 years ago
index.php - force user to delete setup.php (which allows creation of superadmins now!) 17 years ago
list-admin.php rename templates to .php instead of .tpl 17 years ago
list-domain.php rename templates to .php instead of .tpl 17 years ago
list-virtual.php fix possible XSS hole (security fix) 17 years ago
login.php Summary: Added language selector to login form 17 years ago
logout.php update license headers 17 years ago
main.php rename templates to .php instead of .tpl 17 years ago
motd-users.txt Initial Import in SourceForge 18 years ago
motd.txt Initial Import in SourceForge 18 years ago
password.php rename templates to .php instead of .tpl 17 years ago
search.php search.php: reindent; and merge patch from amsys - see http://sourceforge.net/tracker/index.php?func=detail&aid=1845743&group_id=191583&atid=937966 17 years ago
sendmail.php rename templates to .php instead of .tpl 17 years ago
setup.php setup.php: 17 years ago
stylesheet.css stylesheet.css: 17 years ago
upgrade.php upgrade.php: fix pgsql isms - i..e check that fields exist before trying to remove them, likewise for tables; minor syntax fixes in upgrade etc; tested and works for me 17 years ago
variables.inc.php update license headers 17 years ago
viewlog.php rename templates to .php instead of .tpl 17 years ago