3 * Copyright 2010 (c) Mélanie Le Bail
4 * http://fusionforge.org
6 * This file is part of FusionForge. FusionForge is free software;
7 * you can redistribute it and/or modify it under the terms of the
8 * GNU General Public License as published by the Free Software
9 * Foundation; either version 2 of the Licence, or (at your option)
12 * FusionForge is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 $GLOBALS['mailman_bin_dir'] = '/usr/lib/mailman/bin';
23 $GLOBALS['mailman_lib_dir'] = '/var/lib/mailman';
24 $GLOBALS['forumml_arch'] = '/var/lib/mailman/archives';
25 $GLOBALS['forumml_tmp'] = '/var/spool/forumml';
26 $GLOBALS['forumml_dir'] = '/var/lib/gforge/forumml';
27 $GLOBALS['sys_lf'] = "\n";
31 return session_loggedin();
34 function htmlRedirect($url) {
35 session_redirect($url);
37 function htmlIframe($url,$poub) {
38 if (isset($poub['id'])) {
44 echo ('<iframe src= "'.$url.'" id="'.$id.'" width=100% height=500px></iframe>');
47 function helpButton($help) {
50 function getIcon($url,$w=16,$h=16,$args=array()) {
51 echo html_image($url,$w,$h,$args);
53 function getImage($img) {
54 echo util_make_url($GLOBALS['HTML']->imgroot.$img);
57 function get_server_url() {
58 return util_make_url('');