0 id must match with id of current user $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete $form["tabs"]['software_repo'] = array ( 'title' => "Repository", 'width' => 80, 'template' => "templates/software_repo_edit.htm", 'fields' => array ( //################################# // Beginn Datenbankfelder //################################# 'repo_name' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', 'errmsg'=> 'repo_name_empty'), 1 => array ( 'type' => 'UNIQUE', 'errmsg'=> 'repo_name_unique'), ), 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'separator' => '', 'width' => '40', 'maxlength' => '40', 'rows' => '', 'cols' => '' ), 'repo_url' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', 'errmsg'=> 'repo_name_empty'), 1 => array ( 'type' => 'UNIQUE', 'errmsg'=> 'repo_name_unique'), ), 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'separator' => '', 'width' => '40', 'maxlength' => '40', 'rows' => '', 'cols' => '' ), 'repo_username' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'filters' => array( 0 => array( 'event' => 'SAVE', 'type' => 'STRIPTAGS'), 1 => array( 'event' => 'SAVE', 'type' => 'STRIPNL') ), 'default' => '', 'value' => '', 'separator' => '', 'width' => '30', 'maxlength' => '30', 'rows' => '', 'cols' => '' ), 'repo_password' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'PASSWORD', 'encryption' => 'CLEARTEXT', 'default' => '', 'value' => '', 'separator' => '', 'width' => '30', 'maxlength' => '30', 'rows' => '', 'cols' => '' ), 'active' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'CHECKBOX', 'default' => 'y', 'value' => array(0 => 'n', 1 => 'y') ), //################################# // ENDE Datenbankfelder //################################# ) ); ?>