mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-02 06:04:22 +02:00
unlink after upload
This commit is contained in:
parent
863dd65145
commit
620bfaeb29
1 changed files with 1 additions and 0 deletions
|
@ -232,6 +232,7 @@ switch ($action) {
|
||||||
if (!empty($_FILES['logo']['name'])) {
|
if (!empty($_FILES['logo']['name'])) {
|
||||||
if (file_exists('system/uploads/logo.png')) unlink('system/uploads/logo.png');
|
if (file_exists('system/uploads/logo.png')) unlink('system/uploads/logo.png');
|
||||||
File::resizeCropImage($_FILES['logo']['tmp_name'], 'system/uploads/logo.png', 1078, 200, 100);
|
File::resizeCropImage($_FILES['logo']['tmp_name'], 'system/uploads/logo.png', 1078, 200, 100);
|
||||||
|
if (file_exists($_FILES['logo']['tmp_name'])) unlink($_FILES['logo']['tmp_name']);
|
||||||
}
|
}
|
||||||
if ($company == '') {
|
if ($company == '') {
|
||||||
r2(U . 'settings/app', 'e', $_L['All_field_is_required']);
|
r2(U . 'settings/app', 'e', $_L['All_field_is_required']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue