Christian Boltz
5f7dcc18d5
functions.inc.php
...
- allow longer TLDs (.museum, .travel)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@214 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz
a00d456084
functions.inc.php
...
- encode_header(): made charset parameter optional, defaults to utf-8
- db_delete(): escape_string() $where and $delete
create-mailbox.php:
- always encode mail header and insert Content-Type etc. headers
(previous code never did this, $PALANG['charset'] is not set in any
language. so this code part was never used)
sendmail.php:
- always encode mail header and insert Content-Type etc. headers
(had the same bug as create-mailbox.php)
- merge GET and POST
These changes fix
http://sourceforge.net/tracker/index.php?func=detail&aid=1811214&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@199 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz
61713c260b
OOps. Removed forgotten debugging code again.
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@186 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz
5acd24515f
functions.php:
...
- new function db_update ($table, $where, $values, $timestamp = array())
to update a database entry with the values given as array
- added optional $timestamp parameter to db_insert()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@184 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin
f909eb53a2
functions.inc.php: change doc block formatting
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@179 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz
e6e0e37a5c
- added function db_insert()
...
- added optional $ignore_errors parameter to db_query()
- db_query() now returns 'error' as additional key in the result array
- renamed $setup to $ignore_errors in db_connect()
- added fallback to $table_key to table_by_key()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@171 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
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
18 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
18 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
18 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