'; print_r($tag_tour5); echo''; error_reporting(E_ALL); ini_set('display_errors',0); header('Content-Type: text/html; charset=utf-8'); require('lib/config.php'); include('lib/class.mysms.php'); require('lib/mysql.class.php'); require('lib/core.class.php'); session_name(CONFIG_SESSION); session_start(); //------------------------------------------------------------------ if(!isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'on') { header('Location: https://'.$_SERVER['SERVER_NAME']); exit(); } //------------------------------------------------------------------ $userip=$_SERVER['REMOTE_ADDR'];// ip fuer fuss date_default_timezone_set('Europe/Berlin'); // Default Time Zone // define('SITE_ACCESS',true); $GLOBALS['mysql'] = new mysql(CONFIG_MYSQL_HOST,CONFIG_MYSQL_USER,CONFIG_MYSQL_PW,CONFIG_MYSQL_DB); mysqli_set_charset($mysql, 'utf8'); require('lib/smarty/Smarty.class.php'); $GLOBALS['core'] = new core; $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; //----------------------------------------------------- if(date('G')<8) { $d = getdate(); } else { $d = getdate(strtotime("+1 day")); } $test1 = $GLOBALS['mysql']->query_single("SELECT * FROM tourenliste WHERE tour=127 and tag='".$d['mday']."' and monat='".$d['mon']."'and jahr='".$d['year']."' and fertig=1"); if ($test1['num_rows']!=0) { $template->assign('anzeige', 1); $data1 = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$test1['fahrer']."'"); $template->assign('data1', $data1); $test2 = $GLOBALS['mysql']->query_single("SELECT * FROM tourenliste WHERE tour=90227 and tag='".$d['mday']."' and monat='".$d['mon']."'and jahr='".$d['year']."'"); $data2 = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$test2['fahrer']."'"); if ($test2['num_rows']!=0) { $template->assign('anzeige', 2); $template->assign('data2', $data2); } } else { $template->assign('anzeige', 0); //--------------------------------------------- } //------------------------------------------------------------------------------------------------------------- //echo'
'; print_r($tag_tour1); echo'
'; //------------------------------------------------------------ $template->assign('d',$d); $GLOBALS['template']->display('227.tpl'); //------------------------------------------------------------ ?>