X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=90c5b5001ce54e05618c761b3aa8a403a6309e5d;hb=7b4375bcaf7de9530942d79b3bb78991054d7e84;hp=53c46a76d990c1a4f46ac351259d0dd148a98351;hpb=507a79a6e6c512a2b0ac0af6e067f5a8845b7d9c;p=brisk.git
diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh
index 53c46a7..90c5b50 100644
--- a/web/Obj/brisk.phh
+++ b/web/Obj/brisk.phh
@@ -141,12 +141,12 @@ $mlang_brisk = array( 'btn_backstand'=> array( 'it' => 'torna in piedi',
$G_lng = langtolng($G_lang);
$G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 );
-$G_brisk_version = "4.6.0";
+$G_brisk_version = "4.7.1";
/* MLANG: ALL THE INFO STRINGS IN brisk.phh */
-$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': aggiunti script di avvio automatico, gestione dei segnali e logging dell\' ultima connessione.',
+$root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': prova il nuovo azioni->preferenze.',
'Se vuoi iscriverti alla Mailing List, cliccala!' ),
- 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: usage of reader/writer locking instead of generic exclusive locking.',
+ 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: server-side infrastructure to manage user preferences added and S customization added.',
'If you want to subscribe our Mailing List, click it!' ) );
$G_room_help = array( 'it' => '
@@ -727,7 +727,12 @@ class Client_prefs {
{
fprintf(STDERR, "QQ %s: %x\n", __FUNCTION__, $user->flags);
$this->listen = ($user->flags & USER_FLAG_MAP_AUTH) >> 2;
- $this->supp_comp = $user->rec->supp_comp;
+ if ($user->rec != FALSE) {
+ $this->supp_comp = $user->rec->supp_comp;
+ }
+ else {
+ $this->supp_comp = "000000000000";
+ }
fprintf(STDERR, "QQ %s: LISTEN: %d\n", __FUNCTION__, $this->listen);
}
@@ -774,7 +779,7 @@ class Client_prefs {
$user->flags_set(($this->listen << 2), USER_FLAG_MAP_AUTH);
fprintf(STDERR, "QQ %s::%s %x\n", __CLASS__, __FUNCTION__,
$user->flags);
- if ($user->rec != FALSE && $user->rec->last_dona > 1356994800) {
+ if ($user->is_supp_custom()) {
$user->rec->supp_comp = $this->supp_comp;
}
if ($is_save)
@@ -2226,7 +2231,7 @@ class Room
$flags = $this->user[$i]->flags;
// sql record exists AND last donate > 2013-01-01
- if ($this->user[$i]->rec != FALSE && $this->user[$i]->rec->last_dona > 1356994800) {
+ if ($this->user[$i]->is_supp_custom()) {
$supp_comp_s = sprintf(', "%s"', $this->user[$i]->rec->supp_comp);
}
else {
@@ -2274,7 +2279,7 @@ class Room
$flags |= 1;
log_main($user_cur->name. sprintf(" IN TABLE [%d]", $table_idx));
- if ($user_cur->rec != FALSE && $user_cur->rec->last_dona > 1356994800)
+ if ($user_cur->is_supp_custom())
$supp_comp_s = sprintf(', "%s"', $user_cur->rec->supp_comp);
else
$supp_comp_s = '';