Quick update

This commit is contained in:
ghermans 2020-03-23 13:41:12 +01:00
parent 4f8cfd0fc6
commit 36833cfac4
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
<?php
function delete_files($target) {
if(is_dir($target)){
$files = glob( $target . '*', GLOB_MARK );
foreach( $files as $file ){
delete_files( $file );
}
rmdir( $target );
} elseif(is_file($target)) {
unlink( $target );
}
}
$data['success'] = true;
$data['message'] = 'Success!';
echo json_encode($data);
sleep(2);
delete_files($_SERVER['DOCUMENT_ROOT'] . '/installer');
?>

View File

@ -33,7 +33,7 @@
<label for="application_timezone" class="required">Default Timezone</label>
<select name="app_timezone" id="application_timezone" class="js-example-basic-single">
<?php
date_default_timezone_set('UTC');
$tzlist = DateTimeZone::listIdentifiers(DateTimeZone::ALL);
$current = date_default_timezone_get();