add G_profile to config template
[brisk.git] / web / Obj / brisk.conf-templ.pho
index eeb5b54..f2486fd 100644 (file)
@@ -1,16 +1,45 @@
 <?php
+
+if (file_exists("$DOCUMENT_ROOT/Etc/cloud_smasher.phh")) {
+    require("$DOCUMENT_ROOT/Etc/cloud_smasher.phh");
+}
+else {
+    $G_cloud_smasher = array();
+}
+
+if (file_exists("$DOCUMENT_ROOT/Etc/provider_proxy.phh")) {
+    require("$DOCUMENT_ROOT/Etc/provider_proxy.phh");
+}
+else {
+    $G_provider_proxy = array();
+}
+
+// 26 hours between 2 successive registration from this area
+$G_selfreg_mask = 0xfffff000;
+$G_selfreg_tout = 93600;
+$G_notguar_code = 10114;
+
 // G_dbasetype value can be "pgsql" or "file"
 $G_dbasetype="pgsql";
 
 $G_dbauth = "host=... port=... user=... password=... dbname=... options='--client_encoding=UTF8'";
 $G_dbpfx = "bsk_";
 
+$G_proto      = "https";
+$G_domain     = "brisk.example.com";
+$G_webbase    = "brisk";
+$G_admin_mail = "admin@$G_domain";
+$G_mail_seed  = 281741;
+
 $G_lang = "it";
 
 $G_crypt_key = "cryptkey";
 
 $G_shutdown = FALSE;
 
+// Enable basic profiling
+$G_profile = FALSE;
+
 // list of allowed proxies IP address (strings)
 $G_proxy_white_list = array();
 
@@ -54,21 +83,24 @@ Torneo di briscola<br> chiamata - Milano<br> 17/05/2008</a>
 </div>
 <img class="nobohide" id="topbanner_big" src="img/bcm_tor080517.gif">';
 
-// is the first side banner active ?
-$G_with_sidebanner = TRUE;
-
-$G_sidebanner = '<div class="topbanner" style="background: #ffd780; border: solid 1px #ffae00; width: 60px; margin: auto;" id="sidebanner2">
-<a target="_blank" href="briskmeeting4.php">
-<img style="position: static; border: solid 0px black;" src="img/brisk_meeting_trinacria60b.png"  onMouseOver="show_bigpict($(\'sidebanner2\'), \'over\', 100, -80, \'\');" onMouseOut="show_bigpict($(\'sidebanner2\'), \'out\', 0, 0, \'\');"></div>
-<img class="nobohide" id="sidebanner2_big" src="img/brisk_meeting4big150.png">';
-
-// is the second side banner active ?
-$G_with_sidebanner2 = TRUE;
-
-$G_sidebanner2 = '<div class="topbanner" style="background: #ffd780; border: solid 1px #ffae00; width: 60px; margin: auto;" id="sidebanner2">
-<a target="_blank" href="briskmeeting4.php">
-<img style="position: static; border: solid 0px black;" src="img/brisk_meeting_trinacria60b.png"  onMouseOver="show_bigpict($(\'sidebanner2\'), \'over\', 100, -80, \'\');" onMouseOut="show_bigpict($(\'sidebanner2\'), \'out\', 0, 0, \'\');"></div>
-<img class="nobohide" id="sidebanner2_big" src="img/brisk_meeting4big150.png">';
+$G_sidebanner_idx = array( 0, 1, 0 );
+
+// sidebanners array
+$G_sidebanner = array(
+                      array('link' => 'http://www.alternativeoutput.it/brisk/bm33/',
+                            'title' => '3° BriskMeeting \'Isola delle Femmine\' - Sabato 11 Ottobre 2014 - Palermo (PA)',
+                            'icon_big' => 'bm33/img/bm33_500.jpg'
+                            // 'type' => 'meeting' or 'event'      // (default meeting with the correct icon)
+                            // 'icon' => 'img/brisk_meeting60.gif' // (default is the regulare meeting icon)
+                            // 'dx'
+                            // 'dy'                                // displacement of the big image
+                            ),
+
+                      array('link' => 'https://www.facebook.com/events/525109597594103/',
+                            'title' => 'BriskMeeting Busseto - Terra di Verdi - Sabato 4 Ottobre - Busseto (Parma)',
+                            'icon_big' => 'bm32/img/splash.jpg'
+                            )
+                      );
 
 // is poll active ?
 $G_with_poll = FALSE;
@@ -78,17 +110,21 @@ $G_poll_entries = array( array( 'id' => 'din', 'cont' => 'Dinner room'),
                          array( 'id' => 'bat', 'cont' => 'Bath room'),
                          array( 'id' => 'coo', 'cont' => 'Cooking room') );
 
-$G_black_list = array();
+$G_ban_list = array();   // each element in the form "IP/<MSBs_number>" i.e. "192.15.21.4/24"
+$G_black_list = array(); // each element in the form "IP/<MSBs_number>" i.e. "192.15.21.4/24"
 
 
 // this is the prefix path to remove from backtrace
 $G_btrace_pref_sub = "/home/nastasi/web/";
 
+// where documents are stored
+$G_doc_path = "Obj/doc/";
+
 // licence related stuff
-$G_lice_vers  = "2.0";
-$G_lice_fname = "licence_complete_filename";
+$G_tos_vers = "1.2";
+$G_tos_fname = "terms-of-service_V%s_%s.txt";
 // USE date +%s -d 'Wed Nov 20 18:35:41 CET 2013' to calculate
-$G_lice_dthard = 1384968941;
-$G_lice_dtsoft = 1384968941;
-$G_lice_idx    = 1;
+$G_tos_dthard = 1384968941;
+$G_tos_dtsoft = 1384968941;
+$G_tos_idx    = 1;
 ?>