Skip to content
Snippets Groups Projects
pages.php 1.62 KiB
Newer Older
  • Learn to ignore specific revisions
  • Manuel Herrmann's avatar
    Manuel Herrmann committed
    <?php
    
    
    Tim Repke's avatar
    Tim Repke committed
    require_once("../frameworks/medoo.php");
    require_once("../config.inc.php");
    
    
    Manuel Herrmann's avatar
    Manuel Herrmann committed
    function page_stuff()
    {
    
        //global $text;
        //$text .= "Übersichtsseite";
        require_page("pages_overview.php");
    
    function page_front(){
        global $text, $config_baseurl, $config_current_fahrt_id;
    
        $text .= '<style>#admin-content{padding:0}</style>';
    
        $text .= '<a href="'.$config_baseurl.'?fid='.$config_current_fahrt_id.'">'.$config_baseurl.'?fid='.$config_current_fahrt_id.'</a><br />';
    
        $text .= '<iframe src="'.$config_baseurl.'?fid='.$config_current_fahrt_id.'" style="height:90vh; width:100%; position: absolute; border:0;"></iframe>';
    
    function page_list(){
        require_page("pages_list.php");
    
    function page_404($pag)
    
    Manuel Herrmann's avatar
    Manuel Herrmann committed
    {
        global $text;
    
        $text .='
            <div style="background-color:black; color:antiquewhite; font-family: \'Courier New\', Courier, monospace;height: 100%; width: 100%;position:fixed; top:0; padding-top:40px;">
                $ get-page '.$pag.'<br />
                404 - page not found ('.$pag.')<br />
                $ <blink>&#9611;</blink>
            </div>';
    
    
    function page_notes(){
    
        require_page("pages_notes.php");
    }
    
    function page_mail(){
        require_page("pages_mail.php");
    }
    
    function page_cost(){
    
    function page_export(){
        require_page("pages_export.php");
    }
    
    function page_infos(){
        require_page("pages_infos.php");
    }
    
    function page_sa(){
        require_once("pages_sa.php");
    }
    
    function page_wl(){
        require_once("pages_wl.php");
    }
    
    
    function require_page($page){
        if(!@file_exists($page) ) {
            page_404($page);
        } else {
            require_once $page;
        }
    
    Manuel Herrmann's avatar
    Manuel Herrmann committed
    ?>