From 53a8b4adf187de64712e3e8aa3345fac2dfb0912 Mon Sep 17 00:00:00 2001 From: xisi Date: Wed, 29 Jan 2014 15:43:09 -0500 Subject: [PATCH] .htaccess check for @ahmedbodi --- public/include/admin_checks.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/include/admin_checks.php b/public/include/admin_checks.php index 7522c6c4..62c9a1f0 100644 --- a/public/include/admin_checks.php +++ b/public/include/admin_checks.php @@ -37,6 +37,11 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][ $notice[] = "Memcache is disabled; Almost every linux distro has packages for it, you should be using it if you can."; } } + // check if htaccess exists + if (!file_exists(BASEPATH.".htaccess")) { + $htaccess_link = ".htaccess>"; + $notice[] = "You don't seem to have a .htaccess in your public folder, if you're using apache set it up $htaccess_link"; + } // check if we can write templates/cache and templates/compile -> error if (!is_writable(THEME_DIR.'/cache')) { $error[] = "templates/cache folder is not writable for uid {$apache_user['name']}";