62 lines
No EOL
2.2 KiB
PHP
62 lines
No EOL
2.2 KiB
PHP
<meta name="robots" content="noindex,nofollow">
|
|
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="expires" content="0">
|
|
<?php
|
|
// echo'<pre>'; print_r($tag_tour5); echo'</pre>';
|
|
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'<pre>'; print_r($tag_tour1); echo'</pre>';
|
|
//------------------------------------------------------------
|
|
|
|
$GLOBALS['template']->display('norm.tpl');
|
|
|
|
//------------------------------------------------------------
|
|
|
|
?>
|