diff --git a/.gitignore b/.gitignore
index d473cf9..97f1925 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,12 @@
config/config.php
prototypes/
+# PhpStorm
+.idea/
+*.iws
+.idea_modules/
+
+
# Created by https://www.gitignore.io/api/windows,osx,linux
### Windows ###
@@ -29,6 +35,9 @@ $RECYCLE.BIN/
.AppleDouble
.LSOverride
+# Icon must end with two \r
+Icon
+
# Thumbnails
._*
@@ -60,4 +69,4 @@ Temporary Items
.directory
# Linux trash folder which might appear on any partition or disk
-.Trash-*
+.Trash-*
\ No newline at end of file
diff --git a/README.md b/README.md
index ee4b101..b2a0db1 100644
--- a/README.md
+++ b/README.md
@@ -19,12 +19,12 @@
### Requirements
- Minimum
- - PHP 5.4 or newer
+ - PHP 5.5 or newer
- Installed and enabled ``mbstring`` extension
- Recommended
- Newest stable PHP version
- Up-to-date Apache server
- - Enabled mod_rewrite (sudo a2enmod rewrite && service apache2 reload)
+ - Enabled mod_rewrite (``sudo a2enmod rewrite && service apache2 reload``)
- Enabled support of htaccess
diff --git a/config/config.template.php b/config/config.template.php
index 63d9b17..64e573a 100644
--- a/config/config.template.php
+++ b/config/config.template.php
@@ -57,7 +57,7 @@ $config["adminlist"] = array(6, 17, 19);
$config['contact']['title'] = 'Contact the staff';
$config['contact']['text'] = '
© 2016
© Wruczek 2016 | ts-website v 1.3.1 | MIT License
NothingTV, © NabulsiGraphix
© Wruczek 2016 | ts-website v 1.3.2 | MIT License
NothingTV, © NabulsiGraphix
.htaccess
.
- Poradnik na temat właczania pliku htaccess
'; - - die(showError($title, $text)); -} -*/ - -/* Od wersji 1.2.0 mod_rewrite nie jest już wymagany -if(!in_array('mod_rewrite', apache_get_modules())) { - - $title = 'Brak wymaganych rozszerzeń'; - - $text = 'Na swoim serwerze nie posiadasz modułu rewrite
wymaganego do poprawnego działania tej strony.
Posiadasz system Ubuntu? Świetnie! Uruchom poniższe komendy, by włączyć wymagany moduł:
-sudo a2enmod rewrite -sudo service apache2 reload-
Używasz system Debian? Uruchom owe komendy pomijając przedrostek sudo
:
a2enmod rewrite -service apache2 reload-
Jeśli używasz hostingu i nie masz dostępu do konsoli, skontaktuj się z administratorem lub pomocą techniczną Twojego hostingu.
'; - - die(showError($title, $text)); -} -*/ - function isPHPVersionSupported() { if (!defined('PHP_VERSION_ID')) { $version = explode('.', PHP_VERSION); @@ -48,7 +18,6 @@ if (!isPHPVersionSupported()) { } if (!extension_loaded("mbstring")) { - $title = 'MBString extension is missing'; $text = 'Required PHP extension: mbstring
has not been found on the server.
Please make sure that the whole website directory including subdirectories is fully writable.
'; + die(showError($title, $text)); +} + +if(!file_exists(__DIR__ . "/../config/config.php")) { $title = 'config.php does not exists'; $text = 'Please go into the directory config
and rename config.template.php
to config.php
.