<?php
error_reporting(-1);
ini_set('display_errors','On');
session_start();
include "_inc/_db.php";
include "_inc/_function.php";
if(isset($_GET['reg']) and $_GET['reg'] == "true"){
$_SESSION['ID'] = $_GET['id'];
}
if(isset($_SESSION['ID'])){
include "_header2.php";
if(isset($_GET['section']) and $_GET['section'] != ""){
switch($_GET['section']){
case "home":
include "left.php";
include "home.php";
include "right.php";
break;
case "msg":
include "left.php";
include "msg.php";
include "right.php";
break;
case "logout":
session_destroy();
break;
case "profile_edit":
include "_header_profile.php";
if(isset($_GET['edit'])){
switch($_GET['edit']){
case "basic":
include "profile_left.php";
include "profile_basic.php";
break;
case "details":
include "profile_left.php";
include "profile_details.php";
break;
case "vorlieben":
include "profile_left.php";
include "profile_vorlieben.php";
break;
case "settings":
include "profile_left.php";
include "profile_settings.php";
break;
case "pw":
include "profile_left.php";
include "profile_pw.php";
break;
case "images":
include "profile_images.php";
break;
case "friends":
include "profile_friends.php";
break;
case "albumview":
include "profile_album_view.php";
break;
case "pics":
include "profile_pics.php";
break;
default:
include "profile_left.php";
include "profile_basic.php";
break;
}
}else{
include "profile_left.php";
include "profile_basic.php";
}
include "right.php";
break;
default:
include "left.php";
include "home.php";
include "right.php";
break;
}
}else{
include "left.php";
include "home.php";
include "right.php";
}
}else{
include "_header.php";
include "_unlogged.php";
}
include "_footer.php";
?>