コード例 #1
0
function popup_personal_add()
{
    $_GET["WebsiteToAdd"] = str_replace("http://", '', $_GET["WebsiteToAdd"]);
    $_GET["WebsiteToAdd"] = str_replace("https://", '', $_GET["WebsiteToAdd"]);
    $_GET["WebsiteToAdd"] = str_replace("ftp://", '', $_GET["WebsiteToAdd"]);
    writelogs("add new webiste ->{$_GET["rule_main"]}={$_GET["WebsiteToAdd"]} ", __FUNCTION__, __FILE__);
    $dans = new dansguardian_rules($_GET["hostname"], $_GET["rule_main"]);
    $dans->AddPersonalWebSiteOnCategory($_GET["WebsiteToAdd"], $_GET["category"], $_GET["rule_main"]);
}