]> git.mxchange.org Git - friendica.git/commitdiff
more pre-install checking
authorFriendika <info@friendika.com>
Thu, 18 Nov 2010 23:57:09 +0000 (15:57 -0800)
committerFriendika <info@friendika.com>
Thu, 18 Nov 2010 23:57:09 +0000 (15:57 -0800)
mod/install.php

index 86edc4c287f19c72cc39d0be76e44ce23ea50b86..7f150ef1dcaa65327beadbdf94fefc16a2b4d482 100644 (file)
@@ -122,6 +122,8 @@ function check_php(&$phpath) {
 }
 
 function check_funcs() {
+       if((function_exists('apache_get_modules')) && (! in_array('mod_rewrite',apache_get_modules())))
+               notice( t('Error: Apache webserver mod-rewrite module is required but not installed.') . EOL);
        if(! function_exists('curl_init')) 
                notice( t('Error: libCURL PHP module required but not installed.') . EOL);
        if(! function_exists('imagecreatefromjpeg')) 
@@ -130,6 +132,8 @@ function check_funcs() {
                notice( t('Error: openssl PHP module required but not installed.') . EOL);      
        if(! function_exists('mysqli_connect')) 
                notice( t('Error: mysqli PHP module required but not installed.') . EOL);       
+       if((x($_SESSION,'sysmsg')) && strlen($_SESSION['sysmsg']))
+               notice( t('Please see the file "INSTALL".') . EOL);
 }