You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
/***************************************************************************\
|
|
|
|
* SPIP, Systeme de publication pour l'internet *
|
|
|
|
* *
|
|
|
|
* Copyright (c) 2001-2014 *
|
|
|
|
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
|
|
|
|
* *
|
|
|
|
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
|
|
|
|
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
|
|
|
|
\***************************************************************************/
|
|
|
|
|
|
|
|
if (!defined("_ECRIRE_INC_VERSION")) return;
|
|
|
|
|
|
|
|
|
|
|
|
function exec_base_delete_referers_dist()
|
|
|
|
{
|
|
|
|
include_spip('inc/autoriser');
|
|
|
|
if (!autoriser('detruire','_statistiques')) {
|
|
|
|
include_spip('inc/minipres');
|
|
|
|
echo minipres();
|
|
|
|
} else {
|
|
|
|
include_spip('inc/headers');
|
|
|
|
$admin = charger_fonction('admin', 'inc');
|
|
|
|
$res = $admin('delete_referers', _T('statistiques:bouton_effacer_referers'), '');
|
|
|
|
if ($res) echo $res; else redirige_url_ecrire('stats_referers','');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|