diff options
author | Nathan Kinkade <nath@nkinka.de> | 2012-06-18 16:17:55 +0000 |
---|---|---|
committer | Nathan Kinkade <nath@nkinka.de> | 2012-06-18 16:17:55 +0000 |
commit | 527bc809aaa6d48e7c1a7be50de31a4c3adcee90 (patch) | |
tree | fb7432e06af9191f2300af97685f235325d36f57 /index.php | |
parent | b52e834bd0bab530e98537d52b31d4b37f199739 (diff) | |
parent | c48df3b8199802a75f30f38c6f7b3440f9fde4ca (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,6 +24,11 @@ define("IN_PRODUCTION", true); version_compare(PHP_VERSION, "5.2.3", "<") and exit("Gallery requires PHP 5.2.3 or newer (you're using " . PHP_VERSION . ")"); +// Gallery is not supported on Windows. +if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { + exit("Gallery is not supported on Windows (PHP reports that you're using: " . PHP_OS . ")"); +} + // PHP 5.4 requires a timezone - if one isn't set date functions aren't going to work properly. // We'll log this once the logging system is initialized (in the gallery_event::gallery_ready). if (!ini_get("date.timezone")) { |