本文整理汇总了PHP中ui_sysmessage类的典型用法代码示例。如果您正苦于以下问题:PHP ui_sysmessage类的具体用法?PHP ui_sysmessage怎么用?PHP ui_sysmessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ui_sysmessage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Init
/**
* 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;
}
示例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;
}
}
示例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;
}
示例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!"));
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例9: moduledb_commit
/**
* 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;
}
示例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;
}
示例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;
}
示例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;
}
示例13: getResult
static function getResult()
{
if (!fs_director::CheckForEmptyValue(self::$ok)) {
return ui_sysmessage::shout(ui_language::translate("Record removed successfully!"), "zannounceok");
}
return;
}
示例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;
}
}
示例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;
}