| | |
| | | * Hint: The auto increment (ID) filed of the table has not be be definied separately. |
| | | * |
| | | */ |
| | | |
| | | |
| | | global $app; |
| | | $app->load('tform_base'); |
| | | class tform extends tform_base { |
| | |
| | | if(@stristr($this->formDef["auth_preset"]["perm_other"],$perm)) $result = true; |
| | | |
| | | // if preset == 0, everyone can insert a record of this type |
| | | if($this->formDef["auth_preset"]["userid"] == 0 AND $this->formDef["auth_preset"]["groupid"] == 0 AND (@stristr($this->formDef["auth_preset"]["perm_user"],$perm) OR @stristr($this->formDef["auth_preset"]["perm_group"],$perm))) $result = true; |
| | | if($this->formDef["auth_preset"]["userid"] == 0 and $this->formDef["auth_preset"]["groupid"] == 0 and (@stristr($this->formDef["auth_preset"]["perm_user"], $perm) or @stristr($this->formDef["auth_preset"]["perm_group"], $perm))) $result = true; |
| | | |
| | | return $result; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Generate HTML for DATETIME fields. |
| | | * |
| | |
| | | |
| | | return $out; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |