* *@copyright Outils-Reseaux 2006-2010 *@version $Revision$ $Date$ // +------------------------------------------------------------------------------------------------------+ */ // create a namespace for Phorum function phorum_namespace($page) { global $PHORUM; // globalize the $PHORUM array include_once("./$page.php"); } function phorum_custom_get_url ($page, $query_items, $suffix) { // on défini l'URL de tous les liens (qui conservent les GET) et rajoute les pages $url_reecrite = $_SERVER['REQUEST_URI']; $decoupe=explode("¶m=",$url_reecrite); $url_reecrite = $decoupe[0]; $url = "$url_reecrite¶m=$page"; if(count($query_items)) $url.=",".implode(",", $query_items); if(!empty($suffix)) $url.=$suffix; return $url; } // +------------------------------------------------------------------------------------------------------+ // | ENTETE du PROGRAMME | // +------------------------------------------------------------------------------------------------------+ class phorum_Admin { var $objet_pear_auth; var $objet_pear_db; var $objet_pear_url; var $sortie_xhtml; /** Fonction afficherContenuCorps() - Affiche la partie administration * * * @return string Le HTML */ function afficherContenuCorps() { global $PHORUM; $sortie_xhtml = '' ; ob_start(); include_once 'configuration/phorum.config.inc.php'; chdir($PHORUM_DIR); $_SERVER["PHP_SELF"]=$_SERVER["PHP_SELF"].$_SERVER["REQUEST_URI"]; if(file_exists('./admin.php')){ phorum_namespace('admin'); } $sortie_xhtml .= ob_get_clean(); return $sortie_xhtml ; } } /* +--Fin du code ----------------------------------------------------------------------------------------+ * * $Log$ * * * * +-- Fin du code ----------------------------------------------------------------------------------------+ */ ?>