X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=3b14fa67f4c288f45aeeb944e1f8dc39478e1f74;hb=0b7233416fd5e2ef879170f5a49ff936ff27deef;hp=74d94954d936362a90cb2ebab5e6266a9e583185;hpb=6215f77e418ed06e4822895bf644b585d32ba959;p=brisk.git diff --git a/web/index.php b/web/index.php index 74d9495..3b14fa6 100644 --- a/web/index.php +++ b/web/index.php @@ -2,7 +2,10 @@ /* * brisk - index.php * - * Copyright (C) 2006-2007 matteo.nastasi@milug.org + * Copyright (C) 2006-2009 Matteo Nastasi + * mailto: nastasi@alternativeoutput.it + * matteo.nastasi@milug.org + * web: http://www.alternativeoutput.it * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,56 +24,147 @@ * */ -require_once("brisk.phh"); +require_once("Obj/brisk.phh"); +require_once("Obj/auth.phh"); +require_once("Obj/proxyscan.phh"); + +$mlang_room = array( 'userpasserr' => array('it' => 'Utente e/o password errati.', + 'en' => 'Wrong user and/or password.') ); + +// Use of proxies isn't allowed. +if (!$G_is_local && is_proxy()) + exit; + +require_once("briskin5/Obj/briskin5.phh"); if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { echo "Debugging time!"; exit; } -log_load($sess, "LOAD: index.php"); +log_load("index.php"); + + +function poll_dom() { + GLOBAL $G_with_poll, $G_poll_title, $G_poll_entries; + + if ($G_with_poll) { + $ret = sprintf('
+ + +'; + + + $standup .= '
'; + $standup .= '
'; + /* MLANG: "Giocatori in piedi", "Come ottenere user e password" */ + // $standup .= '
Giocatori in piedi - Come ottenere user e password -
'; + $standup .= '
Giocatori in piedi
'; - $tables .= '
'; + $standup .= sprintf('
'); + $standup .= '
'; + $standup .= ''; } - $altout_propag = array( array ( 'url' => 'http://www.alternativeoutput.it', - 'content' => '' ), - array ( 'url' => 'http://virtualsky.alternativeoutput.it', - 'content' => '' ) + $altout_sponsor_arr = array( array ( 'id' => 'btn_altout', + 'url' => 'http://www.alternativeoutput.it', + 'content' => 'img/altout80x15.png', + 'content_big' => 'img/logotxt_banner.png'), + array ( 'id' => 'btn_virtualsky', + 'url' => 'http://virtualsky.alternativeoutput.it', + 'content' => 'img/virtualsky80x15a.gif', + 'content_big' => 'img/virtualsky_big.png'), + array ( 'id' => 'btn_dynamica', + 'url' => 'http://www.dynamica.it', + 'content' => 'img/dynamica.png', + 'content_big' => 'img/dynamica_big.png') ); - + + $altout_support_arr = array( array ( 'id' => 'btn_brichi', + 'url' => 'http://www.briscolachiamata.it', + 'content' => 'img/brichi.png', + 'content_big' => 'img/brichi_big.png'), + array ( 'id' => 'btn_foroli', + 'url' => 'http://www.forumolimpia.it', + 'content' => 'img/forumolimpia.gif', + 'content_big' => 'img/forumolimpia_big.png' ) ); + + + + $altout_support = ""; + $altout_support_big = ""; + for ($i = 0 ; $i < 3 ; $i++) { + $ii = ($i < 2 ? $i : 0); + + $altout_support .= sprintf('
', + $i * 20, $altout_support_arr[$ii]['url'], + $altout_support_arr[$ii]['id'], $altout_support_arr[$ii]['content']); + + $altout_support_big .= sprintf('', + $altout_support_arr[$ii]['id'], $altout_support_arr[$ii]['content_big']); + } + + // seed with microseconds since last "whole" second - srand ((double) microtime() * 1000000); - $randval = rand(0,count($altout_propag)-1); - $altout_carousel = sprintf('%s', - $altout_propag[$randval]['url'], - $altout_propag[$randval]['content']); - + // srand ((double) microtime() * 1000000); + // $randval = rand(0,count($altout_sponsor_arr)-1); + $altout_sponsor = ""; + $altout_sponsor_big = ""; + for ($i = 0 ; $i < 4 ; $i++) { + $ii = ($i < 3 ? $i : 0); + + $altout_sponsor .= sprintf('
', + $i * 20, $altout_sponsor_arr[$ii]['url'], + $altout_sponsor_arr[$ii]['id'], $altout_sponsor_arr[$ii]['content']); + + $altout_sponsor_big .= sprintf('', + $altout_sponsor_arr[$ii]['id'], $altout_sponsor_arr[$ii]['content_big']); + } + + + + $brisk_donate = file_get_contents(FTOK_PATH."/brisk_donate.txt"); if ($brisk_donate == FALSE) $brisk_donate = ""; + + /* MLANG: "briscola chiamata in salsa ajax", */ + $brisk_header_form = '
'; +/* MLANG: ALL THE VERTICAL MENU */ +$brisk_vertical_menu = ' + +
+ +
+ + - +aiuto
+ +homepage
+ +cos\'è
+ +regole
+ +screenshoots
+ +compatibilità
+ +sorgenti
+ +mailing list
+ +propaganda
+about
+ +contatti
+ +
+ + +roadmap
+ +raduni
+ + - -
- -


