0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
Commit Graph

277 Commits

Author SHA1 Message Date
Christian Boltz
56968abc0c templates/menu.php:
- added JS to enable dropdowns in IE
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1859556&group_id=191583

stylesheet.css:
- dupliated the menu :hover styles as .sfhover for IE


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@281 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-30 18:49:18 +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
David Goodwin
44dbfb5e26 new .deb release
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@279 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-29 21:11:54 +00:00
David Goodwin
6c758eb4db 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
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@278 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-29 14:51:58 +00:00
David Goodwin
36657401c7 upgrade.php: should work for postgresql now
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@277 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-29 13:51:19 +00:00
Christian Boltz
7a914cd66a templates/users_vacation.php:
- whitespace changes to match vim: comment (ts=4)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@276 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-28 21:45:33 +00:00
Christian Boltz
40045401d3 users/password.php:
- fixed syntax error
  https://sourceforge.net/tracker/index.php?func=detail&aid=1852533&group_id=191583&atid=937964
- use correct string for "password too short" message 
  (see r270 commit message)

en.lang:
- added usage comment on PALANG['pPasswordTooShort']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@275 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-28 21:42:09 +00:00
Christian Boltz
d39d7b44aa create-domain.php:
- partly undo last change (r273) - $fBackupmx is not used in the SQL query, 
  but in the template file
- keep usage of db_get_boolean() for $sqlBackupmx


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@274 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-28 21:27:11 +00:00
Christian Boltz
eb1ddd2a80 create-domain.php:
- make $fBackupmx pgsql-compatible (using db_get_boolean())
  Thanks to Micheas Herman (micheas)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1858922&group_id=191583
- also use db_get_boolean() for $sqlBackupmx - that's better than 
  checking for pgsql explicitely


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@273 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-28 21:15:04 +00:00
David Goodwin
70dea6ca05 edit-mailbox.php; indentation fix
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@272 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-17 07:03:54 +00:00
David Goodwin
3c2bf37f4a upgrade.php: implemented some of the postgresql functions; have not tested it yet though
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@271 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-17 07:02:45 +00:00
David Goodwin
595ee7d37a users/password.php: add password length checking (thought I had already committed this!) (cboltz: what is the right string to use in the error message?)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@270 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-17 07:01:50 +00:00
Christian Boltz
bbfb953ebe da.lang:
- translation update by jespermeyer - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1851126&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@269 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-16 00:05:50 +00:00
Christian Boltz
d821e03b93 setup.php:
- added check for multibyte string extension (mb_encode_mimeheader)
- added note that Apache version check failure can be ignored if another
  webserver is used


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@268 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-14 00:05:54 +00:00
Christian Boltz
6cb2953c90 broadcast-message.php:
- fix typo: encode_base64 -> base64_encode
  https://sourceforge.net/forum/forum.php?thread_id=1891143&forum_id=676076


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@267 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-13 23:22:14 +00:00
Christian Boltz
8c6f6fc8ee templates/search.php:
- removed superfluous and buggy superadmin check. Fixes
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1844063&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@266 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-07 09:39:11 +00:00
Christian Boltz
282e90691f *.lang:
- added re-translation comments for pSendmail_result_error and 
  pSendmail_result_success

de.lang:
- re-translated the two strings listed above


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@265 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 22:38:36 +00:00
Christian Boltz
a2bd792e9e language-update.sh:
- new parameter --addcomment - adds a comment to all *.lang files except en.lang
  Useful if a text has changed and needs to be re-translated.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@264 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 22:37:07 +00:00
Christian Boltz
af19e515ed - removed duplicate, unused string $PALANG['pPassword_too_short_error'] again.
Please use the existing string pPasswordTooShort


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@263 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 22:21:29 +00:00
David Goodwin
d688b00197 languages/en.lang: fix string for successful mail sending
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@262 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 21:54:20 +00:00
David Goodwin
b97855ba0b en.lang: add error message if password is too short
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@261 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 21:49:45 +00:00
David Goodwin
a463f4865a templates/footer.php: change target for version check (does not exist yet)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@260 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 21:42:06 +00:00
David Goodwin
c1ca6f716a search.php: reindent; and merge patch from amsys - see http://sourceforge.net/tracker/index.php?func=detail&aid=1845743&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@259 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 21:40:43 +00:00
Christian Boltz
9ef961a770 setup.php:
- added missing define('POSTFIXADMIN', 1);
  https://sourceforge.net/forum/message.php?msg_id=4660403


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@258 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-06 13:03:36 +00:00
Christian Boltz
e78a64d6ff language-update.sh
- added translation statistics script (new parameter --stats)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@257 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 21:21:27 +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
9a33ceb628 templates/users_vacation.php: everyone knows a "tab" is 4 spaces..
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@255 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 16:54:49 +00:00
David Goodwin
6febf0396c fix possible XSS hole (security fix)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@254 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 16:54:15 +00:00
David Goodwin
63817ea955 fix possible XSS hole (security fix)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@253 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 16:53:56 +00:00
David Goodwin
6fa88019ab try and stop it (the browser) remembering stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@252 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 16:02:50 +00:00
David Goodwin
8295f88637 config.inc.php: update - use dirname(__FILE__) for path resolution
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@251 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 15:09:39 +00:00
David Goodwin
39953d029d rename templates to .php instead of .tpl
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@250 a1433add-5e2c-0410-b055-b7f2511e0802
2007-12-02 13:59:33 +00:00
Christian Boltz
9b295d27ce stylesheet.css:
- fixed some syntax errors
  Thanks to Jan Örnstedt (ornstedt) for the patch
  https://sourceforge.net/tracker/index.php?func=detail&aid=1839084&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@249 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-27 23:24:37 +00:00
