X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fuser.phh;h=80d3ce91b8773d4d5520432f42eeb8b0b324cc97;hb=f4178d38662a52ae2ccc8957e499621e735f4d16;hp=c77f653b256dd6dd8e78f9ac0f0ede56b8750cc1;hpb=eb65f5518b0cacc60e1dd265ab966290e7cc0c54;p=brisk.git diff --git a/web/Obj/user.phh b/web/Obj/user.phh index c77f653..80d3ce9 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -63,6 +63,10 @@ define('USER_FLAG_TY_FIRONLY', 0x200000); // done define('USER_FLAG_TY_SUSPEND', 0x400000); // done define('USER_FLAG_TY_DISABLE', 0x800000); // done +define('USER_DIS_REA_INVMAIL', 1); +define('USER_DIS_REA_LICENCE', 2); +define('USER_DIS_REA_BANNED', 3); + // 240 is the right value, 600 is for fwrite error test define('RD_ENDTIME_DELTA', 240); define('RD_KEEPALIVE_TOUT', 4); @@ -592,13 +596,18 @@ class User { 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());"; + 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)); }