X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fbriskin5%2Findex.php;h=49f358733fc815ea784561dbbf240889957d041e;hb=ba4708b722049c01bc3c7204eb9ebb411ad25f35;hp=deeeba5a4195b4df075b536330771a548192cb96;hpb=648e67ab39b09ae4a82fe2548a6c63154b61e901;p=brisk.git
diff --git a/web/briskin5/index.php b/web/briskin5/index.php
index deeeba5..49f3587 100644
--- a/web/briskin5/index.php
+++ b/web/briskin5/index.php
@@ -3,7 +3,7 @@
* brisk - briskin5/index.php
*
* Copyright (C) 2006-2012 Matteo Nastasi
- * mailto: nastasi@alternativeoutput.it
+ * mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
*
@@ -46,9 +46,13 @@ $mlang_bin5_index = array( 'aucwin' => array( 'it' => 'Hai vinto l\'asta.
Sc
);
-function bin5_index_main($transp_type, &$header_out, $addr, $get, $post, $cookie)
+function bin5_index_main($transp_type, $header, &$header_out, $addr, $get, $post, $cookie)
{
GLOBAL $G_lang, $mlang_bin5_index;
+
+ $transp_port = ((array_key_exists("X-Forwarded-Proto", $header) &&
+ $header["X-Forwarded-Proto"] == "https") ? 443 : 80);
+
if (($table_idx = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
unset ($table_idx);
if (($laststate = gpcs_var('laststate', $get, $post, $cookie)) === FALSE)
@@ -56,38 +60,48 @@ function bin5_index_main($transp_type, &$header_out, $addr, $get, $post, $cookie
if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE)
unset ($sess);
+ fprintf(STDERR, "PREF_DECK SET %s", (isset($cookie['CO_bin5_pref_deck']) ? "YES" : "NO"));
+
+ $deck = (isset($cookie['CO_bin5_pref_deck']) ? $cookie['CO_bin5_pref_deck'] : 'xx');
+
// header('Content-type: text/html; charset="utf-8"',true);
?>