290420 New theme, personal settings and bugfixes
This commit is contained in:
10
index.php
10
index.php
@ -42,8 +42,16 @@ include "settings.php"; # the general settings of the FE
|
||||
include "include/init.php"; # initializes the page load with some variables and cookies
|
||||
include "include/functions.php"; # the functions that are used on all the FE files.
|
||||
|
||||
if ($logedin){
|
||||
$info = api_get("accounts/verify_credentials");
|
||||
if(!$info['display_name']){
|
||||
header('Location: ./logout');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* if part of the url query is an ajax action, this file will handle it */
|
||||
if(isset($_GET['action'])){
|
||||
if(isset($_GET['action']) || isset($_POST['action'])){
|
||||
include "action.php";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user