From 4b8dbd669e6abd446253876a64413820cb7604ed Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 18 Jan 2003 17:15:23 +0000 Subject: [PATCH] New file --- htdocs/admin/index.php | 73 ++++++++++++++++++++++++++++++++++++++++ htdocs/admin/pre.inc.php | 40 ++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 htdocs/admin/index.php create mode 100644 htdocs/admin/pre.inc.php diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php new file mode 100644 index 00000000000..c31c402f3eb --- /dev/null +++ b/htdocs/admin/index.php @@ -0,0 +1,73 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + */ +require("./pre.inc.php"); + +llxHeader(); + +print_titre("Configuration Dolibarr"); + +print ''; + +print ''; +print ''; + +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; + +print ''; +print ''; +print ''; +print ''; + +if ($conf->fichinter->enabled) { + print ''; + print ''; + print ''; + print ''; +} + +if ($conf->don->enabled) { + print ''; + print ''; + print ''; + print ''; +} + + +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; + +print '
css' . $conf->css . '
theme' . $conf->theme . '
Database
type' . $conf->db->type . '
host' . $conf->db->host . '
user' . $conf->db->user . ' 
pass' . $conf->db->pass . ' 
Database name' . $conf->db->name . '
Propale
templates' . $conf->propal->templatesdir . '
output dir' . $conf->propal->outputdir . '
output url' . $conf->propal->outputurl . '
Fiche d\'intervention
templates' . $conf->fichinter->templatesdir . '
output dir' . $conf->fichinter->outputdir . '
output url' . $conf->fichinter->outputurl . '
Dons
Paiement en ligne' . $conf->don->onlinepayment . '
Don minimum' . $conf->don->minimum . '
Email Moderateurs'.$conf->don->email_moderator.'
Webcal
type' . $conf->webcal->db->type . '
host' . $conf->webcal->db->host . '
user' . $conf->webcal->db->user . ' 
pass' . $conf->webcal->db->pass . ' 
Database name' . $conf->webcal->db->name . '
'; + +$db = new Db(); + +?> phpinfo diff --git a/htdocs/admin/pre.inc.php b/htdocs/admin/pre.inc.php new file mode 100644 index 00000000000..cd8845e314f --- /dev/null +++ b/htdocs/admin/pre.inc.php @@ -0,0 +1,40 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + */ +require("../main.inc.php3"); + +function llxHeader($head = "", $urlp = "") { + global $user, $conf; + + /* + * + * + */ + top_menu($head); + + $menu = new Menu(); + + $menu->add("index.php", "Dolibarr"); + $menu->add("mysql.php", "Mysql"); + + left_menu($menu->liste); +} + +?>