X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/364ee580b23554250b1e632f64ebde486aa62a86..63a9e4ae1c297d714f8d172da0f2152439f262ea:/edit/index.php diff --git a/edit/index.php b/edit/index.php index 5c5ee3d..6f4dc4d 100644 --- a/edit/index.php +++ b/edit/index.php @@ -13,6 +13,7 @@ if ($_FILES) { throw new Exception('bestand niet goed ontvangen: '.$img['error']); $datadir = implode('/', ['data', date('Y')]); + if ($Args) $datadir .= $Args; if (!file_exists($datadir) and !@mkdir($datadir, 0777, TRUE)) { throw new Exception("bestand kon niet geplaatst worden in $datadir"); }