X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fuser.phh;h=c77f653b256dd6dd8e78f9ac0f0ede56b8750cc1;hb=eb65f5518b0cacc60e1dd265ab966290e7cc0c54;hp=0661c3887bc5c0261c8f1f81a5790a47d666d8a3;hpb=dae8abeb22cc710161ee2d90b80f9a07e706680f;p=brisk.git diff --git a/web/Obj/user.phh b/web/Obj/user.phh index 0661c38..c77f653 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -586,7 +586,34 @@ class User { if ($this->stat == 'room') { log_rd("roomma ".$this->step); $curtime = time(); - + if ($this->rec !== FALSE) { + if ($curtime > $G_lice_dtsoft || $curtime > $G_lice_dthard) { + if (versions_cmp($this->rec->lice_vers_get(), $G_lice_vers) < 0) { // comparison between user version and current version + if ($curtime > $G_lice_dtsoft) { + // call notify soft + $ret .= show_notify_document("Versione corrente: [".$this->rec->lice_vers_get()."] Versione sito: ".$G_lice_vers, + 0, array($mlang_indrd['btn_backtotab'][$G_lang],"pippo", "pluto"), + 400, 600, TRUE, 0); + $ret .= "alert('RESULT: ' + g_nd.ret_get());"; + } + else if ($curtime > $G_lice_dthard) { + // call notify hard + ; + } + + + /* $ret .= show_notify_ex(str_replace("\n", " ", "Versione corrente: [".$this->rec->lice_vers_get()."] Versione sito: ".$G_lice_vers), */ + /* ($is_super ? 0 : $G_splash_timeout), */ + /* // $mlang_indrd[($is_super ? 'btn_btotabsup' : 'btn_backtotab')][$G_lang], */ + /* $mlang_indrd['btn_backtotab'][$G_lang], */ + /* $G_splash_w, $G_splash_h, true, */ + /* ($is_super ? 0 : $G_splash_timeout)); */ + /* $ret .= sprintf('|createCookie("CO_lice_date%d", %d, 24*365, cookiepath);', $G_lice_idx, $curtime); */ + + + } + } + } if ($G_with_splash && ($splashdate < $curtime - $G_splash_interval || $splashdate > $curtime)) {