2023-09-26 21:46:44 +02:00
|
|
|
<?php
|
|
|
|
$taskDir = 'tasks';
|
|
|
|
include 'env_vars.php';
|
|
|
|
if($_POST["taskDeletePassword"] == getenv("taskDeletePassword")){
|
|
|
|
$files = scandir($taskDir);
|
|
|
|
$files = array_diff($files, array('.', '..'));
|
|
|
|
foreach ($files as $file) {
|
|
|
|
echo $file;
|
|
|
|
unlink($taskDir.'/'.$file);
|
|
|
|
}
|
2023-09-28 15:41:43 +02:00
|
|
|
}
|
2023-09-26 21:46:44 +02:00
|
|
|
|
|
|
|
?>
|