From d5158310520d2663cfe21d9a5c27262e8225e6f6 Mon Sep 17 00:00:00 2001 From: twiedermann Date: Sat, 14 Oct 2017 07:33:43 +0200 Subject: [PATCH] User config improvements --- tinyfilemanager.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 586508a..83f811e 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -41,7 +41,7 @@ $send_mail = false; $toMailId = ""; //yourmailid@mail.com // Default timezone for date() and time() - http://php.net/manual/en/timezones.php -$default_timezone = 'Asia/Kolkata'; // UTC+5:30 +$default_timezone = 'Etc/UTC'; // UTC // Root path for file manager $root_path = $_SERVER['DOCUMENT_ROOT']; @@ -54,11 +54,16 @@ $root_url = ''; $http_host = $_SERVER['HTTP_HOST']; // input encoding for iconv -$iconv_input_encoding = 'CP1251'; +$iconv_input_encoding = 'UTF-8'; // date() format for file modification date $datetime_format = 'd.m.y H:i'; +// include user config php file +if (defined('FM_CONFIG') && is_files(FM_CONFIG) ) { + include(FM_CONFIG); +} + //--- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL // if fm included