From: Matteo Nastasi (mop) Date: Sat, 8 Aug 2009 15:44:34 +0000 (+0000) Subject: isolation mode and donors counter added X-Git-Tag: 3.0.0~47 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=e81bcccb53819da68ee7edd04399c247729dc73f;p=brisk.git isolation mode and donors counter added --- diff --git a/web/index.php b/web/index.php index 63d0679..cfcca1a 100644 --- a/web/index.php +++ b/web/index.php @@ -96,8 +96,12 @@ $mlang_room = array( 'userpasserr' => array('it' => 'Utente e/o password errati 'en' => 'listen all messages from each user connected'), 'tit_listaut' => array('it' => 'solo autenticati', 'en' => 'only authorized'), + 'tit_isolaut' => array('it' => 'isolamento', + 'en' => 'isolation'), 'listaut_desc' => array('it' => 'leggi soltanto i messaggi degli utenti con password', 'en' => 'listen messages only from authenticated users'), + 'isolaut_desc' => array('it' => 'visualizza Brisk come se fosse solo per utenti con password', + 'en' => 'show Brisk like an authenticated user only site'), 'tit_help' => array('it' => 'informazioni utili su Brisk', 'en' => 'usefull information about Brisk'), 'itm_help' => array('it' => 'aiuto', @@ -199,6 +203,7 @@ function poll_dom() { function main() { + GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all; GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; GLOBAL $G_with_sidebanner, $G_sidebanner; GLOBAL $G_with_sidebanner2, $G_sidebanner2; @@ -338,16 +343,21 @@ function main() else $i = TABLES_N - $ii - 1; - if ($ii % 4 == 0) - $tables .= ''; - $tables .= ''; - $tables .= '
'.$mlang_room['tit_tabl'][$G_lang].$i.'
'; - $tables .= sprintf('
', $i); - $tables .= sprintf('
', $i); - $tables .= '
'; - $tables .= ''."\n"; - if ($ii % 4 == 3) + if ($ii % 4 == 0) { + $tables .= ''; + } + if (TRUE || !($user->flags & USER_FLAG_ISOLAUTH) || $ii < TABLES_AUTH_N) { + $tables .= ''; + + $tables .= '
'.$mlang_room['tit_tabl'][$G_lang].$i.'
'; + $tables .= sprintf('
', $i); + $tables .= sprintf('
', $i); + $tables .= '
'; + $tables .= ''."\n"; + } + if ($ii % 4 == 3) { $tables .= ''; + } } $tables .= ''; @@ -453,10 +463,12 @@ google_color_url = "000000"; src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> ' ).' -'.($G_with_topbanner ? ' + '.( ($G_with_topbanner || $G_with_donors) ? sprintf('
' : '').'
+
'.(($G_with_topbanner || $G_with_donors) ? '
' : '').'
'.$mlang_room['headline'][$G_lang].'
-
'.($G_with_topbanner ? sprintf('
%s
', $G_topbanner) : '').'
%s
', + ($G_with_topbanner ? $G_topbanner : +"
donatori
") ) : '').'
'.($G_is_local ? '' : '