Browse Source

seul·e·s les webmestre peuvent accéder à ?page=javascript/xxx > on déplace le fichier json en racine, et on met dessus un test d'autorisation

svn/root/branches/dev
Maïeul 3 years ago
parent
commit
c9e16e3989
  1. 3
      formidable_ts.json.html
  2. 2
      inclure/formidable_ts_entete.html
  3. 1
      javascript/formidable_ts.json.html

3
formidable_ts.json.html

@ -0,0 +1,3 @@
#HTTP_HEADER{Content-type:application/json;charset=#CHARSET}
[(#AUTORISER{voirreponses,#ID_FORMULAIRE}|sinon_interdire_acces)]
<INCLURE{fond=javascript/formidable_ts.json,env} />

2
inclure/formidable_ts_entete.html

@ -7,7 +7,7 @@
checkAll = '<:formidable_ts:checkall:>';
uncheckAll = '<:formidable_ts:uncheckall:>';
resetAllconfirm = "<:formidable_ts:resetallconfirm:>";
pager_ajaxUrl = '#URL_PAGE{javascript/formidable_ts.json}&page_ts={page}&size={size}&{sortList:sort}&id_formulaire=#ID_FORMULAIRE&statut=#ENV{statut}';
pager_ajaxUrl = '#URL_PAGE{formidable_ts.json}&page_ts={page}&size={size}&{sortList:sort}&id_formulaire=#ID_FORMULAIRE&statut=#ENV{statut}';
</script>
[<link rel="stylesheet" href="(#CHEMIN{css/tablesorter.pager.min.css}|timestamp)" />]

1
javascript/formidable_ts.json.html

@ -1,2 +1 @@
#HTTP_HEADER{Content-type:application/json;charset=#CHARSET}
[(#ENV**|unserialize|formidable_ts\formidable_ts_json)]

Loading…
Cancel
Save