當前位置: 首頁>>代碼示例>>PHP>>正文


PHP squidbee::SaveToServer方法代碼示例

本文整理匯總了PHP中squidbee::SaveToServer方法的典型用法代碼示例。如果您正苦於以下問題:PHP squidbee::SaveToServer方法的具體用法?PHP squidbee::SaveToServer怎麽用?PHP squidbee::SaveToServer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在squidbee的用法示例。


在下文中一共展示了squidbee::SaveToServer方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: amavis

if(posix_getuid()<>0){die("Cannot be used in web server mode\n\n");}
include_once(dirname(__FILE__).'/ressources/class.templates.inc');
include_once(dirname(__FILE__).'/ressources/class.ini.inc');
include_once(dirname(__FILE__).'/ressources/class.main_cf.inc');
include_once(dirname(__FILE__).'/ressources/class.amavis.inc');
include_once(dirname(__FILE__).'/ressources/class.samba.inc');
include_once(dirname(__FILE__).'/ressources/class.squid.inc');

$main=new main_cf();
$main->save_conf();
$main->save_conf_to_server(1);

$amavis=new amavis();
$amavis->Save();
$amavis->SaveToServer();

$samba=new samba();
$samba->SaveToLdap();

$squid=new squidbee();
$squid->SaveToLdap();
$squid->SaveToServer();

system('/etc/init.d/artica-postfix restart postfix');
system('/etc/init.d/artica-postfix restart squid');
system('/etc/init.d/artica-postfix restart samba');
system('/usr/share/artica-postfix/bin/artica-install --cyrus-checkconfig');
system('/etc/init.d/artica-postfix restart imap');
system('/etc/init.d/artica-postfix restart saslauthd');

?>
開發者ID:rsd,項目名稱:artica-1.5,代碼行數:31,代碼來源:exec.change.password.php

示例2: delete_cache

function delete_cache()
{
    $cachedir = base64_decode($_POST["delete-cache"]);
    $squid = new squidbee();
    unset($squid->cache_list[$cachedir]);
    $sock = new sockets();
    $squid->SaveToLdap(true);
    $squid->SaveToServer(true);
    $sock->getFrameWork("squid.php?remove-cache={$_POST["delete-cache"]}");
}
開發者ID:BillTheBest,項目名稱:1.6.x,代碼行數:10,代碼來源:squid.caches32.php

示例3: applysquid

function applysquid(){
	$squid=new squidbee();
	$squid->SaveToLdap();
	$squid->SaveToServer();
	echo applysquid_icon();
}
開發者ID:brucewu16899,項目名稱:1.6.x,代碼行數:6,代碼來源:squid.newbee.php

示例4: SQUID_DELETE_CACHE

function SQUID_DELETE_CACHE($value)
{
    $value = unserialize(base64_decode($value));
    if (!is_array($value)) {
        send_email_events("Failed to add/modify squid cache (not an array)", null, "CLOUD");
        return true;
    }
    include_once dirname(__FILE__) . '/ressources/class.squid.inc';
    $sock = new sockets();
    $squid = new squidbee();
    unset($squid->cache_list[$value["cache_directory"]]);
    $squid->SaveToLdap();
    $squid->SaveToServer();
    $sock = new sockets();
    $SquidCacheTasks = unserialize(base64_decode($sock->GET_INFO("SquidCacheTask")));
    $SquidCacheTasks[$value["cache_directory"]] = $_GET;
    $sock->SaveConfigFile(base64_encode(serialize($SquidCacheTasks)), "SquidCacheTask");
    $sock->getFrameWork("cmd.php?squid-build-caches=yes");
    send_email_events("Success removing squid cache \"{$value["cache_directory"]}\"", "Squid was scheduled to be reloaded.\n", "CLOUD");
    return true;
}
開發者ID:brucewu16899,項目名稱:1.6.x,代碼行數:21,代碼來源:exec.artica.meta.tasks.php

示例5: delete_cache

function delete_cache()
{
    $cachedir = base64_decode($_POST["delete-cache"]);
    $squid = new squidbee();
    unset($squid->cache_list[$cachedir]);
    $sock = new sockets();
    $squid->SaveToLdap(true);
    $squid->SaveToServer(true);
}
開發者ID:BillTheBest,項目名稱:1.6.x,代碼行數:9,代碼來源:squid.cache-central.php

示例6: cache_save

function cache_save()
{
    if ($_GET["cache_directory"] == null) {
        echo "False:cache directory is null\n";
        exit;
    }
    $squid = new squidbee();
    $squid->cache_list[$_GET["cache_directory"]] = array("cache_type" => $_GET["cache_type"], "cache_dir_level1" => $_GET["cache_dir_level1"], "cache_dir_level2" => $_GET["cache_dir_level2"], "cache_size" => $_GET["size"]);
    $squid->SaveToLdap();
    $squid->SaveToServer();
}
開發者ID:brucewu16899,項目名稱:artica,代碼行數:11,代碼來源:squid.newbee.php


注:本文中的squidbee::SaveToServer方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。