- if ($curtime > $G_tos_dtsoft) {
- // call notify soft
- // FIXME: manage translations
- $ret .= show_notify_document(esclfhtml(file_get_contents($G_base.sprintf($G_tos_fname, $G_tos_vers, $G_lang))),
- 0, array("Accetto.", "Rifiuto.", "Leggo poi.", /* , "Scarico." */),
- "tos_confirm", 600, 600, TRUE, 0);
- $ret .= sprintf("act_tosmgr('soft', g_nd.ret_get(), '%s', '%s');",
- xcape($this->rec->tos_vers_get()), xcape($G_tos_vers));
+ $buttons = array($mlang_user['btn_agree'][$G_lang], $mlang_user['btn_refuse'][$G_lang],
+ $mlang_user['btn_dload'][$G_lang]);
+ if ($curtime > $G_tos_dtsoft && $curtime < $G_tos_dthard) {
+ // call notify soft (same as soft + later button)
+ array_push($buttons, $mlang_user['btn_later'][$G_lang]);
+ $type = "soft";
+ $preface = sprintf("<div class='doc_alert'>%s</div>",
+ sprintf($mlang_user['toc_date_dscl'][$G_lang],
+ strftime("%e/%m/%Y", $G_tos_dthard)));