Ejemplo n.º 1
0
 /**
  * Get the latest requests and updates the values avaliable to the model/view.
  * @author Bobby Allen (ballen@bobbyallen.me)
  */
 public function Init()
 {
     //Set class varables
     $this->vars_get = array($_GET);
     $this->vars_post = array($_POST);
     $this->vars_session = array($_SESSION);
     $this->vars_cookie = array($_COOKIE);
     //Here we get the users information
     $user = ctrl_users::GetUserDetail();
     if (!isset($this->vars_session[0]['zpuid'])) {
         ui_module::GetLoginTemplate();
     }
     if (isset($this->vars_get[0]['module'])) {
         ui_module::getModule($this->GetCurrentModule());
     }
     if (isset($this->vars_get[0]['action'])) {
         if (ctrl_groups::CheckGroupModulePermissions($user['usergroupid'], ui_module::GetModuleID())) {
             if (class_exists('module_controller', FALSE) && method_exists('module_controller', 'do' . $this->vars_get[0]['action'])) {
                 call_user_func(array('module_controller', 'do' . $this->vars_get[0]['action']));
             } else {
                 echo ui_sysmessage::shout("No 'do" . runtime_xss::xssClean($this->vars_get[0]['action']) . "' class exists - Please create it to enable controller actions and runtime placeholders within your module.");
             }
         }
     }
     return;
 }
Ejemplo n.º 2
0
 public static function Template()
 {
     $user_array = ctrl_users::GetUserDetail();
     global $zdbh;
     $result = $zdbh->query("SELECT ac_notice_tx FROM x_accounts WHERE ac_id_pk = " . $user_array['resellerid'] . "")->Fetch();
     if ($result) {
         if ($result['ac_notice_tx'] != "") {
             return ui_sysmessage::shout(runtime_xss::xssClean($result['ac_notice_tx']), 'notice', 'Notice:', true);
         }
         return false;
     } else {
         return false;
     }
 }
Ejemplo n.º 3
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$error_message)) {
         return ui_sysmessage::shout(ui_language::translate(self::$error_message), 'zannounceerror', 'zannounce');
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your module options have been saved successfully!"));
     } else {
         return ui_language::translate(ui_module::GetModuleDescription());
     }
     return;
 }
