tbrehm
2008-06-14 7120b51cd52076e2eabd90be9a0a4d11209b0ee7
interface/web/sites/shell_user_edit.php
@@ -72,6 +72,17 @@
      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;
      
@@ -86,6 +97,17 @@
      
   }
   
   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;