+ if(! $res)
+ $o .= t('Error: the "openssl_pkey_new" function on this system is not able to generate encryption keys') . EOL;
+
+ return $o;
+
+}
+
+
+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'))
+ notice( t('Error: GD graphics PHP module with JPEG support required but not installed.') . EOL);
+ if(! function_exists('openssl_public_encrypt'))
+ 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);
+}
+
+
+function check_htconfig() {
+
+ if(((file_exists('.htconfig.php')) && (! is_writable('.htconfig.php')))
+ || (! is_writable('.'))) {
+
+ $o = t('The web installer needs to be able to create a file called ".htconfig.php" in the top folder of your web server and it is unable to do so.');
+ $o .= t('This is most often a permission setting, as the web server may not be able to write files in your folder - even if you can.');
+ $o .= t('Please check with your site documentation or support people to see if this situation can be corrected.');
+ $o .= t('If not, you may be required to perform a manual installation. Please see the file "INSTALL" for instructions.');