本文整理匯總了PHP中requestUtils::pf_getString方法的典型用法代碼示例。如果您正苦於以下問題:PHP requestUtils::pf_getString方法的具體用法?PHP requestUtils::pf_getString怎麽用?PHP requestUtils::pf_getString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類requestUtils
的用法示例。
在下文中一共展示了requestUtils::pf_getString方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: empty
$OK = true;
$SourceDir = requestUtils::pf_getString('inDir', $SourceDir);
$TargetDir = requestUtils::pf_getString('outDir', $TargetDir);
}
// Nux: allow running with GET : END
// Nux: mild security - only allow changes down the current tree: START
require_once './inc/dirUtils.php';
if (isset($OK) && !empty($AllowOnlySubDirs)) {
$SourceDir = $SourceTargetDirsBase . pcDirUtils::pf_makeSafeFilename($SourceDir, true);
$TargetDir = $SourceTargetDirsBase . pcDirUtils::pf_makeSafeFilename($TargetDir, true);
}
// Nux: mild security - only allow changes down the current tree: END
// Nux: copyright year replacement
$CopyrightText = empty($CopyrightText) ? $CopyrightTextFromIni : $CopyrightText;
if (!empty($CopyrightYearPattern)) {
$NewCopyrightYear = requestUtils::pf_getString('NewCopyrightYear', null);
if (!empty($NewCopyrightYear)) {
$CopyrightYearReplacement = str_replace("%NewYear%", $NewCopyrightYear, $CopyrightYearReplacement);
$CopyrightTextFromIni = $CopyrightText = preg_replace($CopyrightYearPattern, $CopyrightYearReplacement, $CopyrightText);
}
}
// Nux: copyright year replacement : END
if (isset($OK)) {
CheckSafeMode();
}
$StartTime = time();
$TotalFileSizeRead = 0;
$TotalFileSizeWrite = 0;
$NewlinesReplaced = 0;
$ExVarArray = array();
$FuncArray = array();