Ejemplo n.º 4
0
 static function doUpdateSettings()
 {
     global $controller;
     runtime_csfr::Protect();
     $form = $controller->GetAllControllerRequests('FORM');
     if (!isset($form['inAdminSettings'])) {
         return false;
     }
     if (!self::getIsAdmin()) {
         return false;
     }
     ctrl_options::SetSystemOption('whmcs_sendemail_bo', $form['SendEmail']);
     ctrl_options::SetSystemOption('whmcs_reseller_view_api', $form['ResellerViewAPI']);
     ctrl_options::SetSystemOption('whmcs_link', $form['Link']);
     self::$Results[] = ui_sysmessage::shout(ui_language::translate("Changes to your settings have been saved successfully!"));
 }
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your settings have been saved successfully!"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$notwritable)) {
         return ui_sysmessage::shout(ui_language::translate("No permission to write to log file."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$forceupdate)) {
         return ui_sysmessage::shout(ui_language::translate("All zone records will be updated on next daemon run."), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$reset)) {
         return ui_sysmessage::shout(number_format(self::$reset) . " " . ui_language::translate("Domains records where reset to default"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$addmissing)) {
         return ui_sysmessage::shout(number_format(self::$addmissing) . " " . ui_language::translate("Domains records were created"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$deletedtype)) {
         return ui_sysmessage::shout(number_format(self::$deletedtype) . " '" . self::$type . "' " . ui_language::translate("Records where marked as deleted from the database"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$deleted)) {
         return ui_sysmessage::shout(number_format(self::$deleted) . " " . ui_language::translate("Records where marked as deleted from the database"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$purged)) {
         return ui_sysmessage::shout(number_format(self::$purged) . " " . ui_language::translate("Records where purged from the database"), "zannounceok");
     }
     return;
 }
Ejemplo n.º 6
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("You must enter a valid username and password to create your FTP account."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("An FTP account with that name already exists."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$error)) {
         return ui_sysmessage::shout(ui_language::translate("There was an error updating your FTP accounts."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badname)) {
         return ui_sysmessage::shout(ui_language::translate("Your ftp account name is not valid. Please enter a valid ftp account name."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$invalidPath)) {
         return ui_sysmessage::shout(ui_language::translate("Invalid Folder."), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("FTP accounts updated successfully."), "zannounceok");
     }
     return;
 }
Ejemplo n.º 7
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your settings have been saved successfully!"));
     }
     return;
 }
Ejemplo n.º 8
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$notmine)) {
         return ui_sysmessage::shout(ui_language::translate("Unable to get log preview, this domain does not belong to you."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$notfile)) {
         return ui_sysmessage::shout(ui_language::translate("The log does not exit yet."), "zannounceerror");
     }
     return;
 }
 /**
  * Builds database schema from the module XML file (dbs.xml)
  * @author Russell Skinner (rustus@sentora.org)
  * @global db_driver $zdbh The ZPX database handle.
  */
 static function moduledb_commit()
 {
     global $zdbh;
     $mod_db_dir = ctrl_options::GetSystemOption('sentora_root') . "modules/*/{dbs.xml}";
     try {
         foreach (glob($mod_db_dir, GLOB_BRACE) as $mod_db_file) {
             $db_config = new xml_reader(fs_filehandler::ReadFileContents($mod_db_file));
             $db_config->Parse();
             $database = $db_config->document->database[0]->tagData;
             $sql = $zdbh->prepare("CREATE DATABASE IF NOT EXISTS {$database}");
             $sql->execute();
             foreach ($db_config->document->table_structure as $table) {
                 $table_name = $table->table_name[0]->tagData;
                 // Check if table exists, if not then create it.
                 $sql = $zdbh->prepare("SHOW TABLES FROM {$database} LIKE '{$table_name}'");
                 $sql->execute();
                 $table_exists = $sql->fetch();
                 if (!$table_exists) {
                     $sql = $zdbh->prepare("CREATE TABLE {$database}.{$table_name} (create_temp INT)");
                     $sql->execute();
                 }
                 // Loop through columnns for selected table
                 foreach ($table->column as $data) {
                     $column_name = $data->column_name[0]->tagData;
                     $column_structure = $data->column_structure[0]->tagData;
                     $sql = $zdbh->prepare("SHOW COLUMNS FROM {$database}.{$table_name} LIKE '{$column_name}'");
                     $sql->execute();
                     $column_exists = $sql->fetch();
                     if (!$column_exists) {
                         $sql = $zdbh->prepare("ALTER TABLE {$database}.{$table_name} ADD {$column_name} {$column_structure}");
                         $sql->execute();
                     }
                 }
                 // Populate tables with data from xml
                 $sql = $zdbh->prepare("SELECT COUNT(*) FROM {$database}.{$table_name}");
                 $sql->execute();
                 $empty = $sql->fetch();
                 if ($empty[0] == 0) {
                     // Loop through inserts/updates for selected table
                     foreach ($table->data as $data) {
                         if (!empty($data->insert[0])) {
                             $insert = $data->insert[0]->tagData;
                             $sql = $zdbh->prepare("INSERT INTO {$database}.{$table_name} {$insert}");
                             $sql->execute();
                         }
                         if (!empty($data->update[0])) {
                             $update = $data->update[0]->tagData;
                             $sql = $zdbh->prepare("UPDATE {$database}.{$table_name} SET {$update}");
                             $sql->execute();
                         }
                     }
                 }
                 // Remove temp table if created.
                 $sql = $zdbh->prepare("SHOW COLUMNS FROM {$database}.{$table_name} LIKE 'create_temp'");
                 $sql->execute();
                 $table_exists = $sql->fetch();
                 if ($table_exists) {
                     $sql = $zdbh->prepare("ALTER TABLE {$database}.{$table_name} DROP create_temp");
                     $sql->execute();
                 }
             }
         }
     } catch (Exception $e) {
         echo ui_sysmessage::shout($e, 'zdebug', 'zdebug');
     }
     return;
 }
