require_once('include/dbstructure.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_CODENAME', 'Lily of the valley');
-define ( 'FRIENDICA_VERSION', '3.4.3-dev' );
+define ( 'FRIENDICA_CODENAME', 'Asparagus');
+define ( 'FRIENDICA_VERSION', '3.5-dev' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1191 );
define ( 'EOL', "<br />\r\n" );
$basepath = get_config("system", "basepath");
+ if ($basepath == "")
+ $basepath = dirname(__FILE__);
+
if ($basepath == "")
$basepath = $_SERVER["DOCUMENT_ROOT"];
function init_pagehead() {
$interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000);
+
+ // If the update is "deactivated" set it to the highest integer number (~24 days)
+ if ($interval < 0)
+ $interval = 2147483647;
+
if($interval < 10000)
$interval = 40000;
- $this->page['title'] = $this->config['sitename'];
+ // compose the page title from the sitename and the
+ // current module called
+ if (!$this->module=='')
+ {
+ $this->page['title'] = $this->config['sitename'].' ('.$this->module.')';
+ } else {
+ $this->page['title'] = $this->config['sitename'];
+ }
/* put the head template at the beginning of page['htmlhead']
* since the code added by the modules frequently depends on it
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);
+}