mirror of
				https://github.com/prasathmani/tinyfilemanager.git
				synced 2025-10-30 18:06:14 +01:00 
			
		
		
		
	Feat/mixed changes (#502)
* remove trailing whitespace Signed-off-by: ccdd13 <78702084+ccdd13@users.noreply.github.com> * safe include config.php with __DIR__ * replace doc url for $datetime_format from function.date.php to datetime.format.php Signed-off-by: ccdd13 <ccdd13@users.noreply.github.com> * put $auth_users & $readonly_users together Signed-off-by: ccdd13 <ccdd13@users.noreply.github.com> * update $datetime_format Signed-off-by: ccdd13 <ccdd13@users.noreply.github.com> Co-authored-by: ammm ccdd12 <mamok43076@dashseat.com> Co-authored-by: ccdd13 <ccdd13@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										12
									
								
								config.php
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								config.php
									
									
									
									
									
								
							| @@ -24,16 +24,16 @@ $auth_users = array( | |||||||
|     'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345 |     'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345 | ||||||
| ); | ); | ||||||
|  |  | ||||||
| //set application theme |  | ||||||
| //options - 'light' and 'dark' |  | ||||||
| $theme = 'light'; |  | ||||||
|  |  | ||||||
| // Readonly users | // Readonly users | ||||||
| // e.g. array('users', 'guest', ...) | // e.g. array('users', 'guest', ...) | ||||||
| $readonly_users = array( | $readonly_users = array( | ||||||
|     'user' |     'user' | ||||||
| ); | ); | ||||||
|  |  | ||||||
|  | //set application theme | ||||||
|  | //options - 'light' and 'dark' | ||||||
|  | $theme = 'light'; | ||||||
|  |  | ||||||
| // Enable highlight.js (https://highlightjs.org/) on view's page | // Enable highlight.js (https://highlightjs.org/) on view's page | ||||||
| $use_highlightjs = true; | $use_highlightjs = true; | ||||||
|  |  | ||||||
| @@ -67,8 +67,8 @@ $directories_users = array(); | |||||||
| $iconv_input_encoding = 'UTF-8'; | $iconv_input_encoding = 'UTF-8'; | ||||||
|  |  | ||||||
| // date() format for file modification date | // date() format for file modification date | ||||||
| // Doc - https://www.php.net/manual/en/function.date.php | // Doc - https://www.php.net/manual/en/datetime.format.php | ||||||
| $datetime_format = 'd.m.y H:i'; | $datetime_format = 'd.m.y H:i:s'; | ||||||
|  |  | ||||||
| // Allowed file extensions for create and rename files | // Allowed file extensions for create and rename files | ||||||
| // e.g. 'txt,html,css,js' | // e.g. 'txt,html,css,js' | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ $ip_blacklist = array( | |||||||
| ); | ); | ||||||
|  |  | ||||||
| // if User has the customized config file, try to use it to override the default config above | // if User has the customized config file, try to use it to override the default config above | ||||||
| $config_file = './config.php'; | $config_file = __DIR__.'/config.php'; | ||||||
| if (is_readable($config_file)) { | if (is_readable($config_file)) { | ||||||
|     @include($config_file); |     @include($config_file); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user