Ejemplo n.º 10
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$error)) {
         return ui_sysmessage::shout(ui_language::translate("You need to enter a question and an answer to add a FAQ item!"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$delete)) {
         return ui_sysmessage::shout(ui_language::translate("FAQ item was deleted successfully!"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("FAQ item was added successfully!"), "zannounceok");
     }
     return;
 }
Ejemplo n.º 11
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("You need to specify a database name to create your database."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badname)) {
         return ui_sysmessage::shout(ui_language::translate("Your MySQL database name is not valid. Please enter a valid MySQL database name."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("A database with that name already appears to exsist."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your databases have been saved successfully!"), "zannounceok");
     }
     return;
 }
Ejemplo n.º 12
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("You need to specify a package name to create your package."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badname)) {
         return ui_sysmessage::shout(ui_language::translate("Your package name is not valid. Please enter a valid package name."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("A package with that name already appears to exsist."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$error)) {
         return ui_sysmessage::shout(ui_language::translate("There was an error updating your packages"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$samepackage)) {
         return ui_sysmessage::shout(ui_language::translate("You cant move clients to the same package you are deleting!"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your packages have been saved successfully!"), "zannounceok");
     }
     return;
 }
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Record removed successfully!"), "zannounceok");
     }
     return;
 }
Ejemplo n.º 14
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$error)) {
         if (self::$error == "ok") {
             return ui_sysmessage::shout(ui_language::translate("Your account password been changed successfully!"), "zannounceok");
         }
         if (self::$error == "nomatch") {
             return ui_sysmessage::shout(ui_language::translate("Sorry, your current password does not match the one on your account!"), "zannounceerror");
         }
         if (self::$error == "error") {
             return ui_sysmessage::shout(ui_language::translate("An error occured and your MADmin account password could not be updated. Please ensure you entered all passwords correctly and try again."), "zannounceerror");
         }
     } else {
         if (!fs_director::CheckForEmptyValue(self::$badpassword)) {
             return ui_sysmessage::shout(ui_language::translate("Your password did not meet the minimun length requirements. Characters needed for password length") . ": " . ctrl_options::GetSystemOption('password_minlength'), "zannounceerror");
         }
         return;
     }
 }
Ejemplo n.º 15
0
 static function getResult()
 {
     global $controller;
     $currentuser = ctrl_users::GetUserDetail();
     $urlvars = $controller->GetAllControllerRequests('URL');
     if (isset($urlvars['saved'])) {
         return ui_sysmessage::shout(ui_language::translate("Your theme configuration has been saved and has been updated for all clients!"), "zannounceok");
     }
     if (isset($urlvars['selectcss'])) {
         return ui_sysmessage::shout(ui_language::translate("This theme has more than one variation, please choose a variation you'd like to use.."), "zannounceerror");
     }
     return false;
 }
