<?php
require ('../xcrud/xcrud.php');
require ('html/pagedataown.php');
session_start();
//require ('../login.php');

$theme = isset($_GET['theme']) ? $_GET['theme'] : 'default';
switch ($theme)
{
    case 'bootstrap':
        Xcrud_config::$theme = 'bootstrap';
        $title_2 = 'Bootstrap theme';
        break;
    case 'minimal':
        Xcrud_config::$theme = 'minimal';
        $title_2 = 'Minimal theme';
        break;
    default:
        Xcrud_config::$theme = 'default';
        $title_2 = 'Default theme';
        break;
}
//print_r($pagedata);
$page = (isset($_GET['page']) && isset($pagedata[$_GET['page']])) ? $_GET['page'] : 'bootstrap';
extract($pagedata[$page]);

        
        $file = dirname(__file__) . '/ownpages/' . $filename;
        $code = file_get_contents($file);
        include ('html/template3.php');
