You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-09-01 16:01:55 +03:00
added some things to model class
added user_model.php for user handling added user_controller.php for controlling user missgin view for output. git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@933 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
24
scripts/snippets/user_model.php
Normal file
24
scripts/snippets/user_model.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
|
||||
class UserModel extends Model {
|
||||
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->table = 'mailbox';
|
||||
$this->columns = array('username' => array('varchar(255)', false),
|
||||
'password' => array('varchar(255)', false),
|
||||
'name' => array('varchar(255)', false),
|
||||
'maildir' => array('varchar(255)', false),
|
||||
'quota' => array('bigint', false, 0),
|
||||
'local_part' => array('varchar(255)', false),
|
||||
'domain' => array('varchar(255)', false),
|
||||
'created' => array('datetime', false),
|
||||
'modified' => array('datetime', false),
|
||||
'active' => array('tinyint(1)', false, 1) );
|
||||
$this->coloumn_id = 'username';
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user