當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CWizardUtil::MakeWizardPath方法代碼示例

本文整理匯總了PHP中CWizardUtil::MakeWizardPath方法的典型用法代碼示例。如果您正苦於以下問題:PHP CWizardUtil::MakeWizardPath方法的具體用法?PHP CWizardUtil::MakeWizardPath怎麽用?PHP CWizardUtil::MakeWizardPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CWizardUtil的用法示例。


在下文中一共展示了CWizardUtil::MakeWizardPath方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CWizard

 function CWizard($wizardName)
 {
     $this->name = $wizardName;
     if (!CWizardUtil::CheckName($this->name)) {
         $this->SetError(GetMessage("MAIN_WIZARD_ERROR_WRONG_WIZ_NAME"));
         return;
     }
     $pathToWizard = CWizardUtil::MakeWizardPath($this->name);
     $this->path = CWizardUtil::GetRepositoryPath() . $pathToWizard;
     if (!file_exists($_SERVER["DOCUMENT_ROOT"] . $this->path) || !is_dir($_SERVER["DOCUMENT_ROOT"] . $this->path)) {
         $this->SetError(GetMessage("MAIN_WIZARD_ERROR_NOT_FOUND"));
         return;
     }
     $this->__GetDescription();
     $this->__CheckDepends();
     $this->__GetInstallationScript();
 }
開發者ID:DarneoStudio,項目名稱:bitrix,代碼行數:17,代碼來源:wizard_site.php

示例2: CopyWizard

 function CopyWizard($wizardName, $newName)
 {
     if (!CWizardUtil::CheckName($wizardName) || !CWizardUtil::CheckName($newName)) {
         return false;
     }
     $wizardPath = $_SERVER["DOCUMENT_ROOT"] . CWizardUtil::GetRepositoryPath() . CWizardUtil::MakeWizardPath($wizardName);
     $newNamePath = $_SERVER["DOCUMENT_ROOT"] . CWizardUtil::GetRepositoryPath() . CWizardUtil::MakeWizardPath($newName);
     if (!file_exists($wizardPath) || file_exists($newNamePath)) {
         return false;
     }
     CopyDirFiles($wizardPath, $newNamePath, $rewrite = false, $recursive = true);
     return true;
 }
開發者ID:spas-viktor,項目名稱:books,代碼行數:13,代碼來源:wizard_util.php

示例3: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/extranet/classes/general/wizard_utils.php";
$arTemplates = array();
$templatesPath = CWizardUtil::GetRepositoryPath() . CWizardUtil::MakeWizardPath("bitrix:extranet") . "/site/templates";
$arTemplates = CExtranetWizardServices::GetTemplates($templatesPath);
$arSteps = array("WelcomeStep");
if (!empty($arTemplates)) {
    $arSteps[] = "SelectTemplateStep";
    $arSteps[] = "SelectThemeStep";
}
$arSteps[] = "SiteSettingsStep";
$arSteps[] = "DataInstallStep";
$arSteps[] = "FinishStep";
$arWizardDescription = array("NAME" => GetMessage("EXTRANET_WIZARD_NAME"), "DESCRIPTION" => GetMessage("EXTRANET_WIZARD_DESC"), "VERSION" => "1.0.0", "START_TYPE" => "WINDOW", "TEMPLATES" => array(array("SCRIPT" => "scripts/template.php", "CLASS" => "ExtranetWizardTemplate")), "STEPS" => $arSteps);
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:18,代碼來源:.description.php

示例4: GetWizardCharset

 function GetWizardCharset($wizardName)
 {
     if (!defined("B_PROLOG_INCLUDED")) {
         define("B_PROLOG_INCLUDED", true);
     }
     $wizardPath = CWizardUtil::GetRepositoryPath() . CWizardUtil::MakeWizardPath($wizardName);
     if (!file_exists($_SERVER["DOCUMENT_ROOT"] . $wizardPath . "/.description.php")) {
         return false;
     }
     $arWizardDescription = array();
     include $_SERVER["DOCUMENT_ROOT"] . $wizardPath . "/.description.php";
     if (array_key_exists("CHARSET", $arWizardDescription) && strlen($arWizardDescription["CHARSET"]) > 0) {
         return $arWizardDescription["CHARSET"];
     }
     return false;
 }
開發者ID:ASDAFF,項目名稱:bitrix-5,代碼行數:16,代碼來源:utils.php

示例5: IncludeModuleLangFile

require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/classes/general/tar_gz.php";
if (!$USER->CanDoOperation('edit_php') || !check_bitrix_sessid()) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
$ID = $_REQUEST["ID"];
$ID = str_replace("\\", "", $ID);
$ID = str_replace("/", "", $ID);
$bUseCompression = true;
if (!extension_loaded('zlib') || !function_exists("gzcompress")) {
    $bUseCompression = false;
}
$HTTP_ACCEPT_ENCODING = "";
CheckDirPath($_SERVER['DOCUMENT_ROOT'] . BX_PERSONAL_ROOT . "/tmp/wizards/");
$tempFile = $_SERVER['DOCUMENT_ROOT'] . BX_PERSONAL_ROOT . "/tmp/wizards/" . md5(uniqid(rand(), true) . ".tar.gz");
$wizardPath = $_SERVER["DOCUMENT_ROOT"] . CWizardUtil::GetRepositoryPath() . CWizardUtil::MakeWizardPath($ID);
$strError = "";
if (is_dir($wizardPath)) {
    $oArchiver = new CArchiver($tempFile, $bUseCompression);
    $success = $oArchiver->add("\"" . $wizardPath . "\"", false, $_SERVER["DOCUMENT_ROOT"] . CWizardUtil::GetRepositoryPath());
    if ($success) {
        header('Pragma: public');
        header('Cache-control: private');
        header('Accept-Ranges: bytes');
        header("Content-Length: " . filesize($tempFile));
        header("Content-Type: application/x-force-download; filename=" . str_replace(":", "-", $ID) . ".tar.gz");
        header("Content-Disposition: attachment; filename=\"" . str_replace(":", "-", $ID) . ".tar.gz\"");
        header("Content-Transfer-Encoding: binary");
        readfile($tempFile);
        unlink($tempFile);
    } else {
開發者ID:Satariall,項目名稱:izurit,代碼行數:31,代碼來源:wizard_export.php


注:本文中的CWizardUtil::MakeWizardPath方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。