/** * include the language files * * @param string $StFilePath */ function handleLanguage($StFilePath, $Debug = false) { $Lang = getCurrentLanguage(); $FilePath = ''; $ArFilePath = preg_split('/[\\/|\\\\]/', $StFilePath); $StFile = end($ArFilePath); if (strpos($StFilePath, 'templates') !== false && file_exists(ABSTEMPLATEDIR . 'lang/' . $Lang . '/lang.' . $StFile)) { $FilePath = ABSTEMPLATEDIR . 'lang/' . $Lang . '/lang.' . $StFile; } else { if (file_exists(LANGDIR . $Lang . '/lang.' . $StFile)) { $FilePath = LANGDIR . $Lang . '/lang.' . $StFile; } } if ($FilePath) { require_once $FilePath; } if ($Debug) { return $FilePath; } }
<html> <head> <link rel="stylesheet" href="styles.css" /> <script type="text/javascript" src="functions.js"></script> </head> <body> <?php session_start(); //Um noch zu übergeben, was von Seite 1 übrigblieb include_once 'dictionary.php'; include_once 'utility.php'; $lan = getCurrentLanguage(); echo "<p id = 'contentTitle'>" . translate("confirmation", $lan) . "</p>"; $deliveryMethod = "default"; $payMethod = "default"; $comment = $_POST['comments']; $shape = $_POST['shape']; //da es auf jeden Fall nicht leer ist, ist das okay if (!empty($_POST['radio_list'])) { //Das heisst, wenn eines selektiert wurde foreach ($_POST['radio_list'] as $check) { //Das Array hat so viele Einträge wie ausgewählte Optionen. Hier aber auf eines beschränkt $deliveryMethod = $check; } } //Auslesen der Zahlungsmehtode if (!empty($_POST['paymentBox'])) { foreach ($_POST['paymentBox'] as $payment) { $payMethod = $payment; }
@import url('<?php echo TEMPLATEDIR; ?> css/fonts.css'); </style> <?php echo defaultCSS(); ?> <?php echo defaultJS(); ?> <script type='text/javascript' src='<?php echo TEMPLATEDIR; ?> js/lang/<?php echo getCurrentLanguage(); ?> /i18n.js'></script> <script type='text/javascript' src='<?php echo TEMPLATEDIR; ?> js/default.js'></script> </head> <body> <div id='header'> <div class='Left' id='logo'> <img src='images/logotipo.jpg' alt='F1Desk'/> </div> <? if (Validate::Session(true)) : ?>