Christian Boltz
34f1b2efe5 edit-alias.php:
- correctly recognize empty input (first cleanup whitespace, then check).
  Before this fix, aliases with empty goto could be created by entering
  some spaces or newlines.
  https://sourceforge.net/tracker/index.php?func=detail&aid=1839061&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@248 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-27 22:20:13 +00:00
Christian Boltz
664aa2b860 users/edit-alias.php:
- trim() goto targets to avoid wrong messages about empty goto field
  if first line is empty
  https://sourceforge.net/tracker/index.php?func=detail&aid=1839061&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@247 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-27 21:53:02 +00:00
Christian Boltz
8f0b75feda users_edit-alias.tpl:
- fix: mailbox not removed from alias targets
  https://sourceforge.net/tracker/index.php?func=detail&aid=1839063&group_id=191583&atid=937964
- don't list mailbox in "to" field. We have option fields for this
  below the textarea.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@246 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-27 21:42:03 +00:00
Christian Boltz
e74a109dc7 sv.lang:
- more translations by Jan Örnstedt (ornstedt)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1834023&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@245 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-27 20:26:45 +00:00
Christian Boltz
0c69533dd7 da.lang:
- language upate by Jesper R. Meyer (jespermeyer) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1839068&group_id=191583

sv.lang:
- fixed an &Ouml that was accidently inserted by my editor


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@244 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-27 00:12:48 +00:00
Christian Boltz
1df4b68ac8 several *.php files:
- no longer use $incpath - merging admin/ is done
  http://sourceforge.net/tracker/index.php?func=detail&aid=1838327&group_id=191583&atid=937964

Note that $incpath is still used by common.php - removing it would break users/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@243 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-26 23:30:16 +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
Christian Boltz
3412aebb85 it.lang:
- italian language update by Luca Accomazzi (luca AT accomazzi DOT it)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@241 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-25 17:35:29 +00:00
David Goodwin
f03d43f52f list-virtual.php: fix ticket 1837766
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@240 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-25 00:35:13 +00:00
Christian Boltz
ea83fd8b9a fr.lang
- updated by Francois Grange (rumbaya @sf) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1835209&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@239 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-21 00:12:37 +00:00
Christian Boltz
da62b757e1 UPGRADE.txt:
- removed references to TABLE_CHANGES.txt and TABLE_BACKUP_MX.txt
- added reference to setup.php (superadmin creation) and upgrade.php
- made the "change permissions" section easier
- swapped "configure" and "database update" sections
- added "delete setup.php"
- several small changes

TABLE_CHANGES.txt, TABLE_BACKUP_MX.txt:
- obsoleted by upgrade.php - DELETED


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@238 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-19 00:51:20 +00:00
Christian Boltz
e5bfb81e86 *.lang:
- now that broadcast is in a submenu, there's no need to use "BC" 
  instead of "broadcast".
  Changed in en.lang and all languages where it isn't translated yet.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@237 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-18 22:12:41 +00:00
Christian Boltz
332d2d607b broadcast-message.php:
- exit if $CONF['sendmail'] != 'YES'


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@236 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-18 21:46:20 +00:00
Christian Boltz
024fc15d29 menu.tpl:
- make broadcast a submenu of send "Send Email"
  Thanks to Jan Örnstedt (ornstedt @sf) for the suggestion


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@235 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-18 21:45:34 +00:00
Christian Boltz
3b27e0309e config.inc.php:
- listed "md5" for $CONF['encrypt']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@234 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-18 21:43:10 +00:00
Christian Boltz
850a449bde sv.lang:
- translation update by Jan Örnstedt (ornstedt) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1834023&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@233 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-18 19:27:46 +00:00
Christian Boltz
b4b7212853 backup.php:
- also backup config table


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@232 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-17 00:38:41 +00:00