-sponsored by:

'.$altout_carousel.'
-

-supported by:

-

+
'. ($ACTION == "room" ? '
+ +'.($G_with_poll ? '' : '
+').' +
+'.($user->flags & USER_FLAG_AUTH ? ' +'.poll_dom() + : ' + +').' + +' : '').' + +
+
+sponsored by:
+
+
+
'.$altout_sponsor.'
+
+
+'.$altout_sponsor_big.' +
+
+supported by:
+
+
+
'.$altout_support.'
+ +
+
+
+'.$altout_support_big.' +
+ +


%s %s -
'; +
'; /* Templates. */ if ($ACTION == 'login') { + header('Content-type: text/html; charset="utf-8"',true); ?> Brisk + + + + + + - - - + + + \n"); + printf($brisk_vertical_menu, '', ''); + + if ($G_with_sidebanner xor $G_with_sidebanner2) { + printf("

"); + } + + if ($G_with_sidebanner) { + printf("%s", $G_sidebanner); + if ($G_with_sidebanner2) { + printf("
"); + } + } + + + if ($G_with_sidebanner2) { + printf("%s", $G_sidebanner2); + } + printf(""); ?> -
- +



Digita il tuo nickname per accedere ai tavoli della briscola.

-
- - -
+
+ + + + + + + + +

+Se non hai ancora una password, lascia il campo in bianco ed entra.

+(se usi firefox e qualcosa non funziona
prova a ricaricare la pagina con Ctrl + F5)
-




@@ -269,78 +635,191 @@ Digita il tuo nickname per accedere ai tavoli della briscola.

Brisk + + + + + - - - + + +




', + printf($brisk_header_form); + printf("
\n"); + /* printf($brisk_vertical_menu, '



', $brisk_donate); + printf($brisk_vertical_menu, '

', + $brisk_donate);*/ + printf($brisk_vertical_menu, '
', + $brisk_donate); + + + if ($G_with_sidebanner xor $G_with_sidebanner2) { + printf("

"); + } + + if ($G_with_sidebanner) { + printf("%s", $G_sidebanner); + if ($G_with_sidebanner2) { + printf("
"); + } + } + + + if ($G_with_sidebanner2) { + printf("%s", $G_sidebanner2); + } + + printf("
"); ?> -
sess"; ?>"> +
- +
+ +
+
-
-Chat +
+Chat
-
+
+ +
+
+
+ +
+
+ +
+
+ Garantisci per un tuo conoscente: +

+ +
+ + + + + + + + +
+
+
+
+ Invia un messaggio o una segnalazione all'amministratore: +

+
+ + + + + + + + + + +
+