if(!isset($_SESSION)){session_start();} include_once "include/pay.config.php"; include_once "include/db.config.php"; include_once "include/geoiploc.php"; include_once "../070608-subscribe/includes/currency_prices.php"; #$WEBURL = "http://switzernet.com/public/140819-epay/index2.php"; $connection = mysql_connect(DB1_SERVER,DB1_SERVER_USERNAME,DB1_SERVER_PASSWORD, TRUE); mysql_select_db(DB1_DATABASE, $connection); $connection2=mysql_connect(DB2_SERVER.':'.DB2_SERVER_PORT,DB2_SERVER_USERNAME,DB2_SERVER_PASSWORD) or die(mysql_error().' : erreur de connexion a la base de donnee !'); mysql_select_db(DB2_DATABASE) or die("erreur de connexion a la base de donnees"); if ( isset( $_GET['i_customer'] ) ){ $tmp = account_number_from_i_customer( $_GET['i_customer'] ); if ( $tmp ){ $_SESSION['accountToCredit'] = $tmp; } } if ( isset($_GET['t']) || isset($_GET['ind']) ){ unset($_SESSION['action']); } if ( isset( $_POST['action'] ) ){ $_SESSION['action'] = $_POST['action']; $_SESSION['postdata'] = $_POST; header("Location: ".$WEBURL); exit; } if ( isset( $_GET['currency_code'] ) ) { $_SESSION['currency_code'] = $_GET['currency_code']; header("Location: ".$WEBURL); exit; } if ( isset( $_GET['action'] ) ){ $_SESSION['action'] = $_GET['action']; header("Location: ".$WEBURL); exit; } include_once "include/languages/get_language.php"; require_once 'include/Mobile-Detect-master/Mobile_Detect.php'; $currencyNotations = array( 'CHF' => 'Fr.' , 'EUR' => '€' , 'USD' => '$' , ); $currency = 'EUR'; $layoutType = initLayoutType(); $pref1_pref2=pref1_pref2(); $found=""; if(isset($_GET['ind'])){ list($part1,$part2,$part3)= split ("-", $_GET['ind'], 3); $part3=""; } elseif ( isset($_GET['t'] ) ) { list($part1,$part2,$part3)= split ("-", $_GET['t'], 3); } if ( strlen($part3)!=4 || !is_numeric($part3) ) { $part3=""; }; $price = ""; if ( isset($_GET['amount']) ){ if ( preg_match('/^[0-9]+(\.[0-9]{0,2})?$/', $_GET['amount']) ){ $price = $_GET['amount']; } } if ( isset($_POST['amount']) ){ if ( preg_match('/^[0-9]+(\.[0-9]{0,2})?$/', $_POST['amount']) ){ $price = $_POST['amount']; } } $number = ""; if ( isset( $_POST['action'] ) ){ $_SESSION['action'] = $_POST['action']; } if ( isset( $_GET['action'] ) ){ $_SESSION['action'] = $_GET['action']; } $debug_IE = FALSE; $using_ie6 = (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') !== FALSE); ?>