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

PHP hmailGetVar函数代码示例

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

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



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

示例1: hmailHackingAttemp

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != ADMIN_SERVER) {
    hmailHackingAttemp();
}
// The user is not server administrator
$messageid = hmailGetVar("messageid", 0);
$obServerMessage = $obBaseApp->Settings->ServerMessages->ItemByDBID($messageid);
$messagename = $obServerMessage->Name;
$messagetext = $obServerMessage->Text;
?>

<h1><?php 
EchoTranslation("Server message");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">

   <?php 
PrintHidden("page", "background_servermessage_save");
PrintHidden("messageid", "{$messageid}");
?>
	
   <div class="tabber">
      <div class="tabbertab">
         <h2><?php 
EchoTranslation("General");
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_servermessage.php


示例2: hmailGetVar

        $actionObj->Body = hmailGetVar("Body", "");
        $actionObj->HeaderName = hmailGetVar("HeaderName", "");
        switch ($type) {
            case eRASetHeaderValue:
                $actionObj->Value = hmailGetVar("Value", "");
                break;
            case eRABindToAddress:
                $actionObj->Value = hmailGetVar("BindToAddress", "");
                break;
        }
        $actionObj->Type = $type;
        $actionObj->Save();
        $rule->Save();
        header("Location: {$rule_link}");
        die;
    } else {
        if ($savetype == "rule") {
            $rule->Name = hmailGetVar("Name", "");
            $rule->Active = hmailGetVar("Active", "") == "1";
            $rule->UseAND = hmailGetVar("UseAND", "") == "1";
            $rule->Save();
            $ruleid = $rule->ID;
            // can't re-use rule_link since the rule id might be new (if add)
            header("Location: index.php?page=rule&action=edit&domainid={$domainid}&accountid={$accountid}&ruleid={$ruleid}");
            die;
        }
    }
}
?>

开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:29,代码来源:background_rule_save.php


示例3: hmailGetVar

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
$username = hmailGetVar("username", "");
$password = hmailGetVar("password", "");
if (Login($username, $password)) {
    header("refresh: 0; url=" . $hmail_config['rooturl']);
    exit;
} else {
    // Login failed.
    LoginError();
}
function Login($username, $password)
{
    global $obBaseApp;
    if ($username == "" || $password == "") {
        LoginError();
    }
    $obAccount = $obBaseApp->Authenticate($username, $password);
    if (!isset($obAccount)) {
        LoginError();
    }
    $_SESSION['session_loggedin'] = 1;
    $_SESSION['session_adminlevel'] = $obAccount->AdminLevel();
    $_SESSION['session_username'] = $obAccount->Address;
    $_SESSION['session_password'] = $password;
    $_SESSION['session_domainid'] = $obAccount->DomainID();
    $_SESSION['session_accountid'] = $obAccount->ID();
    return true;
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:background_login.php


示例4: hmailGetVar

    if (hmailGetVar("SMTPRelayerUseSSL", "") != "") {
        $obSettings->SetSMTPRelayerPassword(hmailGetVar("SMTPRelayerUseSSL", ""));
    }
    $obSettings->RuleLoopLimit = hmailGetVar("smtprulelooplimit", 0);
    $obSettings->MaxMessageSize = hmailGetVar("maxmessagesize", 0);
    $obSettings->SMTPDeliveryBindToIP = hmailGetVar("smtpdeliverybindtoip", "");
    $obSettings->MaxSMTPRecipientsInBatch = hmailGetVar("maxsmtprecipientsinbatch", "0");
    // RFC compliance
    $obSettings->AllowSMTPAuthPlain = hmailGetVar("AllowSMTPAuthPlain", 0);
    $obSettings->DenyMailFromNull = hmailGetVar("AllowMailFromNull", 0) == "0";
    $obSettings->AllowIncorrectLineEndings = hmailGetVar("AllowIncorrectLineEndings", 0);
    $obSettings->DisconnectInvalidClients = hmailGetVar("DisconnectInvalidClients", 0);
    $obSettings->MaxNumberOfInvalidCommands = hmailGetVar("MaxNumberOfInvalidCommands", 0);
    $obSettings->SendStatistics = hmailGetVar("SendStatistics", 0);
    $obSettings->AddDeliveredToHeader = hmailGetVar("AddDeliveredToHeader", 0);
    $obSettings->MaxNumberOfMXHosts = hmailGetVar("MaxNumberOfMXHosts", 15);
}
// General
$maxsmtpconnections = $obSettings->MaxSMTPConnections;
$welcomesmtp = $obSettings->WelcomeSMTP;
// Delivery of email
$smtpnooftries = $obSettings->SMTPNoOfTries;
$smtpminutesbetweentry = $obSettings->SMTPMinutesBetweenTry;
$HostName = $obSettings->HostName;
$smtprelayer = $obSettings->SMTPRelayer;
$smtprelayerport = $obSettings->SMTPRelayerPort;
$SMTPRelayerRequiresAuthentication = $obSettings->SMTPRelayerRequiresAuthentication;
$SMTPRelayerUseSSL = $obSettings->SMTPRelayerUseSSL;
$SMTPRelayerUsername = $obSettings->SMTPRelayerUsername;
$smtprulelooplimit = $obSettings->RuleLoopLimit;
$maxmessagesize = $obSettings->MaxMessageSize;
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_smtp.php


示例5: hmailHackingAttemp

if (hmailGetAdminLevel() != 2) {
    hmailHackingAttemp();
}
$obSettings = $obBaseApp->Settings();
$action = hmailGetVar("action", "");
if ($action == "save") {
    $obSettings->WelcomeIMAP = hmailGetVar("welcomeimap", 0);
    $obSettings->MaxIMAPConnections = hmailGetVar("MaxIMAPConnections", 0);
    $obSettings->IMAPSortEnabled = hmailGetVar("IMAPSortEnabled", 0);
    $obSettings->IMAPQuotaEnabled = hmailGetVar("IMAPQuotaEnabled", 0);
    $obSettings->IMAPIdleEnabled = hmailGetVar("IMAPIdleEnabled", 0);
    $obSettings->IMAPACLEnabled = hmailGetVar("IMAPACLEnabled", 0);
    $obSettings->IMAPSASLPlainEnabled = hmailGetVar("IMAPSASLPlainEnabled", 0);
    $obSettings->IMAPSASLInitialResponseEnabled = hmailGetVar("IMAPSASLInitialResponseEnabled", 0);
    $obSettings->IMAPMasterUser = hmailGetVar("IMAPMasterUser", "");
    $obSettings->IMAPHierarchyDelimiter = hmailGetVar("IMAPHierarchyDelimiter", "");
}
$welcomeimap = $obSettings->WelcomeIMAP;
$MaxIMAPConnections = $obSettings->MaxIMAPConnections;
$IMAPSortEnabled = $obSettings->IMAPSortEnabled;
$IMAPQuotaEnabled = $obSettings->IMAPQuotaEnabled;
$IMAPIdleEnabled = $obSettings->IMAPIdleEnabled;
$IMAPACLEnabled = $obSettings->IMAPACLEnabled;
$IMAPSASLPlainEnabled = $obSettings->IMAPSASLPlainEnabled;
$IMAPSASLInitialResponseEnabled = $obSettings->IMAPSASLInitialResponseEnabled;
$IMAPMasterUser = $obSettings->IMAPMasterUser;
$IMAPHierarchyDelimiter = $obSettings->IMAPHierarchyDelimiter;
?>

<h1><?php 
EchoTranslation("IMAP");
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_imap.php


示例6: hmailGetVar

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
$distributionlistid = hmailGetVar("distributionlistid", 0);
$recipientid = hmailGetVar("recipientid", 0);
$domainid = hmailGetVar("domainid", 0);
$action = hmailGetVar("action", "");
$recipientaddress = hmailGetVar("recipientaddress", "");
if (hmailGetAdminLevel() == 0) {
    hmailHackingAttemp();
}
if (hmailGetAdminLevel() == 1 && $domainid != hmailGetDomainID()) {
    hmailHackingAttemp();
}
// Domain admin but not for this domain.
$obDomain = $obBaseApp->Domains->ItemByDBID($domainid);
$obList = $obDomain->DistributionLists->ItemByDBID($distributionlistid);
if ($action == "edit") {
    $obRecipient = $obList->Recipients->ItemByDBID($recipientid);
} elseif ($action == "add") {
    $obRecipient = $obList->Recipients->Add();
} elseif ($action == "delete") {
    $obRecipient = $obList->Recipients->ItemByDBID($recipientid);
    $obRecipient->Delete();
    header("Location: index.php?page=distributionlist_recipients&domainid={$domainid}&distributionlistid={$distributionlistid}");
    exit;
}
$obRecipient->RecipientAddress = $recipientaddress;
$obRecipient->Save();
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:background_distributionlist_recipient_save.php


示例7: hmailHackingAttemp

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != ADMIN_SERVER) {
    hmailHackingAttemp();
}
// The user is not server administrator.
$TestType = hmailGetVar("TestType", "");
$AntiVirusSettings = $obBaseApp->Settings->AntiVirus;
$result = "";
$message = "";
switch ($TestType) {
    case "ClamWin":
        $Executable = hmailGetVar("Executable", "");
        $DatabaseFolder = hmailGetVar("DatabaseFolder", "");
        $result = $AntiVirusSettings->TestClamWinScanner($Executable, $DatabaseFolder, $message);
        break;
    case "ClamAV":
        $Hostname = hmailGetVar("Hostname", "localhost");
        $Port = hmailGetVar("Port", 783);
        $result = $AntiVirusSettings->TestClamAVScanner($Hostname, $Port, $message);
        break;
    case "External":
        $Executable = hmailGetVar("Executable", "");
        $ReturnValue = hmailGetVar("ReturnValue", 0);
        $result = $AntiVirusSettings->TestCustomerScanner($Executable, $ReturnValue, $message);
        break;
    default:
        die;
}
echo $result;
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:background_ajax_virustest.php


示例8: error_reporting

<?php

error_reporting(E_ALL);
if (!file_exists("config.php")) {
    echo "Please rename config-dist.php to config.php. The file is found in the PHPWebAdmin root folder.";
    die;
}
define('IN_WEBADMIN', true);
require_once "config.php";
require_once "include/initialization_test.php";
require_once "initialize.php";
set_exception_handler("ExceptionHandler");
set_error_handler("ErrorHandler");
$page = hmailGetVar("page");
if ($page == "") {
    $page = "frontpage";
}
$isbackground = substr($page, 0, 10) == "background";
if ($isbackground) {
    $page = "{$page}.php";
} else {
    $page = "hm_{$page}.php";
}
// Check that the page really exists.
$page = stripslashes($page);
$page = basename($page, ".php");
if (!file_exists('./' . $page . '.php')) {
    hmailHackingAttemp();
}
// If it's a background page, run here.
if ($isbackground) {
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:index.php


示例9: hmailHackingAttemp

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != 2) {
    hmailHackingAttemp();
}
$obSettings = $obBaseApp->Settings();
$action = hmailGetVar("action", "");
if ($action == "save") {
    $obSettings->MaxPOP3Connections = hmailGetVar("maxpop3connections", 0);
    $obSettings->WelcomePOP3 = hmailGetVar("welcomepop3", 0);
}
$maxpop3connections = $obSettings->MaxPOP3Connections;
$welcomepop3 = $obSettings->WelcomePOP3;
?>

<h1><?php 
EchoTranslation("POP3");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
   <?php 
PrintHidden("page", "pop3");
PrintHidden("action", "save");
?>
   
   
   <div class="tabber">
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_pop3.php


