protected function maincheck($get, $post, $cookie)
{
- GLOBAL $G_lang, $mlang_indrd;
+ GLOBAL $G_lang, $G_base, $mlang_indrd;
// GLOBAL $first_loop;
GLOBAL $G_with_splash, $G_splash_content, $G_splash_interval, $G_splash_idx;
GLOBAL $G_splash_w, $G_splash_h, $G_splash_timeout;
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,
+ // FIXME: manage translations
+ $ret .= show_notify_document(esclfhtml(file_get_contents($G_base.sprintf($G_lice_fname, $G_lice_vers, $G_lang))),
0, array("Accetto.", "Rifiuto.", "Leggo poi.", /* , "Scarico." */),
"lice_confirm", 600, 600, TRUE, 0);
$ret .= sprintf("act_licencemgr('soft', g_nd.ret_get(), '%s', '%s');",
}
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,
+ $ret .= show_notify_document(esclfhtml(file_get_contents($G_base.sprintf($G_lice_fname, $G_lice_vers, $G_lang))),
0, array("Accetto.", "Rifiuto." /* , "Scarico." */),
"lice_confirm", 600, 600, TRUE, 0);
$ret .= sprintf("act_licencemgr('hard', g_nd.ret_get(), '%s', '%s');",