本文整理汇总了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();