本文整理汇总了PHP中Actions::deleteMulti方法的典型用法代码示例。如果您正苦于以下问题:PHP Actions::deleteMulti方法的具体用法?PHP Actions::deleteMulti怎么用?PHP Actions::deleteMulti使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Actions
的用法示例。
在下文中一共展示了Actions::deleteMulti方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strlen
$timeconfig = $setUp->getConfig('default_timezone');
$timezone = strlen($timeconfig) > 0 ? $timeconfig : "UTC";
date_default_timezone_set($timezone);
$downloader = new Downloader();
$utils = new Utils();
$logger = new Logger();
$actions = new Actions();
$getcloud = $_POST["setdel"];
$hash = filter_input(INPUT_POST, "h", FILTER_SANITIZE_STRING);
$doit = filter_input(INPUT_POST, "doit", FILTER_SANITIZE_STRING);
$time = filter_input(INPUT_POST, "t", FILTER_SANITIZE_STRING);
if ($doit != $time * 12) {
die('Direct access not permitted');
}
$alt = $setUp->getConfig('salt');
$altone = $setUp->getConfig('session_name');
if ($hash && $time && $gateKeeper->isUserLoggedIn() && $gateKeeper->isAllowed('delete_enable')) {
if (md5($alt . $time) === $hash && $downloader->checkTime($time) == true) {
foreach ($getcloud as $pezzo) {
if ($downloader->checkFile($pezzo) == true) {
$myfile = "../" . urldecode(base64_decode($pezzo));
$actions->deleteMulti($myfile);
}
}
echo "ok";
} else {
echo "Action expired";
}
} else {
echo "Not enough data";
}