* Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Sebastien DiCintio * * 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$ * */ /** \file htdocs/install/inc.php \brief Fichier include du programme d'installation \version $Revision$ */ $docurl = 'documentation'; $conffile = "../conf/conf.php"; // Récupère langues du navigateur et defini langcode $langpref=$_SERVER['HTTP_ACCEPT_LANGUAGE']; $langpref=eregi_replace(";[^,]*","",$langpref); $langpref=eregi_replace("-","_",$langpref); $langlist=split("[;,]",$langpref); $langpart=split("_",$langlist[0]); if ($langpart[1]) $langcode=$langpart[0]."_".strtoupper($langpart[1]); else $langcode=$langpart[0]."_".strtoupper($langpart[0]); // Defini objet langs require_once("../translate.class.php"); $langs = new Translate("../langs", $langcode); function pHeader($soutitre,$next) { global $langs; $langs->load("main"); $langs->load("admin"); print ''; print ''; print ''; print ''.$langs->trans("DolibarrSetup").''; print ''; print ''; print ''; print '
'; print '
'; if ($soutitre) { print '
'.$soutitre.'
'; } print '
'; } function pFooter($nonext=0,$addlang=1) { global $langs; $langs->load("main"); $langs->load("admin"); print '
'; if (! $nonext) { print '
">
'; } if ($addlang) { print ''; } print '
'; print ''; print ''; } function dolibarr_syslog($message) { define_syslog_variables(); openlog("dolibarr", LOG_PID | LOG_PERROR, LOG_USER); # LOG_USER au lieu de LOG_LOCAL0 car non accepté par tous les php syslog(LOG_WARNING, $message); closelog(); } ?>