当前位置: 首页>>代码示例>>PHP>>正文


PHP WizardServices::PatchHtaccess方法代码示例

本文整理汇总了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";
 }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:files.php


注:本文中的WizardServices::PatchHtaccess方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。