diff --git a/include/acc_currency_cfg.inc.php b/include/acc_currency_cfg.inc.php
index aea388ab7..2f1f8d494 100644
--- a/include/acc_currency_cfg.inc.php
+++ b/include/acc_currency_cfg.inc.php
@@ -30,8 +30,6 @@ if (!defined('ALLOWED')) { die('Appel direct ne sont pas permis'); }
echo '
';
global $g_parameter;
-require_once NOALYSS_INCLUDE."/class/currency_mtable.class.php";
-require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php";
require_once NOALYSS_INCLUDE.'/database/v_currency_last_value_sql.class.php';
$currency=new V_Currency_Last_Value_SQL($cn);
diff --git a/include/action.inc.php b/include/action.inc.php
index 93a3c6bf4..f9a44b4dc 100644
--- a/include/action.inc.php
+++ b/include/action.inc.php
@@ -34,12 +34,6 @@ $retour=HtmlInput::button_anchor(_('Retour liste'),
//-----------------------------------------------------
// Follow_Up
//-----------------------------------------------------
-require_once NOALYSS_INCLUDE.'/lib/icard.class.php';
-require_once NOALYSS_INCLUDE.'/lib/ispan.class.php';
-require_once NOALYSS_INCLUDE.'/lib/ifile.class.php';
-require_once NOALYSS_INCLUDE.'/lib/itext.class.php';
-require_once NOALYSS_INCLUDE.'/lib/inplace_edit.class.php';
-require_once NOALYSS_INCLUDE.'/class/follow_up.class.php';
/*!\brief Show the list of action, this code should be common
* to several webpage. But for the moment we keep like that
* because it is used only by this file.
diff --git a/include/adm.inc.php b/include/adm.inc.php
index f68519e61..face146b7 100644
--- a/include/adm.inc.php
+++ b/include/adm.inc.php
@@ -21,13 +21,6 @@
* the customer category
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/lib/iselect.class.php';
-require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php';
-require_once NOALYSS_INCLUDE.'/class/customer.class.php';
-require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php';
-require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php';
-require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php';
-require_once NOALYSS_INCLUDE.'/class/admin.class.php';
global $g_user,$http;
diff --git a/include/admin_repo.inc.php b/include/admin_repo.inc.php
index c20036014..9496e08f9 100644
--- a/include/admin_repo.inc.php
+++ b/include/admin_repo.inc.php
@@ -27,10 +27,7 @@ if ( ! defined ('ALLOWED_ADMIN')) { die (_('Non autorisé'));}
include_once NOALYSS_INCLUDE."/class/user.class.php";
require_once NOALYSS_INCLUDE."/lib/user_common.php";
include_once NOALYSS_INCLUDE."/lib/ac_common.php";
-require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE."/lib/user_menu.php";
-require_once NOALYSS_INCLUDE."/lib/http_input.class.php";
-require_once NOALYSS_INCLUDE."/lib/icon_action.class.php";
$http=new HttpInput();
$action = $http->request("action","string", "");
diff --git a/include/ajax/ajax_accounting.php b/include/ajax/ajax_accounting.php
index 82ba65b59..cb853e785 100644
--- a/include/ajax/ajax_accounting.php
+++ b/include/ajax/ajax_accounting.php
@@ -39,8 +39,6 @@ try {
}
if ( $g_user->check_module("CFGPCMN") == 0) die();
-require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php";
-require_once NOALYSS_INCLUDE."/class/acc_plan_mtable.class.php";
$obj=new Acc_Plan_SQL($cn);
$obj->set_limit_fiche_qcode(5);
diff --git a/include/ajax/ajax_action_concerned_list.php b/include/ajax/ajax_action_concerned_list.php
index 357a8b9c0..973ea24c9 100644
--- a/include/ajax/ajax_action_concerned_list.php
+++ b/include/ajax/ajax_action_concerned_list.php
@@ -34,7 +34,6 @@ if ( ! $g_user->can_write_action($ag_id) ) {
record_log(__FILE__."security : access refused");
return;
}
-require_once 'class/follow_up_other_concerned.class.php';
ob_start();
echo HtmlInput::title_box(_("Liste Autres Fiches"), "action_concerned_list_dv");
diff --git a/include/ajax/ajax_action_remove_concerned.php b/include/ajax/ajax_action_remove_concerned.php
index a07e00afc..93362b2d6 100644
--- a/include/ajax/ajax_action_remove_concerned.php
+++ b/include/ajax/ajax_action_remove_concerned.php
@@ -24,7 +24,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
*@file
*@brief remove concerned operation , call from follow up
*/
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
try
{
@@ -45,7 +44,6 @@ if ( ! $g_user->can_read_action($ag_id) ) {
return;
}
-require_once 'class/follow_up_other_concerned.class.php';
$follow=new Follow_Up_Other_Concerned($cn,$ag_id);
ob_start();
diff --git a/include/ajax/ajax_action_save_concerned.php b/include/ajax/ajax_action_save_concerned.php
index 4500c5b59..1ad63cb19 100644
--- a/include/ajax/ajax_action_save_concerned.php
+++ b/include/ajax/ajax_action_save_concerned.php
@@ -46,7 +46,6 @@ if ( ! $g_user->can_write_action($ag_id) ) {
return;
}
-require_once 'class/follow_up_other_concerned.class.php';
$follow=new Follow_Up_Other_Concerned($cn,$ag_id);
$nb_card=count($selected_card);
for ($i=0;$i< $nb_card;$i++)
diff --git a/include/ajax/ajax_add_concerned_card.php b/include/ajax/ajax_add_concerned_card.php
index bda4c60a3..7cc903e95 100644
--- a/include/ajax/ajax_add_concerned_card.php
+++ b/include/ajax/ajax_add_concerned_card.php
@@ -28,8 +28,6 @@
if (!defined('ALLOWED'))
die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
-require_once NOALYSS_INCLUDE.'/class/card_multiple.class.php';
$http=new HttpInput();
ob_start();
@@ -51,7 +49,6 @@ if ( ! $g_user->can_write_action($ag_id) ) {
return;
}
-require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php';
$r=HtmlInput::title_box(_("Détail fiche"), 'search_card');
//--------------------------------------------------------------------------------------------------------------------
diff --git a/include/ajax/ajax_add_menu.php b/include/ajax/ajax_add_menu.php
index 669201dc6..97b7c5337 100644
--- a/include/ajax/ajax_add_menu.php
+++ b/include/ajax/ajax_add_menu.php
@@ -40,7 +40,6 @@ if (!defined('ALLOWED'))
if ($g_user->check_module('CFGPRO')==0)
die();
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
try
diff --git a/include/ajax/ajax_admin.php b/include/ajax/ajax_admin.php
index 44e8d012a..9882d7021 100644
--- a/include/ajax/ajax_admin.php
+++ b/include/ajax/ajax_admin.php
@@ -33,7 +33,6 @@ if ($g_user->Admin()==0)
}
session_write_close();
set_language();
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
$op=$http->request("op");
// From admin, grant the access to a folder to an
@@ -343,8 +342,6 @@ if (in_array($op, array('modele_drop', 'modele_modify', 'folder_modify', 'folder
//------------------------------------------------------------------
if ($op=='upgradeCore')
{
- require_once NOALYSS_INCLUDE.'/lib/progress_bar.class.php';
- require_once NOALYSS_INCLUDE.'/class/package_repository.class.php';
$task_id=$http->request("task_id");
$progress=new Progress_Bar($task_id);
$progress->set_value(2);
@@ -376,8 +373,6 @@ if ($op=='upgradeCore')
//---------------------------------------------------------------------------------------------------------
if ($op=='upgradePlugin')
{
- require_once NOALYSS_INCLUDE.'/lib/progress_bar.class.php';
- require_once NOALYSS_INCLUDE.'/class/package_repository.class.php';
$task_id=$http->request("task_id");
$code=$http->post("code_plugin");
$progress=new Progress_Bar($task_id);
@@ -397,8 +392,6 @@ if ($op=='upgradePlugin')
//------------------------------------------------------------------------------------------------------------------
if ($op=="installTemplate")
{
- require_once NOALYSS_INCLUDE.'/lib/progress_bar.class.php';
- require_once NOALYSS_INCLUDE.'/class/package_repository.class.php';
$task_id=$http->request("task_id");
$name=$http->post("code");
$progress=new Progress_Bar($task_id);
diff --git a/include/ajax/ajax_anc_accounting.php b/include/ajax/ajax_anc_accounting.php
index b7ecc23af..c3e9c9f92 100644
--- a/include/ajax/ajax_anc_accounting.php
+++ b/include/ajax/ajax_anc_accounting.php
@@ -22,7 +22,6 @@
if (!defined('ALLOWED'))
die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE."/class/anc_account_table.class.php";
/**
* @file
* @brief Insert , update delete anc accounting
diff --git a/include/ajax/ajax_anc_key_choice.php b/include/ajax/ajax_anc_key_choice.php
index ed13bd018..ba58f7659 100644
--- a/include/ajax/ajax_anc_key_choice.php
+++ b/include/ajax/ajax_anc_key_choice.php
@@ -27,7 +27,6 @@
// Copyright (2014) Author Dany De Bontridder danydb@aevalys.eu
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
try
@@ -44,7 +43,6 @@ catch (Exception $exc)
}
-require_once 'class/anc_key.class.php';
ob_start();
echo HtmlInput::title_box(_("Choix d'une clef"), 'div_anc_key_choice');
diff --git a/include/ajax/ajax_anc_key_clean.php b/include/ajax/ajax_anc_key_clean.php
index 6944c92f6..40b9bde0e 100644
--- a/include/ajax/ajax_anc_key_clean.php
+++ b/include/ajax/ajax_anc_key_clean.php
@@ -27,7 +27,6 @@
// Copyright (2014) Author Dany De Bontridder danydb@aevalys.eu
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
try
@@ -45,7 +44,6 @@ catch (Exception $exc)
}
-require_once 'class/anc_operation.class.php';
global $g_user;
if ($g_user->get_ledger_access($ledger)=='W')
diff --git a/include/ajax/ajax_anc_key_compute.php b/include/ajax/ajax_anc_key_compute.php
index eabbb0beb..eba0547ae 100644
--- a/include/ajax/ajax_anc_key_compute.php
+++ b/include/ajax/ajax_anc_key_compute.php
@@ -32,8 +32,6 @@
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/class/anc_key.class.php';
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
try
diff --git a/include/ajax/ajax_anc_plan.php b/include/ajax/ajax_anc_plan.php
index 0ba65a13b..288ebf469 100644
--- a/include/ajax/ajax_anc_plan.php
+++ b/include/ajax/ajax_anc_plan.php
@@ -26,7 +26,6 @@
if (!defined('ALLOWED'))
die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE . "/lib/inplace_edit.class.php";
if ( $g_user->check_module("PLANANC ") ) die("forbidden");
diff --git a/include/ajax/ajax_anc_search.php b/include/ajax/ajax_anc_search.php
index 85d46b58b..3940ce34a 100644
--- a/include/ajax/ajax_anc_search.php
+++ b/include/ajax/ajax_anc_search.php
@@ -28,15 +28,8 @@
// parameter are gDossier , c1 : the control id to update,
// c2 the control id which contains the pa_id
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/lib/itext.class.php';
-require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php';
-require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php';
-require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
-require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
-require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php';
require_once NOALYSS_INCLUDE.'/lib/function_javascript.php';
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
$texte=new IText('plabel');
diff --git a/include/ajax/ajax_auto_anc_card.php b/include/ajax/ajax_auto_anc_card.php
index aa4622cbc..e0f3cc34d 100644
--- a/include/ajax/ajax_auto_anc_card.php
+++ b/include/ajax/ajax_auto_anc_card.php
@@ -6,8 +6,6 @@
*@brief no used ??
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/class/database.class.php';
-require_once NOALYSS_INCLUDE.'/class/user.class.php';
$cn=Dossier::connect();
diff --git a/include/ajax/ajax_bank_saldo.php b/include/ajax/ajax_bank_saldo.php
index 8cb2548d1..e8f2deb7f 100644
--- a/include/ajax/ajax_bank_saldo.php
+++ b/include/ajax/ajax_bank_saldo.php
@@ -37,9 +37,6 @@
*/
if (!defined('ALLOWED'))
die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/class/user.class.php';
-require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
-require_once NOALYSS_INCLUDE.'/class/fiche.class.php';
/* check the parameters */
foreach (array('j', 'ctl') as $a)
{
diff --git a/include/ajax/ajax_calendar_zoom.php b/include/ajax/ajax_calendar_zoom.php
index 4639e526c..594bddd7d 100644
--- a/include/ajax/ajax_calendar_zoom.php
+++ b/include/ajax/ajax_calendar_zoom.php
@@ -22,8 +22,6 @@
*@brief zoom the sheduler
*/
if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/class/calendar.class.php';
-require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
ob_start();
diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php
index 57c0d64ed..78cdae0e5 100644
--- a/include/ajax/ajax_card.php
+++ b/include/ajax/ajax_card.php
@@ -56,14 +56,8 @@
*/
if ( ! defined('ALLOWED')) die (_('Accès non autorisé'));
-require_once NOALYSS_INCLUDE.'/class/database.class.php';
-require_once NOALYSS_INCLUDE.'/class/fiche.class.php';
-require_once NOALYSS_INCLUDE.'/lib/iradio.class.php';
require_once NOALYSS_INCLUDE.'/lib/function_javascript.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
-require_once NOALYSS_INCLUDE.'/class/user.class.php';
-require_once NOALYSS_INCLUDE.'/class/fiche_attr.class.php';
-require_once NOALYSS_INCLUDE.'/lib/input_switch.class.php';
mb_internal_encoding("UTF-8");
@@ -413,7 +407,6 @@ case 'sc':
*
*----------------------------------------------------------------------*/
case 'fs':
- require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php';
$r=HtmlInput::title_box(_("Détail fiche"), 'search_card');
$r.='