當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。