$value) { switch ($option) { case 'e': case 's': case 'd': case 'i': case 'm': $notify .= " -{$option} ".escapeshellarg($value); break; case 'x': case 't': $notify .= " -{$option}"; break; } } shell_exec("$notify add"); break; case 'get': echo shell_exec("$notify get"); break; case 'hide': $file = $_POST['file']??''; if (file_exists($file) && $file==realpath($file) && pathinfo($file,PATHINFO_EXTENSION)=='notify') chmod($file,0400); break; case 'archive': $file = $_POST['file']??''; if ($file && strpos($file,'/')===false) shell_exec("$notify archive ".escapeshellarg($file)); break; } ?>