mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 20:07:24 +00:00
20 lines
371 B
PHP
20 lines
371 B
PHP
<?php
|
|
|
|
/*
|
|
* ITFlow - Undo on the message after an archive, a bulk change or a move (functions/undo.php)
|
|
*/
|
|
|
|
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
|
|
|
if (isset($_GET['undo'])) {
|
|
|
|
validateCSRFToken();
|
|
|
|
[$ok, $message] = undoApply((string) $_GET['undo']);
|
|
|
|
flashAlert($message, $ok ? 'success' : 'error');
|
|
|
|
redirect();
|
|
|
|
}
|