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

PHP module_controller类代码示例

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

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



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

示例1: GetServiceStatus

 /**
  * Returns the status of all standard ZPanel hosting ports and the current server uptime.
  * @author Bobby Allen ([email protected])
  * @return type 
  */
 function GetServiceStatus()
 {
     $response_xml = ws_xmws::NewXMLContentSection('portstatus', array('web' => module_controller::getIsWebServerUp() == '' ? 0 : 1, 'ftp' => module_controller::getIsFTPUp() == '' ? 0 : 1, 'pop3' => module_controller::getIsPOP3Up() == '' ? 0 : 1, 'imap' => module_controller::getIsIMAPUp() == '' ? 0 : 1, 'smtp' => module_controller::getIsSMTPUp() == '' ? 0 : 1, 'mysql' => module_controller::getIsMySQLUp() == '' ? 0 : 1));
     $response_xml .= ws_xmws::NewXMLTag('serveruptime', sys_monitoring::ServerUptime());
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }
开发者ID:BIGGANI,项目名称:zpanelx,代码行数:14,代码来源:webservice.ext.php


示例2: ResetUserPassword

 /**
  * Resets a user's ZPanel account password. Requires <uid> and <newpassword> tags.
  * @return type 
  */
 function ResetUserPassword()
 {
     $contenttags = $this->XMLDataToArray($this->wsdata);
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     if (module_controller::UpdatePassword($contenttags['xmws']['content']['uid'], $contenttags['xmws']['content']['newpassword'])) {
         $dataobject->addItemValue('content', ws_xmws::NewXMLTag('uid', $contenttags['xmws']['content']['uid']) . ws_xmws::NewXMLTag('reset', 'true'));
     } else {
         $dataobject->addItemValue('content', ws_xmws::NewXMLTag('uid', $contenttags['xmws']['content']['uid']) . ws_xmws::NewXMLTag('reset', 'false'));
     }
     return $dataobject->getDataObject();
 }
开发者ID:BIGGANI,项目名称:zpanelx,代码行数:16,代码来源:webservice.ext.php


