本文整理汇总了PHP中WizardServices::PatchHtaccess方法的典型用法代码示例。如果您正苦于以下问题:PHP WizardServices::PatchHtaccess方法的具体用法?PHP WizardServices::PatchHtaccess怎么用?PHP WizardServices::PatchHtaccess使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WizardServices
的用法示例。
在下文中一共展示了WizardServices::PatchHtaccess方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CopyDirFiles
CopyDirFiles($path . $file, WIZARD_SITE_PATH . "/" . $file, $rewrite = true, $recursive = true, $delete_after_copy = false);
}
}
$p = str_replace("//", "/", WIZARD_ABSOLUTE_PATH . "/site/services/main/components/");
if (is_dir($p)) {
$dir = opendir($p);
while ($item = readdir($dir)) {
if ($item == ".." or $item == ".") {
continue;
}
CopyDirFiles($p . '/' . $item, $_SERVER['DOCUMENT_ROOT'] . '/bitrix/components/' . $item, $ReWrite = true, $Recursive = true);
}
closedir($dir);
}
CSearch::ReIndexAll(false, 0, array(WIZARD_SITE_ID, WIZARD_SITE_DIR));
WizardServices::PatchHtaccess(WIZARD_SITE_PATH);
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "auth/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "blog/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "brands/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "catalog/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "favorites/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "login/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "news/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "personal/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "search/", array("SITE_DIR" => WIZARD_SITE_DIR));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "_index.php", array("SITE_DIR" => WIZARD_SITE_DIR));
$arUrlRewrite = array();
if (file_exists(WIZARD_SITE_ROOT_PATH . "/urlrewrite.php")) {
include WIZARD_SITE_ROOT_PATH . "/urlrewrite.php";
}