+ 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("Accetto.", "Rifiuto.", "Leggo poi.", /* , "Scarico." */),
+ 400, 600, TRUE, 0);
+ $ret .= sprintf("act_licencemgr('soft', g_nd.ret_get(), '%s', '%s');",
+ xcape($this->rec->lice_vers_get()), xcape($G_lice_vers));
+ }
+ else if ($curtime > $G_lice_dthard) {
+ // call notify hard
+ $ret .= show_notify_document("Versione corrente: [".$this->rec->lice_vers_get()."] Versione sito: ".$G_lice_vers,
+ 0, array("Accetto.", "Rifiuto." /* , "Scarico." */),
+ 400, 600, TRUE, 0);
+ $ret .= sprintf("act_licencemgr('hard', g_nd.ret_get(), '%s', '%s');",
+ xcape($this->rec->lice_vers_get()), xcape($G_lice_vers));
+ }
+
+
+ /* $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); */
+
+
+ }
+ }
+ }