コード例 #1
0
ファイル: options.php プロジェクト: k-kalashnikov/geekcon_new
                ${"SITE_PATH_" . $arSite["LID"]} = "/" . trim(str_replace("\\", "/", ${"SITE_PATH_" . $arSite["LID"]}), "/");
            }
            if (array_key_exists($arSite["LID"], $arPathsNullType)) {
                if (strlen(${"SITE_PATH_" . $arSite["LID"]}) > 0) {
                    CBlogSitePath::Update($arPathsNullType[$arSite["LID"]], array("PATH" => ${"SITE_PATH_" . $arSite["LID"]}));
                } else {
                    CBlogSitePath::Delete($arPathsNullType[$arSite["LID"]]);
                }
            } else {
                CBlogSitePath::Add(array("SITE_ID" => $arSite["LID"], "PATH" => ${"SITE_PATH_" . $arSite["LID"]}));
            }
            unset($arPathsNullType[$arSite["LID"]]);
        }
        foreach ($arPaths as $key) {
            foreach ($key as $val) {
                CBlogSitePath::Delete($val);
            }
        }
    }
    if (strlen($strWarning) > 0) {
        CAdminMessage::ShowMessage($strWarning);
    }
    $aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("BLO_TAB_SET"), "ICON" => "blog_settings", "TITLE" => GetMessage("BLO_TAB_SET_ALT")), array("DIV" => "edit2", "TAB" => GetMessage("BLO_TAB_RIGHTS"), "ICON" => "blog_settings", "TITLE" => GetMessage("BLO_TAB_RIGHTS_ALT")));
    $tabControl = new CAdminTabControl("tabControl", $aTabs);
    $tabControl->Begin();
    ?>
<form method="POST" action="<?php 
    echo $APPLICATION->GetCurPage();
    ?>
?mid=<?php 
    echo htmlspecialcharsbx($mid);
コード例 #2
0
ファイル: index.php プロジェクト: spas-viktor/books
        if ($res_blog = $db_blog->Fetch()) {
            do {
                CBlog::Delete($res_blog["ID"]);
            } while ($res_blog = $db_blog->Fetch());
        }
    } else {
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/blogs/index.php", array("BLOG_GROUP_ID" => $SocNetGroupID));
        return;
    }
}
if (WIZARD_FIRST_INSTAL != 'Y') {
    $arFilters = array(array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "blogs/" . WIZARD_SITE_ID . "_blog_#user_id#/", "TYPE" => "B"), array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "blogs/" . WIZARD_SITE_ID . "_blog_#user_id#/#post_id#.php", "TYPE" => "P"), array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "blogs/user/#user_id#.php", "TYPE" => "U"));
    foreach ($arFilters as $arFilter) {
        $dbSitePath = CBlogSitePath::GetList(array(), $arFilter, false, false, array("ID"));
        if ($arSitePath = $dbSitePath->Fetch()) {
            CBlogSitePath::Delete($arSitePath["ID"]);
        }
        CBlogSitePath::Add($arFilter);
    }
}
COption::SetOptionString('blog', 'avatar_max_size', '30000');
COption::SetOptionString('blog', 'avatar_max_width', '100');
COption::SetOptionString('blog', 'avatar_max_height', '100');
COption::SetOptionString('blog', 'image_max_width', '600');
COption::SetOptionString('blog', 'image_max_height', '600');
COption::SetOptionString('blog', 'allow_alias', 'Y');
COption::SetOptionString('blog', 'block_url_change', 'Y');
COption::SetOptionString('blog', 'GROUP_DEFAULT_RIGHT', 'D');
COption::SetOptionString('blog', 'show_ip', 'N');
COption::SetOptionString('blog', 'enable_trackback', 'N');
COption::SetOptionString('blog', 'allow_html', 'N');