示例10: hmailGetVar

    $antiSpamSettings->SpamAssassinPort = hmailGetVar("SpamAssassinPort", 0);
    $antiSpamSettings->SpamAssassinMergeScore = hmailGetVar("SpamAssassinMergeScore", 0);
    $antiSpamSettings->SpamAssassinScore = hmailGetVar("SpamAssassinScore", 0);
    $antiSpamSettings->UseSPF = hmailGetVar("usespf", 0);
    $antiSpamSettings->UseSPFScore = hmailGetVar("usespfscore", 0);
    $antiSpamSettings->UseMXChecks = hmailGetVar("usemxchecks", 0);
    $antiSpamSettings->UseMXChecksScore = hmailGetVar("usemxchecksscore", 0);
    $antiSpamSettings->CheckHostInHelo = hmailGetVar("checkhostinhelo", 0);
    $antiSpamSettings->CheckHostInHeloScore = hmailGetVar("checkhostinheloscore", 0);
    $antiSpamSettings->AddHeaderSpam = hmailGetVar("AddHeaderSpam", 0);
    $antiSpamSettings->AddHeaderReason = hmailGetVar("AddHeaderReason", 0);
    $antiSpamSettings->PrependSubject = hmailGetVar("PrependSubject", 0);
    $antiSpamSettings->PrependSubjectText = hmailGetVar("PrependSubjectText", "");
    $antiSpamSettings->MaximumMessageSize = hmailGetVar("MaximumMessageSize", 0);
    $antiSpamSettings->DKIMVerificationEnabled = hmailGetVar("DKIMVerificationEnabled", 0);
    $antiSpamSettings->DKIMVerificationFailureScore = hmailGetVar("DKIMVerificationFailureScore", 0);
}
$SpamMarkThreshold = $antiSpamSettings->SpamMarkThreshold;
$SpamDeleteThreshold = $antiSpamSettings->SpamDeleteThreshold;
$MaximumMessageSize = $antiSpamSettings->MaximumMessageSize;
$SpamAssassinEnabled = $antiSpamSettings->SpamAssassinEnabled;
$SpamAssassinHost = $antiSpamSettings->SpamAssassinHost;
$SpamAssassinPort = $antiSpamSettings->SpamAssassinPort;
$SpamAssassinMergeScore = $antiSpamSettings->SpamAssassinMergeScore;
$SpamAssassinScore = $antiSpamSettings->SpamAssassinScore;
$usespf = $antiSpamSettings->UseSPF;
$usespfscore = $antiSpamSettings->UseSPFScore;
$usemxchecks = $antiSpamSettings->UseMXChecks;
$usemxchecksscore = $antiSpamSettings->UseMXChecksScore;
$checkhostinhelo = $antiSpamSettings->CheckHostInHelo;
$checkhostinheloscore = $antiSpamSettings->CheckHostInHeloScore;
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_smtp_antispam.php


示例11: hmailHackingAttemp

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != 2) {
    hmailHackingAttemp();
}
$obSettings = $obBaseApp->Settings();
$action = hmailGetVar("action", "");
if ($action == "save") {
    $obSettings->SslCipherList = hmailGetVar("SslCipherList", "");
}
$SslCipherList = $obSettings->SslCipherList;
?>

<h1><?php 
EchoTranslation("Security");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
   <?php 
PrintHidden("page", "security");
PrintHidden("action", "save");
?>
   
   
   <div class="tabber">
      <div class="tabbertab">
         <h2><?php 
开发者ID:digitalsoft,项目名称:hmailserver,代码行数:31,代码来源:hm_security.php


示例12: hmailGetVar

