require_once("Obj/user.phh");
require_once("Obj/brisk.phh");
require_once("Obj/auth.phh");
-require_once("Obj/proxyscan.phh");
$mlang_room = array( 'userpassuse' => array('it' => 'Il tuo nickname è già in uso.',
'en' => 'Your nickname is already in use.'),
'en' => 'EN Abbiamo perso le tue tracce mentre stavi giocando, quindi ti abbiamo disconnesso.'),
'reas_anon' => array('it' => 'L\' accesso attraverso sistemi di anonimizzazione non è consentito.',
'en' => 'EN L\' accesso attraverso sistemi di anonimizzazione non è consentito.'),
+ 'reas_prox' => array('it' => 'L\' accesso attraverso proxy non è consentito, se lo usi solo tu e pochi altri utenti comunica il suo indirizzo IP all\' <a href="mailto: brisk@alternativeoutput.it">amministratore</a> per aggiungerlo alle eccezioni.',
+ 'en' => 'EN L\' accesso attraverso proxy non è consentito, se lo usi solo tu e pochi altri utenti comunica il suo indirizzo IP all\' <a href="mailto: brisk@alternativeoutput.it">amministratore</a> per aggiungerlo alle eccezioni.'),
'reas_anot' => array('it' => 'La tua sessione è stata assegnata ad un altro browser.',
'en' => 'EN La tua sessione è stata assegnata ad un altro browser.'),
'reas_cloud' => array('it' => 'La connessione dai computer di una cloud non è ammessa.',
'en' => 'Connection from cloud computers is not allowed.'),
- 'btn_enter' => array('it' => 'entra',
- 'en' => 'enter'),
+ 'btn_enter' => array('it' => 'Entra.',
+ 'en' => 'Enter.'),
'passwarn' => array('it' => 'Se non hai ancora una password, lascia il campo in bianco ed entra.',
'en' => 'If you don\'t have a password, leave blank the field and enter.'),
'browwarn' => array('it' => 'Se qualcosa non funziona prova a ricaricare la pagina con <b>Ctrl + F5</b><br><br>Se non riesci più ad entrare nel nuovo Brisk e prima ci riuscivi potrebbe essere un problema di antivirus,<br>guarda la <a class=\'flat\' style=\'background-color: white; font-weight: bold;\' target=\'_blank\' href=\'http://www.alternativeoutput.it/blog/doku.php?id=brisk:guida_agli_antivirus\'>pagina sugli antivirus</a> per maggiori informazioni su come configurarlo.<br><br>Se ancora non funziona nulla contatta <a class=\'flat\' style=\'background-color: white; font-weight: bold;\' href=\'mailto:brisk@alternativeoutput.it\'>l\'amministratore del sito</a>.',
'en' => 'Reset.'),
'btn_prefs_close' => array('it' => 'Chiudi.',
'en' => 'Close.'),
+ 'btn_prefs_send' => array('it' => 'Invia.',
+ 'en' => 'Send.'),
'tit_tabl' => array('it' => 'Tavolo ',
'en' => 'Table '),
'tit_stat' => array('it' => 'imposta lo stato del tuo utente',
'en' => 'contacts'),
'itm_mail' => array('it' => 'contatti',
'en' => 'contacts'),
+ 'tit_cook' => array('it' => 'policy sui cookie',
+ 'en' => 'cookie policy'),
+ 'itm_cook' => array('it' => 'cookie',
+ 'en' => 'cookie'),
'tit_cla' => array('it' => 'classifiche degli utenti',
'en' => 'user\'s placings'),
'itm_cla' => array('it' => 'classifiche',
'en' => 'Send a message to the administrator:'),
'mesgtoadm_sub'=> array('it' => 'soggetto:',
'en' => 'subject:'),
- 'btn_send' => array('it' => 'Invia.',
- 'en' => 'Send.'),
- 'btn_close' => array('it' => 'Chiudi.',
- 'en' => 'Close.')
);
require_once("briskin5/Obj/briskin5.phh");
$tit = eschtml($sb['title']);
printf(' alt="%s" title="%s"></a></div>', $tit, $tit);
printf("\n");
- printf('<img class="nobohide" style="z-index: 255; border: 1px solid gray;" id="sidebanner%d_big" src="%s">', $i, $sb['icon_big']);
+
+ $ib_class = "";
+ if (array_key_exists('icon_big_class', $sb)) {
+ $ib_class = $sb['icon_big_class'];
+ }
+
+ printf('<img class="nobohide bordergray %s" style="z-index: 255;" id="sidebanner%d_big" src="%s">', $ib_class, $i, $sb['icon_big']);
printf("\n");
}
}
GLOBAL $G_sidebanner, $G_sidebanner_idx;
GLOBAL $G_with_poll;
GLOBAL $G_lang, $G_lng, $mlang_room;
- GLOBAL $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER;
+ GLOBAL $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER, $_COOKIE;
if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE)
$sess = "";
if (($table_token = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
unset ($table_token);
- $remote_addr = addrtoipv4($remote_addr_full);
+ log_step("LOGIN: $name");
- // Use of proxies isn't allowed.
- if (!$G_is_local && is_proxy($remote_addr)) {
- return FALSE;
- }
+ // default values
+ $_cookie_law_3party = 'true';
+ if (isset($cookie['_cookie_law_3party']))
+ $_cookie_law_3party = $cookie['_cookie_law_3party'];
+
+ $remote_addr = addrtoipv4($remote_addr_full);
$is_login = FALSE;
$body = "";
case GHOST_SESS_REAS_ANON:
$last_msg = $mlang_room['reas_anon'][$G_lang];
break;
+ case GHOST_SESS_REAS_PROX:
+ $last_msg = $mlang_room['reas_prox'][$G_lang];
+ break;
default:
$last_msg = $mlang_room['reas_unkn'][$G_lang];
break;
}
}
+ if ($brisk->cloud_check($remote_addr)) {
+ // TODO: find a way to add a nonblocking sleep(5) here
+ $banned = TRUE;
+ $last_msg = $mlang_room['reas_cloud'][$G_lang];
+ }
+
+
if (validate_sess($sess)) {
log_main("pre garbage_manager UNO");
$brisk->garbage_manager(TRUE);
/* MLANG: "briscola chiamata in salsa ajax", */
mt_srand(make_seed());
- if (!$G_is_local) {
+ if (!$G_is_local && $_cookie_law_3party == 'true') {
$rn = rand(0, 1);
if ($rn == 0) {
onmouseover="menu_hide(0,1);"
title="'.$mlang_room['tit_mail'][$G_lang].'">'.$mlang_room['itm_mail'][$G_lang].'</a><br>
+<a target="_blank" href="http://www.alternativeoutput.it/cookie.php"
+ onmouseover="menu_hide(0,1);"
+ title="'.$mlang_room['tit_cook'][$G_lang].'"
+ alt="'.$mlang_room['tit_cook'][$G_lang].'">'.$mlang_room['itm_cook'][$G_lang].'</a><br>
<hr>
<!--
</div>
<a style="/* position: absolute; top: 40px; left: 6px;" */ target="_blank" href="http://it-it.facebook.com/group.php?gid=59742820791"><img class="nobo" id="btn_facebook" src="img/facebook_btn.png" title="unisciti al gruppo \'quelli della brisk\'"></a>
' . ( /* NOTE: here facebook or fake facebook */
-! $G_is_local ?
+(!$G_is_local && $_cookie_law_3party == 'true') ?
'<div class="fb-like" style="margin-top: 4px;" data-href="https://www.facebook.com/pages/Brisk-briscola-chiamata-in-salsa-ajax/716026558416911" data-share="false" data-send="true" data-width="70" data-show-faces="false" data-colorscheme="dark" layout="button_count"></div>
-' : '<div style="margin-top: 4px; height: 20px; background-color: #00f;">FACEBOOK HERE</div>
-' ) . '<div id="proflashext" class="proflashext"><div id="proflash" class="proflash"></div></div>
+' : '' ) . '<div id="proflashext" class="proflashext"><div id="proflash" class="proflash"></div></div>
<img id="stm_stat" class="nobo" style="margin-top: 4px;" src="img/line-status_b.png">
%s
%s
<script type="text/javascript" src="md5.js"></script>
<script type="text/javascript" src="probrowser.js"></script>
<script type="text/javascript" src="json2.js"></script>
+<script type="text/javascript" src="/cookie_law.js"></script>
+<link rel="stylesheet" type="text/css" href="/cookie_law.css">
<link rel="stylesheet" type="text/css" href="brisk.css">
<link rel="stylesheet" type="text/css" href="room.css">
</script>
</head>
<?php
- if (!$G_is_local) {
+ if (!$G_is_local && $_cookie_law_3party == 'true') {
?>
<!-- if myconsole <body onunload="deconsole();"> -->
<body xmlns:fb="http://ogp.me/ns/fb#">
<form accept-charset="utf-8" method="post" action="" onsubmit="return j_login_manager(this);">
<input id="passid_private" name="pass_private" type="hidden" value="">
<table class="login">
- <tr><td>user:</td>
+ <tr><td>nickname:</td>
<td><input id="nameid" class="input_text" name="name" type="text" size="24" maxlength="12" value=""></td></tr>
- <tr><td>pwd:</td>
+ <tr><td>password:</td>
<td><input id="passid" class="input_text" name="pass" type="password" size="24" maxlength="64" value=""></td></tr>
<tr><td colspan="2"><input id="sub" value="<?php echo $mlang_room['btn_enter'][$G_lang];?>" type="submit" class="button"></td></tr>
</table>
</form><br>
- <b><?php echo $mlang_room['passwarn'][$G_lang];?></b><br><br>
+
+ <?php echo $mlang_room['passwarn'][$G_lang];?><br><br>
+
+ <button onclick="$('apprentice_div').style.display = ($('apprentice_div').style.display == 'none' ? 'inline-block' : 'none');">Vuoi ottenere un accesso da apprendista ?</button><br><br>
+ <div id="apprentice_div" style="display: none; background-color: #ffd780; border: 1px solid #ffae00; padding: 8px;">
+ <br>
+ Inserisci il tuo nickname e il tuo indirizzo e-mail.<br>
+ Il tuo nickname non può essere più lungo di 12 caratteri,<br>deve essere composto soltanto da lettere non accentate e numeri,<br>senza ripetere lo stesso carattere per più di 3 volte consecutive.<br><br>
+ <form accept-charset="utf-8" method="post" action="" onsubmit="return j_new_apprentice(this);">
+ <input type="hidden" name="realsub" value="666">
+ <table class="login">
+ <tr><td>nickname:</td>
+ <td><input id="nameid" class="input_text" name="cli_name" type="text" size="24" maxlength="12" value=""></td></tr>
+ <tr><td>e-mail:</td>
+ <td><input id="emailid" class="input_text" name="cli_email" type="text" size="24" maxlength="512" value=""></td></tr>
+ <tr><td colspan="2"><table style="margin: auto;"><tr><td><input id="send" onclick="submit_click(this);" value="<?php echo $mlang_room['btn_prefs_send'][$G_lang];?>" type="submit" class="button"></td>
+ <td><input id="close" onclick="submit_click(this);" value="<?php echo $mlang_room['btn_prefs_close'][$G_lang];?>" type="submit" class="button"></td></tr></table></td></tr>
+ </table>
+ </form></div>
+ <br><br>
<?php echo $mlang_room['browwarn'][$G_lang];?><br>
</div>
- <br><br><br><br>
- <br><br><br><br>
- <br><br><br><br>
- <br><br><br><br>
- <br><br><br><br>
<div id="imgct"></div>
<div id="logz"></div>
<div id="xhrlog"></div>
</pre>
<div id="xhrdeltalog"></div>
+
+<script language="JavaScript">
+<!--
+cookie_law(null);
+// -->
+</script>
</body>
</html>
<?php
<script type="text/javascript" src="AC_OETags.js"></script>
<script type="text/javascript" src="probrowser.js"></script>
<script type="text/javascript" src="json2.js"></script>
+<script type="text/javascript" src="/cookie_law.js"></script>
+<link rel="stylesheet" type="text/css" href="/cookie_law.css">
<link rel="stylesheet" type="text/css" href="brisk.css">
<link rel="stylesheet" type="text/css" href="room.css">
<script type="text/javascript"><!--
</script>
</head>
<?php
- if (!$G_is_local) {
+ if (!$G_is_local && $_cookie_law_3party == 'true') {
?>
<!-- if myconsole <body onunload="deconsole();"> -->
<body xmlns:fb="http://ogp.me/ns/fb#">
<tr><td colspan="2" style="text-align: center;">
<!-- MLANG: Garantisci per un tuo conoscente: -->
<input id="subid" name="sub" value=
-"<?php echo $mlang_room['btn_send'][$G_lang]; ?>"
+"<?php echo $mlang_room['btn_prefs_send'][$G_lang]; ?>"
type="submit" onclick="this.form.elements['realsub'].value = 'invia';" class="button">
<!-- MLANG: Garantisci per un tuo conoscente: -->
<input id="cloid" name="clo" value=
-"<?php echo $mlang_room['btn_close'][$G_lang]; ?>"
+"<?php echo $mlang_room['btn_prefs_close'][$G_lang]; ?>"
type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chiudi';"></td></tr>
</table>
</form>
<tr><td><img title="messaggio" class="nobo" src="img/mesgtoadm_mesg<?php echo $G_lng;?>.png"></td>
<td><textarea id="mesgid" class="input_text" name="mesg" cols="40" rows="8" wrap="soft"></textarea></td></tr>
<tr><td colspan="2" style="text-align: center;">
- <input id="subid" name="sub" value="<?php echo $mlang_room['btn_send'][$G_lang];?>" type="submit" onclick="this.form.elements['realsub'].value = 'invia';" class="button">
-<input id="cloid" name="clo" value="<?php echo $mlang_room['btn_close'][$G_lang];?>" type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chiudi';"></td></tr>
+ <input id="subid" name="sub" value="<?php echo $mlang_room['btn_prefs_send'][$G_lang];?>" type="submit" onclick="submit_click(this);" class="button">
+<input id="cloid" name="clo" value="<?php echo $mlang_room['btn_prefs_close'][$G_lang];?>" type="submit" class="button" onclick="submit_click(this);"></td></tr>
</table>
</form>
</div>
<input type="submit" class="input_sub" style="bottom: 4px;" onclick="prefs_save();" value="<?php echo $mlang_room['btn_prefs_save'][$G_lang]; ?>"/>
</div>
</div>
+<script language="JavaScript">
+<!--
+cookie_law(null);
+// -->
+</script>
</body>
</html>
<?php