Remove MIN_PHP_VERSION - that's not a thing that end users can change
This commit is contained in:
		
							parent
							
								
									22c7cab0cd
								
							
						
					
					
						commit
						15d1e4ef17
					
				| @ -32,7 +32,6 @@ _d("VERSION", '2.8-dev');    // string   shimmie version | |||||||
| _d("TIMEZONE", null);        // string   timezone
 | _d("TIMEZONE", null);        // string   timezone
 | ||||||
| _d("EXTRA_EXTS", "");        // string   optional extra extensions
 | _d("EXTRA_EXTS", "");        // string   optional extra extensions
 | ||||||
| _d("BASE_URL", null);        // string   force a specific base URL (default is auto-detect)
 | _d("BASE_URL", null);        // string   force a specific base URL (default is auto-detect)
 | ||||||
| _d("MIN_PHP_VERSION", '7.3');// string   minimum supported PHP version
 |  | ||||||
| _d("TRACE_FILE", null);      // string   file to log performance data into
 | _d("TRACE_FILE", null);      // string   file to log performance data into
 | ||||||
| _d("TRACE_THRESHOLD", 0.0);  // float    log pages which take more time than this many seconds
 | _d("TRACE_THRESHOLD", 0.0);  // float    log pages which take more time than this many seconds
 | ||||||
| _d("ENABLED_MODS", "imageboard"); | _d("ENABLED_MODS", "imageboard"); | ||||||
|  | |||||||
| @ -493,17 +493,16 @@ function _sanitise_environment(): void | |||||||
| { | { | ||||||
|     global $_tracer, $tracer_enabled; |     global $_tracer, $tracer_enabled; | ||||||
| 
 | 
 | ||||||
|     if (MIN_PHP_VERSION) { |     $min_php = "7.3"; | ||||||
|         if (version_compare(phpversion(), MIN_PHP_VERSION, ">=") === false) { |     if (version_compare(phpversion(), $min_php, ">=") === false) { | ||||||
|         print " |         print " | ||||||
| Shimmie (SCore Engine) does not support versions of PHP lower than ".MIN_PHP_VERSION." | Shimmie (SCore Engine) does not support versions of PHP lower than $min_php | ||||||
| (PHP reports that it is version ".phpversion().") | (PHP reports that it is version ".phpversion().") | ||||||
| If your web host is running an older version, they are dangerously out of | If your web host is running an older version, they are dangerously out of | ||||||
| date and you should plan on moving elsewhere. | date and you should plan on moving elsewhere. | ||||||
| ";
 | ";
 | ||||||
|         exit; |         exit; | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     if (file_exists("images") && !file_exists("data/images")) { |     if (file_exists("images") && !file_exists("data/images")) { | ||||||
|         die("As of Shimmie 2.7 images and thumbs should be moved to data/images and data/thumbs"); |         die("As of Shimmie 2.7 images and thumbs should be moved to data/images and data/thumbs"); | ||||||
|  | |||||||
| @ -14,7 +14,6 @@ define("NICE_URLS", false); | |||||||
| define("WH_SPLITS", 1); | define("WH_SPLITS", 1); | ||||||
| define("VERSION", '2.8-dev'); | define("VERSION", '2.8-dev'); | ||||||
| define("BASE_URL", null); | define("BASE_URL", null); | ||||||
| define("MIN_PHP_VERSION", '7.3'); |  | ||||||
| define("TRACE_FILE", null); | define("TRACE_FILE", null); | ||||||
| define("TRACE_THRESHOLD", 0.0); | define("TRACE_THRESHOLD", 0.0); | ||||||
| define("ENABLED_MODS", "imageboard"); | define("ENABLED_MODS", "imageboard"); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user