| | |
| | | parent::onShowNew(); |
| | | } |
| | | |
| | | function onBeforeInsert() { |
| | | global $app, $conf; |
| | | |
| | | // check if the username is not blacklisted |
| | | $blacklist = file(ISPC_LIB_PATH.'/shelluser_blacklist'); |
| | | foreach($blacklist as $line) { |
| | | if(strtolower(trim($line)) == strtolower(trim($this->dataRecord['username']))) $app->tform->errorMessage .= 'The username is not allowed.'; |
| | | } |
| | | unset($blacklist); |
| | | } |
| | | |
| | | function onAfterInsert() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | function onBeforeUpdate() { |
| | | global $app, $conf; |
| | | |
| | | // check if the username is not blacklisted |
| | | $blacklist = file(ISPC_LIB_PATH.'/shelluser_blacklist'); |
| | | foreach($blacklist as $line) { |
| | | if(strtolower(trim($line)) == strtolower(trim($this->dataRecord['username']))) $app->tform->errorMessage .= 'The username is not allowed.'; |
| | | } |
| | | unset($blacklist); |
| | | } |
| | | |
| | | function onAfterUpdate() { |
| | | global $app, $conf; |
| | | |