Changeset 93626 in spip-zone for _core_/plugins/statistiques/exec/base_delete_referers.php
- Timestamp:
- Dec 13, 2015, 11:56:49 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/statistiques/exec/base_delete_referers.php
r82427 r93626 11 11 \***************************************************************************/ 12 12 13 if (!defined("_ECRIRE_INC_VERSION")) return; 13 if (!defined("_ECRIRE_INC_VERSION")) { 14 return; 15 } 14 16 15 17 16 function exec_base_delete_referers_dist() 17 { 18 function exec_base_delete_referers_dist() { 18 19 include_spip('inc/autoriser'); 19 if (!autoriser('detruire', '_statistiques')) {20 if (!autoriser('detruire', '_statistiques')) { 20 21 include_spip('inc/minipres'); 21 22 echo minipres(); … … 24 25 $admin = charger_fonction('admin', 'inc'); 25 26 $res = $admin('delete_referers', _T('statistiques:bouton_effacer_referers'), ''); 26 if ($res) echo $res; else redirige_url_ecrire('stats_referers',''); 27 27 if ($res) { 28 echo $res; 29 } else { 30 redirige_url_ecrire('stats_referers', ''); 31 } 32 28 33 } 29 34 } 35 30 36 ?>
Note: See TracChangeset
for help on using the changeset viewer.