0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
Commit Graph

63 Commits

Author SHA1 Message Date
David Goodwin
f9341abb8b common.php: add autoloading for model classes
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@577 a1433add-5e2c-0410-b055-b7f2511e0802
2009-03-13 20:49:32 +00:00
Christian Boltz
873631a277 common.php:
- common.php is indirectly included in setup.php (via upgrade.php),
  avoid endless redirect loop from setup.php to setup.php
  (just found some minutes ago, had blocker quality...)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@343 a1433add-5e2c-0410-b055-b7f2511e0802
2008-04-25 20:35:55 +00:00
David Goodwin
b3dc4ba6af common.php: ensure we only start a session once
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@325 a1433add-5e2c-0410-b055-b7f2511e0802
2008-04-10 10:17:50 +00:00
Christian Boltz
f12ac3a8c8 common.php:
- check if setup.php exists before blindly redirecting to it.
  Display error message if the user has already deleted it.
  (old behaviour caused some user confusion)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@288 a1433add-5e2c-0410-b055-b7f2511e0802
2008-01-06 19:39:08 +00:00
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
2007-12-30 01:32:33 +00:00
Christian Boltz
02195254d7 common.php
- define('POSTFIXADMIN', 1)

templates/*.php
- check if POSTFIXADMIN is defined to prevent direct access to the
  template files


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@256 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 19:23:08 +00:00
David Goodwin
6797912ca9 common.php: ensure register_globals are not enabled
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@242 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-26 07:38:56 +00:00
David Goodwin
1e5b40c348 common.php: caps change in headeR
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@142 a1433add-5e2c-0410-b055-b7f2511e0802
2007-10-09 16:19:41 +00:00
Christian Boltz
ac6af2c99e - read config.inc.php earlier to make the check for
$CONF['configured'] == FALSE work


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@136 a1433add-5e2c-0410-b055-b7f2511e0802
2007-10-07 17:41:29 +00:00
David Goodwin
736a1a0b1f common.php: ensure $CONF["configured"] is not false
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@130 a1433add-5e2c-0410-b055-b7f2511e0802
2007-10-04 14:57:39 +00:00
David Goodwin
dc51d62e15 update license headers
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@107 a1433add-5e2c-0410-b055-b7f2511e0802
2007-09-30 15:53:54 +00:00
David Goodwin
53df296722 common.php: magic quotes stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@102 a1433add-5e2c-0410-b055-b7f2511e0802
2007-09-28 19:28:24 +00:00
David Goodwin
3e70f276c2 final set of refactoring patches (and the rest)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@71 a1433add-5e2c-0410-b055-b7f2511e0802
2007-09-22 10:59:41 +00:00