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


PHP PreprocessOutput函数代码示例

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


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

示例1: EchoTranslation

   <div class="tabber">
      <div class="tabbertab">
         <h2><?php 
EchoTranslation("General");
?>
</h2>          
   
      	<table border="0" width="100%" cellpadding="5">
      		<tr>
      			<td width="30%"><?php 
EchoTranslation("Address");
?>
</td>
      			<td width="70%">
         			<input type="text" name="recipientaddress" value="<?php 
echo PreprocessOutput($recipientaddress);
?>
" size="30"  checkallownull="false" checktype="email" checkmessage="<?php 
EchoTranslation("Address");
?>
">
               </td>			
      		</tr>

        </table>
      </div>
   </div>
   <?php 
PrintSaveButton();
?>
      
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:30,代码来源:hm_distributionlist_recipient.php

示例2: PreprocessOutput

</td>
	</tr>
	
<?php 
$bgcolor = "#EEEEEE";
$Count = $obWhiteListAddresses->Count();
$str_delete = $obLanguage->String("Remove");
for ($i = 0; $i < $Count; $i++) {
    $obAddress = $obWhiteListAddresses->Item($i);
    $ID = $obAddress->ID;
    $LowerIPAddress = $obAddress->LowerIPAddress;
    $UpperIPAddress = $obAddress->UpperIPAddress;
    $EmailAddress = $obAddress->EmailAddress;
    $Description = $obAddress->Description;
    $EmailAddress = PreprocessOutput($EmailAddress);
    $Description = PreprocessOutput($Description);
    echo "<tr bgcolor=\"{$bgcolor}\">";
    echo "<td><a href=\"?page=whitelistaddress&action=edit&ID={$ID}\">{$Description}</a></td>";
    echo "<td><a href=\"?page=whitelistaddress&action=edit&ID={$ID}\">{$LowerIPAddress}</a></td>";
    echo "<td><a href=\"?page=whitelistaddress&action=edit&ID={$ID}\">{$UpperIPAddress}</a></td>";
    echo "<td><a href=\"?page=whitelistaddress&action=edit&ID={$ID}\">{$EmailAddress}</a></td>";
    echo "<td><a href=\"?page=background_whitelistaddress_save&action=delete&ID={$ID}\">{$str_delete}</a></td>";
    echo "</tr>";
    if ($bgcolor == "#EEEEEE") {
        $bgcolor = "#DDDDDD";
    } else {
        $bgcolor = "#EEEEEE";
    }
}
?>
<tr>
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_whitelistaddresses.php

示例3: hmailGetAccountID

