WP File Manager
Current Path:
/
home
/
argothem
/
www
/
organecyberpresse
/
prive
/
echafaudage
/
hierarchie
/
Name
Action
..
objet.html
Edit
objet.sans_rubrique.html
Edit
objet_fonctions.php
Edit
Editing: objet_fonctions.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; } /** * Tester le deplacement restreint ou non * de l'objet en fonction de son statut * * @param string $objet * @param string $statut * @return bool */ function deplacement_restreint($objet, $statut) { switch ($objet) { case 'rubrique': return (!$GLOBALS['connect_toutes_rubriques']); break; case 'article': case 'site': case 'syndic': case 'breve': return ($statut == 'publie'); break; default: return ($statut ? $statut == 'publie' : false); break; } return false; }