Commit Graph

279 Commits (299735773e624faf2f22be9b3bb61509a6d8377a)

Author SHA1 Message Date
David Goodwin c3ae9dd9db functions.inc.php: code cleanups / documentation fixes etc
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@162 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 4a35f02765 - new functions safeget, safepost, safeserver
Action: get value from $_GET/$_POST/$_SERVER[$param], otherwise $default
  Call: $param = safeget('param')   # instead of $param = $_GET['param']   - or -
        $param = safeget('param', 'default')
  useful to avoid "undefined index" warnings ;-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@159 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz eab71c6ba5 - escape_string(): preserve array keys when escaping arrays
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@138 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 2d65b8b858 - setup.php now has a "create superadmin" form
- completely reworked HTML code in setup.php
- moved admin creation code from create_admin.php to functions.php,
  function create_admin
- several related changes in functions.inc.php:
  - use table_by_key() directly instead of the cached variables (which
    are empty if config.inc.php was not read before functions.php)
  - add an additional (optional) parameter $setup to db_connect, changed
    many die(msg) calls to $error_message .= msg.
    If $setup is given, the return value is array($link, $error_text)
    instead of $link
  - db_connect now checks for invalid $CONF['database_type']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@135 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 2ffb2ef3e6 functions.inc.php: reduce global usage
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@114 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin f854128947 functions.inc.php: mysqli is a valid database_type as well!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@112 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin dc51d62e15 update license headers
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@107 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin f2bf3cdf97 functions.inc.php: remove optional parameter for get_domains_for_admin()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@104 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin b15d558c81 functions.inc.php: fix escape_string to handle arrays, move magic_quotes stuff to common.php; add flash message stuff (See also header.php)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@101 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 1b603782d0 - fix: added edit_mailbox as allowed log action
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@99 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 8e88a41691 - added missing "global $CONF" in authentication_require_role
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@94 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 075d15b4b1 db_log patch from amsys - make db logging translatable
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@90 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin b947f120b4 functions.inc.php: typo fix
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@77 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 5c372ead52 functions.inc.php: add a db_get_boolean($bool) function to handle the 0/1/False/True stuff for MySQL&PostgreSQL
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@73 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 4eb83c4bdc final set of refactoring patches
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@70 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 69de1f06f0 functions.inc.php: fix incorrect usage of mysqli_error(...)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@65 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin fd3c471126 functions.inc.php: enable md5 password hashing (thanks to Levente Farkas (lfarkas) on the forum)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@64 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin f7628dea60 functions.inc.php: unicode fix from amsys
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@62 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin e7436140e3 functions.inc.php: unicode patch from amsys (thank you) - see http://sourceforge.net/tracker/index.php?func=detail&aid=1798757&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@61 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Greg 411e4fae3c Search highlights matches. Click on log entries for full data field pop-up. Other bug fixes.
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@49 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Greg 97aeb7a567 Added optional feature to indicate broken aliases and where mailboxes deliver to. Includes
new language variables:
$PALANG['pStatus_undeliverable'] = 'maybe UNDELIVERABLE ';
$PALANG['pStatus_custom'] = 'Delivers to ';
$PALANG['pStatus_popimap'] = 'POP/IMAP ';

Some bug fixes. Maybe some new bugs added.



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@46 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin fc4b601b39 functions.inc.php: ensure link is open for when we do escape_string stuff; update pg_escape_string usage for php > 5.2.0
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@32 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin fc6013cb2a functions.inc.php: reindent, ensure alias_pgindex_count is initialised in get_domain_details()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@21 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin b933b9186c functions.inc.php: remove dead code - active and backupmx are not selected by the query, so are not present in the results, and therefore cause php errors as they are not present in the array
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@20 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Greg cecbdd1660 Greatly enhanced the multi-page experience for list-virtual.php and overview.php
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@15 a1433add-5e2c-0410-b055-b7f2511e0802
18 years ago
Greg c7e49d0631 Allows for tld of 2-6 characters
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@6 a1433add-5e2c-0410-b055-b7f2511e0802
18 years ago
Greg 9481a093a6 user Autoresponse edits function like the admin interfaces
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@5 a1433add-5e2c-0410-b055-b7f2511e0802
18 years ago
Greg d7cca670cb patches by Christian Boltz applied
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@3 a1433add-5e2c-0410-b055-b7f2511e0802
18 years ago
Mischa Peters 85dc57beee Initial Import in SourceForge
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1 a1433add-5e2c-0410-b055-b7f2511e0802
18 years ago