/**
*
- * Friendika
+ * Friendica
*
*/
date_default_timezone_set($a->timezone);
-$a->init_pagehead();
-
session_start();
/**
if(! x($_SESSION,'authenticated'))
header('X-Account-Management-Status: none');
+
+/*
+ * Create the page head after setting the language
+ * and getting any auth credentials
+ */
+
+$a->init_pagehead();
+
+
+
if(! x($_SESSION,'sysmsg'))
$_SESSION['sysmsg'] = array();
else
check_config($a);
+nav_set_selected('nothing');
$arr = array('app_menu' => $a->apps);
$a->apps = $arr['app_menu'];
-
/**
*
* We have already parsed the server path into $a->argc and $a->argv
}
}
+/**
+ * load current theme info
+ */
+$theme_info_file = "view/theme/".current_theme()."/theme.php";
+if (file_exists($theme_info_file)){
+ require_once($theme_info_file);
+}
/* initialise content region */