query_array("SELECT * FROM touren ORDER BY id"); $GLOBALS['a_fahrzg'] = $GLOBALS['mysql']->query_array("SELECT * FROM fahrzeuge ORDER BY id"); $GLOBALS['a_fahrer'] = $GLOBALS['mysql']->query_array("SELECT * FROM mitarbeiter ORDER BY id"); $GLOBALS['a_planbz'] = $GLOBALS['mysql']->query_array("SELECT * FROM planer_bez ORDER BY id"); $GLOBALS['a_planbf'] = $GLOBALS['mysql']->query_array("SELECT * FROM fplaner_bez ORDER BY id"); } $template = new smarty(); $template->template_dir = './template/'; $template->compile_dir = './template/compile'; $template->compile_check = TRUE; $template->debugging = false; $template->debug_output = "html"; $template->plugins_dir[] = 'lib/smarty/plugins/'; $template->force_compile = true; } //Email //$GLOBALS['email'] = new email; $GLOBALS['core'] = new core; // $GLOBALS['browser'] = new Browser(); // $GLOBALS['sms'] = new sms; if(isset($_GET['s']) AND file_exists('scripts/ajax/'.$_GET['s'].'.php')){ require('scripts/ajax/'.$_GET['s'].'.php'); } if(isset($_GET['tpl'])) { $GLOBALS['template']->display('pia.tpl'); } ?>