-$lang = get_browser_language();
-
-load_translation_table($lang);
+
/**
*
require_once("include/session.php");
load_hooks();
call_hooks('init_1');
+
+ $maintenance = get_config('system', 'maintenance');
}
-$maintenance = get_config('system', 'maintenance');
+$lang = get_browser_language();
+load_translation_table($lang);
/**
*
elseif($maintenance)
$a->module = 'maintenance';
else {
- proc_run('php', 'include/dbupdate.php');
+ check_url($a);
+ check_db();
check_plugins($a);
- //check_config($a);
}
nav_set_selected('nothing');
*
*/
+ // Compatibility with the Android Diaspora client
+ if ($a->module == "stream")
+ $a->module = "network";
+
if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) {
include_once("addon/{$a->module}/{$a->module}.php");
if(function_exists($a->module . '_module'))