list($usec, $sec) = explode(" ", microtime());
    return (double) $usec + (double) $sec;
}
// Define script start time
define("START_TIME", get_microtime());
// Prevent PHP E_STRICT Warnings
if (function_exists("date_default_timezone_set") && function_exists("date_default_timezone_get")) {
    @date_default_timezone_set(@date_default_timezone_get());
}
// Prevent any possible XSS attacks via $_GET.
if (strip_get($_GET)) {
    die("Prevented a XSS attack through a GET variable!");
}
// Filter the $_GET var
for (reset($_GET); list($key, $value) = each($_GET);) {
    $_GET[$key] = secure_get($value);
}
// Start Output Buffering
//ob_start("ob_gzhandler"); //Uncomment this line and comment the one below to enable output compression.
ob_start();
// HTML Output for Error Msg
$die1 = "<div style='font-family:Verdana;font-size:11px;text-align:center;'><strong>";
$die2 = "</strong><br /></div>";
// Locate config.php and set the basedir path
$folder_level = '';
$i = 0;
while (!file_exists($folder_level . "config.php")) {
    $i++;
    if ($i == 7 || file_exists($folder_level . "maincore.php")) {
        die($die1 . "config.php not found!" . $die2);
    }
Beispiel #2
0
/**
 * if($_POST['anthr_reg']==="yes"){
 *     foreach($_SESSION as $key=>$value){
 *         $_SESSION[$key]=null;
 *     }
 * }
 */

$ADDTITLE = ( $lang ? '–ег-¤ на русском:' : 'For payment in euro:' );

include "service/qmail.php"; // must be before include "php/admin/mysql.php";
include "php/admin/mysql.php";
include "php/utils.php";
include "wt-config.php";
session_start();
$get_id=secure_get($_REQUEST['id']);


if($_GET['anthr_reg']==="No"||$get_id!==""){
    $_SESSION['anthr_reg']="No";
}else{$_SESSION['anthr_reg']="Yes";}
if($_POST['anthr_reg']==="Yes"){
    $_SESSION['anthr_reg']="Yes";
}



$HEADER1 = ( $lang ?
			"Russian winter tour $glob_year registration" :
			"–егистраци¤ на зимнюю поездку $glob_year"
			);