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.
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 | 15 years ago | |
| DOCUMENTS | 15 years ago | |
| VIRTUAL_VACATION | 15 years ago | |
| admin | 18 years ago | |
| configs | 15 years ago | |
| css | 15 years ago | |
| debian | 15 years ago | |
| images | 16 years ago | |
| languages | 15 years ago | |
| model | 15 years ago | |
| scripts | 15 years ago | |
| smarty | 15 years ago | |
| templates | 15 years ago | |
| tests | 17 years ago | |
| users | 15 years ago | |
| CHANGELOG.TXT | 15 years ago | |
| GPL-LICENSE.TXT | 19 years ago | |
| INSTALL.TXT | 15 years ago | |
| LICENSE.TXT | 15 years ago | |
| backup.php | 16 years ago | |
| broadcast-message.php | 16 years ago | |
| calendar.js | 16 years ago | |
| common.php | 15 years ago | |
| config.inc.php | 15 years ago | |
| create-admin.php | 16 years ago | |
| create-alias-domain.php | 15 years ago | |
| create-alias.php | 15 years ago | |
| create-domain.php | 15 years ago | |
| create-mailbox.php | 15 years ago | |
| delete.php | 15 years ago | |
| edit-active-admin.php | 16 years ago | |
| edit-active-domain.php | 16 years ago | |
| edit-active.php | 15 years ago | |
| edit-admin.php | 16 years ago | |
| edit-alias.php | 15 years ago | |
| edit-domain.php | 15 years ago | |
| edit-mailbox.php | 15 years ago | |
| edit-vacation.php | 15 years ago | |
| fetchmail.php | 15 years ago | |
| functions.inc.php | 15 years ago | |
| index.php | 17 years ago | |
| list-admin.php | 16 years ago | |
| list-domain.php | 15 years ago | |
| list-virtual.php | 15 years ago | |
| login.php | 15 years ago | |
| logout.php | 17 years ago | |
| main.php | 16 years ago | |
| password.php | 16 years ago | |
| sendmail.php | 16 years ago | |
| setup.php | 15 years ago | |
| smarty.inc.php | 15 years ago | |
| upgrade.php | 15 years ago | |
| variables.inc.php | 16 years ago | |
| viewlog.php | 15 years ago | |
| xmlrpc.php | 15 years ago | |