Ejemplo n.º 16
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("Your Domain can not be empty. Please enter a valid Domain Name and try again."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badname)) {
         return ui_sysmessage::shout(ui_language::translate("Your Domain name is not valid. Please enter a valid Domain Name: i.e. 'domain.com'"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("The domain already appears to exist on this server."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$nosub)) {
         return ui_sysmessage::shout(ui_language::translate("You cannot add a Sub-Domain here. Please use the Subdomain manager to add Sub-Domains."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$error)) {
         return ui_sysmessage::shout(ui_language::translate("Please remove 'www'. The 'www' will automatically work with all Domains / Subdomains."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$writeerror)) {
         return ui_sysmessage::shout(ui_language::translate("There was a problem writting to the virtual host container file. Please contact your administrator and report this error. Your domain will not function until this error is corrected."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your domain web hosting has been saved successfully."), "zannounceok");
     }
     return;
 }
Ejemplo n.º 17
0
 /**
  * Accepts Admin settings form
  * @return null
  */
 static function doUpdateSettings()
 {
     global $controller;
     runtime_csfr::Protect();
     $form = $controller->GetAllControllerRequests('FORM');
     if (!isset($form['inAdminSettings'])) {
         return false;
     }
     ctrl_options::SetSystemOption('whmcs_sendemail_bo', $form['SendEmail']);
     ctrl_options::SetSystemOption('whmcs_link', $form['Link']);
     self::$Results[] = ui_sysmessage::shout('Settings updated!', 'alert-success');
 }
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Error:</strong> You need to specify a valid location for your script."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$noexists)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Error:</strong> Your script does not appear to exist at that location."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$cronnoexists)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Error:</strong> System Cron file could not be created."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$cronnowrite)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Error:</strong> Could not write to the System Cron file."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Error:</strong> You can not add the same cron task more than once."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$error)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Error:</strong> There was an error updating the cron job."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("<strong>Success:</strong> Cron updated successfully."), "zannounceok");
     }
     return;
 }
Ejemplo n.º 19
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("You must fill out all fields!"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$emailerror)) {
         return ui_sysmessage::shout(ui_language::translate("Your email address is not valid!"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your account settings have been saved successfully!"), "zannounceok");
     }
     return;
 }
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$alreadyexistssame)) {
         return ui_sysmessage::shout(ui_language::translate("You cannot forward a mailbox to itself!"), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate('A mailbox, alias, forwarder or distribution list already exists with that name.'), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$validemail)) {
         return ui_sysmessage::shout(ui_language::translate("Your email address is not valid."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$password)) {
         return ui_sysmessage::shout(ui_language::translate("Your password cannot be blank."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$noaddress)) {
         return ui_sysmessage::shout(ui_language::translate("Your email address cannot be blank."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your forwarders have been saved successfully!"), "zannounceok");
     } else {
         return NULL;
     }
     return;
 }
Ejemplo n.º 21
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$filenotexist)) {
         return ui_sysmessage::shout("There was an error saving your backup!", "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$deleteok)) {
         return ui_sysmessage::shout("Backup deleted successfully!", "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$backupok)) {
         return ui_sysmessage::shout("Backup completed successfully!", "zannounceok");
     }
     return;
 }
 static function getResult()
 {
     if (self::$updated) {
         return ui_sysmessage::shout(ui_language::translate("Your new XMWS API key has been generated and saved!"), "zannounceok");
     }
 }
Ejemplo n.º 23
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$blank)) {
         return ui_sysmessage::shout(ui_language::translate("You need to specify a user name and select a database to create your MySQL user."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$rootabuse)) {
         return ui_sysmessage::shout(ui_language::translate("You cannot create a user named 'root'! This attempt has been logged and the system administrator notified!."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("A MySQL username with that name already appears to exsist."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badname)) {
         return ui_sysmessage::shout(ui_language::translate("Your MySQL user name is not valid. Please enter a valid MySQL user name."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badpass)) {
         return ui_sysmessage::shout(ui_language::translate("Your MySQL password is not valid. Valid characters are A-Z, a-z, 0-9."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badIP)) {
         return ui_sysmessage::shout(ui_language::translate("The IP address is not valid. Please enter a valid IP address."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$dbalreadyadded)) {
         return ui_sysmessage::shout(ui_language::translate("That database has already been added to this user."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your MySQL users have been saved successfully!"), "zannounceok");
     }
     return;
 }
Ejemplo n.º 24
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$userblank)) {
         return ui_sysmessage::shout(ui_language::translate("You need to specify a username to create a new client."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$emailblank)) {
         return ui_sysmessage::shout(ui_language::translate("You need to specify an email address to create a new client."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$passwordblank)) {
         return ui_sysmessage::shout(ui_language::translate("Your password cannot be blank."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$packageblank)) {
         return ui_sysmessage::shout(ui_language::translate("You must select a package for your new client."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$groupblank)) {
         return ui_sysmessage::shout(ui_language::translate("You must select a user group for your new client."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badname)) {
         return ui_sysmessage::shout(ui_language::translate("Your client name is not valid. Please enter a valid client name."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$bademail)) {
         return ui_sysmessage::shout(ui_language::translate("Your email adress is not valid. Please enter a valid email address."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$badpassword)) {
         return ui_sysmessage::shout(ui_language::translate("Your password did not meet the minimun length requirements. Characters needed for password length") . ": " . ctrl_options::GetSystemOption('password_minlength'), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("A client with that name already appears to exsist on this server."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your client(s) have been saved successfully!"), "zannounceok");
     }
     if (!fs_director::CheckForEmptyValue(self::$not_unique_email)) {
         return ui_sysmessage::shout(ui_language::translate("Another user account is already using this email address."), "zannounceerror");
     }
     return;
 }
Ejemplo n.º 25
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$alreadyexists)) {
         return ui_sysmessage::shout(ui_language::translate("A mailbox, alias, forwarder or distrubution list already exists with that name."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$validemail)) {
         return ui_sysmessage::shout(ui_language::translate("Your email address is not valid."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$noaddress)) {
         return ui_sysmessage::shout(ui_language::translate("Your email address cannot be blank."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$validdomain)) {
         return ui_sysmessage::shout(ui_language::translate("The selected domain was not valid or not yet active."), "zannounceerror");
     }
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Changes to your aliases have been saved successfully!"), "zannounceok");
     } else {
         return NULL;
     }
     return;
 }
Ejemplo n.º 26
0
 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$ResultOk)) {
         return ui_sysmessage::shout(ui_language::translate(self::$ResultOk), 'zannouncesuccess', 'SUCCESS DNS SAVED');
     } elseif (!fs_director::CheckForEmptyValue(self::$ResultErr)) {
         return ui_sysmessage::shout(ui_language::translate(self::$ResultErr), 'zannounceerror', 'ERROR DNS NOT SAVED');
     }
     return;
 }
 static function getResult()
 {
     if (self::$functionRan == 1) {
         return ui_sysmessage::shout(ui_language::translate(self::$statusDataWrite), self::$messageType);
     }
     return;
 }