From: Matteo Nastasi (mop) Date: Thu, 14 Mar 2013 07:09:11 +0000 (+0100) Subject: Merge branch 'sac-a-push' of mop.mine.nu:brisk into sac-a-push X-Git-Tag: v4.7.1 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=17b73d1ef533eccc7ee71961c76b9a33e19d452f;hp=5bd74dd5c8d06057ea34c4ebde51551e1e580ea0;p=brisk.git Merge branch 'sac-a-push' of mop.mine.nu:brisk into sac-a-push --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 058cf34..90c5b50 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -141,10 +141,10 @@ $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.7.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\': aggiunta infrastruttura per gestire le preferenze utente lato server e la personalizzazione delle S di supporter.', +$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: server-side infrastructure to manage user preferences added and S customization added.', 'If you want to subscribe our Mailing List, click it!' ) ); @@ -779,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) @@ -2231,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 { @@ -2279,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 = ''; diff --git a/web/Obj/user.phh b/web/Obj/user.phh index 416dbb4..51956c8 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -762,6 +762,21 @@ static function base_get() return $c::BASE; } +function is_supp_custom() +{ + if ($this->rec != FALSE) { + if ($this->flags & USER_FLAG_TY_SUPER) { + return (TRUE); + } + /* + if ($this->rec->last_dona > 1356994800) { + return (TRUE); + } + */ + } + return (FALSE); +} + } // end class User diff --git a/web/index.php b/web/index.php index b5ed1e9..0b3076a 100644 --- a/web/index.php +++ b/web/index.php @@ -1245,7 +1245,7 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi rec != FALSE && $user->rec->last_dona > 1356994800) { +if ($user->is_supp_custom()) { ?>