本文整理匯總了PHP中iaSanitize::filenameEscape方法的典型用法代碼示例。如果您正苦於以下問題:PHP iaSanitize::filenameEscape方法的具體用法?PHP iaSanitize::filenameEscape怎麽用?PHP iaSanitize::filenameEscape使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類iaSanitize
的用法示例。
在下文中一共展示了iaSanitize::filenameEscape方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
@unlink(IA_HOME . 'tmp' . IA_DS . 'patch.iap');
$iaOutput->message = $e->getMessage();
}
break;
case 'rollback':
$iaOutput->steps = array('check' => 'Upgrade Wizard', 'rollback' => 'Rollback');
$fileList = glob(IA_HOME . 'backup/backup_*_*.zip');
$backups = array();
if ($fileList) {
foreach ($fileList as $fileName) {
$fileName = basename($fileName);
$array = explode('_', $fileName);
if (3 == count($array)) {
$backups[$array[1]][$fileName] = date('M d, Y', strtotime(substr($array[2], 0, -4)));
}
}
}
$iaOutput->backups = $backups;
if (!empty($_POST['backup'])) {
$fileName = $_POST['backup'];
iaSanitize::filenameEscape($fileName);
$fileName = IA_HOME . 'backup/' . $fileName;
if (file_exists($fileName)) {
require_once IA_INSTALL . 'classes/ia.backup.php';
$iaBackup = new iaBackup();
$iaBackup->restore($fileName) ? $iaOutput->success = true : ($iaOutput->error = array_shift($iaBackup->messages));
} else {
$iaOutput->error = 'Incorrect backup file specified.';
}
}
}