Example #1
0
function statistiques_mode($table, $id=0)
{
	global $spip_lang_left;
	$t = str_replace('spip_', '', $table);
	$fond = (strstr($t, 'visites') ? 'statistiques' : $t);
	$args = array();
	if ($id) {
		$fond .= "_article"; 
		$args['id_article'] = $id;
	}
	include_spip('inc/acces');
	$args = param_low_sec($fond, $args, '', 'transmettre');
	$url = generer_url_public('transmettre', $args);
	return "<a style='float: $spip_lang_left;' href='$url'>CSV</a>";
}
Example #2
0
/**
 * Filtre pour generer un bouton RSS prive
 * protege par un hash de faible securite
 *
 * http://doc.spip.org/@bouton_spip_rss
 *
 * @param string $op
 * @param array $args
 * @param string $lang
 * @return string
 */
function bouton_spip_rss($op, $args = array(), $lang = '', $title = 'RSS')
{
    include_spip('inc/acces');
    $clic = http_img_pack('feed.png', 'RSS', '', $title);
    $args = param_low_sec($op, $args, $lang, 'rss');
    $url = generer_url_public('rss', $args);
    return "<a style='float: " . $GLOBALS['spip_lang_right'] . ";' href='{$url}'>{$clic}</a>";
}
Example #3
0
function bouton_spip_rss($op, $args=array(), $lang='', $title='RSS') {

	global $spip_lang_right;
	include_spip('inc/acces');
	$clic = http_img_pack('feed.png', 'RSS', '', $title);
	$args = param_low_sec($op, $args, $lang, 'rss');
	$url = generer_url_public('rss', $args);
	return "<a style='float: $spip_lang_right;' href='$url'>$clic</a>";
}