3 * brisk - singlemsg.php
5 * Copyright (C) 2014 Matteo Nastasi
6 * mailto: nastasi@alternativeoutput.it
7 * matteo.nastasi@milug.org
8 * web: http://www.alternativeoutput.it
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details. You should have received a
19 * copy of the GNU General Public License along with this program; if
20 * not, write to the Free Software Foundation, Inc, 59 Temple Place -
21 * Suite 330, Boston, MA 02111-1307, USA.
27 require_once("Obj/brisk.phh");
28 require_once("Obj/user.phh");
29 require_once("Obj/auth.phh");
30 require_once("Obj/dbase_${G_dbasetype}.phh");
33 $mlang_singlemsg = array( 'headline' => array('it' => 'briscola chiamata in salsa ajax',
34 'en' => 'declaration briscola in ajax sauce <b>(Beta)</b>'),
35 'content' => array('it' => 'C\'è qualche problema sul server.<br><br>Tra qualche istante questa pagina proverà a riconnettersi automaticamente.<br><br>Ci dispiace del disagio.',
36 'en' => 'EN E\' occorso qualche problema sul server.<br>Questa pagina proverà automaticamente a riconnettersi tra qualche istante.<br>Ci dispiace per il disagio.' ) );
38 function singlemsg($title, $msg, $redir_url=FALSE) {
39 GLOBAL $mlang_singlemsg, $G_is_local, $G_lang, $_SERVER;
41 $host = $_SERVER['HTTP_HOST'];
42 $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
44 mt_srand(make_seed());
46 // $redir_url = "http://$host$uri/";
47 $redir_rnd = rand(15, 25);
48 $redir_meta = sprintf('<META HTTP-EQUIV="refresh" CONTENT="%d;URL=\'%s\'">', $redir_rnd, $redir_url);
56 <title><?php echo $title; ?></title>
57 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
58 <?php echo "$redir_meta\n"?>
59 <link rel="shortcut icon" href="img/brisk_ico.png">
60 <script type="text/javascript" src="commons.js"></script>
61 <script type="text/javascript" src="prefs.js"></script>
62 <!-- <script type="text/javascript" src="myconsole.js"></script> -->
63 <script type="text/javascript" src="menu.js"></script>
64 <script type="text/javascript" src="heartbit.js"></script>
65 <script type="text/javascript" src="xynt-streaming.js"></script>
66 <script type="text/javascript" src="preload_img<?php echo langtolng($G_lang); ?>.js"></script>
67 <script type="text/javascript" src="AC_OETags.js"></script>
68 <script type="text/javascript" src="room.js"></script>
69 <script type="text/javascript" src="md5.js"></script>
70 <script type="text/javascript" src="probrowser.js"></script>
71 <script type="text/javascript" src="json2.js"></script>
72 <link rel="stylesheet" type="text/css" href="brisk.css">
73 <link rel="stylesheet" type="text/css" href="room.css">
75 <body style="/*background-image: url('img/saddysunbg.png');*/">
77 /* MLANG: "briscola chiamata in salsa ajax", */
79 mt_srand(make_seed());
84 $banner_top_left = '<script type="text/javascript"><!--
85 google_ad_client = "pub-5246925322544303";
86 google_ad_width = 234;
87 google_ad_height = 60;
88 google_ad_format = "234x60_as";
89 google_ad_type = "text_image";
90 google_ad_channel = "";
91 google_color_border = "808080";
92 google_color_bg = "f6f6f6";
93 google_color_link = "ffae00";
94 google_color_text = "404040";
95 google_color_url = "000000";
98 <script type="text/javascript"
99 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
101 $banner_top_right = carousel_top();
104 $banner_top_left = carousel_top();
105 $banner_top_right = '<script type="text/javascript"><!--
106 google_ad_client = "pub-5246925322544303";
107 google_ad_width = 234;
108 google_ad_height = 60;
109 google_ad_format = "234x60_as";
110 google_ad_type = "text_image";
111 google_ad_channel = "";
112 google_color_border = "808080";
113 google_color_bg = "f6f6f6";
114 google_color_link = "ffae00";
115 google_color_text = "404040";
116 google_color_url = "000000";
119 <script type="text/javascript"
120 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
124 else { // !$G_is_local
125 $banner_top_left = carousel_top();
126 $banner_top_right = carousel_top();
129 $brisk_header_form = '<div class="container">
130 <!-- =========== header =========== -->
131 <div id="header" class="header">
132 <table width="100%%" border="0" cols="3"><tr>
133 <td align="left"><div style="padding-left: 8px;">'.$banner_top_left.'</div></td>
134 <td align="center"><div style="text-align: center;">
135 <img class="nobo" src="img/brisk_logo64.png">
136 '.$mlang_singlemsg['headline'][$G_lang].'<br>
138 <td align="right"><div style="padding-right: 8px;">
139 '.$banner_top_right.'</div></td>
143 printf($brisk_header_form);
146 <div style="text-align: center; font-size: 24px; height: 600px;">
147 <div style="height: 200px;"></div>
151 <div id="imgct"></div>
152 <div id="logz"></div>
153 <div id="sandbox"></div>
154 <div id="sandbox2"></div>
155 <div id="response"></div>
156 <div id="xhrstart"></div>
158 <div id="xhrlog"></div>
160 <div id="xhrdeltalog"></div>
167 // singlemsg("Ci siamo title", "Ci siamo");