Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id$
23
/**
24
* Phorum
25
*
26
* *Administration de l'application de forums
27
*
28
*@package inscription
29
//Auteur original :
30
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
31
*
32
*@copyright     Outils-Reseaux 2006-2010
33
*@version       $Revision$ $Date$
34
// +------------------------------------------------------------------------------------------------------+
35
*/
36
// create a namespace for Phorum
37
function phorum_namespace($page)
38
{
39
    global $PHORUM;  // globalize the $PHORUM array
40
    include_once("./$page.php");
41
}
42
 
43
function phorum_custom_get_url ($page, $query_items, $suffix)
44
{
45
// on défini l'URL de tous les liens (qui conservent les GET) et rajoute les pages
46
$url_reecrite = $_SERVER['REQUEST_URI'];
47
$decoupe=explode("&param=",$url_reecrite);
48
$url_reecrite = $decoupe[0];
49
$url = "$url_reecrite&param=$page";
50
 
51
if(count($query_items)) $url.=",".implode(",", $query_items);
52
 
53
if(!empty($suffix)) $url.=$suffix;
54
return $url;
55
}
56
 
57
// +------------------------------------------------------------------------------------------------------+
58
// |                                            ENTETE du PROGRAMME                                       |
59
// +------------------------------------------------------------------------------------------------------+
60
class phorum_Admin {
61
    var $objet_pear_auth;
62
    var $objet_pear_db;
63
    var $objet_pear_url;
64
    var $sortie_xhtml;
65
 
66
    /** Fonction afficherContenuCorps() - Affiche la partie administration
67
    *
68
    *
69
    *   @return  string  Le HTML
70
    */
71
    function afficherContenuCorps()  {
72
    	global $PHORUM;
73
    	$sortie_xhtml = '' ;
74
		ob_start();
75
		include_once 'configuration/phorum.config.inc.php';
76
		chdir($PHORUM_DIR);
77
		$_SERVER["PHP_SELF"]=$_SERVER["PHP_SELF"].$_SERVER["REQUEST_URI"];
78
		if(file_exists('./admin.php')){
79
			phorum_namespace('admin');
80
		}
81
		$sortie_xhtml .= ob_get_clean();
82
 
83
		return $sortie_xhtml ;
84
    }
85
}
86
 
87
/* +--Fin du code ----------------------------------------------------------------------------------------+
88
*
89
* $Log$
90
*
91
*
92
*
93
* +-- Fin du code ----------------------------------------------------------------------------------------+
94
*/
95
?>