当前位置: 首页>>代码示例>>PHP>>正文


PHP hmailGetVar函数代码示例

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


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


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