'; 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'); 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(); } //------------------------------------------------------------------ $faz=0; $realtime=time(); // zeit fuer fuss $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(isset($_POST['norm'])) { $e1=floor($_POST['exemplare']/$_POST['norm']); $temp=$e1*$_POST['norm']; $e2=$_POST['exemplare']-$temp; $template->assign('e1',$e1); $template->assign('e2',$e2); $template->assign('norm',$_POST['norm']); } //------------------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------------------- //echo'
'; print_r($tag_tour1); echo''; //------------------------------------------------------------ $GLOBALS['template']->display('norm.tpl'); //------------------------------------------------------------ ?>