diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-19 19:28:07 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-19 19:28:07 +1100 |
| commit | 13ef38d7b72085dbf436fa62f1b5ae76a88df3bd (patch) | |
| tree | 3bd05a401bc98ccf5cafa32cd62acc90773327c1 /inc/functions.php | |
| parent | 73746b7c8da6f27a503abd72c6888870a47dbde3 (diff) | |
Delete images properly on error
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index d0929eef..535defb5 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1122,7 +1122,14 @@ return $res; } + function undoImage($post) { + unlink($post['file']); + unlink($post['thumb']); + } + function createimage($type, $source_pic) { + global $config; + $image = false; switch($type) { case 'jpg': |
