Commit Graph

  • fbfd7beb1d CHANGELOG.TXT: - big update with all changes since 2.3.x (about 300 lines!) - starts with a TL;DR summary ;-) - still includes some details that need to be checked or finetuned (search for "***") Christian Boltz 2013-12-09 23:24:34 +00:00
  • 77c0fbcb22 upgrade.php: - upgrade_729 - add comment about r1605 changes Christian Boltz 2013-12-09 22:10:55 +00:00
  • 975956b73e upgrade.php: - change {BIGINT} to include "NOT NULL DEFAULT 0" - add {INT} (not used anywhere yet) - upgrade_729: - quota2 table: change "{BIGINT} NOT NULL DEFAULT 0" to "{BIGINT}" to match the above change - note: quota table created with old versions of upgrade.php will not have explicit "NOT NULL DEFAULT 0" for the "current" field (shouldn't hurt) Christian Boltz 2013-12-08 22:12:24 +00:00
  • 8d99a8a9fb DomainHandler: - initStruct(): set valid bool default for backupmx Christian Boltz 2013-12-08 21:30:30 +00:00
  • 635eed201f xmlrpc.php: - setAway(): remove superfluous $reply_type (https://sourceforge.net/p/postfixadmin/patches/113/) Christian Boltz 2013-12-08 21:03:38 +00:00
  • cf8ccc167f xmlrpc.php: - setAway(): add (optional) new parameters for reply_type, interval_time, activeFrom and activeUntil - change $_SESSION['username'] to $_SESSION['sessid']['username'] (that's what postfixadmin expects) Christian Boltz 2013-12-08 20:13:36 +00:00
  • 252ae047d5 various files: - get rid of global $table_* variables, use table_by_key() instead Christian Boltz 2013-12-08 19:41:01 +00:00
  • 9f062cf181 login.php, users/login.php - error_log() failed login attemps https://sourceforge.net/p/postfixadmin/feature-requests/111/ Christian Boltz 2013-12-08 18:45:26 +00:00
  • a9e0638d82 postfixadmin-cli.php: - update help() - comment out commands() - it's outdated and now unused Christian Boltz 2013-12-08 16:32:14 +00:00
  • ae2ed69138 vacation.pl: - encode subject https://sourceforge.net/p/postfixadmin/bugs/272/ https://sourceforge.net/p/postfixadmin/patches/119/ Christian Boltz 2013-12-01 23:33:43 +00:00
  • e2658394a1 vacation.pl: - encode subject https://sourceforge.net/p/postfixadmin/bugs/272/ https://sourceforge.net/p/postfixadmin/patches/119/ Christian Boltz 2013-12-01 23:30:58 +00:00
  • beffb3ec85 r1595 accidently included more changed files than it should. Christian Boltz 2013-12-01 22:29:25 +00:00
  • 57f4ad0b75 functions.inc.php pacrypt(): - for 'system' encryption, use full hashed password as salt https://sourceforge.net/p/postfixadmin/bugs/2/ Christian Boltz 2013-12-01 21:48:14 +00:00
  • bafd2f1f58 edit.php: - use prefill values from $_SESSION (if not provided in GET/POST) - remember prefill values for next usage of the form Christian Boltz 2013-12-01 20:45:17 +00:00
  • 1a35cccf5e list-virtual.php: - remember domain and page browser offset in $_SESSION (fixes 50% of http://sourceforge.net/p/postfixadmin/bugs/298/ ) - various cleanups Christian Boltz 2013-12-01 19:05:14 +00:00
  • c349420210 functions.inc.php - db_query(): do not print out the failed query, error_log() it instead to avoid information leaks. - update SF forum URL Christian Boltz 2013-11-18 22:57:37 +00:00
  • 7bffdc9907 upgrade.php: - convert TODO to a note Christian Boltz 2013-11-16 20:52:01 +00:00
  • 75c2c9cea5 config.inc.php: - add missing $CONF[*_struct_hook] options - add empty defails for various $CONF[*_post*_script] Christian Boltz 2013-11-16 20:38:15 +00:00
  • b947495b09 (follow-up for r1588) Christian Boltz 2013-11-16 20:35:40 +00:00
  • 1688065fca DomainHandler.php: - better error/info messages - remove superfluous (and never displayed) success message in storemore() Christian Boltz 2013-11-16 20:32:37 +00:00
  • 801acc6cf2 AliasHandler: - only allow @domain as target if $this->id is a catchall - delete commented out version of delete() - better error messages Christian Boltz 2013-11-16 20:20:50 +00:00
  • 4e489df526 AliasdomainHandler: - better error messages Christian Boltz 2013-11-16 20:02:14 +00:00
  • c11932e58c MailboxHandler: - use better/translateable messages at various places Christian Boltz 2013-11-16 19:49:40 +00:00
  • 53c28990ad PFAHandler: - read_from_db(): convert $limit and $offset with (int) to make sure they contain a sane value Christian Boltz 2013-11-16 19:10:15 +00:00
  • 79274dcedf AdminHandler: - clear some TODO notes Christian Boltz 2013-11-16 19:02:44 +00:00
  • 20d1ffcafc functions.inc.php: - new function db_pgsql() to replace lots of "if ($CONF[database_type] == 'pgsql')) checks - delete unused function boolconf() Christian Boltz 2013-11-16 00:00:53 +00:00
  • b11ee57e0e de.lang: - better translation for "edit" in various texts Christian Boltz 2013-11-14 23:44:01 +00:00
  • 60297e483c *.lang: - rename pAdminCreate_admin_username_text to email_address - rename pAdminEdit_admin_super_admin to super_admin Christian Boltz 2013-11-14 22:33:56 +00:00
  • 2bf5df92ea functions.inc.php, DomainHandler, MailboxHandler: - move mailbox_postdeletion() to MailboxHandler - move domain_postcreation() and domain_postdeletion() to DomainHandler - adopt those functions for usage inside the *Handler (replace print with $this->errormsg etc.) Christian Boltz 2013-11-14 22:10:05 +00:00
  • 9decae80e9 some CLI cleanup Christian Boltz 2013-11-14 21:48:52 +00:00
  • 72f0818391 scripts/postfixadmin-cli.php - replace usage of Inflector::camelize() with ucfirst() - for our usage, it gives the same result with easier understandable code - remove unused PHP5 define Christian Boltz 2013-11-14 21:15:55 +00:00
  • 84b160bd8e scripts/postfixadmin-cli.php: - add myself to copyright header - whitespace changes in dispatch() Christian Boltz 2013-11-13 19:17:05 +00:00
  • c65e3293b6 Quite big CLI cleanup (and more) Christian Boltz 2013-11-13 19:07:12 +00:00
  • b3dc3f91ae AliasHandler: - if parent::init() fails, return false early to avoid warnings about undefined $this->result Christian Boltz 2013-11-13 00:40:08 +00:00
  • 39001c3ba4 DomainHandler.php: - add some _formatted_*() functions to get a more informative output (currently only used in CLI) Christian Boltz 2013-11-12 21:37:08 +00:00
  • 04cd5c5aa4 model/CliView.php: - new file for CLI 'view' - based on the ViewTask classes in scripts/shells/*.php - introduces usage of *Handler->_formatted_$field() to get "pretty" output for a field (not sure if this is the final solution, but it works ;-) Christian Boltz 2013-11-12 21:32:49 +00:00
  • f1831975c0 CliDelete: - execute() and help() must be public Christian Boltz 2013-11-12 21:19:54 +00:00
  • 0a71a236c2 model/CliDelete.php - new file, handles deleting something with the CLI (based on DeleteTask in scripts/shells/*.php) Christian Boltz 2013-11-12 19:32:12 +00:00
  • b871b47709 As a side effect of the previous commit (r1568), we can use login.php for logout. Christian Boltz 2013-11-11 00:13:31 +00:00
  • fbc18ff993 login.php, common.php: - when login.php is requested, logout the current admin/user https://sourceforge.net/p/postfixadmin/bugs/284/ Christian Boltz 2013-11-11 00:06:27 +00:00
  • 288ba0e143 DomainHandler.php - delete(): check if the domain is an alias domain target - if yes, do not allow to delete it - better error message if domain_postdeletion() fails Christian Boltz 2013-11-10 23:05:43 +00:00
  • e079e85461 editactive.php: - new, small script to change the 'active' status - also include CSRF protection token Christian Boltz 2013-11-10 22:22:22 +00:00
  • 508d05e1ed AdminHandler.php, AdminpasswordHandler.php: - initMsg(): better texts for error_already_exists and error_does_not_exist Christian Boltz 2013-11-10 22:00:16 +00:00
  • 1a79b2798e delete.php: - require token for CSRF protection, see https://sourceforge.net/p/postfixadmin/bugs/269/ Christian Boltz 2013-11-10 21:17:17 +00:00
  • 4847173755 delete.php: - use *Handler for deletion (which also means delete.php only has 17 lines of code now - 130 lines less than before :-) Christian Boltz 2013-11-10 19:52:49 +00:00
  • 3b09562fb8 MailboxHandler.php: - rewrite and simplify delete() - also cleanup fetchmail, quota and quota2 tables Christian Boltz 2013-11-10 19:38:43 +00:00
  • bcb38c9664 AliasdomainHandler: - implement delete() - rename _field_target_domain() to _validate_target_domain() (follow-up for r1555) Christian Boltz 2013-11-10 18:55:23 +00:00
  • 2f26624ceb DomainHandler.php, AdminHandler.php: - implement delete() Christian Boltz 2013-11-10 17:26:47 +00:00
  • 5871516b47 model/Config: - read_f(): fix error logging - $var can be an array Christian Boltz 2013-11-10 16:00:20 +00:00
  • 6e2e132bac remove "postfixadmin.com" in comments in lots of files Christian Boltz 2013-11-10 15:57:32 +00:00
  • 3c59557a6f list-virtual.php: - make "unknown" translateable Christian Boltz 2013-11-10 15:41:13 +00:00
  • 49573da2d7 PFAHandler: - make error messages in _inp_*() translateable - make date format in SQL "translateable" Christian Boltz 2013-11-08 21:49:53 +00:00
  • 1b74926afb PFAHandler, *Handler: - rename _field_$field() to _validate_$field() to make the function name more obvious Christian Boltz 2013-11-08 21:26:46 +00:00
  • d900835997 functions.inc.php: - pacrypt(): fix dovecot:* to work with "old" passwords that don't have the {method} prefix Christian Boltz 2013-11-01 19:54:25 +00:00
  • 8df6e37dcf setup.php: - fix displaying the success message for creating a new admin Christian Boltz 2013-11-01 19:08:32 +00:00
  • 2dc71b6c9f templates/index.tpl: - replace {php} usage (which is no longer allowed since switching from SmartyBC to Smarty) with $smarty.server Christian Boltz 2013-11-01 13:35:09 +00:00
  • 949d58e5c4 config.inc.php: - remove unused $CONF['usercontol'] which leaked in with an unrelated patch in r1374 - fixed some typos in comments Christian Boltz 2013-10-31 21:58:14 +00:00
  • 462cb6992f AdminpasswordHandler: - initStruct(): remove description for current password - it doesn't exist in $PALANG and we don't really need a description here Christian Boltz 2013-10-31 21:05:54 +00:00
  • f748f31137 model/Config.php: - Config::read(): error_log() attemps to read undefined config options Christian Boltz 2013-10-31 21:02:04 +00:00
  • c6ca4f9bae common.php: - call Config::write() earlier, because check_language() uses it - later add $PALANG with Config::write(__LANG) Christian Boltz 2013-10-31 20:52:45 +00:00
  • b137e774f6 functions.inc.php: - check_language(): remove things like ";q=0.8" before checking if a language exists Christian Boltz 2013-10-31 20:38:14 +00:00
  • 4785426269 scripts/inflector.php: - remove unused function variable() Christian Boltz 2013-10-19 20:48:00 +00:00
  • 4fb4ee264a delete some outdated and no longer needed files in snippets/ : Christian Boltz 2013-10-19 20:31:40 +00:00
  • ee90f4a74e smarty.inc.php: - move header() calls from index.tpl to smarty.inc.php, which means we no longer need to use SmartyBC class - use Smarty instead of SmartyBC class - eval_size(): use Config::Lang instead of $PALANG Christian Boltz 2013-10-19 20:12:02 +00:00
  • d4a34b557d login.php: - use AdminHandler to find out if the logged in user is a superadmin - add hint about config.local.php in "unconfigured" warning - move some lines around to match users/login.php Christian Boltz 2013-10-19 19:19:56 +00:00
  • f02b781376 backup.php: - move "unmaintained" warning to templates/backupwarning.tpl (that's the easiest way to have working HTML tags) - remove <p> tag from pgsql error message Christian Boltz 2013-10-19 18:58:59 +00:00
  • 8ea4fd6c82 AliasdomainHandler.php: - better error/success messages - cleanup TODO notes Christian Boltz 2013-10-19 18:45:41 +00:00
  • e96544e815 model/PFAHandler.php, setup.php: - use Config::lang_f() for $this->msg['successmessage'] Christian Boltz 2013-10-13 22:07:15 +00:00
  • 21aea632b7 model/PFAHandler.php: - use Config::lang_f() for msg['store_error'] Christian Boltz 2013-10-13 20:33:48 +00:00
  • e809d2c651 MailboxHandler.php: - _missing_maildir(): fix forgotten $CONF usage - cleanup outdated TODO notes Christian Boltz 2013-10-13 20:07:34 +00:00
  • ff5dbe0099 edit.php: - fix "undefined index hardcoded_edit" message (only set in AdminpasswordHandler) Christian Boltz 2013-10-13 19:08:32 +00:00
  • 4d9a338eb2 After hunting an "undefined index transport" error in list-domain, I found out that the 'Config' class is too static - it shares its static data with the 'Lang' child class. Christian Boltz 2013-10-13 18:11:18 +00:00
  • f2c2b554ac model/PFAHandler.php: - getList: change return value to be always true (even if the database result is an empty array), and die() if the database result is not an array. This avoids some if blocks in various files to implement a fallback to array() on empty results. Christian Boltz 2013-10-13 16:11:15 +00:00
  • bb7a3ff04d model/*Handler.php and various other files - rename $this->return to $this->result Christian Boltz 2013-10-13 15:26:37 +00:00
  • f38b10cd61 PFAHandler.php: - set(): make "field $key is missing" translateable - store(): call db_log() even if storemore() failed Christian Boltz 2013-10-09 20:11:06 +00:00
  • 43f2591d93 functions.inc.php: - smtp_get_admin_email(), domain_postcreation(), domain_postdeletion(): use Config::read instead of $CONF - smtp_get_response(): whitespace fixes Christian Boltz 2013-10-08 19:30:28 +00:00
  • ba7ebe7adb scripts/shells/shell.php: - disable some unused code Christian Boltz 2013-10-07 20:09:03 +00:00
  • ade5fd0c24 AliasHandler: - initStruct(): set default for 'goto' to empty array() This fixes a problem with the cli when --goto was not specified Christian Boltz 2013-10-07 20:01:52 +00:00
  • f444de402b functions.inc.php: - pacrypt(), dovecot:* method: - allow "." in dovecot method (to allow a suffix like ".b64") - blacklist SCRAM-SHA-1 (needs -u) - check against list of non-salted methods to be backward compatible with dovecot < 2.1 again Thanks to Szilagyi Jozsef <szjozsef AT yahoo DOT com> for providing the list of non-salted methods etc. Christian Boltz 2013-10-07 18:42:59 +00:00
  • 6ea8b370c0 CliEdit.php: - make help text (slightly) different for add vs. update Christian Boltz 2013-10-06 22:35:02 +00:00
  • 1c27ab9074 postfixadmin-cli.php: - __initConstants(): substr() is a bad idea to find the parent directory. Use dirname() instead. Christian Boltz 2013-10-06 21:00:29 +00:00
  • 41a2b72e6d postfixadmin-cli.php - remove function PostfixAdmin - __construct() is enough ;-) and having both caused a redefinition warning Christian Boltz 2013-10-06 20:22:12 +00:00
  • 5d4240ce52 functions.inc.php: - pacrypt: digest-md5 hashes include the username - until someone implements it, let's declare it as unsupported and error out Christian Boltz 2013-10-03 20:29:54 +00:00
  • 0d6f9ff99f functions.inc.php: - pacrypt(): some small changes after Szilagyi Jozsef's patch: - comment out unused $crypt_method - change $dovecotpw default to "doveadm pw" (unrelated to the patch) - set $dovepasstest to "-t $pw_db" instead of having two similar command lines, and also shellescapearg() $pw_db - use "if (empty($dovepasstest))" instead of "if (empty($pw_db))" Christian Boltz 2013-10-03 20:01:31 +00:00
  • 161d387485 - pacrypt(): add support for dovecot *-CRYPT passwords Christian Boltz 2013-10-03 18:53:34 +00:00
  • c2ccffb76c functions.inc.php: - mailbox_postdeletion(): use Config::read instead of global $CONF Christian Boltz 2013-10-03 18:35:30 +00:00
  • 8e3c1822a6 upgrade.php: - upgrade_318_mysql(): mark vacation_notification.notified field as latin1 to avoid overlong index (no upgrade function needed - if it broke before, upgrade.php bailed out) http://sourceforge.net/p/postfixadmin/discussion/676076/thread/0c919cfd/ Christian Boltz 2013-09-12 20:07:41 +00:00
  • 48ebe9c317 create-mailbox.php: - trim() localpart to avoid mailbox names with leading space Christian Boltz 2013-09-12 19:55:37 +00:00
  • b985816baa fetchmail: add sslcertck, sslcertpath, sslfingerprint Christian Boltz 2013-08-18 18:40:57 +00:00
  • 5f94773ae4 MailboxHandler: - fix syntax error :-/ Christian Boltz 2013-08-07 21:46:53 +00:00
  • 7b6f3e56cb MailboxHandler.php: - create_mailbox_subfolders(), check_quota(): use class variables instead of parameters - create_mailbox_subfolders(): remove check for empty $this-id - this can never happen because it would fail much earlier in the class - check_quota(), allowed_quota(), mailbox_post_script(), create_mailbox_subfolders(): mark as protected Christian Boltz 2013-08-07 20:58:02 +00:00
  • f9506d97b1 MailboxHandler.php: - new function mailbox_post_script() - result of merging mailbox_postcreation() and mailbox_postedit(), replaces those two functions - drop all parameters, read them from class variables instead - store warn message in $this->errormsg[] instead of using print - changed function calls to use mailbox_post_script() Christian Boltz 2013-08-07 20:39:37 +00:00
  • 73a793433e moved the following functions from functions.inc.php to MailboxHandler.php: - check_quota () - allowed_quota() - mailbox_postcreation() - mailbox_postedit() - create_mailbox_subfolders() Christian Boltz 2013-08-07 20:05:18 +00:00
  • ecc84a1486 functions.inc.php: check_quota() mailbox_postcreation() mailbox_postedit() create_mailbox_subfolders() - use Config::read() / Config::bool() instead of $CONF - update comment header - some minor changes to make the code better readable Christian Boltz 2013-08-07 19:34:17 +00:00
  • 08c9b4e49f *.lang: - renamed some $PALANG texts: - pOverview_button => go - pOverview_mailbox_name => name - pSendmail_admin => from - pAdminEdit_admin_username => admin - pEdit_alias_goto => to - deleted obsolete or duplicate $PALANG texts: - pOverview_alias_goto - pCreate_alias_goto - pEdit_alias_button - pEdit_mailbox_name - pEdit_mailbox_button - pViewlog_username - pViewlog_button - pAdminList_admin_username - pAdminList_virtual_button - pAdminList_virtual_alias_address - pAdminList_virtual_alias_goto - pAdminList_virtual_mailbox_name - pAdminEdit_domain_button - pAdminEdit_admin_button - pBroadcast_from - pBroadcast_send Christian Boltz 2013-07-29 22:08:07 +00:00
  • 1c16c52086 *.lang: - remove unused $PALANG texts: - $PALANG['pCreate_dbLog_createmailbox'] - $PALANG['pCreate_dbLog_createalias'] - $PALANG['pDelete_dbLog_deletealias'] - $PALANG['pDelete_dbLog_deletemailbox'] - $PALANG['pEdit_dbLog_editalias'] - $PALANG['pEdit_dbLog_editmailbox'] Christian Boltz 2013-07-29 21:19:45 +00:00
  • 76f66ac8db *.lang: - rename some $PALANG variables once more because smarty breaks when using "-" - add-alias => add_alias - add-alias-domain => add_alias_domain - add-mailbox => add_mailbox - email-address-already-exists => email_address_already_exists - change-password => change_password - password-again => password_again Christian Boltz 2013-07-28 22:51:28 +00:00
  • 9c0004a431 *.lang: - rename various $PALANG texts: - pMenu_create_alias => add-alias - pMenu_create_alias_domain => add-alias-domain - pMenu_create_mailbox => add-mailbox - pOverview_get_mailboxes => mailboxes - pPassword_button => change-password - pAdminList_domain_description => description - pAdminList_domain_aliases => aliases - pAdminEdit_domain_transport => transport - pAdminEdit_admin_password2 => password-again - remove duplicate or unused $PALANG texts: - pOverview_alias_alias_count - pOverview_alias_mailbox_count - pOverview_get_aliases - pCreate_alias_domain_button - pCreate_alias_welcome - pCreate_alias_button - pCreate_mailbox_password2 - pCreate_mailbox_quota_text_error - pCreate_mailbox_button - pAdminMenu_viewlog - pAdminMenu_create_alias - pAdminMenu_create_mailbox - pAdminList_domain_mailboxes - pAdminList_domain_transport - pAdminList_virtual_welcome - pAdminList_virtual_alias_alias_count - pAdminList_virtual_alias_mailbox_count - pAdminList_virtual_mailbox_username - pAdminList_virtual_mailbox_quota - pAdminEdit_domain_description - pAdminEdit_domain_aliases - pAdminEdit_domain_mailboxes - pAdminEdit_domain_mailboxes_text - pUsersMenu_password Christian Boltz 2013-07-28 22:33:35 +00:00
  • 61c5920c46 *.lang: - rename $PALANG['pUsersVacation_body'] to $PALANG['message'] - remove duplicate $PALANG['pBroadcast_message'] Christian Boltz 2013-07-28 20:34:30 +00:00
  • 2c96ba8827 *.lang: - rename -$PALANG['pSendmail_subject'] to +$PALANG['subject'] - remove duplicate -$PALANG['pUsersVacation_subject'] and -$PALANG['pBroadcast_subject'] = 'Subject'; Christian Boltz 2013-07-28 20:27:53 +00:00