$str_delete = $obLanguage->String("Remove");
$currentaccountid = hmailGetAccountID();
$str_accountaddress = $obLanguage->String("Address");
$str_maxsizemb = $obLanguage->String("Maximum size (MB)");
echo "<tr bgcolor=\"#CCCCCC\">";
echo "<td width=\"60%\">{$str_accountaddress}</td>";
echo "<td width=\"20%\">{$str_maxsizemb}</td>";
echo "<td width=\"20%\"></td>";
echo "</tr>";
$obAccounts = $obDomain->Accounts;
for ($i = 0; $i < $Count; $i++) {
    $obAccount = $obAccounts->Item($i);
    $accountaddress = $obAccount->Address;
    $accountid = $obAccount->ID;
    $accountmaxsize = $obAccount->MaxSize();
    $accountaddress = PreprocessOutput($accountaddress);
    $accountaddress_escaped = GetStringForJavaScript($accountaddress);
    echo "<tr bgcolor=\"{$bgcolor}\">";
    echo "<td width=\"60%\"><a href=\"?page=account&action=edit&domainid={$domainid}&accountid={$accountid}\">{$accountaddress}</a></td>";
    echo "<td width=\"20%\">{$accountmaxsize}</td>";
    echo "<td width=\"20%\">";
    if ($currentaccountid != $accountid) {
        echo "<a href=\"javascript:ConfirmDelete('{$accountaddress_escaped}', '?page=background_account_save&action=delete&domainid={$domainid}&accountid={$accountid}')\">{$str_delete}</a>";
    } else {
        "</td>";
    }
    echo "</tr>";
    if ($bgcolor == "#EEEEEE") {
        $bgcolor = "#DDDDDD";
    } else {
        $bgcolor = "#EEEEEE";
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_accounts.php

示例4: PreprocessOutput

</td>
      		<td width="50%"><input type="text" name="smtpdeliverybindtoip" value="<?php 
echo PreprocessOutput($smtpdeliverybindtoip);
?>
" size="20" checkallownull="true" checktype="ipaddress" checkmessage="<?php 
EchoTranslation("Bind to local IP address");
?>
"></td>
      	</tr>	   
      	<tr>
      		<td><?php 
EchoTranslation("Maximum number of recipients in batch");
?>
</td>
      		<td><input type="text" name="maxsmtprecipientsinbatch" value="<?php 
echo PreprocessOutput($maxsmtprecipientsinbatch);
?>
" size="4" checkallownull="false" checktype="number" checkmessage="<?php 
EchoTranslation("Maximum number of recipients in batch");
?>
"></td>
      	</tr>	
      	<tr>
      		<td><?php 
EchoTranslation("Rule Loop Limit");
?>
</td>
      		<td><input type="text" name="smtprulelooplimit" value="<?php 
echo $smtprulelooplimit;
?>
" size="3" checkallownull="false" checktype="number" checkmessage="<?php 
开发者ID:nberardi,项目名称:hMailServer,代码行数:31,代码来源:hm_smtp.php

示例5: GetStringForDomain

function GetStringForDomain($obDomain, $parentid)
{
    global $dtree, $dtitem, $domain_root;
    $current_domainid = hmailGetVar("domainid", 0);
    $current_accountid = hmailGetVar("accountid", 0);
    $domainname = $obDomain->Name;
    $domainname = PreprocessOutput($domainname);
    $domainname = str_replace("'", "\\'", $domainname);
    $dtree .= "d.add({$domain_root},{$parentid},'" . $domainname . "','index.php?page=domain&action=edit&domainid=" . $obDomain->ID . "','','','" . "images/server.png','" . "images/server.png');\r\n";
    if ($current_domainid != $obDomain->ID && hmailGetAdminLevel() == ADMIN_SERVER) {
        // If the user is logged on as a system administrator, only show accounts
        // for the currently selected domain.
        return;
    }
    $obAccounts = $obDomain->Accounts();
    $AccountsCount = $obAccounts->Count();
    $accounts_root = $dtitem++;
    $dtree .= "d.add({$accounts_root},{$domain_root},'" . GetStringForJavaScript("Accounts") . " ({$AccountsCount})','index.php?page=accounts&domainid=" . $obDomain->ID . "','','','" . "images/folder.png','" . "images/folder.png');\r\n";
    for ($j = 0; $j < $AccountsCount; $j++) {
        $obAccount = $obAccounts->Item($j);
        $accountaddress = $obAccount->Address;
        $accountaddress = PreprocessOutput($accountaddress);
        $accountaddress = str_replace("'", "\\'", $accountaddress);
        $accountid = $obAccount->ID;
        $di = $dtitem++;
        $url = htmlentities("index.php?page=account&action=edit&accountid=" . $accountid . "&domainid=" . $obDomain->ID);
        $dtree .= "d.add({$di},{$accounts_root},'" . $accountaddress . "','{$url}','','','" . "images/user.png','" . "images/user.png');\r\n";
        // Only show sub-nodes for the currently selected account.
        if ($current_accountid == $accountid) {
            $dtree .= "d.add(" . $dtitem++ . ",{$di},'" . GetStringForJavaScript("External accounts") . "','index.php?page=account_externalaccounts&accountid=" . $accountid . "&domainid=" . $obDomain->ID . "');\r\n";
        }
    }
    $obAliases = $obDomain->Aliases();
    $AliasesCount = $obAliases->Count();
    $aliases_root = $dtitem++;
    $dtree .= "d.add({$aliases_root},{$domain_root},'" . GetStringForJavaScript("Aliases") . " ({$AliasesCount})','index.php?page=aliases&domainid=" . $obDomain->ID . "','','','" . "images/folder.png','" . "images/folder.png');\r\n";
    for ($j = 0; $j < $AliasesCount; $j++) {
        $obAlias = $obAliases->Item($j);
        $aliasname = $obAlias->Name;
        $aliasname = PreprocessOutput($aliasname);
        $aliasname = str_replace("'", "\\'", $aliasname);
        $di = $dtitem++;
        $dtree .= "d.add({$di},{$aliases_root},'" . $aliasname . "','index.php?page=alias&action=edit&aliasid=" . $obAlias->ID . "&domainid=" . $obDomain->ID . "','','','" . "images/arrow_switch.png','" . "images/arrow_switch.png');\r\n";
    }
    $obDistributionLists = $obDomain->DistributionLists();
    $DListCount = $obDistributionLists->Count();
    $dlist_root = $dtitem++;
    $dtree .= "d.add({$dlist_root},{$domain_root},'" . GetStringForJavaScript("Distribution lists") . " ({$DListCount})','index.php?page=distributionlists&domainid=" . $obDomain->ID . "','','','" . "images/folder.png','" . "images/folder.png');\r\n";
    for ($j = 0; $j < $DListCount; $j++) {
        $obDistributionList = $obDistributionLists->Item($j);
        $di = $dtitem++;
        $address = PreprocessOutput($obDistributionList->Address);
        $address = str_replace("'", "\\'", $address);
        $dtree .= "d.add({$di},{$dlist_root},'" . $address . "','index.php?page=distributionlist&action=edit&distributionlistid=" . $obDistributionList->ID . "&domainid=" . $obDomain->ID . "','','','" . "images/arrow_out.png','" . "images/arrow_out.png');\r\n";
        $dtree .= "d.add(" . $dtitem++ . ",{$di},'" . GetStringForJavaScript("Members") . " (" . $obDistributionList->Recipients->Count() . ")','index.php?page=distributionlist_recipients&distributionlistid=" . $obDistributionList->ID . "&domainid=" . $obDomain->ID . "');\r\n";
    }
}
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:57,代码来源:include_treemenu.php

示例6: explode

$count = 0;
if (strlen($undeliveredMessages) > 0) {
    $list = explode("\r\n", $undeliveredMessages);
    $count = count($list);
    $as_soon_as_possible = $obLanguage->String("As soon as possible");
    foreach ($list as $line) {
        $columns = explode("\t", $line);
        if (count($columns) > 4) {
            if ($columns[4] == "1901-01-01 00:00:00") {
                $columns[4] = $as_soon_as_possible;
            }
            echo "<tr>";
            echo "<td>" . $columns[0] . "</td>";
            echo "<td>" . $columns[1] . "</td>";
            echo "<td>" . PreprocessOutput($columns[2]) . "</td>";
            echo "<td>" . PreprocessOutput($columns[3]) . "</td>";
            echo "<td>" . $columns[4] . "</td>";
            echo "<td>" . $columns[6] . "</td>";
            echo "</tr>";
        }
    }
}
?>
         </table>
         <br/>
         <?php 
echo $count . "&nbsp;" . $obLanguage->String("messages in queue");
?>
         
         
   </div>   
开发者ID:digitalsoft,项目名称:hmailserver,代码行数:31,代码来源:hm_status.php

示例7: PreprocessOutput

      			<td>
         		   <input type="text" name="UpperIPAddress" value="<?php 
echo PreprocessOutput($UpperIPAddress);
?>
" size="20">
               </td>			
      		</tr>	
      		
      		<tr>
      			<td><?php 
EchoTranslation("E-mail address");
?>
</td>
      			<td>
         		   <input type="text" name="EmailAddress" value="<?php 
echo PreprocessOutput($EmailAddress);
?>
" size="50">
               </td>			
      		</tr>					
      			
      	</table>
      </div>
   </div>

   <?php 
PrintSaveButton();
?>
   
</form>
开发者ID:nberardi,项目名称:hMailServer,代码行数:30,代码来源:hm_whitelistaddress.php

示例8: PreprocessOutput

?>

   <table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr> 
        <td>
         <font face="verdana" size="2">
         
         <h1>Operation failed</h1>
         The operation failed. Please make sure that you have logged on with the appropriate permissions to perform this task.
         <br/>
         <br/>
         
         The following description exists:<br/><br/>
         
         <?php 
echo PreprocessOutput($errstr);
?>
         </br><br/>
         Error location: <?php 
echo PreprocessOutput($errfile);
?>
<br/>
         </font>
         <br/><br/>
         <input type="submit" onClick="history.back();" value="Go back">
         <input type="submit" onClick="document.location.href='logout.php';" value="Log out">
         
         
      </tr>
  </table>
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:30,代码来源:error.php

示例9: EchoTranslation

   
      	<table border="0" width="100%" cellpadding="5">
      		<tr>
      			<td width="10%"><?php 
EchoTranslation("Name");
?>
</td>
      			<td width="70%">
         			<?php 
echo PreprocessOutput($messagename);
?>
               </td>			
      		</tr>
      		<tr>
      			<td><?php 
EchoTranslation("Text");
?>
</td>
               <td><textarea name="messagetext" rows="20" cols="100"><?php 
echo PreprocessOutput($messagetext);
?>
</textarea>
      		</tr>
         </table>
       </div>
    </div>  
   <?php 
PrintSaveButton();
?>
</form>
开发者ID:nberardi,项目名称:hMailServer,代码行数:29,代码来源:hm_servermessage.php

示例10: PreprocessOutput

for ($i = 0; $i < $blockedAttachments->Count; $i++) {
    $blockedAttachment = $blockedAttachments->Item($i);
    $id = $blockedAttachment->ID;
    $wildcard = $blockedAttachment->Wildcard;
    $description = $blockedAttachment->Description;
    ?>
                     <tr>
                        <td><a href="?page=blocked_attachment&action=edit&id=<?php 
    echo $id;
    ?>
"><?php 
    echo PreprocessOutput($wildcard);
    ?>
</a></td>                     
                        <td><?php 
    echo PreprocessOutput($description);
    ?>
</td>                     
                        <td>
                        <?php 
    echo "<a href=\"?page=background_blocked_attachment_save&action=delete&id={$id}\">{$str_delete}</a>";
    ?>
                        </td>                     
                     </tr>
                     <?php 
}
?>
            
         </table>
         <a href="?page=blocked_attachment&action=add"><i><?php 
EchoTranslation("Add");
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_smtp_antivirus.php

示例11: EchoTranslation

EchoTranslation("Distribution lists");
?>
</h1>
<table border="0" width="100%" cellpadding="5">
<?php 
$bgcolor = "#EEEEEE";
$obDomain = $obBaseApp->Domains->ItemByDBID($domainid);
$obLists = $obDomain->DistributionLists();
$Count = $obLists->Count();
$str_delete = $obLanguage->String("Remove");
$obDistributionLists = $obDomain->DistributionLists;
for ($i = 0; $i < $Count; $i++) {
    $obList = $obDistributionLists->Item($i);
    $listaddress = $obList->Address;
    $listid = $obList->ID;
    $listaddress = PreprocessOutput($listaddress);
    $listaddress_escaped = GetStringForJavaScript($listaddress);
    echo "<tr bgcolor=\"{$bgcolor}\">";
    echo "<td><a href=\"?page=distributionlist&action=edit&domainid={$domainid}&distributionlistid={$listid}&\">{$listaddress}</a></td>";
    echo "<td width=\"20%\"><a href=\"javascript:ConfirmDelete('{$listaddress_escaped}', '?page=background_distributionlist_save&action=delete&domainid={$domainid}&distributionlistid={$listid}')\">{$str_delete}</a></td>";
    echo "</tr>";
    if ($bgcolor == "#EEEEEE") {
        $bgcolor = "#DDDDDD";
    } else {
        $bgcolor = "#EEEEEE";
    }
}
?>

<tr>
   <td>
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_distributionlists.php

示例12: PreprocessOutput

</td>
         		<td size="70%"><input type="text" name="tcpipthreads" value="<?php 
echo PreprocessOutput($tcpipthreads);
?>
" checkallownull="false" checktype="number" checkmessage="<?php 
EchoTranslation("Max number of command threads");
?>
"></td>
         	</tr>  	
         	<tr>
         		<td valign="top"><?php 
EchoTranslation("Delivery threads");
?>
</td>
         		<td><input type="text" name="maxdeliverythreads" value="<?php 
echo PreprocessOutput($maxdeliverythreads);
?>
" checkallownull="false" checktype="number" checkmessage="<?php 
EchoTranslation("Delivery threads");
?>
"></td>
         	</tr> 
            <?php 
PrintPropertyEditRow("MaxAsynchronousThreads", "Max number of asynchronous task threads", $MaxAsynchronousThreads, 4, "number");
?>
         	<tr>
         		<td valign="top"><?php 
EchoTranslation("Worker thread priority");
?>
</td>
         		<td>  
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_performance.php

示例13: EchoTranslation

   <div class="tabber">
      <div class="tabbertab">
         <h2><?php 
EchoTranslation("General");
?>
</h2>          
   
      	<table border="0" width="100%" cellpadding="5">
      		<tr>
      			<td width="30%"><?php 
EchoTranslation("Address");
?>
</td>
      			<td width="70%">
         			<input type="text" name="routeaddress" value="<?php 
echo PreprocessOutput($routeaddress);
?>
" size="35" checkallownull="false" checktype="email" checkmessage="<?php 
EchoTranslation("Address");
?>
">
               </td>			
      		</tr>
      	</table>
      </div>
   </div>
   <?php 
PrintSaveButton();
?>
   
</form>
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_route_address.php

示例14: EchoTranslation

<h1><?php 
EchoTranslation("Incoming relays");
?>
</h1>
<table border="0" width="100%" cellpadding="5">
<?php 
$bgcolor = "#EEEEEE";
$obSettings = $obBaseApp->Settings();
$obIncomingRelays = $obSettings->IncomingRelays();
$Count = $obIncomingRelays->Count();
$str_delete = $obLanguage->String("Remove");
for ($i = 0; $i < $Count; $i++) {
    $obIncomingRelay = $obIncomingRelays->Item($i);
    $relayname = $obIncomingRelay->Name;
    $relayid = $obIncomingRelay->ID;
    $relayname = PreprocessOutput($relayname);
    echo "<tr bgcolor=\"{$bgcolor}\">";
    echo "<td width=\"80%\"><a href=\"?page=incomingrelay&action=edit&relayid={$relayid}&\">{$relayname}</a></td>";
    echo "<td width=\"20%\"><a href=\"?page=background_incomingrelay_save&action=delete&relayid={$relayid}\">{$str_delete}</a></td>";
    echo "</tr>";
    if ($bgcolor == "#EEEEEE") {
        $bgcolor = "#DDDDDD";
    } else {
        $bgcolor = "#EEEEEE";
    }
}
?>
<tr>
   <td>
      <br>
      <a href="?page=incomingrelay&action=add"><i><?php 
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_incomingrelays.php

示例15: EchoTranslation

                     <?php 
EchoTranslation("Route");
?>
<br/>
                     
                     <select name="RouteID">
                     <?php 
if (hmailGetAdminLevel() == ADMIN_SERVER) {
    $obSettings = $obBaseApp->Settings;
    $obRoutes = $obSettings->Routes();
    $Count = $obRoutes->Count();
    for ($i = 0; $i < $Count; $i++) {
        $obRoute = $obRoutes->Item($i);
        $routename = $obRoute->DomainName;
        $routeid = $obRoute->ID;
        $routename = PreprocessOutput($routename);
        echo "<option value=\"{$routeid}\">{$routename}</option>";
    }
}
?>
                        
                     </select>
                  </div>                     
               </td>
               
      		</tr>   
   
         </table>
       </div>
    </div>  
   <?php 
开发者ID:TyphoonSB,项目名称:hmailserver,代码行数:31,代码来源:hm_rule_action.php


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