本文整理汇总了PHP中sockets::send_email_events_notroot方法的典型用法代码示例。如果您正苦于以下问题:PHP sockets::send_email_events_notroot方法的具体用法?PHP sockets::send_email_events_notroot怎么用?PHP sockets::send_email_events_notroot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sockets
的用法示例。
在下文中一共展示了sockets::send_email_events_notroot方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CHANGE_CONFIG
function CHANGE_CONFIG()
{
if ($_POST["CHANGE_CONFIG"] == "FILTERS") {
$sock = new sockets();
$sock->send_email_events_notroot("Order to rebuild web filters engine", "The statistics appliance send order \"FILTERS\"", "proxy");
$sock->getFrameWork("squid.php?rebuild-filters=yes");
echo "<ANSWER>OK</ANSWER>\n";
}
if ($_POST["CHANGE_CONFIG"] == "DNSMASQ") {
$sock = new sockets();
$sock->send_email_events_notroot("Order to rebuild DNS engine", "The statistics appliance send order \"DNSMASQ\"", "proxy");
$sock->getFrameWork("services.php?dnsmasq-reconfigure=yes");
echo "<ANSWER>OK</ANSWER>\n";
}
if ($_POST["CHANGE_CONFIG"] == "SQUID_LANG_PACK") {
$sock = new sockets();
$sock->send_email_events_notroot("Order to rebuild HTML templates", "The statistics appliance send order \"SQUID_LANG_PACK\"", "proxy");
$sock->getFrameWork("squid.php?build-templates=yes");
echo "<ANSWER>OK</ANSWER>\n";
}
if ($_POST["CHANGE_CONFIG"] == "USERSMAC") {
$sock = new sockets();
$sock->getFrameWork("squid.php?squid-reconfigure=yes");
$sock->getFrameWork("services.php?build-system-tasks=yes");
$sock->send_email_events_notroot("Order to rebuild UsersMac database", "The statistics appliance send order \"USERSMAC\"", "proxy");
echo "<ANSWER>OK</ANSWER>\n";
}
if ($_POST["CHANGE_CONFIG"] == "BUILDCONF") {
$sock = new sockets();
$sock->getFrameWork("squid.php?squid-reconfigure=yes");
$sock->getFrameWork("services.php?build-system-tasks=yes");
$sock->send_email_events_notroot("Order to rebuild squid config", "The statistics appliance send order \"BUILDCONF\"", "proxy");
echo "<ANSWER>OK</ANSWER>\n";
}
}