Commit Graph

  • e0f8d2d8b4 setup.php: - fix double inclusion of config.inc.php https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3539027&group_id=191583 Christian Boltz 2012-06-30 11:07:57 +00:00
  • df777553d9 templates/login.php: - typo fix - focus the username input field https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3538192&group_id=191583 Christian Boltz 2012-06-26 18:57:11 +00:00
  • 0f672c7fb7 config.inc.php: - $CONF[encrypt]: add warning about salted dovecot:* methods Christian Boltz 2012-06-21 22:12:07 +00:00
  • 26b136ae8e templates/footer.php: - replace footer link with link to postfixadmin.sf.net Christian Boltz 2012-06-21 19:58:25 +00:00
  • f317ab41a7 footer.tpl: - replace link to postfixadmin.com with postfixadmin.sf.net Christian Boltz 2012-06-21 19:54:39 +00:00
  • 4dfe1db68e vacation.pl: - fix typo (reported by Jan Kruis on the mailinglist) Christian Boltz 2012-06-03 19:33:52 +00:00
  • ae61ee180f functions.inc.php: - check_owner(): with AdminHandler, we can get 2 results (ALL + a domain). Relax the check to accept this case. Christian Boltz 2012-06-02 22:13:27 +00:00
  • a63b80fb23 create-mailbox.php: - do not escape the password coming from $_POST. Fixes https://sourceforge.net/tracker/index.php?func=detail&aid=3094804&group_id=191583&atid=937964 Christian Boltz 2012-05-28 20:26:43 +00:00
  • 17911b75d2 functions.inc.php: - pacrypt(): no longer escape_string() the result. This fixes https://sourceforge.net/tracker/index.php?func=detail&aid=3094804&group_id=191583&atid=937964 Christian Boltz 2012-05-28 20:05:48 +00:00
  • 57b28f1ae2 config.inc.php: - remove the (now superfluous) $CONF['postfix_admin_url'] config option Christian Boltz 2012-05-28 18:07:33 +00:00
  • 89ffcbf25f smarty.inc.php: - replace (last) usage of $CONF['postfix_admin_url'] with $rel_path (relative path to CSS etc., set to '../' in users/*) Christian Boltz 2012-05-28 18:01:31 +00:00
  • 40011a1a98 functions.inc.php: - authentication_require_role(): no longer use $CONF['postfix_admin_url'] https://sourceforge.net/tracker/?func=detail&aid=3039042&group_id=191583&atid=937964 Christian Boltz 2012-05-28 17:43:39 +00:00
  • d17fb42cde AdminHandler.php: - initStruct(): - pgsql doesn't support group_concat, so we need a database-dependent query to list the domains :-/ - change some "..." to '...' to make them pgsql-compatible Christian Boltz 2012-05-28 17:32:49 +00:00
  • a6a3483569 Some things are easier than you might think... Christian Boltz 2012-05-28 17:27:17 +00:00
  • 47bc9bb2ad upgrade.php: - _pgsql_field_exists(), _mysql_field_exists(): Those functions are always called with the expanded table name - don't expand it twice. (The better solution would be to change all calling code to provide non-expanded tablenames, but that's more work.) Christian Boltz 2012-05-28 15:50:25 +00:00
  • a211a95c39 functions.inc.php: - check_email(): don't trim() mail address to avoid that aliases starting with a space are allowed. This fixes https://sourceforge.net/tracker/?func=detail&aid=3066059&group_id=191583&atid=937964 Christian Boltz 2012-05-27 19:06:37 +00:00
  • 05d502558f add a friendly from address to vacation messages; probably needs more work to beautify it though...; change error handling if we cannot send the reply to be hopefully more robust David Goodwin 2012-05-24 11:14:58 +00:00
  • 954b18c169 functions.inc.php - create_page_browser(): revert r1387 and... - db_query(): ...replace it with the correct fix ;-) (avoid mysqli reconnects) Christian Boltz 2012-05-13 21:09:03 +00:00
  • 182c67e1cd functions.inc.php: - create_page_browser(): include MOD(idx.row, $page_size) in outer SELECT. This is needed on some MySQL setups which otherwise return an empty set. Christian Boltz 2012-05-11 23:12:03 +00:00
  • 102cb4ed50 functions.inc.php: - change list_admins() to use AdminHandler (code from list-admin.php) Note: this changes the return value format to include all details, not only the usernames. Use array_keys(list_admins()) if you need the previous return format. Christian Boltz 2012-05-07 22:53:04 +00:00
  • 232cee9d5f PFAHandler: - make PFAHandler an "abstract class" - add functions that must be implemented by every *Handler class as abstract functions: - abstract protected function initStruct(); - abstract protected function initMsg(); - abstract public function webformConfig(); - abstract protected function validate_new_id(); - lots of additional comments Christian Boltz 2012-05-06 20:01:32 +00:00
  • 4bb441d45d PFAHandler: - mark _inp_* functions as protected Christian Boltz 2012-05-06 18:36:03 +00:00
  • e36c3e2a23 PFAHandler.php: - add lots of comments - sort variables into categories - public variables (currently only errorMsg) - must be defined in *Handler classes - set by methods - (no "real" code changes) Christian Boltz 2012-05-05 23:09:29 +00:00
  • ca8c27ae93 AliasHandler.php: - initStruct(): add 'editable' virtual field - add various comments Christian Boltz 2012-04-29 20:52:30 +00:00
  • 4635480afd de.lang, it.lang: - replace htmlentities with the actual character Christian Boltz 2012-04-29 19:12:33 +00:00
  • ded2dcb640 templates/list-virtual_alias.tpl: - use edit.php to enable/disable aliases (instead of edit-active.php) - merge/simplify conditions for "editable"/check_alias_owner - use {#url_create_alias#} instead of hardcoded edit.php - some whitespace changes Christian Boltz 2012-04-29 16:37:37 +00:00
  • ebc3536a2e edit.php: - hand over $handler->errormsg to flash_error() as array (avoids various foreach or join calls) - drop variable $mode, instead set smarty $mode directly based on $new - comment updates Christian Boltz 2012-04-29 15:08:23 +00:00
  • b3cdbfe88a functions.inc.php: - _flash_string(): also accept an array of messages, not only a string - comment updates for _flash_info() and flash_error() to reflect this change Christian Boltz 2012-04-29 14:39:41 +00:00
  • a9f252baea functions.inc.php: - delete unused function db_boolean_to_int() Christian Boltz 2012-04-29 13:34:59 +00:00
  • f535a0f66f Updating trunk also to current Debian packaging... Norman Messtorff 2012-04-26 19:57:20 +00:00
  • 5bf33a2500 Updated to current Debian package (now accepted official in Debian/testing, yay\!) postfixadmin-2.3.5 Norman Messtorff 2012-04-26 19:51:28 +00:00
  • 87f33d95ae patch from Jan Kruis - see http://sourceforge.net/tracker/?func=detail&aid=3520749&group_id=191583&atid=937966 (Tracker id 3520749) ; thank you! David Goodwin 2012-04-23 20:57:54 +00:00
  • ef80736445 Merge jan-kruis's vacation interval reply behaviour - see SF patch 3508083 - https://sourceforge.net/tracker/?func=detail&aid=3508083&group_id=191583&atid=937966 ; Thank you David Goodwin 2012-04-19 21:55:36 +00:00
  • 76efcb2c47 merge of patch from maharaja - delete old vacation_notifications - see https://sourceforge.net/tracker/?func=detail&aid=3323227&group_id=191583&atid=937966 David Goodwin 2012-04-19 21:19:15 +00:00
  • 3d3d61963b vacation.pl: refactor duplicated sql into a function (check_for_vacation($x)) - thanks to jan kruis for submitting this - see https://sourceforge.net/tracker/?func=detail&aid=3507319&group_id=191583&atid=937966 David Goodwin 2012-04-19 21:10:42 +00:00
  • d5803088aa vacation.pl: merge in patch from ichier (thank you) - see patch 3371641 - https://sourceforge.net/tracker/?func=detail&aid=3371641&group_id=191583&atid=937966 David Goodwin 2012-04-19 21:00:39 +00:00
  • 3b920fc442 functions.inc.php: - remove_from_array() was accidently wrapped by if (!function_exists('hex2bin')) Christian Boltz 2012-04-15 20:46:29 +00:00
  • 31b94156c4 functions.inc.php: - delete leftover comment from (long time deleted) function create_admin() Christian Boltz 2012-04-15 18:58:18 +00:00
  • 2e503a3867 MailboxHandler.php: - initStruct() / $struct: - add various labels - make local_part and domain editable on $new - fill domain option list with allowed_domains - add 'welcome_mail' (bool, not in database) for $new - webformConfig(): - change $struct to display localpart + domain instead of username on $new - disable early_init (not needed for mailboxes) - add function mergeId() - add function _field_password2 (to compare password/password2) - drop deprecated function change_pass() Christian Boltz 2012-04-09 22:43:30 +00:00
  • b58d398cf2 AdminHandler: - initStruct(): add explanation what "superadmin" means https://sourceforge.net/tracker/?func=detail&aid=1865123&group_id=191583&atid=937964 Christian Boltz 2012-04-09 20:17:58 +00:00
  • 4b7929626a *.lang: - new text: pViewlog_action_edit_vacation (log entry for "edit vacation") - new text super_admin_desc (explanation what "superadmin" means) https://sourceforge.net/tracker/?func=detail&aid=1865123&group_id=191583&atid=937964 Christian Boltz 2012-04-09 20:17:19 +00:00
  • db8c2df6bc PFAHandler: - set(): call $this->_missing_$fieldname() if a field is not set on $new - new function set_default_value() - typically called from _missing_$fieldname to set the default from $struct Christian Boltz 2012-04-09 20:01:40 +00:00
  • 489f7a4155 templates/list-virtual_alias_domain.tpl, templates/list-virtual_alias.tpl: - remove limit={$current_limit|escape:"url"} which isn't set anywhere Christian Boltz 2012-04-09 17:56:21 +00:00
  • e60ede3fbf list-virtual: - if used quota is unknown, display "unknown" instead of "undefined index" Christian Boltz 2012-04-09 17:55:00 +00:00
  • 306c5a9688 PFAHandler: - add function compare_password_fields() - compares if two fields contain the same password (based on _field_password2() from AdminHandler) and use pEdit_mailbox_password_text_error as error message because it doesn't contain "... or empty" Christian Boltz 2012-04-09 15:41:39 +00:00
  • 56a8d1c52f MailboxHandler: - start rewrite based on PFAHandler - add initStruct(), initMsg(), webformConfig(), validate_new_id(), create_allowed() - drop old __construct() and view() - replace $this->username with $this->id - replace check of old password in change_pw() with $this->login Christian Boltz 2012-04-09 15:02:16 +00:00
  • 19c6748988 VacationHandler: - move getVacationAlias to AliasHandler (the only code that uses it) Christian Boltz 2012-04-09 02:00:10 +00:00
  • e9d8fa1ff9 remove obsolete functions from AliasHandler (part 2/2) Christian Boltz 2012-04-09 01:48:04 +00:00
  • fff6654634 AliasHandler: - remove deprecated functions get() and hasStoreAndForward() Christian Boltz 2012-04-09 01:06:52 +00:00
  • e4d5d4574e VacationHandler: - use new *Handler syntax to add/remove vacation alias (implemented as function updateAlias() to avoid code duplication) Christian Boltz 2012-04-09 00:34:26 +00:00
  • 54deb1fb23 list-virtual.php: - pagebrowser: current page is no longer a link Christian Boltz 2012-04-08 23:18:29 +00:00
  • 27ebaa1ce4 list-virtual.php: - use AliasHandler instead of direct SQL queries Christian Boltz 2012-04-08 23:11:46 +00:00
  • b99adf6237 PFAHandler: - add support for LIMIT/OFFSET to getList() Christian Boltz 2012-04-08 23:07:22 +00:00
  • d03e239515 list-virtual.php: - use AliasdomainHander instead of doing direct database queries - add search support for alias domains - display "create alias domain" button only if this is possible - always assign $tAliasDomains smarty variable (even if empty) to avoid warnings - always escape $fDomain (even if it comes from $list_domains) - rename $SESSID_USERNAME to $admin_username Christian Boltz 2012-04-08 22:20:55 +00:00
  • 50c7044f72 AliasHandler: - if the alias points to the mailbox, don't display the "empty goto" error message Christian Boltz 2012-04-08 21:25:25 +00:00
  • 9aebf298d3 templates/list-virtual_alias.tpl, templates/list-virtual_mailbox.tpl: - change edit-alias.php links to edit.php?table=alias Christian Boltz 2012-04-08 21:18:27 +00:00
  • cb0cf81b5a AliasHandler: - add handling for $CONF[alias_control_admin] in init() Christian Boltz 2012-04-08 21:17:56 +00:00
  • 9b2da37d84 AliasHandler: - setmore(): keep/(re-)add vacation and mailbox alias to goto - hide 'goto_mailbox' if the alias does not belong to a mailbox (done in initStruct for $new, otherwise in init()) Christian Boltz 2012-04-08 20:16:53 +00:00
  • e66bb02b84 AliasHandler.php: - $struct: add is_mailbox (does the alias belong to a mailbox?) - $struct: add goto_mailbox (if the alias is a mailbox, does it point to the mailbox or is it forward-only?) - set goto_mailbox in read_from_db_postprocess() Christian Boltz 2012-04-08 17:41:02 +00:00
  • 2f3d4bcb9c users/edit-alias.php: - remove unused variable $USERID_DOMAIN Christian Boltz 2012-04-08 16:38:26 +00:00
  • 060b101d69 upgrade.php: - add \n after "Upgrading database" lines - that makes the output readable if setup.php is called in a console instead a webbrowser Christian Boltz 2012-03-27 19:56:42 +00:00
  • 3fc6c84e13 AliasHandler.php: - initStruct(): add 'on_vacation' - read_from_db_postprocess(): split off vacation alias from $goto and store vacation status in on_vacation (honors the vacation alias only, not the details from the vacation table) Christian Boltz 2012-02-03 23:53:58 +00:00
  • b0277b6c03 functions.inc.php - new function remove_from_array() Christian Boltz 2012-02-03 23:43:45 +00:00
  • c7d48cbf55 templates/list-virtual, templates/admin_list-domain: - display domain and mailbox description with correct encoding This fixes a regression in 2.3.5 https://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/4977778 Christian Boltz 2012-02-02 19:49:30 +00:00
  • fd0063bb6a fix these to aid future building David Goodwin 2012-01-25 22:39:45 +00:00
  • ecf55d9eb1 stupid dpkg; see http://blog.gauner.org/blog/2010/12/06/debsign-clearsing-failed-secret-key-not-available/ David Goodwin 2012-01-25 22:26:28 +00:00
  • 907c1b88d7 fix rules file, perhaps David Goodwin 2012-01-25 22:21:12 +00:00
  • 1f05f674d7 update debian/changelog to fix signing David Goodwin 2012-01-25 21:47:17 +00:00
  • d6d5decebe create 2.3.5 release tag Christian Boltz 2012-01-15 12:12:50 +00:00
  • 339d585ac2 functions.inc.php - update release number to 2.3.5 Christian Boltz 2012-01-15 12:10:59 +00:00
  • 894d83d3e1 Merged debian/* stuff from trunk to postfixadmin-2.3 branch Norman Messtorff 2012-01-15 11:52:31 +00:00
  • fac93bf28b functions.inc.php: - pacrypt(): escape_string() $salt for mysql_encrypt to be on the safe side Christian Boltz 2012-01-15 11:22:31 +00:00
  • 4e5bd47183 functions.inc.php: - pacrypt(): escape_string() $salt for mysql_encrypt to be on the safe side Christian Boltz 2012-01-15 11:22:01 +00:00
  • e3b242e4d8 flash_error.tpl: - html-escape flash_info() / flash_error() messages to fix XSS if the message contains user-supplied input (thanks to Filippo Cavallarin for the report) Christian Boltz 2012-01-11 21:46:41 +00:00
  • bf0892aa9c More XSS fixes: Christian Boltz 2012-01-11 21:42:19 +00:00
  • d60276e864 functions.inc.php: - PHP around 5.3.8 includes hex2bin as native function - http://php.net/hex2bin therefore we have to wrap our function (which fortunately gives the same results) with function_exists(). Reported by MadOtis on #postfixadmin Christian Boltz 2012-01-11 18:45:10 +00:00
  • 19b9535e43 functions.inc.php: - PHP around 5.3.8 includes hex2bin as native function - http://php.net/hex2bin therefore we have to wrap our function (which fortunately gives the same results) with function_exists(). Reported by MadOtis on #postfixadmin Christian Boltz 2012-01-11 18:40:58 +00:00
  • cb640c87c1 fix sql injection in pacrypt() when mysql_crypt is in use; see previous commits etc esp in the 2.3 branch David Goodwin 2012-01-10 23:03:38 +00:00
  • 1a9104cab4 sql injection fix - ported back to trunk from branches/2.3 ... David Goodwin 2012-01-10 22:55:09 +00:00
  • 71f7b03801 update CHANGELOG.TXT with latest commits/fixes Christian Boltz 2012-01-10 20:30:15 +00:00
  • 638f2755eb edit-vacation.php, templates/edit-vacation.php: - only urlencode() $fDomain, not the whole fCanceltarget (otherwise the ? is also encoded, which results in a 404 error) Christian Boltz 2012-01-10 20:01:23 +00:00
  • 8f5047cb20 templates/admin_create-domain.php: - fix XSS in domain and description field (Thanks to Filippo Cavallarin!) Christian Boltz 2012-01-10 19:39:29 +00:00
  • 5c4d9e48bd escape provided url better (fix XSS vuln) - thanks to Flippo Cavallarin for reporting this David Goodwin 2012-01-10 16:09:38 +00:00
  • 9fb0f040c9 fix xss from poor sanitisation/checking of $_GET[domain], thanks to Flippo Cavallarin for reporting this David Goodwin 2012-01-10 16:08:48 +00:00
  • 9dd00fb0a7 fix sql injection hole where value fields were not being escaped in the stored file - (thanks to Filippo Cavallarin) David Goodwin 2012-01-10 15:46:25 +00:00
  • d8895ccdc2 fix sql injection hole in pacrypt if $CONF[encrypt] == mysql_encrypt (thanks to Filippo Cavallarin) David Goodwin 2012-01-10 15:38:35 +00:00
  • 51ddbd2f2e list-domain.php: - add missing $condition paramter in DomainHander->getList() call Christian Boltz 2012-01-10 00:33:35 +00:00
  • e719c6c4dd create-alias.php: - deleted, obsoleted by edit.php?table=alias Christian Boltz 2012-01-10 00:30:01 +00:00
  • 088fef9bdb AliasHandler.php: - override init() - change '*@domain' -> '@domain', then call parent::init() - validate_new_id(): allow catchall ('@domain'), check only domain in this case - create_allowed(): copy of check_alias() from functions.inc.php, with superfluous { ... } removed - remove forgotten debugging from mergeId() - _field_goto(): - allow '@domain' targets (domain-wide forward) - use an array to collect error messages - that avoids 'uninitialized' warnings and allows to easily change the join() glue if needed Christian Boltz 2012-01-10 00:07:09 +00:00
  • 78c07dbd42 debian/rules: - New target prep: Create a needed tar.gz file to build a non-nativ .dpkg - New target build-package: Call this target to build a shiny new .dpkg file. Norman Messtorff 2011-12-27 22:48:37 +00:00
  • a79d0d4c79 postfixadmin.postrm: - Call wwwconfig scripts only if they are existing. Norman Messtorff 2011-12-27 18:39:59 +00:00
  • d39a802d00 AliasHandler now works with edit.php in many cases (TODO: catchall handling, mailbox and vacation aliases) Christian Boltz 2011-12-27 18:13:32 +00:00
  • da9a69dd0d AliasHandler.php: - add initStruct() (not the final version, but works for now) - add initMsg() - replace $this->username with $this->id everywhere - drop __construct() - default __construct will be used now Christian Boltz 2011-12-26 20:54:40 +00:00
  • b8812686aa AliasdomainHandler.php, PFAHandler.php: - move empty storemore() function from AliasdomainHandler to PFAHandler Christian Boltz 2011-12-26 18:27:25 +00:00
  • 0c42306267 list-virtual_alias_domain.tpl: - use edit.php to switch active status for alias domains Christian Boltz 2011-12-26 16:26:30 +00:00
  • 5416e93e5a adminlistadmin.tpl: - use edit.php to switch active status for domains Christian Boltz 2011-12-26 16:08:24 +00:00
  • 91f613db5f adminlistdomain.tpl: - use edit.php to switch active status for domains - display backupmx and active status as yes/no instead of 1/0 Christian Boltz 2011-12-26 16:02:14 +00:00
  • 2beac12971 edit.php: - implement switching active status using *Handler (uses additional 'active' url parameter, which must be 0 or 1) - document GET parameters Christian Boltz 2011-12-26 15:56:11 +00:00
  • d73e59fd8f Some more lintian fixes: - control: added php5-cli dependency - rules: some permission fixes to postfixadmin-cli scripts - postfixadmin.docs: removed redundant changelog file Norman Messtorff 2011-12-24 13:18:14 +00:00
  • 18b8564b64 Make $struct in the *Handler classes customizeable Christian Boltz 2011-12-20 23:07:34 +00:00