示例3: DeleteDomain

 /**
  * Delete a specified domain using the content <domainid> tag to pass the domain DB ID through.
  * @return type 
  */
 public function DeleteDomain()
 {
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $contenttags = $this->XMLDataToArray($request_data['content']);
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     if (module_controller::ExecuteDeleteDomain($contenttags['domainid'])) {
         $dataobject->addItemValue('content', ws_xmws::NewXMLTag('domainid', $contenttags['domainid']) . ws_xmws::NewXMLTag('deleted', 'true'));
     } else {
         $dataobject->addItemValue('content', ws_xmws::NewXMLTag('domainid', $contenttags['domainid']) . ws_xmws::NewXMLTag('deleted', 'false'));
     }
     return $dataobject->getDataObject();
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:17,代码来源:webservice.ext.php


示例4: UsernameExists

 public function UsernameExists()
 {
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $contenttags = $this->XMLDataToArray($request_data['content']);
     $UsernameExists = module_controller::CheckUserExists($contenttags['username']);
     $response = "false";
     if ($UsernameExists) {
         $response = "true";
     }
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response);
     return $dataobject->getDataObject();
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:14,代码来源:webservice.ext.php


示例5: CreateDNSRecord

 public function CreateDNSRecord()
 {
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $response_xml = "\n";
     $uid = ws_generic::GetTagValue('uid', $request_data['content']);
     $domainName = ws_generic::GetTagValue('domainName', $request_data['content']);
     $domainID = ws_generic::GetTagValue('domainID', $request_data['content']);
     $hostName = ws_generic::GetTagValue('hostName', $request_data['content']);
     $type = ws_generic::GetTagValue('type', $request_data['content']);
     $target = ws_generic::GetTagValue('target', $request_data['content']);
     $ttl = ws_generic::GetTagValue('ttl', $request_data['content']);
     module_controller::createDNSRecord(array("uid" => $uid, "domainName" => $domainName, "domainID" => $domainID, "type" => $type, "hostName" => $hostName, "ttl" => $ttl, "target" => $target));
     $response_xml = $response_xml . ws_xmws::NewXMLContentSection('dns_record', array('domainName' => $domainName, 'hostName' => $hostName, 'type' => $type, 'target' => $target, 'created' => 'true'));
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:18,代码来源:webservice.ext.php


示例6: GetPackageId

 /**
  * Get and return package details for a specific package.
  * @return array
  */
 public function GetPackageId()
 {
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $contenttags = $this->XMLDataToArray($request_data['content']);
     $packageId = 0;
     $response_xml = "\n";
     $allpackages = module_controller::ListPackages(1);
     foreach ($allpackages as $package) {
         if ($package['packagename'] === $contenttags['pakagename']) {
             $packageId = $package['packageid'];
         }
     }
     $response_xml = $response_xml . ws_xmws::NewXMLContentSection('pakageid', $packageId);
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:22,代码来源:webservice.ext.php


示例7: getServices

 public static function getServices()
 {
     global $controller;
     if (file_exists(ui_tpl_assetfolderpath::Template() . 'img/modules/' . $controller->GetControllerRequest('URL', 'module') . '/assets/up.gif') && file_exists(ui_tpl_assetfolderpath::Template() . 'img/modules/' . $controller->GetControllerRequest('URL', 'module') . '/assets/down.gif')) {
         $iconpath = '<img src="' . ui_tpl_assetfolderpath::Template() . 'img/modules/' . $controller->GetControllerRequest('URL', 'module') . '/assets/';
     } else {
         $iconpath = '<img src="modules/' . $controller->GetControllerRequest('URL', 'module') . '/assets/';
     }
     $line = "<h2>" . ui_language::translate("Checking status of services...") . "</h2>";
     $line .= "<table>";
     $status = fs_director::CheckForEmptyValue(sys_monitoring::PortStatus($PortNum));
     $line .= '<tr><th>HTTP</th><td>' . module_controller::status_port(80, $iconpath) . '</td></tr>';
     $line .= '<tr><th>FTP</th><td>' . module_controller::status_port(21, $iconpath) . '</td></tr>';
     $line .= '<tr><th>SMTP</th><td>' . module_controller::status_port(25, $iconpath) . '</td></tr>';
     $line .= '<tr><th>POP3</th><td>' . module_controller::status_port(110, $iconpath) . '</td></tr>';
     $line .= '<tr><th>IMAP</th><td>' . module_controller::status_port(143, $iconpath) . '</td></tr>';
     $line .= '<tr><th>MySQL</th><td>' . module_controller::status_port(3306, $iconpath) . '</td></tr>';
     $line .= '<tr><th>DNS</th><td>' . module_controller::status_port(53, $iconpath) . '</td></tr>';
     $line .= '</table>';
     $line .= '<br><h2>' . ui_language::translate('Server Uptime') . '</h2>';
     $line .= ui_language::translate('Uptime') . ": " . sys_monitoring::ServerUptime();
     return $line;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:23,代码来源:controller.ext.php


示例8: DeleteDNSRecords

 /**
  *   Delete one or multiple DNS records
  *   Mandatory parameters: uid and domainName
  *   Optional parameters: hostName, record type, target
  *   The meaning of parameters is same as in CreateDNSRecord()
  */
 public function DeleteDNSRecords()
 {
     global $zdbh;
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $response_xml = "\n";
     $tags = array('hostName' => 'dn_host_vc', 'type' => 'dn_type_vc', 'target' => 'dn_target_vc');
     // these are mandatory parameters
     $uid = ws_generic::GetTagValue('uid', $request_data['content']);
     $domainName = ws_generic::GetTagValue('domainName', $request_data['content']);
     $domainID = self::GetDomainID($uid, $domainName);
     $sqlstr = "SELECT * FROM x_dns WHERE dn_acc_fk=:userid AND vh_deleted_ts IS NULL AND dn_vhost_fk=:domainID ";
     // iterate through optional parameters
     foreach ($tags as $tag => $sql_param) {
         if (!is_null(ws_generic::GetTagValue($tag, $request_data['content']))) {
             $sqlstr .= " AND " . $sql_param . '=:' . $tag;
         }
     }
     $sql = $zdbh->prepare($sqlstr);
     $sql->bindParam(':userid', $uid);
     $sql->bindParam(':domainID', $domainID);
     $params = array();
     foreach ($tags as $tag => $sql_param) {
         if (!is_null($params[$tag] = ws_generic::GetTagValue($tag, $request_data['content']))) {
             $sql->bindParam(":" . $tag, $params[$tag]);
         }
     }
     $sql->execute();
     while ($rowdns = $sql->fetch()) {
         $response_xml = $response_xml . ws_xmws::NewXMLContentSection('dns_record', array('hostName' => $rowdns['dn_host_vc'], 'type' => $rowdns['dn_type_vc'], 'target' => $rowdns['dn_target_vc'], 'ttl' => $rowdns['dn_ttl_in'], 'deleted' => 'true'));
         $sql2 = $zdbh->prepare("UPDATE x_dns SET dn_deleted_ts=:time WHERE dn_id_pk =:id AND dn_deleted_ts IS NULL");
         $sql2->bindParam(':id', $rowdns['dn_id_pk']);
         $time = time();
         $sql2->bindParam(':time', $time);
         $sql2->execute();
     }
     module_controller::TriggerDNSUpdate($domainID);
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:47,代码来源:webservice.ext.php


示例9: DisplayUsagepChart

 static function DisplayUsagepChart()
 {
     global $zdbh;
     global $controller;
     $currentuser = ctrl_users::GetUserDetail();
     self::$diskquota = $currentuser['diskquota'];
     self::$diskspace = ctrl_users::GetQuotaUsages('diskspace', $currentuser['userid']);
     self::$bandwidthquota = module_controller::empty_as_0($currentuser['bandwidthquota']);
     self::$bandwidth = ctrl_users::GetQuotaUsages('bandwidth', $currentuser['userid']);
     self::$domainsquota = module_controller::empty_as_0($currentuser['domainquota']);
     self::$domains = ctrl_users::GetQuotaUsages('domains', $currentuser['userid']);
     self::$subdomainsquota = module_controller::empty_as_0($currentuser['subdomainquota']);
     self::$subdomains = ctrl_users::GetQuotaUsages('subdomains', $currentuser['userid']);
     self::$parkeddomainsquota = module_controller::empty_as_0($currentuser['parkeddomainquota']);
     self::$parkeddomains = ctrl_users::GetQuotaUsages('parkeddomains', $currentuser['userid']);
     self::$mysqlquota = module_controller::empty_as_0($currentuser['mysqlquota']);
     self::$mysql = ctrl_users::GetQuotaUsages('mysql', $currentuser['userid']);
     self::$ftpaccountsquota = module_controller::empty_as_0($currentuser['ftpaccountsquota']);
     self::$ftpaccounts = ctrl_users::GetQuotaUsages('ftpaccounts', $currentuser['userid']);
     self::$mailboxquota = module_controller::empty_as_0($currentuser['mailboxquota']);
     self::$mailboxes = ctrl_users::GetQuotaUsages('mailboxes', $currentuser['userid']);
     self::$forwardersquota = module_controller::empty_as_0($currentuser['forwardersquota']);
     self::$forwarders = ctrl_users::GetQuotaUsages('forwarders', $currentuser['userid']);
     self::$distlistsquota = $currentuser['distlistsquota'];
     self::$distlists = module_controller::empty_as_0(ctrl_users::GetQuotaUsages('distlists', $currentuser['userid']));
     $maximum = self::$diskquota;
     $used = self::$diskspace;
     if ($maximum == 0) {
         if (sys_versions::ShowOSPlatformVersion() != 'Windows') {
             // We'll specify the full path to the hsoted directory to ensure that NFS mounts etc are taken into account.
             $free = disk_free_space(ctrl_options::GetOption('hosted_dir'));
         } else {
             // On Windows we'll check the disk (partition) that is configured for the 'hostdata' directory.
             $free = disk_free_space(substr(ctrl_options::GetOption('hosted_dir'), 0, 2));
         }
         $freeLabel = fs_director::ShowHumanFileSize($free) . ' (' . ui_language::translate('Server disk') . ')';
     } else {
         $free = max($maximum - $used, 0);
         $freeLabel = fs_director::ShowHumanFileSize($free);
     }
     $usedLabel = fs_director::ShowHumanFileSize($used);
     $line = '<table class="none" cellpadding="0" cellspacing="0">' . '<tr>' . '<td align="left" valign="top" width="350px">' . '<h2>' . ui_language::translate('Disk Usage Total') . '</h2>' . '<img src="etc/lib/pChart2/MADmin/z3DPie.php?score=' . $free . '::' . $used . '&amp;imagesize=350::250&amp;chartsize=150::120&amp;radius=150' . '&amp;labels=Free_Space: ' . $freeLabel . '::Used_Space: ' . $usedLabel . '&amp;legendfont=verdana&amp;legendfontsize=8&amp;legendsize=10::220"/>' . '</td>' . '<td align="left" valign="top">' . '<h2>' . ui_language::translate('Package Usage Total') . '</h2>' . '<table class="table table-striped" border="0" cellspacing="0" cellpadding="0">' . module_controller::build_row_usage('Disk space', self::$diskspace, self::$diskquota == 0 ? -1 : self::$diskquota, true) . module_controller::build_row_usage('Bandwidth', self::$bandwidth, self::$bandwidthquota == 0 ? -1 : self::$bandwidthquota, true) . module_controller::build_row_usage('Domains', self::$domains, self::$domainsquota) . module_controller::build_row_usage('Sub-domains', self::$subdomains, self::$subdomainsquota) . module_controller::build_row_usage('Parked domains', self::$parkeddomains, self::$parkeddomainsquota) . module_controller::build_row_usage('FTP accounts', self::$ftpaccounts, self::$ftpaccountsquota) . module_controller::build_row_usage('MySQL&reg databases', self::$mysql, self::$mysqlquota) . module_controller::build_row_usage('Mailboxes', self::$mailboxes, self::$mailboxquota) . module_controller::build_row_usage('Mail forwarders', self::$forwarders, self::$forwardersquota) . module_controller::build_row_usage('Distribution lists', self::$distlists, self::$distlistsquota) . '</table>' . '</td>' . '</tr>' . '</table>';
     return $line;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:44,代码来源:controller.ext.php


示例10: UpdateClient

 public function UpdateClient()
 {
     $request_data = $this->XMLDataToArray($this->wsdata);
     $ctags = $request_data['xmws']['content'];
     if (!empty($ctags["whmcs_version"])) {
         $this->checkVersion($ctags["whmcs_version"]);
     }
     $response_xml = module_controller::ExecuteUpdateClient($ctags['uid'], $ctags['packageid'], '1', $ctags['groupid'], $ctags['fullname'], $ctags['email'], $ctags['address'], $ctags['postcode'], $ctags['phone'], $ctags['password']);
     if ($response_xml == true) {
         $response_xml = "success";
     } else {
         $response_xml = empty($response_xml) ? "Can't update user." : $response_xml;
     }
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }
开发者ID:kadivar,项目名称:sentora-whmcs,代码行数:18,代码来源:webservice.ext.php


示例11: doGenerate

 /**
  * Generate a new API key and add it to the database. 
  */
 static function doGenerate()
 {
     $new_random_key = sha1(rand() . ctrl_options::GetOption('server_ip'));
     ctrl_options::SetSystemOption('apikey', $new_random_key);
     self::$updated = true;
     return true;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:10,代码来源:controller.ext.php


示例12: doUpdateConfig

 static function doUpdateConfig()
 {
     global $zdbh;
     global $controller;
     runtime_csfr::Protect();
     $sql = "SELECT * FROM x_settings WHERE so_module_vc=:name AND so_usereditable_en = 'true'";
     //$numrows = $zdbh->query($sql);
     $name = ui_module::GetModuleName();
     $numrows = $zdbh->prepare($sql);
     $numrows->bindParam(':name', $name);
     $numrows->execute();
     if ($numrows->fetchColumn() != 0) {
         $sql = $zdbh->prepare($sql);
         $sql->bindParam(':name', $name);
         $sql->execute();
         while ($row = $sql->fetch()) {
             if (!fs_director::CheckForEmptyValue($controller->GetControllerRequest('FORM', $row['so_name_vc']))) {
                 $updatesql = $zdbh->prepare("UPDATE x_settings SET so_value_tx = :name2 WHERE so_name_vc = :so_name_vc");
                 $name2 = $controller->GetControllerRequest('FORM', $row['so_name_vc']);
                 $updatesql->bindParam(':name2', $name2);
                 $updatesql->bindParam(':so_name_vc', $row['so_name_vc']);
                 $updatesql->execute();
             }
         }
     }
     self::$ok = true;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:27,代码来源:controller.ext.php


示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->rdata = $this->read();
     $this->smarty_assign("modules", $this->rdata);
     $this->add_button("add_new", 'go_to_add_module');
 }
开发者ID:BGCX262,项目名称:zsinspector-svn-to-git,代码行数:7,代码来源:module_home.php


示例14: doUpdatePassword

 static function doUpdatePassword()
 {
     global $zdbh;
     global $controller;
     runtime_csfr::Protect();
     $currentuser = ctrl_users::GetUserDetail();
     $current_pass = $controller->GetControllerRequest('FORM', 'inCurPass');
     $newpass = $controller->GetControllerRequest('FORM', 'inNewPass');
     $conpass = $controller->GetControllerRequest('FORM', 'inConPass');
     $crypto = new runtime_hash();
     $crypto->SetPassword($newpass);
     $randomsalt = $crypto->RandomSalt();
     $crypto->SetSalt($randomsalt);
     $new_secure_password = $crypto->CryptParts($crypto->Crypt())->Hash;
     $sql = $zdbh->prepare("SELECT ac_pass_vc, ac_passsalt_vc FROM x_accounts WHERE ac_id_pk= :uid");
     $sql->bindParam(':uid', $currentuser['userid']);
     $sql->execute();
     $result = $sql->fetch();
     $userpasshash = new runtime_hash();
     $userpasshash->SetPassword($current_pass);
     $userpasshash->SetSalt($result['ac_passsalt_vc']);
     $current_secure_password = $userpasshash->CryptParts($userpasshash->Crypt())->Hash;
     if (fs_director::CheckForEmptyValue($newpass)) {
         // Current password is blank!
         self::$error = "error";
     } elseif ($current_secure_password != $result['ac_pass_vc']) {
         // Current password does not match!
         self::$error = "nomatch";
     } else {
         if ($newpass == $conpass) {
             // Check for password length...
             if (strlen($newpass) < ctrl_options::GetSystemOption('password_minlength')) {
                 self::$badpassword = true;
                 return false;
             }
             // Check that the new password matches the confirmation box.
             $sql = $zdbh->prepare("UPDATE x_accounts SET ac_pass_vc=:new_secure_password, ac_passsalt_vc= :randomsalt WHERE ac_id_pk=:userid");
             $sql->bindParam(':randomsalt', $randomsalt);
             $sql->bindParam(':new_secure_password', $new_secure_password);
             $sql->bindParam(':userid', $currentuser['userid']);
             $sql->execute();
             self::$error = "ok";
         } else {
             self::$error = "error";
         }
     }
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:47,代码来源:controller.ext.php


示例15: run

 /**
  * Run
  * PHP5.4: Declaration of users_controller::run() should be compatible with front_controller::run($route, $params) : 2048
  * @return template
  */
 public function run($r, $params = null)
 {
     // base routes
     if ($this->router->get_current_route()) {
         return parent::run($r, $params);
     }
     $this->set_section_name('users');
     // default action
     if (empty($r->action)) {
         $r->action = 'users';
     }
     $this->set_req($r);
     if (!is_callable(array($this, $r->action))) {
         throw new controller_exception('No such action', router_exception::ERROR);
     }
     // call method
     core::dprint('users_controller::' . $r->action);
     call_user_func(array($this, $r->action), $r);
     return $this->get_template();
 }
开发者ID:egregor-dev,项目名称:SatCMS,代码行数:25,代码来源:controller.php


示例16: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:BGCX262,项目名称:zsinspector-svn-to-git,代码行数:4,代码来源:module_home.php


示例17: doResetPassword

 static function doResetPassword()
 {
     global $controller;
     runtime_csfr::Protect();
     $formvars = $controller->GetAllControllerRequests('FORM');
     if (self::ExecuteResetPassword($formvars['inReset'], $formvars['inPassword'])) {
         self::$ok = true;
     }
     return true;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:10,代码来源:controller.ext.php


示例18: doDeleteBackup

 static function doDeleteBackup()
 {
     global $zdbh;
     global $controller;
     runtime_csfr::Protect();
     $currentuser = ctrl_users::GetUserDetail();
     $userid = $currentuser['userid'];
     $username = $currentuser['username'];
     $files = self::ListBackUps($userid);
     //print_r($_POST);
     foreach ($files as $file) {
         if (!fs_director::CheckForEmptyValue($controller->GetControllerRequest('FORM', 'inDelete_' . $file['backupfile'] . '')) || !fs_director::CheckForEmptyValue($controller->GetControllerRequest('FORM', 'inDelete_' . $file['backupfile'] . '_x')) || !fs_director::CheckForEmptyValue($controller->GetControllerRequest('FORM', 'inDelete_' . $file['backupfile'] . '_y'))) {
             self::ExecuteDeleteBackup($username, $file['backupfile']);
             self::$deleteok = true;
         }
     }
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:17,代码来源:controller.ext.php


示例19: doForceDaemon

 static function doForceDaemon()
 {
     global $zdbh;
     global $controller;
     runtime_csfr::Protect();
     $formvars = $controller->GetAllControllerRequests('FORM');
     if (isset($formvars['inForceFull'])) {
         $sql = $zdbh->prepare("UPDATE x_settings set so_value_tx = '0' WHERE so_name_vc = 'daemon_lastrun'");
         $sql->execute();
         $sql = $zdbh->prepare("UPDATE x_settings set so_value_tx = '0' WHERE so_name_vc = 'daemon_dayrun'");
         $sql->execute();
         $sql = $zdbh->prepare("UPDATE x_settings set so_value_tx = '0' WHERE so_name_vc = 'daemon_weekrun'");
         $sql->execute();
         $sql = $zdbh->prepare("UPDATE x_settings set so_value_tx = '0' WHERE so_name_vc = 'daemon_monthrun'");
         $sql->execute();
     }
     self::$ok = true;
 }
开发者ID:remzicelik,项目名称:sentora-core,代码行数:18,代码来源:controller.ext.php


示例20: doCreateForwarder

 /**
  * Webinterface sudo methods.
  */
 static function doCreateForwarder()
 {
     global $controller;
     runtime_csfr::Protect();
     $currentuser = ctrl_users::GetUserDetail();
     $formvars = $controller->GetAllControllerRequests('FORM');
     $keepmessage = isset($formvars['inKeepMessage']) ? fs_director::GetCheckboxValue($formvars['inKeepMessage']) : 0;
     if (self::ExecuteCreateForwarder($currentuser['userid'], $formvars['inAddress'], $formvars['inDestinationName'], $formvars['inDestinationDomain'], $keepmessage)) {
         self::$ok = true;
     }
     return true;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:15,代码来源:controller.ext.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP module_form类代码示例发布时间:2022-05-23
下一篇:
PHP module_config类代码示例发布时间: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