]> git.mxchange.org Git - friendica.git/blobdiff - mod/install.php
silence parse_url on hostile input, need to get_app() for proc_run php location
[friendica.git] / mod / install.php
index fa534fe12cb9866147fa44baa1e717548520a203..dc91f848e6c74ea99f31b662ae7ee880a4a974ad 100644 (file)
@@ -19,7 +19,7 @@ function install_post(&$a) {
 
        if(mysqli_connect_errno()) {
                $db = new dba($dbhost, $dbuser, $dbpass, '', true);
-               if(! mysql_connect_errno()) {
+               if(! mysqli_connect_errno()) {
                        $r = q("CREATE DATABASE '%s'",
                                        dbesc($dbdata)
                        );
@@ -151,9 +151,10 @@ function check_keys() {
 
        // Get private key
 
-       if(! $res)
-               $o .=  t('Error: the "openssl_pkey_new" function on this system is not able to generate encryption keys') . EOL;
-
+       if(! $res) {
+               $o .= t('Error: the "openssl_pkey_new" function on this system is not able to generate encryption keys') . EOL;
+               $o .= t('If running under Windows, please see "http://www.php.net/manual/en/openssl.installation.php".') . EOL;
+       }
        return $o;
 
 }