$SignatureMethod = hmailGetVar("SignatureMethod", "1");
$AddSignaturesToLocalMail = hmailGetVar("AddSignaturesToLocalMail", "0");
$AddSignaturesToReplies = hmailGetVar("AddSignaturesToReplies", "0");
$MaxAccountSize = hmailGetVar("MaxAccountSize", "0");
$MaxNumberOfAccounts = hmailGetVar("MaxNumberOfAccounts", "0");
$MaxNumberOfAliases = hmailGetVar("MaxNumberOfAliases", "0");
$MaxNumberOfDistributionLists = hmailGetVar("MaxNumberOfDistributionLists", "0");
$MaxNumberOfAccountsEnabled = hmailGetVar("MaxNumberOfAccountsEnabled", "0");
$MaxNumberOfAliasesEnabled = hmailGetVar("MaxNumberOfAliasesEnabled", "0");
$MaxNumberOfDistributionListsEnabled = hmailGetVar("MaxNumberOfDistributionListsEnabled", "0");
$DKIMSignEnabled = hmailGetVar("DKIMSignEnabled", "0");
$DKIMPrivateKeyFile = hmailGetVar("DKIMPrivateKeyFile", "");
$DKIMSelector = hmailGetVar("DKIMSelector", "");
$DKIMHeaderCanonicalizationMethod = hmailGetVar("DKIMHeaderCanonicalizationMethod", "2");
$DKIMBodyCanonicalizationMethod = hmailGetVar("DKIMBodyCanonicalizationMethod", "2");
$DKIMSigningAlgorithm = hmailGetVar("DKIMSigningAlgorithm", "2");
if ($domainactive == "") {
    $domainactive = 0;
}
if (hmailGetAdminLevel() == 1 && ($domainid != hmailGetDomainID() || $action != "edit")) {
    hmailHackingAttemp();
}
// Domain admin but not for this domain.
if ($action == "edit") {
    $obDomain = $obBaseApp->Domains->ItemByDBID($domainid);
} elseif ($action == "add") {
    $obDomain = $obBaseApp->Domains->Add();
} elseif ($action == "delete") {
    $obDomain = $obBaseApp->Domains->ItemByDBID($domainid);
    $obDomain->Delete();
    header("Location: index.php?page=domains");
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:background_domain_save.php


示例13: hmailGetVar

}
$DaysToKeepMessages = hmailGetVar("DaysToKeepMessages", 0);
$DaysToKeepMessagesValue = hmailGetVar("DaysToKeepMessagesValue", 0);
$obFA->Enabled = hmailGetVar("Enabled", 0);
$obFA->Name = hmailGetVar("Name", 0);
$obFA->MinutesBetweenFetch = hmailGetVar("MinutesBetweenFetch", 0);
$obFA->Port = hmailGetVar("Port", 0);
$obFA->ProcessMIMERecipients = hmailGetVar("ProcessMIMERecipients", 0);
$obFA->ProcessMIMEDate = hmailGetVar("ProcessMIMEDate", 0);
$obFA->ServerAddress = hmailGetVar("ServerAddress", 0);
$obFA->ServerType = hmailGetVar("ServerType", 0);
$obFA->Username = hmailGetVar("Username", 0);
$obFA->UseAntiVirus = hmailGetVar("UseAntiVirus", 0);
$obFA->UseAntiSpam = hmailGetVar("UseAntiSpam", 0);
$obFA->EnableRouteRecipients = hmailGetVar("EnableRouteRecipients", 0);
$obFA->ConnectionSecurity = hmailGetVar("ConnectionSecurity", 0);
if (strlen($DaysToKeepMessages) > 0 && $DaysToKeepMessages <= 0) {
    $obFA->DaysToKeepMessages = $DaysToKeepMessages;
} else {
    $obFA->DaysToKeepMessages = $DaysToKeepMessagesValue;
}
$Password = hmailGetVar("Password", 0);
if (strlen($Password) > 0) {
    $obFA->Password = $Password;
}
$obFA->Save();
$faid = $obFA->ID;
header("Location: index.php?page=account_externalaccount&action=edit&domainid={$domainid}&accountid={$accountid}&faid={$faid}");
?>

开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:29,代码来源:background_account_externalaccount_save.php


示例14: hmailGetVar

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
$domainid = hmailGetVar("domainid", 0);
$aliasid = hmailGetVar("aliasid", 0);
$action = hmailGetVar("action", "");
$error_message = hmailGetVar("error_message", "");
if (hmailGetAdminLevel() == 0) {
    hmailHackingAttemp();
}
if (hmailGetAdminLevel() == 1 && $domainid != hmailGetDomainID()) {
    hmailHackingAttemp();
}
// Domain admin but not for this domain.
$obDomain = $obBaseApp->Domains->ItemByDBID($domainid);
$aliasname = "";
$aliasvalue = "";
$aliasactive = 0;
if ($action == "edit") {
    $obAlias = $obDomain->Aliases->ItemByDBID($aliasid);
    $aliasname = $obAlias->Name;
    $aliasvalue = $obAlias->Value;
    $aliasactive = $obAlias->Active;
    $aliasname = substr($aliasname, 0, strpos($aliasname, "@"));
}
$domainname = $obDomain->Name;
$aliasactivechecked = hmailCheckedIf1($aliasactive);
?>
开发者ID:nberardi,项目名称:hMailServer,代码行数:30,代码来源:hm_alias.php


