"Dashboard", "id" => "1", "paginaTitel" => "Dashboard", "naam2" => "Dashboard", "plugins" => "" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/dashboard.php'; exit; } function profiel(){ $paginaInfo = array( "naam" => "Profiel", "id" => "6", "paginaTitel" => "Dashboard", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "plugins" => "notificatie" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/profiel_edit.php'; exit; } function project(){ $paginaInfo = array( "naam" => "Projecten", "id" => "7", "paginaTitel" => "Projecten overzicht", "naam2" => "Projecten overzicht", "plugins" => "notificatie" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/projecten_overzicht.php'; exit; } function projectToevoegen(){ $paginaInfo = array( "naam" => "Project Toevoegen", "id" => "9", "paginaTitel" => "Project Toevoegen", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "klanten" => klanten::getData('id, name'), "plugins" => "notificatie, datepicker, wysiwyg, x-editable" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/projecten_toevoegen.php'; exit; } function klantBeheren(){ $paginaInfo = array( "naam" => "Klant", "id" => "10", "paginaTitel" => "Dashboard", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "plugins" => "notificatie" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require ''; exit; } function klantToevoegen(){ $paginaInfo = array( "naam" => "Klant toevoegen", "id" => "11", "paginaTitel" => "Klant toevoegen", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "plugins" => "notificatie" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/klant_toevoegen.php'; exit; } function test(){ $paginaInfo = array( "naam" => "test pagina", "id" => "000", "paginaTitel" => "", "naam2" => "", "plugins" => "jstree" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/test.php'; exit; } function logboeken(){ $paginaInfo = array( "naam" => "Logboeken", "id" => "13", "paginaTitel" => "Logboeken overzicht", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "gebruikers" => gebruikers::getList(), "plugins" => "" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/logboeken.php'; exit; } function logGebruikers(){ $paginaInfo = array( "naam" => "Logboek gebruikers", "id" => "14", "paginaTitel" => "Logboeken overzicht", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "gebruikers" => gebruikers::getList(), "plugins" => "datatables" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/logGebruikers.php'; exit; } function projectBeheer(){ $paginaInfo = array( "naam" => "Project Beheer", "id" => "15", "paginaTitel" => "Projecten beheren", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "project" => projecten::getById($_GET['projectId']), "plugins" => "" ); //addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/projectbeheer.php'; exit; } function filebrowser(){ $paginaInfo = array( "naam" => "filebrowser", "id" => "16", "paginaTitel" => "Filebrowser", "gebruiker" => gebruikers::getById( (int)$_SESSION['user_id'] ), "plugins" => "jstree, ace-editor" ); addToUserLog($_SESSION['user_id'], "Toon pagina: ".$paginaInfo['naam'], "index.php", "0"); require 'templates/pages/filebrowser.php'; exit; } function logout(){ addToUserLog($_SESSION['user_id'], "uitgelogd", "index.php", "0"); $_SESSION = array(); $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]); session_destroy(); header('Location: index.php'); exit; } ?>