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

PHP fs_director类代码示例

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

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



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

示例1: Template

 public static function Template()
 {
     $currentuser = ctrl_users::GetUserDetail();
     $bandwidthquota = $currentuser['bandwidthquota'];
     $bandwidth = ctrl_users::GetQuotaUsages('bandwidth', $currentuser['userid']);
     if ($bandwidthquota == 0) {
         return '<div class="progress progress-striped"><div class="progress-bar progress-bar-success" style="width: 0%"></div></div>';
     } else {
         if (fs_director::CheckForEmptyValue($bandwidth)) {
             $bandwidth = 0;
         }
         $percent = round($bandwidth / $bandwidthquota * 100, 0);
         if ($percent >= 75) {
             $bar = 'danger';
         } else {
             $bar = 'success';
         }
         if ($percent >= 10) {
             $showpercent = $percent . '%';
         } else {
             $showpercent = '';
         }
         return '<div class="progress progress-striped"><div class="progress-bar progress-bar-' . $bar . '" style="width: ' . $percent . '%">' . $showpercent . '</div></div>';
     }
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:25,代码来源:progbarbandwidth.class.php


示例2: DeleteApacheClientFiles

function DeleteApacheClientFiles()
{
    global $zdbh;
    $sql = "SELECT * FROM x_accounts WHERE ac_deleted_ts IS NOT NULL";
    $numrows = $zdbh->query($sql);
    if ($numrows->fetchColumn() != 0) {
        $sql = $zdbh->prepare($sql);
        $res = array();
        $sql->execute();
        while ($rowdeletedaccounts = $sql->fetch()) {
            // Check for an active user with same username
            $sql2 = "SELECT COUNT(*) FROM x_accounts WHERE ac_user_vc=:user AND ac_deleted_ts IS NULL";
            $numrows2 = $zdbh->prepare($sql2);
            $user = $rowdeletedaccounts['ac_user_vc'];
            $numrows2->bindParam(':user', $user);
            if ($numrows2->execute()) {
                if ($numrows2->fetchColumn() == 0) {
                    if (file_exists(ctrl_options::GetSystemOption('hosted_dir') . $rowdeletedaccounts['ac_user_vc'])) {
                        fs_director::RemoveDirectory(ctrl_options::GetSystemOption('hosted_dir') . $rowdeletedaccounts['ac_user_vc']);
                    }
                }
            }
        }
    }
}
开发者ID:bbspike,项目名称:sentora-core,代码行数:25,代码来源:OnAfterDeleteClient.hook.php


示例3: translate

 /**
  * Used to translate a text string into the language preference of the user.
  * @author Russell Skinner ([email protected])
  * @global db_driver $zdbh The ZPX database handle.
  * @param $message The string to translate.
  * @return string The transalated string.
  */
 static function translate($message)
 {
     global $zdbh;
     $message = addslashes($message);
     $currentuser = ctrl_users::GetUserDetail();
     $lang = $currentuser['language'];
     $column_names = self::GetColumnNames('x_translations');
     foreach ($column_names as $column_name) {
         $columnNameClean = $zdbh->mysqlRealEscapeString($column_name);
         $sql = $zdbh->prepare("SELECT * FROM x_translations WHERE " . $columnNameClean . " LIKE :message");
         $sql->bindParam(':message', $message);
         $sql->execute();
         $result = $sql->fetch();
         if ($result) {
             if (!fs_director::CheckForEmptyValue($result['tr_' . $lang . '_tx'])) {
                 return $result['tr_' . $lang . '_tx'];
             } else {
                 return stripslashes($message);
             }
         }
     }
     if (!fs_director::CheckForEmptyValue($message) && $lang == "en") {
         $sql = $zdbh->prepare("INSERT INTO x_translations (tr_en_tx) VALUES (:message)");
         $sql->bindParam(':message', $message);
         $sql->execute();
     }
     return stripslashes($message);
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:35,代码来源:language.class-orig.php


示例4: Template

 public static function Template()
 {
     if (!fs_director::CheckForEmptyValue(ctrl_options::GetSystemOption('server_ip'))) {
         return ctrl_options::GetSystemOption('server_ip');
     } else {
         return sys_monitoring::ServerIPAddress();
     }
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:8,代码来源:serveripaddress.class.php


示例5: getDomains

 static function getDomains()
 {
     $currentuser = ctrl_users::GetUserDetail();
     $clientlist = self::ListDomains($currentuser['userid']);
     if (!fs_director::CheckForEmptyValue($clientlist)) {
         return $clientlist;
     } else {
         return false;
     }
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:10,代码来源:controller.ext.php


示例6: Template

 public static function Template()
 {
     $currentuser = ctrl_users::GetUserDetail();
     if ($currentuser['bandwidthquota'] == 0) {
         $bandwidthquota = '<: Unlimited :>';
     } else {
         $bandwidthquota = fs_director::ShowHumanFileSize($currentuser['bandwidthquota']);
     }
     return $bandwidthquota;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:10,代码来源:quotabandwidth.class.php


示例7: Template

 public static function Template()
 {
     $user = ctrl_users::GetUserDetail();
     if (!fs_director::CheckForEmptyValue(fs_director::CheckForEmptyValue($user['usercss']))) {
         $retval = "etc/styles/" . ui_template::GetUserTemplate() . "/css/default.css";
     } else {
         $retval = "etc/styles/" . ui_template::GetUserTemplate() . "/css/" . $user['usercss'] . ".css";
     }
     return $retval;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:10,代码来源:csspath.class.php


示例8: GetUserTemplate

 /**
  * Returns the name (folder name) of the template that should be used for the current user.
  * @author Bobby Allen ([email protected])
  * @return string The template name.
  */
 static function GetUserTemplate()
 {
     $user = ctrl_users::GetUserDetail();
     if (fs_director::CheckForEmptyValue($user['usertheme'])) {
         # Lets use the reseller's theme they have setup!
         $reseller = ctrl_users::GetUserDetail($user['resellerid']);
         return $reseller['usertheme'];
     } else {
         return $user['usertheme'];
     }
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:16,代码来源:template.class.php


示例9: GetDomainsForUser

 /**
  * Gets a list of all the domains that a user has configured on their hosting account (the user id needs to be sent in the <content> tag).
  * @global type $zdbh
  * @return type 
  */
 public function GetDomainsForUser()
 {
     global $zdbh;
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $response_xml = "\n";
     $alldomains = module_controller::ListDomains($request_data['content']);
     if (!fs_director::CheckForEmptyValue($alldomains)) {
         foreach ($alldomains as $domain) {
             $response_xml = $response_xml . ws_xmws::NewXMLContentSection('domain', array('id' => $domain['id'], 'uid' => $domain['uid'], 'domain' => $domain['name'], 'homedirectory' => $domain['directory'], 'active' => $domain['active']));
         }
     }
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:21,代码来源:webservice.ext.php


示例10: 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


示例11: translate

 /**
  * Used to translate a text string into the language preference of the user.
  * @author Pascal Peyremorte ([email protected])
  * @global db_driver $zdbh The ZPX database handle.
  * @param $message The string to translate.
  * @return string The transalated string.
  */
 static function translate($message)
 {
     global $zdbh;
     if (empty(self::$LangCol)) {
         $uid = ctrl_auth::CurrentUserID();
         $sql = $zdbh->prepare('SELECT ud_language_vc FROM x_profiles WHERE ud_user_fk=' . $uid);
         $sql->execute();
         $lang = $sql->fetch();
         self::$LangCol = 'tr_' . $lang['ud_language_vc'] . '_tx';
     }
     if (self::$LangCol == 'tr_en_tx') {
         return $message;
     }
     //no translation required, english used
     $SlashedMessage = addslashes($message);
     //protect special chars
     $sql = $zdbh->prepare('SELECT ' . self::$LangCol . ' FROM x_translations WHERE tr_en_tx =:message');
     $sql->bindParam(':message', $SlashedMessage);
     $sql->execute();
     $result = $sql->fetch();
     if ($result) {
         if (!fs_director::CheckForEmptyValue($result[self::$LangCol])) {
             return $result[self::$LangCol];
         } else {
             return $message;
         }
         //translated message empty
     } else {
         //message not found in the table
         //add unfound message to the table with empties translations
         $sql = $zdbh->prepare('INSERT INTO x_translations SET tr_en_tx=:message');
         $sql->bindParam(':message', $SlashedMessage);
         $sql->execute();
         return $message;
     }
 }
开发者ID:BIGGANI,项目名称:zpanelx,代码行数:43,代码来源:language.class.php


示例12: Template

 public static function Template()
 {
     $currentuser = ctrl_users::GetUserDetail();
     return fs_director::ShowHumanFileSize(ctrl_users::GetQuotaUsages('diskspace', $currentuser['userid']));
 }
开发者ID:BIGGANI,项目名称:zpanelx,代码行数:5,代码来源:usagediskspace.class.php


示例13: UpdateFile

 /**
  * Updates an existing file and will chmod it too if required.
  * @author Bobby Allen ([email protected])
  * @param string $path The path and file name to the file to update.
  * @param string $chmod Permissions mode to use for the new file. (eg. 0777)
  * @param string $sting The content to update the file with.
  * @return boolean 
  */
 static function UpdateFile($path, $chmod = 0777, $string = "")
 {
     if (!file_exists($path)) {
         fs_filehandler::ResetFile($path);
     }
     $fp = @fopen($path, 'w');
     @fwrite($fp, $string);
     @fclose($fp);
     fs_director::SetFileSystemPermissions($path, $chmod);
     return true;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:19,代码来源:filehandler.class.php


示例14: 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


示例15: fileExists

 static function fileExists($combinedPath)
 {
     if (!fs_director::CheckFileExists($combinedPath)) {
         self::setFlashMessage('debug', 'file does not exist');
         return false;
     }
     self::setFlashMessage('debug', 'file exists');
     return true;
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:9,代码来源:controller.ext.php


示例16: getResult

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


示例17: str_replace

    $numrows->bindParam(':dl_address_vc', $rowdl['dl_address_vc']);
    $numrows->execute();
    $result = $numrows->fetch();
    if ($result) {
        //echo $rowdlu['du_address_vc'];
        $newlist = str_replace("," . $rowdlu['du_address_vc'], "", $result['goto']);
        $newlist = str_replace(",,", ",", $newlist);
        $sql = "UPDATE alias SET goto=:newlist, modified=NOW() WHERE address=:dl_address_vc";
        $sql = $mail_db->prepare($sql);
        $sql->bindParam(':newlist', $newlist);
        $sql->bindParam(':dl_address_vc', $rowdl['dl_address_vc']);
        $sql->execute();
    }
}
// Adding Postfix Distubution List User
if (!fs_director::CheckForEmptyValue(self::$createuser)) {
    //$result = $mail_db->query("SELECT * FROM alias WHERE address='" . $rowdl['dl_address_vc'] . "'")->Fetch();
    $numrows = $mail_db->prepare("SELECT * FROM alias WHERE address=:dl_address_vc");
    $numrows->bindParam(':dl_address_vc', $rowdl['dl_address_vc']);
    $numrows->execute();
    $result = $numrows->fetch();
    if ($result) {
        $newlist = $result['goto'] . "," . $fulladdress;
        $newlist = str_replace(",,", ",", $newlist);
        $sql = "UPDATE alias SET goto=:newlist, modified=NOW() WHERE address=:dl_address_vc";
        $sql = $mail_db->prepare($sql);
        $sql->bindParam(':newlist', $newlist);
        $sql->bindParam(':dl_address_vc', $rowdl['dl_address_vc']);
        $sql->execute();
    }
}
开发者ID:BIGGANI,项目名称:zpanelx,代码行数:31,代码来源:postfix.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: ServerUptime

 /**
  * Returns a nice human readable copy of the server uptime.
  * @author Bobby Allen ([email protected])
  * @return string Human readable server uptime.
  */
 static function ServerUptime()
 {
     if (sys_versions::ShowOSPlatformVersion() == "Linux") {
         $uptime = trim(exec("cat /proc/uptime"));
         $uptime = explode(" ", $uptime);
         $uptime = $uptime[0];
         $day = 86400;
         $days = floor($uptime / $day);
         $utdelta = $uptime - $days * $day;
         $hour = 3600;
         $hours = floor($utdelta / $hour);
         $utdelta -= $hours * $hour;
         $minute = 60;
         $minutes = floor($utdelta / $minute);
         $days = fs_director::CheckForNullValue($days != 1, $days . ' days', $days . ' day');
         $hours = fs_director::CheckForNullValue($hours != 1, $hours . ' hours', $hours . ' hour');
         $minutes = fs_director::CheckForNullValue($minutes != 1, $minutes . ' minutes', $minutes . ' minute');
         $retval = $days . ", " . $hours . ", " . $minutes . "";
     } elseif (sys_versions::ShowOSPlatformVersion() == "Windows") {
         $pagefile = "C:\\pagefile.sys";
         $upsince = filemtime($pagefile);
         $gettime = time() - filemtime($pagefile);
         $days = floor($gettime / (24 * 3600));
         $gettime = $gettime - $days * (24 * 3600);
         $hours = floor($gettime / 3600);
         $gettime = $gettime - $hours * 3600;
         $minutes = floor($gettime / 60);
         $gettime = $gettime - $minutes * 60;
         $seconds = $gettime;
         $days = fs_director::CheckForNullValue($days != 1, $days . ' days', $days . ' day');
         $hours = fs_director::CheckForNullValue($hours != 1, $hours . ' hours', $hours . ' hour');
         $minutes = fs_director::CheckForNullValue($minutes != 1, $minutes . ' minutes', $minutes . ' minute');
         $retval = $days . ", " . $hours . ", " . $minutes . "";
     } elseif (sys_versions::ShowOSPlatformVersion() == "MacOSX") {
         $uptime = explode(" ", exec("sysctl -n kern.boottime"));
         $uptime = str_replace(",", "", $uptime[3]);
         $uptime = time() - $uptime;
         $min = $uptime / 60;
         $hours = $min / 60;
         $days = floor($hours / 24);
         $hours = floor($hours - $days * 24);
         $minutes = floor($min - $days * 60 * 24 - $hours * 60);
         $days = fs_director::CheckForNullValue($days != 1, $days . ' days', $days . ' day');
         $hours = fs_director::CheckForNullValue($hours != 1, $hours . ' hours', $hours . ' hour');
         $minutes = fs_director::CheckForNullValue($minutes != 1, $minutes . ' minutes', $minutes . ' minute');
         $retval = $days . ", " . $hours . ", " . $minutes . "";
     } elseif (sys_versions::ShowOSPlatformVersion() == "FreeBSD") {
         $uptime = explode(" ", exec("/sbin/sysctl -n kern.boottime"));
         $uptime = str_replace(",", "", $uptime[3]);
         $uptime = time() - $uptime;
         $min = $uptime / 60;
         $hours = $min / 60;
         $days = floor($hours / 24);
         $hours = floor($hours - $days * 24);
         $minutes = floor($min - $days * 60 * 24 - $hours * 60);
         $days = fs_director::CheckForNullValue($days != 1, $days . ' days', $days . ' day');
         $hours = fs_director::CheckForNullValue($hours != 1, $hours . ' hours', $hours . ' hour');
         $minutes = fs_director::CheckForNullValue($minutes != 1, $minutes . ' minutes', $minutes . ' minute');
         $retval = $days . ", " . $hours . ", " . $minutes . "";
     } else {
         $retval = "Unsupported OS";
     }
     return $retval;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:69,代码来源:monitoring.class.php


示例20: alias

        $sql->execute();
        $sql = $mail_db->prepare("INSERT INTO alias  (address,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tgoto,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tdomain,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcreated,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tmodified,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tactive) VALUES (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t:fulladdress,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t:fulladdress2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t:domain,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tNOW(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tNOW(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t'1')");
        $sql->bindParam(':domain', $domain);
        $sql->bindParam(':fulladdress', $fulladdress);
        $sql->bindParam(':fulladdress2', $fulladdress);
        $sql->execute();
    }
}
// Deleting PostFix Mailboxes
if (!fs_director::CheckForEmptyValue(self::$delete)) {
    $sql = $mail_db->prepare("DELETE FROM mailbox WHERE username=:mb_address_vc");
    $sql->bindParam(':mb_address_vc', $rowmailbox['mb_address_vc']);
    $sql->execute();
    $sql = $mail_db->prepare("DELETE FROM alias WHERE address=:mb_address_vc");
    $sql->bindParam(':mb_address_vc', $rowmailbox['mb_address_vc']);
    $sql->execute();
}
//Saving PostFix Mailboxes
if (!fs_director::CheckForEmptyValue(self::$update)) {
    if (!fs_director::CheckForEmptyValue($password)) {
        $sql = $mail_db->prepare("UPDATE mailbox SET password=:password, modified=NOW() WHERE username=:mb_address_vc");
        $password = '{PLAIN-MD5}' . md5($password);
        $sql->bindParam(':password', $password);
        $sql->bindParam(':mb_address_vc', $rowmailbox['mb_address_vc']);
        $sql->execute();
    }
    $sql = $mail_db->prepare("UPDATE mailbox SET active=:enabled, modified=NOW() WHERE username=:mb_address_vc");
    $sql->bindParam(':enabled', $enabled);
    $sql->bindParam(':mb_address_vc', $rowmailbox['mb_address_vc']);
    $sql->execute();
}
开发者ID:bbspike,项目名称:sentora-core,代码行数:31,代码来源:postfix.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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