• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ui_sysmessage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ui_sysmessage的典型用法代码示例。如果您正苦于以下问题:PHP ui_sysmessage类的具体用法?PHP ui_sysmessage怎么用?PHP ui_sysmessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ui_sysmessage类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: Init

 /**
  * Get the latest requests and updates the values avaliable to the model/view.
  * @author Bobby Allen ([email protected])
  */
 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;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:30,代码来源:controller.class.php


示例2: Template

 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;
     }
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:14,代码来源:notice.class.php


示例3: getResult

 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;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:12,代码来源:controller.ext.php


示例4: doUpdateSettings

 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!"));
 }
开发者ID:kadivar,项目名称:sentora-whmcs,代码行数:16,代码来源:controller.ext.php


示例5: getResult

 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;
 }
开发者ID:caglaroflazoglu,项目名称:sentora-core,代码行数:28,代码来源:controller.ext.php


示例6: getResult

 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;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:22,代码来源:controller.ext.php


示例7: getResult

 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;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:7,代码来源:controller.ext.php


示例8: getResult

 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;
 }
开发者ID:Ron-e,项目名称:user_logviewer,代码行数:10,代码来源:controller.ext.php


示例9: moduledb_commit

 /**
  * Builds database schema from the module XML file (dbs.xml)
  * @author Russell Skinner ([email protected])
  * @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;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:72,代码来源:builder.class.php


示例10: getResult

 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;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:13,代码来源:controller.ext.php


示例11: getResult

 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;
 }
开发者ID:caglaroflazoglu,项目名称:sentora-core,代码行数:16,代码来源:controller.ext.php


示例12: getResult

 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;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:22,代码来源:controller.ext.php


示例13: getResult

 static function getResult()
 {
     if (!fs_director::CheckForEmptyValue(self::$ok)) {
         return ui_sysmessage::shout(ui_language::translate("Record removed successfully!"), "zannounceok");
     }
     return;
 }
开发者ID:Ron-e,项目名称:deleted_records_manager,代码行数:7,代码来源:controller.ext.php


示例14: getResult

 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;
     }
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:19,代码来源:controller.ext.php


示例15: getResult

 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;
 }
开发者ID:caglaroflazoglu,项目名称:sentora-core,代码行数:13,代码来源:controller.ext.php


示例16: getResult

 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;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:25,代码来源:controller.ext.php


示例17: doUpdateSettings

 /**
  * 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');
 }
开发者ID:nmsde,项目名称:sentora-whmcs,代码行数:16,代码来源:controller.ext.php


示例18: getResult

 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;
 }
开发者ID:albertkampde,项目名称:sentora-cron-module,代码行数:25,代码来源:controller.ext.php


示例19: getResult

 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;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:13,代码来源:controller.ext.php


示例20: getResult

 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;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:24,代码来源:controller.ext.php



注:本文中的ui_sysmessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP umiHierarchy类代码示例发布时间:2022-05-23
下一篇:
PHP ui_language类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap