]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Bump version
[friendica.git] / boot.php
index 6759e805f245ab4e994278d6b98a5885ee3c4277..c21a47f4c855491f6f4ca075f2644d11559ce33f 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -17,7 +17,7 @@ require_once('include/dbstructure.php');
 
 define ( 'FRIENDICA_PLATFORM',     'Friendica');
 define ( 'FRIENDICA_CODENAME',     'Lily of the valley');
-define ( 'FRIENDICA_VERSION',      '3.4.3-rc' );
+define ( 'FRIENDICA_VERSION',      '3.4.3-2' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.23'    );
 define ( 'DB_UPDATE_VERSION',      1191      );
 define ( 'EOL',                    "<br />\r\n"     );
@@ -635,13 +635,13 @@ if(! class_exists('App')) {
                        $basepath = get_config("system", "basepath");
 
                        if ($basepath == "")
-                               $basepath = $_SERVER["DOCUMENT_ROOT"];
+                               $basepath = dirname(__FILE__);
 
                        if ($basepath == "")
-                               $basepath = $_SERVER["PWD"];
+                               $basepath = $_SERVER["DOCUMENT_ROOT"];
 
                        if ($basepath == "")
-                               $basepath = dirname(__FILE__);
+                               $basepath = $_SERVER["PWD"];
 
                        return($basepath);
                }
@@ -1948,3 +1948,15 @@ function validate_include(&$file) {
 
        return true;
 }
+
+function current_load() {
+       if (!function_exists('sys_getloadavg'))
+               return false;
+
+       $load_arr = sys_getloadavg();
+
+       if (!is_array($load_arr))
+               return false;
+
+       return max($load_arr);
+}