[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4825 - in phpcompta/branches/rel601-ovh: . html html/ad
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4825 - in phpcompta/branches/rel601-ovh: . html html/admin include |
Date: |
Tue, 8 May 2012 22:06:21 +0200 (CEST) |
Author: danydb
Date: 2012-05-08 22:06:20 +0200 (Tue, 08 May 2012)
New Revision: 4825
Modified:
phpcompta/branches/rel601-ovh/
phpcompta/branches/rel601-ovh/html/
phpcompta/branches/rel601-ovh/html/admin/setup.php
phpcompta/branches/rel601-ovh/html/admin_repo.php
phpcompta/branches/rel601-ovh/html/ajax.php
phpcompta/branches/rel601-ovh/html/ajax_card.php
phpcompta/branches/rel601-ovh/html/ajax_history.php
phpcompta/branches/rel601-ovh/html/ajax_ledger.php
phpcompta/branches/rel601-ovh/html/ajax_misc.php
phpcompta/branches/rel601-ovh/html/ajax_poste.php
phpcompta/branches/rel601-ovh/html/ajax_todo_list.php
phpcompta/branches/rel601-ovh/html/backup.php
phpcompta/branches/rel601-ovh/html/compute.php
phpcompta/branches/rel601-ovh/html/direct.php
phpcompta/branches/rel601-ovh/html/do.php
phpcompta/branches/rel601-ovh/html/export.php
phpcompta/branches/rel601-ovh/html/extension.raw.php
phpcompta/branches/rel601-ovh/html/fid.php
phpcompta/branches/rel601-ovh/html/fid_card.php
phpcompta/branches/rel601-ovh/html/index.php
phpcompta/branches/rel601-ovh/html/login.php
phpcompta/branches/rel601-ovh/html/logout.php
phpcompta/branches/rel601-ovh/html/not_implemented.php
phpcompta/branches/rel601-ovh/html/popup.php
phpcompta/branches/rel601-ovh/html/recherche.php
phpcompta/branches/rel601-ovh/html/show_document.php
phpcompta/branches/rel601-ovh/html/show_document_modele.php
phpcompta/branches/rel601-ovh/html/show_pj.php
phpcompta/branches/rel601-ovh/html/test.php
phpcompta/branches/rel601-ovh/html/user_login.php
phpcompta/branches/rel601-ovh/html/user_pref.php
phpcompta/branches/rel601-ovh/include/constant.php
Log:
#578 Adaptation pour server mutualis?\195?\169
Property changes on: phpcompta/branches/rel601-ovh
___________________________________________________________________
Name: svn:ignore
- cache
compile
tmp
.setenv.sh.swp
.clean.sh.swp
.clean.sh.swo
.a.swp
+ cache
compile
tmp
.setenv.sh.swp
.clean.sh.swp
.clean.sh.swo
.a.swp
.svn-commit.3.tmp.swp
.svn-commit.4.tmp.swp
Property changes on: phpcompta/branches/rel601-ovh/html
___________________________________________________________________
Name: svn:ignore
- *.log
ajax
.user_login.php.swp
.~lock.a.csv#
.~lock.a.ods#
.a.csv.swp
.direct.php.swp
.style-light.css.swp
.a.swp
.htaccess.swp
+ *.log
ajax
.user_login.php.swp
.~lock.a.csv#
.~lock.a.ods#
.a.csv.swp
.direct.php.swp
.style-light.css.swp
.a.swp
.htaccess.swp
.b.php.swp
Modified: phpcompta/branches/rel601-ovh/html/admin/setup.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/admin/setup.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/admin/setup.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -1,495 +1,545 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN"><HTML><HEAD>
- <TITLE>PhpCompta - Mise à jour</TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=UTF8">
+ <TITLE>PhpCompta - Mise à jour</TITLE>
+ <META http-equiv="Content-Type" content="text/html;
charset=UTF8">
</title>
<head>
-<style type="text/css">
-<!--
-body {
- font-family:Verdana,arial,sans-serif;
- font-size:12px;
- color:blue;
- background-color:#EDF3FF;
- }
-p.info {
- color:blue;
- font-family:Verdana,arial,sans-serif;
- padding: 30px;
- border : 1px solid green;
- width:70%;
- margin-left: 15%;
- margin-right: 15%;
+ <style type="text/css">
+ <!--
+ body {
+ font-family:Verdana,arial,sans-serif;
+ font-size:12px;
+ color:blue;
+ background-color:#EDF3FF;
+ }
+ p.info {
+ color:blue;
+ font-family:Verdana,arial,sans-serif;
+ padding: 30px;
+ border : 1px solid green;
+ width:70%;
+ margin-left: 15%;
+ margin-right: 15%;
-}
-h2.error {
- color:red;
- font-size:12px;
- font-family:Verdana,arial,sans-serif;
-}
-h1 {
- color:blue;
- font-size:16px;
- font-family:Verdana,arial,sans-serif;
- border : 1px solid blue;
- text-align: center;
- padding-top: 10px;
- padding-bottom: 10px;
-}
-h2 {
- color:blue;
- font-size:14px;
- font-family:Verdana,arial,sans-serif;
- font-style: italic;
-}
-h3 {
- color:blue;
- font-size:12px;
- font-family:Verdana,arial,sans-serif;
- font-style: normal;
- text-decoration: underline;
-}
-p.warning {
- font-family:Verdana,arial,sans-serif;
- font-size:12px;
- color:red;
- border: 1px solid red;
- padding:30px;
- }
-.info {
- color:blue;
- font-size:12px;
- font-family:Verdana,arial,sans-serif;
-}
-a:hover{
-color:blue;
- background-color:blue;
- color:lightgrey;
- }
-a {
-color:blue;
-padding:5px;
- font-size:15px;
-border:groove 2px blue;
- text-decoration:none;
- background-color:lightgrey;
-}
-</style>
+ }
+ h2.error {
+ color:red;
+ font-size:12px;
+ font-family:Verdana,arial,sans-serif;
+ }
+ h1 {
+ color:blue;
+ font-size:16px;
+ font-family:Verdana,arial,sans-serif;
+ border : 1px solid blue;
+ text-align: center;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ }
+ h2 {
+ color:blue;
+ font-size:14px;
+ font-family:Verdana,arial,sans-serif;
+ font-style: italic;
+ }
+ h3 {
+ color:blue;
+ font-size:12px;
+ font-family:Verdana,arial,sans-serif;
+ font-style: normal;
+ text-decoration: underline;
+ }
+ p.warning {
+ font-family:Verdana,arial,sans-serif;
+ font-size:12px;
+ color:red;
+ border: 1px solid red;
+ padding:30px;
+ }
+ .info {
+ color:blue;
+ font-size:12px;
+ font-family:Verdana,arial,sans-serif;
+ }
+ a:hover{
+ color:blue;
+ background-color:blue;
+ color:lightgrey;
+ }
+ a {
+ color:blue;
+ padding:5px;
+ font-size:15px;
+ border:groove 2px blue;
+ text-decoration:none;
+ background-color:lightgrey;
+ }
+ </style>
</head>
<body>
-<p align="center">
- <IMG SRC="../image/logo7.gif" alt="Logo PhpCompta">
-</p>
-<?php
-
-/*
- * This file is part of PhpCompta.
- *
- * PhpCompta 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.
- *
- * PhpCompta 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 PhpCompta; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-/* $Revision*/
+ <p align="center">
+ <IMG SRC="../image/logo7.gif" alt="Logo PhpCompta">
+ </p>
+ <?php
+ /*
+ * This file is part of PhpCompta.
+ *
+ * PhpCompta 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.
+ *
+ * PhpCompta 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 PhpCompta; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
+ */
+ /* $Revision */
// Copyright Author Dany De Bontridder address@hidden
-/*!\file
- * \brief This file permit to upgrade a version of phpcompta, it should be
- * used and immediately delete after an upgrade.
- * This file is included in each release for a new upgrade
- *
- */
-$failed="<span style=\"font-size:18px;color:red\">✖</span>";
-$succeed="<span style=\"font-size:18px;color:green\">✓</span>";
-$inc_path=get_include_path();
-/**
- address@hidden create correctly the htaccess file
- */
-function create_htaccess() {
-$inc_path=get_include_path();
+ /* !\file
+ * \brief This file permit to upgrade a version of phpcompta, it should
be
+ * used and immediately delete after an upgrade.
+ * This file is included in each release for a new upgrade
+ *
+ */
+ $failed = "<span style=\"font-size:18px;color:red\">✖</span>";
+ $succeed = "<span style=\"font-size:18px;color:green\">✓</span>";
+ $inc_path = get_include_path();
-if ( strpos($inc_path,";") != 0 ) {
- $new_path=$inc_path.';..\..\include;addon';
- $os=0; /* $os is 0 for windoz */
-} else {
- $new_path=$inc_path.':../../include:addon';
- $os=1; /* $os is 1 for unix */
-}
+ /**
+ * @brief create correctly the htaccess file
+ */
+ function create_htaccess_deprecated()
+ {
+ $inc_path = get_include_path();
-/* If htaccess file doesn't exists we create them here
- * if os == 1 then windows, 0 means Unix
- */
-$file='..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'.htaccess';
address@hidden($file,'w+');
-if ( ! $hFile ) exit('Impossible d\'écrire dans le
répertoire include');
-fwrite($hFile,'order deny,allow'."\n");
-fwrite($hFile,'deny from all'."\n");
-fclose($hFile);
+ if (strpos($inc_path, ";") != 0)
+ {
+ $new_path = $inc_path . ';..\..\include;addon';
+ $os = 0; /* $os is 0 for windoz */
+ }
+ else
+ {
+ $new_path = $inc_path . ':../../include:addon';
+ $os = 1; /* $os is 1 for unix */
+ }
-$file='..'.DIRECTORY_SEPARATOR.'.htaccess';
- address@hidden($file,'w+');
- if ( ! $hFile ) exit('Impossible d\'écrire dans le
répertoire html');
- $array=array("php_flag magic_quotes_gpc off",
- "php_flag session.auto_start on",
- "php_value max_execution_time 240",
- "php_value memory_limit 20M",
- "AddDefaultCharset utf-8",
- "php_value error_reporting 10239",
- "php_value post_max_size 20M",
- "php_flag short_open_tag on",
- "php_value upload_max_filesize 20M",
- "php_value session.use_trans_sid 1",
- "php_value session.use_cookies 1",
- "php_flag session.use_only_cookies on");
+ /* If htaccess file doesn't exists we create them here
+ * if os == 1 then windows, 0 means Unix
+ */
+ $file = '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR
. 'include' . DIRECTORY_SEPARATOR . '.htaccess';
+ $hFile = @fopen($file, 'w+');
+ if (!$hFile)
+ exit('Impossible d\'écrire dans le
répertoire include');
+ fwrite($hFile, 'order deny,allow' . "\n");
+ fwrite($hFile, 'deny from all' . "\n");
+ fclose($hFile);
- if ( $os == 0 )
- fwrite($hFile,'php_value include_path
.;..\..\include;..\include;addon'."\n");
- else
- fwrite($hFile,'php_value include_path
.:../../include:../include:addon'."\n");
- foreach ($array as $value ) fwrite($hFile,$value."\n");
- fclose($hFile);
-}
-if ( strpos($inc_path,";") != 0 ) {
- $new_path=$inc_path.';..\..\include;addon';
- $os=0; /* $os is 0 for windoz */
-} else {
- $new_path=$inc_path.':../../include:addon';
- $os=1; /* $os is 1 for unix */
-}
-set_include_path($new_path);
-/* The config file is created here */
-if (isset($_POST['save_config'])) {
- require_once('config_file.php');
- $url=config_file_create($_POST,1,$os);
-echo '
+ $file = '..' . DIRECTORY_SEPARATOR . '.htaccess';
+ $hFile = @fopen($file, 'w+');
+ if (!$hFile)
+ exit('Impossible d\'écrire dans le
répertoire html');
+ $array = array("php_flag magic_quotes_gpc off",
+ "php_flag session.auto_start on",
+ "php_value max_execution_time 240",
+ "php_value memory_limit 20M",
+ "AddDefaultCharset utf-8",
+ "php_value error_reporting 10239",
+ "php_value post_max_size 20M",
+ "php_flag short_open_tag on",
+ "php_value upload_max_filesize 20M",
+ "php_value session.use_trans_sid 1",
+ "php_value session.use_cookies 1",
+ "php_flag session.use_only_cookies on");
+
+ if ($os == 0)
+ fwrite($hFile, 'php_value include_path
.;..\..\include;..\include' . "\n");
+ else
+ fwrite($hFile, 'php_value include_path
.:../../include:../include' . "\n");
+ foreach ($array as $value)
+ fwrite($hFile, $value . "\n");
+ fclose($hFile);
+ }
+
+ if (strpos($inc_path, ";") != 0)
+ {
+ $new_path = $inc_path . ';..\..\include';
+ $os = 0; /* $os is 0 for windoz */
+ }
+ else
+ {
+ $new_path = $inc_path . ':../../include';
+ $os = 1; /* $os is 1 for unix */
+ }
+ set_include_path($new_path);
+ /* The config file is created here */
+ if (isset($_POST['save_config']))
+ {
+ require_once('config_file.php');
+ $url = config_file_create($_POST, 1, $os);
+ echo '
<form method="post" >
Les informations sont sauvées vous pouvez continuer
<input type="submit" value="Continuer">
</form>';
- exit();
- }
-if ( is_writable
('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php')
== false ) {
- echo '<h2 class="error"> Ecriture non possible </h2><p class="warning"> On
ne peut pas écrire dans le répertoire de phpcompta, changez-en
les droits </p>';
- exit();
- }
-create_htaccess();
+ exit();
+ }
+ if (is_writable('..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR
. 'include' . DIRECTORY_SEPARATOR . 'constant.php') == false)
+ {
+ echo '<h2 class="error"> Ecriture non possible </h2><p
class="warning"> On ne peut pas écrire dans le répertoire de
phpcompta, changez-en les droits </p>';
+ exit();
+ }
+// create_htaccess();
-if ( !
file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php'))
{
- echo '<form method="post">';
- echo '<h1 class="info">Entrez les informations nécessaires à
phpcompta</h1>';
- require_once('config_file.php');
+ if (!file_exists('..' . DIRECTORY_SEPARATOR . '..' .
DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'config.inc.php'))
+ {
+ echo '<form method="post">';
+ echo '<h1 class="info">Entrez les informations
nécessaires à phpcompta</h1>';
+ require_once('config_file.php');
- echo config_file_form();
- echo HtmlInput::submit('save_config','Sauver la configuration');
- echo '</form>';
- exit();
-}
-
+ echo config_file_form();
+ echo HtmlInput::submit('save_config', 'Sauver la
configuration');
+ echo '</form>';
+ exit();
+ }
+
//----------------------------------------------------------------------
// End functions
//
//----------------------------------------------------------------------
-
// Verify some PHP parameters
// magic_quotes_gpc = Off
// magic_quotes_runtime = Off
// magic_quotes_sybase = Off
// include_path
-require_once('config_file.php');
-include_once('constant.php');
-require_once('class_database.php');
-echo "<h1>Configuration</h1>";
-?>
-<h2>Info</h2>
-Vous utilisez le domaine <?php echo domaine; ?>
-<h2>PHP</h2>
-<?php
+ require_once('config_file.php');
+ include_once('constant.php');
+ require_once('class_database.php');
+ echo "<h1>Configuration</h1>";
+ ?>
+ <h2>Info</h2>
+ Vous utilisez le domaine <?php echo domaine;?>
+ <h2>PHP</h2>
+ <?php
+ $flag_php = 0;
-$flag_php=0;
-
//ini_set("memory_limit","200M");
-echo "<ul style=\"list-style-type: square;\">";
-foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) {
-echo "<li>";
- if ( ini_get($a) == false ) print $a.': '.$succeed;
- else {
- print $a.': '.$failed;
- print ("<h2 class=\"error\">$a a une mauvaise valeur !</h2>");
- $flag_php++;
- }
+ echo "<ul style=\"list-style-type: square;\">";
+ foreach (array('magic_quotes_gpc', 'magic_quotes_runtime') as $a)
+ {
+ echo "<li>";
+ if (ini_get($a) == false)
+ print $a . ': ' . $succeed;
+ else
+ {
+ print $a . ': ' . $failed;
+ print ("<h2 class=\"error\">$a a une mauvaise valeur
!</h2>");
+ $flag_php++;
+ }
-echo "</li>";
-}
-$module=get_loaded_extensions();
+ echo "</li>";
+ }
+ $module = get_loaded_extensions();
-echo "<li>";
-if ( in_array('pgsql',$module) == false )
-{
- echo 'module PGSQL '.$failed;
- print '<span class="warning">Désolé mais soit vous n\'avez pas
installé ou activé l\'extension(pgsql) pour postgresql soit php n\'a
pas pas été compilé avec les bonnes options </span>';
- $flag_php++;
-} else echo 'module PGSQL '.$succeed;
-echo "</li>";
+ echo "<li>";
+ if (in_array('pgsql', $module) == false)
+ {
+ echo 'module PGSQL ' . $failed;
+ print '<span class="warning">Désolé mais soit
vous n\'avez pas installé ou activé l\'extension(pgsql) pour postgresql
soit php n\'a pas pas été compilé avec les bonnes options
</span>';
+ $flag_php++;
+ } else
+ echo 'module PGSQL ' . $succeed;
+ echo "</li>";
-echo "<li>";
-if ( in_array('bcmath',$module) == false )
-{
- echo 'module BCMATH ok '.$failed;
- print '<span class="warning">Désolé mais soit vous n\'avez pas
installé ou activé l\'extension (bcmath) pour bcmath soit php n\'a pas
pas été compilé avec les bonnes options </span>';
- $flag_php++;
-} else echo 'module BCMATH '.$succeed;
-echo "</li>";
+ echo "<li>";
+ if (in_array('bcmath', $module) == false)
+ {
+ echo 'module BCMATH ok ' . $failed;
+ print '<span class="warning">Désolé mais soit
vous n\'avez pas installé ou activé l\'extension (bcmath) pour bcmath
soit php n\'a pas pas été compilé avec les bonnes options
</span>';
+ $flag_php++;
+ } else
+ echo 'module BCMATH ' . $succeed;
+ echo "</li>";
-echo "<li>";
-if ( in_array('gettext',$module) == false )
-{
- echo 'module GETTEXT '.$failed;
- print '<span class="warning">Désolé mais soit vous n\'avez pas
installé ou activé l\'extension (gettext) pour gettext soit php n\'a
pas pas été compilé avec les bonnes options </span>';
- $flag_php++;
-} else echo 'module GETTEXT '.$succeed;
-echo "</li>";
+ echo "<li>";
+ if (in_array('gettext', $module) == false)
+ {
+ echo 'module GETTEXT ' . $failed;
+ print '<span class="warning">Désolé mais soit
vous n\'avez pas installé ou activé l\'extension (gettext) pour gettext
soit php n\'a pas pas été compilé avec les bonnes options
</span>';
+ $flag_php++;
+ } else
+ echo 'module GETTEXT ' . $succeed;
+ echo "</li>";
-echo "<li>";
-if ( in_array('zip',$module) == false )
-{
- echo 'module ZIP '.$failed;
- print '<span class="warning">Désolé mais soit vous n\'avez pas
installé ou activé l\'extension (zip) pour zip soit php n\'a pas pas
été compilé avec les bonnes options </span>';
- $flag_php++;
-} else echo 'module ZIP '.$succeed;
-echo "</li>";
+ echo "<li>";
+ if (in_array('zip', $module) == false)
+ {
+ echo 'module ZIP ' . $failed;
+ print '<span class="warning">Désolé mais soit
vous n\'avez pas installé ou activé l\'extension (zip) pour zip soit php
n\'a pas pas été compilé avec les bonnes options </span>';
+ $flag_php++;
+ } else
+ echo 'module ZIP ' . $succeed;
+ echo "</li>";
-if ( ini_get("max_execution_time") < 60 ) {
- echo "<li>";
- echo 'Avertissement : '.$failed;
- print '<span class="info"> max_execution_time devrait être de 60
minimum</span>';
- echo "</li>";
-}
+ if (ini_get("max_execution_time") < 60)
+ {
+ echo "<li>";
+ echo 'Avertissement : ' . $failed;
+ print '<span class="info"> max_execution_time devrait être de
60 minimum</span>';
+ echo "</li>";
+ }
-if ( ini_get("session.auto_start") == false ) {
- echo "<li>";
- echo 'Avertissement : '.$failed;
- print '<span class="warning"> session.auto_start doit être mis à
vrai</span>';
- echo "</li>";
- $flag_php++;
-}
+ if (ini_get("session.auto_start") == false)
+ {
+ echo "<li>";
+ echo 'Avertissement : ' . $failed;
+ print '<span class="warning"> session.auto_start doit être mis
à vrai</span>';
+ echo "</li>";
+ $flag_php++;
+ }
-if ( ini_get("session.use_trans_sid") == false ) {
- echo "<li>";
- echo 'Avertissement : '.$failed;
- print '<span class="warning"> avertissement session.use_trans_sid
should be set to true </span>';
- echo "</li>";
-}
+ if (ini_get("session.use_trans_sid") == false)
+ {
+ echo "<li>";
+ echo 'Avertissement : ' . $failed;
+ print '<span class="warning"> avertissement
session.use_trans_sid should be set to true </span>';
+ echo "</li>";
+ }
-echo "<li>";
-if ( strpos($inc_path,"../include") == 0 && strpos ($inc_path,'..\\include')
== 0)
-{
- echo 'variable include_path: '.$failed;
- print ("<span class=\"warning\"> include_path incorrect
!!!".$inc_path."</span>");
- $flag_php++;
-}
- else
- if ( strpos($inc_path,"addon") == 0) {
- echo 'variable include_path: '.$failed;
- print ("<span class=\"warning\">2 include_path incorrect
!!!".$inc_path."</span>");
- $flag_php++;
- }else
- echo 'variable include_path: '.$succeed;
-echo "</li>";
+ echo "<li>";
+ if (strpos($inc_path, "../include") == 0 && strpos($inc_path,
'..\\include') == 0)
+ {
+ echo 'variable include_path: ' . $failed;
+ print ("<span class=\"warning\"> include_path incorrect !!!" .
$inc_path . "</span>");
+ $flag_php++;
+ }
+ else
+ if (strpos($inc_path, "addon") == 0)
+ {
+ echo 'variable include_path: ' . $failed;
+ print ("<span class=\"warning\">2 include_path incorrect !!!"
. $inc_path . "</span>");
+ $flag_php++;
+ }else
+ echo 'variable include_path: ' . $succeed;
+ echo "</li>";
- echo "</ul>";
-if ( $flag_php==0 ) {
- echo '<p class="info"> php.ini est bien configuré
'.$succeed.'</p>';
-} else {
- echo '<p class="warning"> php mal configuré '.$failed.'</p>';
- exit -1;
-}
-/* check user */
-$cn=new Database(-1,'template');
+ echo "</ul>";
+ if ($flag_php == 0)
+ {
+ echo '<p class="info"> php.ini est bien configuré ' .
$succeed . '</p>';
+ }
+ else
+ {
+ echo '<p class="warning"> php mal configuré ' . $failed
. '</p>';
+ exit - 1;
+ }
+ /* check user */
+ $cn = new Database(-1, 'template');
+ ?>
+ <h2>Base de données</h2>
+ <?php
+ // Verify Psql version
+ //--
+ $sql = "select setting from pg_settings where name='server_version'";
+ $version = $cn->get_value($sql);
-?>
-<h2>Base de données</h2>
-<?php
- // Verify Psql version
- //--
-$sql="select setting from pg_settings where name='server_version'";
-$version=$cn->get_value($sql);
+ var_dump($version);
-var_dump($version);
-
-if ( $version[0] < 8 ||
- ($version[0]=='8' && $version[2]<4)
- )
- {
-?>
- <p><?=$failed?> Vous devez absolument utiliser au minimum une version 8.4 de
PostGresql, si votre distribution n'en
-offre pas, installez en une en la compilant. </p><p>Lisez attentivement la
notice sur postgresql.org pour migrer
-vos bases de données
-</p>
-<?php exit(); //'
-}
-
-?>
-<h3>Paramètre base de données</h3>
-<?php
+ if ($version[0] < 8 ||
+ ($version[0] == '8' && $version[2] < 4)
+ )
+ {
+ ?>
+ <p><?= $failed?> Vous devez absolument utiliser au minimum une
version 8.4 de PostGresql, si votre distribution n'en
+ offre pas, installez en une en la compilant.
</p><p>Lisez attentivement la notice sur postgresql.org pour migrer
+ vos bases de données
+ </p>
+ <?php
+ exit(); //'
+ }
+ ?>
+ <h3>Paramètre base de données</h3>
+ <?php
// Language plsql is installed
//--
-$sql="select lanname from pg_language where lanname='plpgsql'";
-$Res=$cn->count_sql($sql);
-if ( $Res==0) { ?>
-<p><?=$failed?> Vous devez installer le langage plpgsql pour permettre aux
fonctions SQL de fonctionner.</p>
-<p>Pour cela, sur la ligne de commande en tant qu\'utilisateur postgres,
faites createlang plpgsql template1
-</p>
+ $sql = "select lanname from pg_language where lanname='plpgsql'";
+ $Res = $cn->count_sql($sql);
+ if ($Res == 0)
+ {
+ ?>
+ <p><?= $failed?> Vous devez installer le langage plpgsql pour
permettre aux fonctions SQL de fonctionner.</p>
+ <p>Pour cela, sur la ligne de commande en tant qu\'utilisateur
postgres, faites createlang plpgsql template1
+ </p>
-<?php exit(); }
+ <?php
+ exit();
+ }
-include_once('ac_common.php');
-require_once('class_dossier.php');
+ include_once('ac_common.php');
+ require_once('class_dossier.php');
// Memory setting
//--
-$sql="select name,setting
+ $sql = "select name,setting
from pg_settings
where
name in ('effective_cache_size','shared_buffers')";
-$cn->exec_sql($sql);
-$flag=0;
-for ($e=0;$e<$cn->size();$e++) {
- $a=$cn->fetch($e);
- switch ($a['name']){
- case 'effective_cache_size':
- if ( $a['setting'] < 1000 ){
+ $cn->exec_sql($sql);
+ $flag = 0;
+ for ($e = 0; $e < $cn->size(); $e++)
+ {
+ $a = $cn->fetch($e);
+ switch ($a['name'])
+ {
+ case 'effective_cache_size':
+ if ($a['setting'] < 1000)
+ {
- print '<p class="warning">'.$failed.'Attention le paramètre
effective_cache_size est de '.
- $a['setting']." au lieu de 1000 </p>";
- $flag++;
- }
- break;
- case 'shared_buffers':
- if ( $a['setting'] < 640 ){
- print '<p class="warning">'.$failed.'Attention le paramètre
shared_buffer est de '.
- $a['setting']."au lieu de 640</p>";
- $flag++;
- }
- break;
- }
- }
-if ( $flag == 0 ) {
- echo '<p class="info"> La base de données est bien configurée
'.$succeed.'</p>';
- } else {
- echo '<p class="warning">'.$failed.'Il y a '.$flag.' paramètre qui
sont trop bas</p>';
- }
-if ( ! isset($_POST['go']) ) {
-?>
-<FORM action="setup.php" METHOD="post">
-<input type="submit" name="go" value="Prêt à commencer la mise
à jour ou l'installation?">
-</form>
-<?php
-}
-if ( ! isset($_POST['go']) )
- exit();
+ print '<p class="warning">' . $failed .
'Attention le paramètre effective_cache_size est de ' .
+ $a['setting'] . " au
lieu de 1000 </p>";
+ $flag++;
+ }
+ break;
+ case 'shared_buffers':
+ if ($a['setting'] < 640)
+ {
+ print '<p class="warning">' . $failed .
'Attention le paramètre shared_buffer est de ' .
+ $a['setting'] . "au
lieu de 640</p>";
+ $flag++;
+ }
+ break;
+ }
+ }
+ if ($flag == 0)
+ {
+ echo '<p class="info"> La base de données est bien
configurée ' . $succeed . '</p>';
+ }
+ else
+ {
+ echo '<p class="warning">' . $failed . 'Il y a ' . $flag . '
paramètre qui sont trop bas</p>';
+ }
+ if (!isset($_POST['go']))
+ {
+ ?>
+ <FORM action="setup.php" METHOD="post">
+ <input type="submit" name="go" value="Prêt
à commencer la mise à jour ou l'installation?">
+ </form>
+ <?php
+ }
+ if (!isset($_POST['go']))
+ exit();
// Check if account_repository exists
-$account=$cn->count_sql("select * from pg_database where
datname=lower('".domaine."account_repository')");
+ $account = $cn->count_sql("select * from pg_database where
datname=lower('" . domaine . "account_repository')");
// Create the account_repository
-if ($account == 0 ) {
+ if ($account == 0)
+ {
- echo "Creation of ".domaine."account_repository";
- if ( ! DEBUG) ob_start();
- $cn->exec_sql("create database ".domaine."account_repository
encoding='utf8'");
- $cn=new Database();
- $cn->start();
- $cn->execute_script("sql/account_repository/schema.sql");
- $cn->execute_script("sql/account_repository/data.sql");
- $cn->execute_script("sql/account_repository/constraint.sql");
- $cn->commit($cn);
+ echo "Creation of " . domaine . "account_repository";
+ if (!DEBUG)
+ ob_start();
+ $cn->exec_sql("create database " . domaine .
"account_repository encoding='utf8'");
+ $cn = new Database();
+ $cn->start();
+ $cn->execute_script("sql/account_repository/schema.sql");
+ $cn->execute_script("sql/account_repository/data.sql");
+ $cn->execute_script("sql/account_repository/constraint.sql");
+ $cn->commit($cn);
- if ( ! DEBUG) ob_end_clean();
+ if (!DEBUG)
+ ob_end_clean();
- echo "Creation of Modele1";
- if ( ! DEBUG) ob_start();
- $cn->exec_sql("create database ".domaine."mod1 encoding='utf8'");
+ echo "Creation of Modele1";
+ if (!DEBUG)
+ ob_start();
+ $cn->exec_sql("create database " . domaine . "mod1
encoding='utf8'");
- $cn=new Database(1,'mod');
- $cn->start();
- $cn->execute_script('sql/mod1/schema.sql');
- $cn->execute_script('sql/mod1/data.sql');
- $cn->execute_script('sql/mod1/constraint.sql');
- $cn->commit();
+ $cn = new Database(1, 'mod');
+ $cn->start();
+ $cn->execute_script('sql/mod1/schema.sql');
+ $cn->execute_script('sql/mod1/data.sql');
+ $cn->execute_script('sql/mod1/constraint.sql');
+ $cn->commit();
- if ( ! DEBUG) ob_end_clean();
+ if (!DEBUG)
+ ob_end_clean();
- echo "Creation of Modele2";
- $cn->exec_sql("create database ".domaine."mod2 encoding='utf8'");
- $cn=new Database(2,'mod');
- $cn->start();
- if ( ! DEBUG) { ob_start(); }
- $cn->execute_script('sql/mod1/schema.sql');
- $cn->execute_script('sql/mod2/data.sql');
- $cn->execute_script('sql/mod1/constraint.sql');
- $cn->commit();
+ echo "Creation of Modele2";
+ $cn->exec_sql("create database " . domaine . "mod2
encoding='utf8'");
+ $cn = new Database(2, 'mod');
+ $cn->start();
+ if (!DEBUG)
+ {
+ ob_start();
+ }
+ $cn->execute_script('sql/mod1/schema.sql');
+ $cn->execute_script('sql/mod2/data.sql');
+ $cn->execute_script('sql/mod1/constraint.sql');
+ $cn->commit();
- if ( ! DEBUG) ob_end_clean();
-
- }// end if
+ if (!DEBUG)
+ ob_end_clean();
+ }// end if
// Add a french accountancy model
//--
-$cn=new Database();
+ $cn = new Database();
-echo "<h1>Mise a jour du systeme</h1>";
-echo "<h2 > Mise à jour dossier</h2>";
+ echo "<h1>Mise a jour du systeme</h1>";
+ echo "<h2 > Mise à jour dossier</h2>";
-$Resdossier=$cn->exec_sql("select dos_id, dos_name from ac_dossier");
-$MaxDossier=$cn->size($Resdossier);
+ $Resdossier = $cn->exec_sql("select dos_id, dos_name from ac_dossier");
+ $MaxDossier = $cn->size($Resdossier);
//----------------------------------------------------------------------
// Upgrade the folders
//----------------------------------------------------------------------
-for ($e=0;$e < $MaxDossier;$e++) {
- $db_row=$cn->fetch($e);
- echo "<h3>Patching ".$db_row['dos_name'].'</h3>';
- $db=new Database($db_row['dos_id'],'dos');
- $db->apply_patch($db_row['dos_name']);
- Dossier::synchro_admin($db_row['dos_id']);
- }
+ for ($e = 0; $e < $MaxDossier; $e++)
+ {
+ $db_row = $cn->fetch($e);
+ echo "<h3>Patching " . $db_row['dos_name'] . '</h3>';
+ $db = new Database($db_row['dos_id'], 'dos');
+ $db->apply_patch($db_row['dos_name']);
+ Dossier::synchro_admin($db_row['dos_id']);
+ }
//----------------------------------------------------------------------
// Upgrade the template
//----------------------------------------------------------------------
-$Resdossier=$cn->exec_sql("select mod_id, mod_name from modeledef");
-$MaxDossier=$cn->size();
-echo "<h2>Mise à jour modèle</h2>";
+ $Resdossier = $cn->exec_sql("select mod_id, mod_name from modeledef");
+ $MaxDossier = $cn->size();
+ echo "<h2>Mise à jour modèle</h2>";
-for ($e=0;$e < $MaxDossier;$e++) {
- $db_row=$cn->fetch($e);
- echo "<h3>Patching ".$db_row['mod_name']."</h3>";
- $db=new Database($db_row['mod_id'],'mod');
- $db->apply_patch($db_row['mod_name']);
- }
+ for ($e = 0; $e < $MaxDossier; $e++)
+ {
+ $db_row = $cn->fetch($e);
+ echo "<h3>Patching " . $db_row['mod_name'] . "</h3>";
+ $db = new Database($db_row['mod_id'], 'mod');
+ $db->apply_patch($db_row['mod_name']);
+ }
//----------------------------------------------------------------------
// Upgrade the account_repository
//----------------------------------------------------------------------
- echo "<h2>Mise à jour Repository</h2>";
- $cn=new Database();
- if ( DEBUG == false ) ob_start();
- $MaxVersion=DBVERSIONREPO-1;
- for ($i=4;$i<= $MaxVersion;$i++)
- {
- if ( $cn->get_version() <= $i ) {
- $cn->execute_script('sql/patch/ac-upgrade'.$i.'.sql');
- }
- }
+ echo "<h2>Mise à jour Repository</h2>";
+ $cn = new Database();
+ if (DEBUG == false)
+ ob_start();
+ $MaxVersion = DBVERSIONREPO - 1;
+ for ($i = 4; $i <= $MaxVersion; $i++)
+ {
+ if ($cn->get_version() <= $i)
+ {
+ $cn->execute_script('sql/patch/ac-upgrade' . $i .
'.sql');
+ }
+ }
- if (! DEBUG) ob_end_clean();
- echo "<p class=\"info\">Tout est installé $succeed";
-?>
-<A style="display:block;text-align: center" HREF="../index.php">Connectez-vous
à PhpCompta</A>
+ if (!DEBUG)
+ ob_end_clean();
+ echo "<p class=\"info\">Tout est installé $succeed";
+ ?>
+ <A style="display:block;text-align: center"
HREF="../index.php">Connectez-vous à PhpCompta</A>
</p>
Modified: phpcompta/branches/rel601-ovh/html/admin_repo.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/admin_repo.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/admin_repo.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -22,6 +22,7 @@
* \brief Administration of the repository : creation of user, folder,
security,
* templates... Accessible only by the administrator
*/
+ require_once "../include/setting.php";
require_once("user_common.php");
include_once("ac_common.php");
require_once('class_database.php');
@@ -91,4 +92,4 @@
<?php
html_page_stop();
-?>
\ No newline at end of file
+?>
Modified: phpcompta/branches/rel601-ovh/html/ajax.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax.php 2012-05-08 19:45:34 UTC (rev
4824)
+++ phpcompta/branches/rel601-ovh/html/ajax.php 2012-05-08 20:06:20 UTC (rev
4825)
@@ -7,6 +7,7 @@
* - gDossier
* - plugin_code
*/
+ require_once "../include/setting.php";
require_once('class_database.php');
require_once('class_user.php');
require_once('class_extension.php');
@@ -39,4 +40,4 @@
}
}
-?>
\ No newline at end of file
+?>
Modified: phpcompta/branches/rel601-ovh/html/ajax_card.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax_card.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/ajax_card.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -54,6 +54,7 @@
* - ref if we want to refresh the window
*\see fiche fiche::Save constant.php
*/
+ require_once "../include/setting.php";
require_once('class_database.php');
require_once ('class_fiche.php');
require_once('class_iradio.php');
Modified: phpcompta/branches/rel601-ovh/html/ajax_history.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax_history.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/ajax_history.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -24,6 +24,7 @@
* \brief show the history of a card of an accounting
* for the card f_id is set and for an accounting : pcm_val
*/
+ require_once "../include/setting.php";
require_once('class_database.php');
require_once('class_user.php');
require_once('class_dossier.php');
Modified: phpcompta/branches/rel601-ovh/html/ajax_ledger.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax_ledger.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/ajax_ledger.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -29,6 +29,7 @@
- for reconcialiation
- update of analytic content
*/
+require_once "../include/setting.php";
require_once('class_database.php');
require_once('class_user.php');
require_once('class_acc_operation.php');
Modified: phpcompta/branches/rel601-ovh/html/ajax_misc.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax_misc.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/ajax_misc.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -35,6 +35,7 @@
* dl : display form to modify, add and delete lettering for a given operation
*
*/
+ require_once "../include/setting.php";
require_once('class_database.php');
require_once ('class_fiche.php');
require_once('class_iradio.php');
Modified: phpcompta/branches/rel601-ovh/html/ajax_poste.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax_poste.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/ajax_poste.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -33,6 +33,7 @@
*
*
*/
+ require_once "../include/setting.php";
require_once ("ac_common.php");
require_once('class_acc_ledger.php');
require_once ('class_database.php');
Modified: phpcompta/branches/rel601-ovh/html/ajax_todo_list.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/ajax_todo_list.php 2012-05-08
19:45:34 UTC (rev 4824)
+++ phpcompta/branches/rel601-ovh/html/ajax_todo_list.php 2012-05-08
20:06:20 UTC (rev 4825)
@@ -34,6 +34,7 @@
* - gDossier
* - i id
*/
+ require_once "../include/setting.php";
require_once ('class_dossier.php');
require_once ('class_todo_list.php');
require_once ('class_database.php');
Modified: phpcompta/branches/rel601-ovh/html/backup.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/backup.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/backup.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -19,6 +19,7 @@
/* $Revision$ */
// Copyright Author Dany De Bontridder address@hidden
+require_once "../include/setting.php";
require_once("constant.php");
require_once('class_database.php');
require_once ("class_user.php");
Modified: phpcompta/branches/rel601-ovh/html/compute.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/compute.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/compute.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -31,7 +31,7 @@
* - gDossier
* Must return at least tva, htva and tvac
*/
-
+require_once "../include/setting.php";
require_once ('constant.php');
require_once ('class_database.php');
require_once ('class_acc_compute.php');
Modified: phpcompta/branches/rel601-ovh/html/direct.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/direct.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/direct.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -1,4 +1,5 @@
<?
+require_once "../include/setting.php";
require_once ("class_database.php");
require_once 'class_user.php';
$cn=new Database($_GET['gDossier']);
Modified: phpcompta/branches/rel601-ovh/html/do.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/do.php 2012-05-08 19:45:34 UTC (rev
4824)
+++ phpcompta/branches/rel601-ovh/html/do.php 2012-05-08 20:06:20 UTC (rev
4825)
@@ -20,7 +20,7 @@
/* $Revision$ */
// Copyright Author Dany De Bontridder address@hidden
-
+require_once "../include/setting.php";
/* !\file
* \brief Main file
*/
Modified: phpcompta/branches/rel601-ovh/html/export.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/export.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/export.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -25,7 +25,7 @@
* act can be
*
*/
-
+require_once "../include/setting.php";
global $g_user;
require_once('class_database.php');
require_once('class_user.php');
@@ -164,4 +164,4 @@
default:
alert('Action inconnue '.$_GET['act']);
exit();
- }
\ No newline at end of file
+ }
Modified: phpcompta/branches/rel601-ovh/html/extension.raw.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/extension.raw.php 2012-05-08
19:45:34 UTC (rev 4824)
+++ phpcompta/branches/rel601-ovh/html/extension.raw.php 2012-05-08
20:06:20 UTC (rev 4825)
@@ -24,6 +24,7 @@
* \brief this file includes the called plugin. It check first
* the security. Load several javascript files
*/
+ require_once "../include/setting.php";
require_once('class_database.php');
require_once('class_dossier.php');
require_once("ac_common.php");
@@ -57,4 +58,4 @@
alert(j(_("Cette extension n'existe pas ")));
exit();
}
-?>
\ No newline at end of file
+?>
Modified: phpcompta/branches/rel601-ovh/html/fid.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/fid.php 2012-05-08 19:45:34 UTC (rev
4824)
+++ phpcompta/branches/rel601-ovh/html/fid.php 2012-05-08 20:06:20 UTC (rev
4825)
@@ -33,7 +33,7 @@
* - FID is the QuickCode
*\note if the j is -1 then all the card are shown
*/
-
+require_once "../include/setting.php";
require_once('class_own.php');
require_once ("constant.php");
require_once('class_database.php');
Modified: phpcompta/branches/rel601-ovh/html/fid_card.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/fid_card.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/fid_card.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -26,7 +26,7 @@
*\see ICard
*/
-
+require_once "../include/setting.php";
require_once('class_database.php');
require_once('class_dossier.php');
/*!\brief
Modified: phpcompta/branches/rel601-ovh/html/index.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/index.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/index.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -113,7 +113,7 @@
echo '<HTML><head><META HTTP-EQUIV="REFRESH"
content="0;url='.$p_string.'"></head><body> Connecting... </body></html>';
exit(0);
}
-
+require_once "../include/setting.php";
echo '<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN">
<HTML>
Modified: phpcompta/branches/rel601-ovh/html/login.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/login.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/login.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Copyright Author Dany De Bontridder address@hidden
+require_once "../include/setting.php";
include_once ("ac_common.php");
require_once('constant.php');
Modified: phpcompta/branches/rel601-ovh/html/logout.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/logout.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/logout.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -20,6 +20,7 @@
/*! \file
* \brief Logout
*/
+ require_once "../include/setting.php";
require_once ("ac_common.php");
require_once('class_database.php');
Modified: phpcompta/branches/rel601-ovh/html/not_implemented.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/not_implemented.php 2012-05-08
19:45:34 UTC (rev 4824)
+++ phpcompta/branches/rel601-ovh/html/not_implemented.php 2012-05-08
20:06:20 UTC (rev 4825)
@@ -18,6 +18,7 @@
*/
// Copyright Author Dany De Bontridder address@hidden
/* $Revision$ */
+require_once "../include/setting.php";
include_once("ac_common.php");
html_page_start();
echo '<H1 class="info"> Not Implemented</H1>';
Modified: phpcompta/branches/rel601-ovh/html/popup.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/popup.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/popup.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -1,5 +1,5 @@
-<?
-
+<?php
+require_once "../include/setting.php";
require_once('ac_common.php');
require_once('function_javascript.php');
require_once('class_html_input.php');
Modified: phpcompta/branches/rel601-ovh/html/recherche.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/recherche.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/recherche.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -21,6 +21,7 @@
/*! \file
* \brief Search module
*/
+ require_once "../include/setting.php";
require_once('class_dossier.php');
include_once("ac_common.php");
include_once ("constant.php");
Modified: phpcompta/branches/rel601-ovh/html/show_document.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/show_document.php 2012-05-08
19:45:34 UTC (rev 4824)
+++ phpcompta/branches/rel601-ovh/html/show_document.php 2012-05-08
20:06:20 UTC (rev 4825)
@@ -22,7 +22,7 @@
/*! \file
* \brief retrieve a document
*/
-
+require_once "../include/setting.php";
require_once('class_database.php');
require_once("ac_common.php");
require_once( "class_document.php");
Modified: phpcompta/branches/rel601-ovh/html/show_document_modele.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/show_document_modele.php 2012-05-08
19:45:34 UTC (rev 4824)
+++ phpcompta/branches/rel601-ovh/html/show_document_modele.php 2012-05-08
20:06:20 UTC (rev 4825)
@@ -22,7 +22,7 @@
/*! \file
* \brief send the document template
*/
-
+require_once "../include/setting.php";
require_once('class_database.php');
require_once("ac_common.php");
Modified: phpcompta/branches/rel601-ovh/html/show_pj.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/show_pj.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/show_pj.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -22,6 +22,7 @@
/*!\file
* \brief show an attach of an operation
*/
+ require_once "../include/setting.php";
include_once ("ac_common.php");
require_once('class_dossier.php');
$gDossier=dossier::id();
Modified: phpcompta/branches/rel601-ovh/html/test.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/test.php 2012-05-08 19:45:34 UTC (rev
4824)
+++ phpcompta/branches/rel601-ovh/html/test.php 2012-05-08 20:06:20 UTC (rev
4825)
@@ -24,6 +24,7 @@
* - secund the test must adapted to this page : if you do a post (or get)
from a test, you won't get any result
* if the $_REQUEST[test_select] is not set, so set it .
*/
+require_once "../include/setting.php";
include_once("ac_common.php");
require_once('class_database.php');
require_once ('class_dossier.php');
Modified: phpcompta/branches/rel601-ovh/html/user_login.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/user_login.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/user_login.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -22,6 +22,8 @@
// Copyright Author Dany De Bontridder address@hidden
// $Revision$
+require_once "../include/setting.php";
+require_once '../include/setting.php';
include_once ("ac_common.php");
require_once('class_database.php');
require_once('class_itext.php');
Modified: phpcompta/branches/rel601-ovh/html/user_pref.php
===================================================================
--- phpcompta/branches/rel601-ovh/html/user_pref.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/html/user_pref.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -22,7 +22,7 @@
/*! \file
* \brief Page for the personal preference (theme, password,...)
*/
-
+require_once "../include/setting.php";
include_once ("ac_common.php");
require_once('class_database.php');
/* Admin. Dossier */
Modified: phpcompta/branches/rel601-ovh/include/constant.php
===================================================================
--- phpcompta/branches/rel601-ovh/include/constant.php 2012-05-08 19:45:34 UTC
(rev 4824)
+++ phpcompta/branches/rel601-ovh/include/constant.php 2012-05-08 20:06:20 UTC
(rev 4825)
@@ -35,10 +35,10 @@
$g_succeed="<span style=\"font-size:18px;color:green\">✓</span>";
/*set to none for production */
/* uncomment for production */
-$version_phpcompta=SVNINFO;
+//$version_phpcompta=SVNINFO;
define ("DEBUG",false);
-//$version_phpcompta=4601;
+$version_phpcompta=4823;
//define ("DEBUG",true);
define ("DBVERSION",102);
@@ -114,6 +114,7 @@
define ("ATTR_DEF_TVA_NON_DEDUCTIBLE",21);
define ("ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP",22);
define ("ATTR_DEF_QUICKCODE",23);
+define ("ATTR_DEF_FIRST_NAME",32);
define( 'ATTR_DEF_ACCOUNT_ND_TVA',50);
define('ATTR_DEF_ACCOUNT_ND_TVA_ND',51);
@@ -130,7 +131,6 @@
define ("FICHE_TYPE_ACH_MAR",2);
define ("FICHE_TYPE_ACH_SER",3);
-
define ('JS_INFOBULLE','
<DIV id="bulle" class="infobulle"></DIV>
<script type="text/javascript" language="javascript"
src="js/infobulle.js">
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4825 - in phpcompta/branches/rel601-ovh: . html html/admin include,
phpcompta-dev <=