PostfixAdmin for BananaNetwork - to apply required patches before release or release in async to the official version https://github.com/postfixadmin/postfixadmin
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Christian Boltz 51262b7675 DomainHander: on the way to a common interface for all classes and
easy-to-edit field lists. With lots of inspiration from fetchmail.php
and a base class I started 2.5 years ago.

model/DomainHandler.php
- base on PFAHandler (see below)
- new protected variables
  - $id_field (column that contains $username)
  - $struct (field list)
  - $defaults (default values, option lists)
  - $new (switch between new and edit mode)
- change $username to protected (preparation for move to PFAHandler)
- add optional $new parameter to __construct. Targets (not yet implemented):
  - early validation of $username (domain name in this case)
  - if $new == 1, check that item does NOT exist and is a valid domain
  - else: check if item exists. error out if not.
- new function initStruct to fill $id_field, $struct, $defaults
- add():
  - use an array as parameter instead of single parameters
    Advantage: this makes it easy to add another field
  - use _inp_* base validation 
  - create default aliases only in create mode, not in edit mode
- view(): fix error message
- added various TODO notes. Some affect design questions - feedback welcome ;-)

scripts/shells/domain.php:
- change $handler->add call to array usage
- add some TODO notes
- some whitespace fixes in execute()

model/PFAHandler.php:
- new base class for *Handler classes
- contains only some generic input validation for now
- more code will be moved from DomainHandler to PFAHandler later


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@978 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
ADDITIONS list-virtual.php: 15 years ago
DOCUMENTS UPGRADE.txt: 15 years ago
VIRTUAL_VACATION vacation.pl: 15 years ago
admin Finally got rid of admin/ :-) 18 years ago
configs Another step in code cleanup: replaced search.php with search mode in 15 years ago
css css/default.css: 15 years ago
debian updating with build deps 15 years ago
images - add images for calendar JavaScript application 16 years ago
languages ru.lang: 15 years ago
model DomainHander: on the way to a common interface for all classes and 15 years ago
scripts DomainHander: on the way to a common interface for all classes and 15 years ago
smarty smarty.inc.php: 15 years ago
templates adminlistadmin.tpl, adminlistdomain.tpl: 15 years ago
tests model/*, tests/*: 17 years ago
users model/UserHandler.php: fix verifying old password in change_pw() 15 years ago
CHANGELOG.TXT list-virtual.php: 15 years ago
GPL-LICENSE.TXT Initial Import in SourceForge 19 years ago
INSTALL.TXT various documentation updates: 15 years ago
LICENSE.TXT Legal stuff: add notes about the licenses of the libraries we use to LICENSE.TXT 15 years ago
backup.php - big merge of Postfixadmin smarty into trunk 16 years ago
broadcast-message.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
calendar.js - big merge of Postfixadmin smarty into trunk 16 years ago
common.php see changeset:952 ... move php code out of template into here 15 years ago
config.inc.php config.inc.php: 15 years ago
create-admin.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
create-alias-domain.php Remove $username parameter from db_log() 15 years ago
create-alias.php Remove $username parameter from db_log() 15 years ago
create-domain.php list-virtual.php: 15 years ago
create-mailbox.php Remove $username parameter from db_log() 15 years ago
delete.php delete.php: 15 years ago
edit-active-admin.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
edit-active-domain.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
edit-active.php Remove $username parameter from db_log() 15 years ago
edit-admin.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
edit-alias.php Remove $username parameter from db_log() 15 years ago
edit-domain.php list-virtual.php: 15 years ago
edit-mailbox.php Remove $username parameter from db_log() 15 years ago
edit-vacation.php list-virtual.php: 15 years ago
fetchmail.php fetchmail.php: 15 years ago
functions.inc.php Remove $username parameter from db_log() 15 years ago
index.php login.php, index.php: 17 years ago
list-admin.php - fix bug that no admins and domains can be edited. 16 years ago
list-domain.php list-virtual.php: 15 years ago
list-virtual.php fix some undefined variables 15 years ago
login.php reindent; give tMessage a default value (undefined var etc) 15 years ago
logout.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 17 years ago
main.php - big merge of Postfixadmin smarty into trunk 16 years ago
password.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
sendmail.php - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx. 16 years ago
setup.php setup.php: 15 years ago
smarty.inc.php smarty.inc.php: 15 years ago
upgrade.php upgrade.php: 15 years ago
variables.inc.php - big merge of Postfixadmin smarty into trunk 16 years ago
viewlog.php list-virtual.php: 15 years ago
xmlrpc.php model/AliasHandler.php: 15 years ago