示例15: hmailHackingAttemp

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != ADMIN_SERVER) {
    hmailHackingAttemp();
}
// The user is not server administrator.
$action = hmailGetVar("action", "");
$id = hmailGetVar("id", 0);
$Name = hmailGetVar("Name", 0);
$CertificateFile = hmailGetVar("CertificateFile", "");
$PrivateKeyFile = hmailGetVar("PrivateKeyFile", "");
$sslCertificates = $obBaseApp->Settings->SSLCertificates;
if ($action == "edit") {
    $sslCertificate = $sslCertificates->ItemByDBID($id);
} elseif ($action == "add") {
    $sslCertificate = $sslCertificates->Add();
} elseif ($action == "delete") {
    $sslCertificates->DeleteByDBID($id);
    header("Location: index.php?page=sslcertificates");
}
// Save the changes
$sslCertificate->Name = $Name;
$sslCertificate->CertificateFile = $CertificateFile;
$sslCertificate->PrivateKeyFile = $PrivateKeyFile;
$sslCertificate->Save();
header("Location: index.php?page=sslcertificates");
?>
开发者ID:nberardi,项目名称:hMailServer,代码行数:30,代码来源:background_sslcertificate_save.php


示例16: hmailGetVar

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
$action = hmailGetVar("action", "");
$domainid = hmailGetVar("domainid", 0);
$accountid = hmailGetVar("accountid", 0);
$ruleid = hmailGetVar("ruleid", 0);
$actionid = hmailGetVar("actionid", 0);
if (!GetHasRuleAccess($domainid, $accountid)) {
    hmailHackingAttemp();
}
// The user is not server administrator
include "include/rule_strings.php";
if ($domainid == 0) {
    $rule = $obBaseApp->Rules->ItemByDBID($ruleid);
} else {
    $rule = $obBaseApp->Domains->ItemByDBID($domainid)->Accounts->ItemByDBID($accountid)->Rules->ItemByDBID($ruleid);
}
if ($action == "edit") {
    $ruleAction = $rule->Actions->ItemByDBID($actionid);
    $To = $ruleAction->To;
    $IMAPFolder = $ruleAction->IMAPFolder;
    $ScriptFunction = $ruleAction->ScriptFunction;
    $FromName = $ruleAction->FromName;
    $FromAddress = $ruleAction->FromAddress;
    $Subject = $ruleAction->Subject;
    $Body = $ruleAction->Body;
    $HeaderName = $ruleAction->HeaderName;
    $Value = $ruleAction->Value;
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_rule_action.php


示例17: hmailGetVar

<?php

if (!defined('IN_WEBADMIN')) {
    exit;
}
$action = hmailGetVar("action", "");
$domainid = hmailGetVar("domainid", 0);
$accountid = hmailGetVar("accountid", 0);
$ruleid = hmailGetVar("ruleid", 0);
// check permissions
if (!GetHasRuleAccess($domainid, $accountid)) {
    hmailHackingAttemp();
}
// The user has no rule editing permissions.
include "include/rule_strings.php";
if ($ruleid != 0) {
    if ($domainid != 0) {
        $domain = $obBaseApp->Domains->ItemByDBID($domainid);
        $account = $domain->Accounts->ItemByDBID($accountid);
        $rule = $account->Rules->ItemByDBID($ruleid);
    } else {
        $rule = $obBaseApp->Rules->ItemByDBID($ruleid);
    }
    $Name = $rule->Name;
    $Active = $rule->Active;
    $UseAND = $rule->UseAND;
} else {
    $Name = "";
    $Active = 0;
    $UseAND = 1;
}
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_rule.php


示例18: hmailHackingAttemp

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != 2) {
    hmailHackingAttemp();
}
$obSettings = $obBaseApp->Settings();
$action = hmailGetVar("action", "");
if ($action == "save") {
    $obSettings->VerifyRemoteSslCertificate = hmailGetVar("VerifyRemoteSslCertificate", 0);
    $obSettings->SslCipherList = hmailGetVar("SslCipherList", "");
    $obSettings->SslVersion30Enabled = hmailGetVar("SslVersion30Enabled", 0);
    $obSettings->TlsVersion10Enabled = hmailGetVar("TlsVersion10Enabled", 0);
    $obSettings->TlsVersion11Enabled = hmailGetVar("TlsVersion11Enabled", 0);
    $obSettings->TlsVersion12Enabled = hmailGetVar("TlsVersion12Enabled", 0);
}
$VerifyRemoteSslCertificate = $obSettings->VerifyRemoteSslCertificate;
$SslCipherList = $obSettings->SslCipherList;
$SslVersion30Enabled = $obSettings->SslVersion30Enabled;
$TlsVersion10Enabled = $obSettings->TlsVersion10Enabled;
$TlsVersion11Enabled = $obSettings->TlsVersion11Enabled;
$TlsVersion12Enabled = $obSettings->TlsVersion12Enabled;
?>

