diff --git a/html/admin_repo.php b/html/admin_repo.php index 9e0ab89fb..5bd417a18 100644 --- a/html/admin_repo.php +++ b/html/admin_repo.php @@ -22,6 +22,7 @@ * \brief Administration of the repository : creation of user, folder, security, * templates... Accessible only by the administrator */ +require_once '../include/constant.php'; require_once("user_common.php"); include_once("ac_common.php"); require_once('class_database.php'); diff --git a/html/ajax.php b/html/ajax.php index 3cd8a224b..117ec48b9 100644 --- a/html/ajax.php +++ b/html/ajax.php @@ -7,6 +7,7 @@ * - gDossier * - plugin_code */ +require_once '../include/constant.php'; require_once('class_database.php'); require_once('class_user.php'); require_once('class_extension.php'); diff --git a/html/ajax_card.php b/html/ajax_card.php index c53290995..975876865 100644 --- a/html/ajax_card.php +++ b/html/ajax_card.php @@ -54,6 +54,7 @@ * - ref if we want to refresh the window *\see fiche fiche::Save constant.php */ +require_once '../include/constant.php'; require_once('class_database.php'); require_once ('class_fiche.php'); require_once('class_iradio.php'); diff --git a/html/ajax_history.php b/html/ajax_history.php index 37a8dfa5f..506f143e7 100644 --- a/html/ajax_history.php +++ b/html/ajax_history.php @@ -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/constant.php'; require_once('class_database.php'); require_once('class_user.php'); require_once('class_dossier.php'); diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php index 4c3e4f501..8296f25cc 100644 --- a/html/ajax_ledger.php +++ b/html/ajax_ledger.php @@ -29,6 +29,7 @@ - for reconcialiation - update of analytic content */ +require_once '../include/constant.php'; require_once('class_database.php'); require_once('class_user.php'); require_once('class_acc_operation.php'); diff --git a/html/ajax_misc.php b/html/ajax_misc.php index 18b290036..6850ad7d2 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -35,6 +35,7 @@ * dl : display form to modify, add and delete lettering for a given operation * */ +require_once '../include/constant.php'; require_once('class_database.php'); require_once ('class_fiche.php'); require_once('class_iradio.php'); diff --git a/html/ajax_poste.php b/html/ajax_poste.php index 524b3551c..67a2d20d9 100644 --- a/html/ajax_poste.php +++ b/html/ajax_poste.php @@ -33,6 +33,7 @@ * * */ +require_once '../include/constant.php'; require_once ("ac_common.php"); require_once('class_acc_ledger.php'); require_once ('class_database.php'); diff --git a/html/ajax_todo_list.php b/html/ajax_todo_list.php index 0e723c074..b839ab407 100644 --- a/html/ajax_todo_list.php +++ b/html/ajax_todo_list.php @@ -34,6 +34,7 @@ * - gDossier * - i id */ +require_once '../include/constant.php'; require_once ('class_dossier.php'); require_once ('class_todo_list.php'); require_once ('class_database.php'); diff --git a/html/backup.php b/html/backup.php index 7f685be1e..5937e3224 100644 --- a/html/backup.php +++ b/html/backup.php @@ -19,6 +19,7 @@ /* $Revision$ */ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr +require_once '../include/constant.php'; require_once("constant.php"); require_once('class_database.php'); require_once ("class_user.php"); diff --git a/html/compute.php b/html/compute.php index dfdd23f89..b35ba3ca2 100644 --- a/html/compute.php +++ b/html/compute.php @@ -31,8 +31,7 @@ * - gDossier * Must return at least tva, htva and tvac */ - -require_once ('constant.php'); +require_once '../include/constant.php'; require_once ('class_database.php'); require_once ('class_acc_compute.php'); require_once('class_dossier.php'); diff --git a/html/direct.php b/html/direct.php index c03e6ee2c..3b4838ed5 100644 --- a/html/direct.php +++ b/html/direct.php @@ -1,4 +1,5 @@ -
'; $my_domain=""; -require ('config.inc.php'); +require_once '../include/constant.php'; +require_once ('config.inc.php'); if ( strlen(domaine) > 0 ) { $my_domain="Domaine : ".domaine; diff --git a/html/login.php b/html/login.php index 82b75deee..6f862191a 100644 --- a/html/login.php +++ b/html/login.php @@ -17,6 +17,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr +require_once '../include/constant.php'; + include_once ("ac_common.php"); require_once('constant.php'); @@ -41,7 +43,7 @@ if ( isset ($_POST["p_user"] ) ) /* * Check repository version */ - if ( $rep->get_value('select val from version') != DBVERSIONREPO) + if ( $rep->get_value('select val from version') != DBVERSIONREPO) { echo alert('Version de base de données incorrectes, vous devez mettre à jour'); echo ""; @@ -51,12 +53,12 @@ if ( isset ($_POST["p_user"] ) ) include_once ("class_user.php"); $User=new User($rep); $User->Check(false,'LOGIN'); - if ($g_captcha == true) + if ($g_captcha == true) { include("securimage/securimage.php"); $img = new Securimage(); $valid = $img->check($_POST['captcha_code']); - if ( $valid == false ) + if ( $valid == false ) { echo alert('Code invalide'); echo ""; @@ -74,7 +76,7 @@ else * Check repository version */ - if ( $rep->get_value('select val from version') != DBVERSIONREPO) + if ( $rep->get_value('select val from version') != DBVERSIONREPO) { echo alert('Version de base de données incorrectes, vous devez mettre à jour'); echo ""; diff --git a/html/recherche.php b/html/recherche.php index df30ec37b..9b1acc845 100644 --- a/html/recherche.php +++ b/html/recherche.php @@ -21,6 +21,7 @@ /*! \file * \brief Search module */ +require_once '../include/constant.php'; require_once('class_dossier.php'); include_once("ac_common.php"); include_once ("constant.php"); diff --git a/html/show_document.php b/html/show_document.php index 974b1886c..bff4d1027 100644 --- a/html/show_document.php +++ b/html/show_document.php @@ -23,7 +23,7 @@ /** \file * \brief retrieve a document */ - +require_once '../include/constant.php'; require_once('class_database.php'); require_once("ac_common.php"); require_once( "class_document.php"); diff --git a/html/show_document_modele.php b/html/show_document_modele.php index 0ac452a2e..9e536a76d 100644 --- a/html/show_document_modele.php +++ b/html/show_document_modele.php @@ -22,7 +22,7 @@ /*! \file * \brief send the document template */ - +require_once '../include/constant.php'; require_once('class_database.php'); require_once("ac_common.php"); diff --git a/html/show_pj.php b/html/show_pj.php index a31067610..0fbc22d7e 100644 --- a/html/show_pj.php +++ b/html/show_pj.php @@ -22,6 +22,7 @@ /*!\file * \brief show an attach of an operation */ +require_once '../include/constant.php'; include_once ("ac_common.php"); require_once('class_dossier.php'); $gDossier=dossier::id(); diff --git a/html/user_login.php b/html/user_login.php index 5cadeb751..495b45dca 100644 --- a/html/user_login.php +++ b/html/user_login.php @@ -22,6 +22,7 @@ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // $Revision$ +require_once '../include/constant.php'; include_once ("ac_common.php"); require_once('class_database.php'); require_once('class_itext.php'); diff --git a/html/user_pref.php b/html/user_pref.php index 7418c0dcc..1c5a439cd 100644 --- a/html/user_pref.php +++ b/html/user_pref.php @@ -22,7 +22,7 @@ /*! \file * \brief Page for the personal preference (theme, password,...) */ - +require_once '../include/constant.php'; include_once ("ac_common.php"); require_once('class_database.php'); /* Admin. Dossier */ diff --git a/include/ac_common.php b/include/ac_common.php index f128bf8bc..63ff606b2 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -297,7 +297,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="") echo "