本文整理匯總了PHP中CPullOptions::SetCommandPerHit方法的典型用法代碼示例。如果您正苦於以下問題:PHP CPullOptions::SetCommandPerHit方法的具體用法?PHP CPullOptions::SetCommandPerHit怎麽用?PHP CPullOptions::SetCommandPerHit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CPullOptions
的用法示例。
在下文中一共展示了CPullOptions::SetCommandPerHit方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
}
elseif(strlen($_POST['Update'])>0)
{
$send = false;
if ($_POST['path_to_publish'] != "" && CPullOptions::GetPublishUrl() != $_POST['path_to_publish'])
{
CPullOptions::SetPublishUrl($_POST['path_to_publish']);
}
if ($_POST['path_to_listener'] != "" && CPullOptions::GetListenUrl() != $_POST['path_to_listener'])
{
CPullOptions::SetListenUrl($_POST['path_to_listener']);
$send = true;
}
if ($_POST['nginx_command_per_hit'] != "" && CPullOptions::GetCommandPerHit() != $_POST['nginx_command_per_hit'])
{
CPullOptions::SetCommandPerHit($_POST['nginx_command_per_hit']);
}
if ($_POST['path_to_listener_secure'] != "" && CPullOptions::GetListenSecureUrl() != $_POST['path_to_listener_secure'])
{
CPullOptions::SetListenSecureUrl($_POST['path_to_listener_secure']);
$send = true;
}
if ($_POST['path_to_mobile_listener'] != "" && CPullOptions::GetListenUrl("", true) != $_POST['path_to_mobile_listener'])
{
CPullOptions::SetListenUrl($_POST['path_to_mobile_listener'], true);
$send = true;
}
if ($_POST['path_to_mobile_listener_secure'] != "" && CPullOptions::GetListenSecureUrl("", true) != $_POST['path_to_mobile_listener_secure'])
{
CPullOptions::SetListenSecureUrl($_POST['path_to_mobile_listener_secure'], true);
$send = true;