<h1><?php 
EchoTranslation("Security");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:30,代码来源:hm_ssltls.php


示例19: hmailGetVar

$routedomainname = hmailGetVar("routedomainname", "");
$routetargetsmtphost = hmailGetVar("routetargetsmtphost", "0");
$routetargetsmtpport = hmailGetVar("routetargetsmtpport", "0");
$TreatSenderAsLocalDomain = hmailGetVar("TreatSenderAsLocalDomain", "0");
$TreatRecipientAsLocalDomain = hmailGetVar("TreatRecipientAsLocalDomain", "0");
$routenumberoftries = hmailGetVar("routenumberoftries", "0");
$routemminutesbetweentry = hmailGetVar("routemminutesbetweentry", "0");
$routerequiresauth = hmailGetVar("routerequiresauth", "0");
$routeauthusername = hmailGetVar("routeauthusername", "0");
$routeauthpassword = hmailGetVar("routeauthpassword", "0");
$ConnectionSecurity = hmailGetVar("ConnectionSecurity", "0");
$obRoute->DomainName = $routedomainname;
$obRoute->TargetSMTPHost = $routetargetsmtphost;
$obRoute->TargetSMTPPort = $routetargetsmtpport;
$obRoute->TreatSenderAsLocalDomain = $TreatSenderAsLocalDomain;
$obRoute->TreatRecipientAsLocalDomain = $TreatRecipientAsLocalDomain;
$obRoute->NumberOfTries = $routenumberoftries;
$obRoute->MinutesBetweenTry = $routemminutesbetweentry;
$obRoute->RelayerRequiresAuth = $routerequiresauth;
$obRoute->RelayerAuthUsername = $routeauthusername;
$obRoute->AllAddresses = hmailGetVar("AllAddresses", "0");
$obRoute->ConnectionSecurity = $ConnectionSecurity;
if ($routeauthpassword != "") {
    $obRoute->SetRelayerAuthPassword($routeauthpassword);
}
$obRoute->Save();
$routeid = $obRoute->ID;
header("Location: index.php?page=route&action=edit&routeid={$routeid}");
?>

开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:29,代码来源:background_route_save.php


示例20: hmailHackingAttemp

if (!defined('IN_WEBADMIN')) {
    exit;
}
if (hmailGetAdminLevel() != ADMIN_SERVER) {
    hmailHackingAttemp();
}
// The user is not server administrator.
$action = hmailGetVar("action", "");
$relayid = hmailGetVar("relayid", 0);
if ($action == "edit") {
    $obIncomingRelay = $obBaseApp->Settings->IncomingRelays->ItemByDBID($relayid);
} elseif ($action == "add") {
    $obIncomingRelay = $obBaseApp->Settings->IncomingRelays->Add();
} elseif ($action == "delete") {
    $obBaseApp->Settings->IncomingRelays->DeleteByDBID($relayid);
    header("Location: index.php?page=incomingrelays");
}
// Fetch form
$relayname = hmailGetVar("relayname", "0");
$relaylowerip = hmailGetVar("relaylowerip", "0");
$relayupperip = hmailGetVar("relayupperip", "0");
// Save the changes
$obIncomingRelay->Name = $relayname;
$obIncomingRelay->LowerIP = $relaylowerip;
$obIncomingRelay->UpperIP = $relayupperip;
$obIncomingRelay->Save();
$relayid = $obIncomingRelay->ID;
header("Location: index.php?page=incomingrelay&action=edit&relayid={$relayid}");
?>

开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:29,代码来源:background_incomingrelay_save.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP hmbkp_path函数代码示例发布时间:2022-05-15
下一篇:
PHP hmailGetAdminLevel函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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