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.='
'; $q=new IText('query'); diff --git a/include/ajax/ajax_card_attribute.php b/include/ajax/ajax_card_attribute.php index 418b103df..b0bd02e49 100644 --- a/include/ajax/ajax_card_attribute.php +++ b/include/ajax/ajax_card_attribute.php @@ -26,8 +26,6 @@ global $g_user; // security $g_user->can_request("CFGATCARD"); -require_once NOALYSS_INCLUDE."/lib/inplace_switch.class.php"; -require_once NOALYSS_INCLUDE.'/class/card_attribut_mtable.class.php'; $http=new HttpInput(); diff --git a/include/ajax/ajax_cfgaction.php b/include/ajax/ajax_cfgaction.php index 8d2312e91..830a51447 100644 --- a/include/ajax/ajax_cfgaction.php +++ b/include/ajax/ajax_cfgaction.php @@ -30,7 +30,6 @@ if ($g_user->check_action(PARCATDOC)==0) return; } -require_once NOALYSS_INCLUDE."/class/action_document_type_mtable.class.php"; $http=new HttpInput(); diff --git a/include/ajax/ajax_company.php b/include/ajax/ajax_company.php index dd817d974..6830d1617 100644 --- a/include/ajax/ajax_company.php +++ b/include/ajax/ajax_company.php @@ -30,7 +30,6 @@ global $g_user; if ($g_user->check_module("COMPANY")==0) die(); -require_once NOALYSS_INCLUDE.'/class/parameter_extra_mtable.class.php'; $http=new HttpInput(); try { diff --git a/include/ajax/ajax_contact_option_list.php b/include/ajax/ajax_contact_option_list.php index 1622d1ab8..ad51d39f7 100644 --- a/include/ajax/ajax_contact_option_list.php +++ b/include/ajax/ajax_contact_option_list.php @@ -21,7 +21,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/contact_option_ref_mtable.class.php"; /** * @file diff --git a/include/ajax/ajax_create_menu.php b/include/ajax/ajax_create_menu.php index 7633b3018..6d7a7bfe4 100644 --- a/include/ajax/ajax_create_menu.php +++ b/include/ajax/ajax_create_menu.php @@ -7,7 +7,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/menu_ref.class.php'; $msg=_("Création"); $m=new Menu_Ref($cn); echo ''; diff --git a/include/ajax/ajax_currency.php b/include/ajax/ajax_currency.php index 6d11419ea..fc84c6e1b 100644 --- a/include/ajax/ajax_currency.php +++ b/include/ajax/ajax_currency.php @@ -21,9 +21,7 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -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'; + /** * @file * @brief Ajax response for currency related calls diff --git a/include/ajax/ajax_display_card_option.php b/include/ajax/ajax_display_card_option.php index 464c2b574..49afbe1c8 100644 --- a/include/ajax/ajax_display_card_option.php +++ b/include/ajax/ajax_display_card_option.php @@ -26,7 +26,6 @@ if (!defined('ALLOWED')) * @file * @brief display the options of a card */ -require_once NOALYSS_INCLUDE."/class/card_multiple.class.php"; $card_multiple=new Card_Multiple(); try diff --git a/include/ajax/ajax_display_letter.php b/include/ajax/ajax_display_letter.php index 06f36e189..bfd8d391a 100644 --- a/include/ajax/ajax_display_letter.php +++ b/include/ajax/ajax_display_letter.php @@ -42,7 +42,6 @@ try { return; } -require_once NOALYSS_INCLUDE.'/class/lettering.class.php'; $exercice=$g_user->get_exercice(); if ($g_user->check_module("LETCARD")==0 && $g_user->check_module("LETACC")==0) exit(); diff --git a/include/ajax/ajax_display_submenu.php b/include/ajax/ajax_display_submenu.php index e23a830a4..ae8f9d799 100644 --- a/include/ajax/ajax_display_submenu.php +++ b/include/ajax/ajax_display_submenu.php @@ -31,7 +31,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); // Security if ( $g_user->check_module('CFGPRO') == 0 ) die(); -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); ob_start(); @@ -48,7 +47,6 @@ catch (Exception $exc) return; } -require_once NOALYSS_INCLUDE.'/class/profile_menu.class.php'; $p_level++; $profile=new Profile_Menu($cn); $profile->p_id=$p_id; diff --git a/include/ajax/ajax_document_state.php b/include/ajax/ajax_document_state.php index e0776afa9..ebb5a3f3a 100644 --- a/include/ajax/ajax_document_state.php +++ b/include/ajax/ajax_document_state.php @@ -21,7 +21,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/document_state_mtable.php"; global $g_user; if ( $g_user->check_module('CFGDOCST') == 0 ) { diff --git a/include/ajax/ajax_fiche_def_detail.php b/include/ajax/ajax_fiche_def_detail.php index 2b01b9cf4..bebf233cb 100644 --- a/include/ajax/ajax_fiche_def_detail.php +++ b/include/ajax/ajax_fiche_def_detail.php @@ -26,8 +26,6 @@ * */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php'; -require_once NOALYSS_INCLUDE.'/lib/single_record.class.php'; global $g_user; $g_user->can_request(FICCAT,0); diff --git a/include/ajax/ajax_follow_up.php b/include/ajax/ajax_follow_up.php index 792c4889a..ccd11c5ba 100644 --- a/include/ajax/ajax_follow_up.php +++ b/include/ajax/ajax_follow_up.php @@ -21,8 +21,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/document.class.php"; -require_once NOALYSS_INCLUDE."/lib/inplace_edit.class.php"; /** * @file * @brief Update description on file diff --git a/include/ajax/ajax_forecast_category.php b/include/ajax/ajax_forecast_category.php index 018344bde..a4d355b3b 100644 --- a/include/ajax/ajax_forecast_category.php +++ b/include/ajax/ajax_forecast_category.php @@ -24,7 +24,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/forecast_category_mtable.class.php"; global $g_user; if ($g_user->check_module("FORECAST")==0) die(); diff --git a/include/ajax/ajax_forecast_item.php b/include/ajax/ajax_forecast_item.php index e509b5482..4af04d087 100644 --- a/include/ajax/ajax_forecast_item.php +++ b/include/ajax/ajax_forecast_item.php @@ -24,7 +24,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/forecast_item_mtable.class.php"; global $g_user; if ($g_user->check_module("FORECAST")==0) die(); diff --git a/include/ajax/ajax_gestion.php b/include/ajax/ajax_gestion.php index 814e383ec..b8e2471ae 100644 --- a/include/ajax/ajax_gestion.php +++ b/include/ajax/ajax_gestion.php @@ -26,7 +26,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); if ($op=='action_show') @@ -34,7 +33,6 @@ if ($op=='action_show') /** * display action */ - require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; $gestion=new Follow_Up($cn); $array=$gestion->get_last(35); $len_array=count($array); @@ -43,14 +41,12 @@ if ($op=='action_show') } if ($op=='action_add') { - require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; $gestion=new Follow_Up($cn); $gestion->display_short(); return; } if ($op=='action_save') { - require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; /** * save info from the get diff --git a/include/ajax/ajax_get_profile.php b/include/ajax/ajax_get_profile.php index 9f92f8d2b..937948208 100644 --- a/include/ajax/ajax_get_profile.php +++ b/include/ajax/ajax_get_profile.php @@ -32,9 +32,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); if ( $g_user->check_module('CFGPRO') == 0 ) die(); require_once NOALYSS_INCLUDE.'/database/profile_sql.class.php'; -require_once NOALYSS_INCLUDE.'/class/profile_menu.class.php'; -require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); $p_id=$http->request('p_id',"string", -1); diff --git a/include/ajax/ajax_get_receipt.php b/include/ajax/ajax_get_receipt.php index 00e5cf7a9..2853934a8 100644 --- a/include/ajax/ajax_get_receipt.php +++ b/include/ajax/ajax_get_receipt.php @@ -30,10 +30,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; // Check if the needed field does exist extract ($_GET, EXTR_SKIP); diff --git a/include/ajax/ajax_history.php b/include/ajax/ajax_history.php index 26d58b986..b85a9c426 100644 --- a/include/ajax/ajax_history.php +++ b/include/ajax/ajax_history.php @@ -25,13 +25,6 @@ */ if ( ! defined('ALLOWED')) die (_('Accès interdit')); -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account.class.php'; -require_once NOALYSS_INCLUDE.'/class/exercice.class.php'; $div=$http->request('div'); mb_internal_encoding("UTF-8"); $http=new HttpInput(); diff --git a/include/ajax/ajax_history_anc_account.php b/include/ajax/ajax_history_anc_account.php index 6a4927814..839916cc4 100644 --- a/include/ajax/ajax_history_anc_account.php +++ b/include/ajax/ajax_history_anc_account.php @@ -32,7 +32,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); - op history - exercice integer */ -require_once NOALYSS_INCLUDE."/class/anc_grandlivre.class.php"; try { $po_id=$http->get("po_id","number"); diff --git a/include/ajax/ajax_ledger.php b/include/ajax/ajax_ledger.php index 357ca2bd8..5a636d361 100644 --- a/include/ajax/ajax_ledger.php +++ b/include/ajax/ajax_ledger.php @@ -31,18 +31,6 @@ */ if ( ! defined('ALLOWED')) die(_('Non authorisé')); -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_reconciliation.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php'; -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag_operation.class.php'; $http=new HttpInput(); /** diff --git a/include/ajax/ajax_ledger_show.php b/include/ajax/ajax_ledger_show.php index d948115db..f2094bda3 100644 --- a/include/ajax/ajax_ledger_show.php +++ b/include/ajax/ajax_ledger_show.php @@ -15,8 +15,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/acc_ledger_search.class.php'; -require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; if ( ! isset ($r_jrn)) { $r_jrn=null;} $ctl='div_jrn'.$div; ob_start(); diff --git a/include/ajax/ajax_min_row.php b/include/ajax/ajax_min_row.php index bd92ec21a..9a57cbbef 100644 --- a/include/ajax/ajax_min_row.php +++ b/include/ajax/ajax_min_row.php @@ -26,8 +26,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'; extract($_GET, EXTR_SKIP); /* check the parameters */ foreach ( array('j','ctl') as $a ) diff --git a/include/ajax/ajax_mod_document.php b/include/ajax/ajax_mod_document.php index 384747bb2..50a214bfe 100644 --- a/include/ajax/ajax_mod_document.php +++ b/include/ajax/ajax_mod_document.php @@ -23,9 +23,6 @@ * \brief show the detail of a document and let you modify it */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/document_modele.class.php'; /* 1. Check security */ $cn=Dossier::connect(); diff --git a/include/ajax/ajax_mod_menu.php b/include/ajax/ajax_mod_menu.php index 40d0ac770..8c0ebe373 100644 --- a/include/ajax/ajax_mod_menu.php +++ b/include/ajax/ajax_mod_menu.php @@ -7,7 +7,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/menu_ref.class.php'; $m=new Menu_Ref($cn,$me_code); $msg="Modification ".$m->me_code.' '.h($m->me_menu); echo ''; diff --git a/include/ajax/ajax_mod_predf_op.php b/include/ajax/ajax_mod_predf_op.php index 539d465ba..dc5a77c63 100644 --- a/include/ajax/ajax_mod_predf_op.php +++ b/include/ajax/ajax_mod_predf_op.php @@ -25,7 +25,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); ob_start(); -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; $id=$http->get("id","number"); $op=new Pre_Operation($cn,$id); diff --git a/include/ajax/ajax_operation_tag.php b/include/ajax/ajax_operation_tag.php index c44451364..1175d7e81 100644 --- a/include/ajax/ajax_operation_tag.php +++ b/include/ajax/ajax_operation_tag.php @@ -21,8 +21,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/tag.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag_operation.class.php'; /** * @file diff --git a/include/ajax/ajax_payment_method.php b/include/ajax/ajax_payment_method.php index a0415599d..421ff5461 100644 --- a/include/ajax/ajax_payment_method.php +++ b/include/ajax/ajax_payment_method.php @@ -34,7 +34,6 @@ if (!defined('ALLOWED')) * */ require_once NOALYSS_INCLUDE."/database/payment_method_sql.class.php"; -require_once NOALYSS_INCLUDE."/class/payment_method_mtable.class.php"; $id=$http->request("p_id", "number", -1); $action=$http->request("action"); diff --git a/include/ajax/ajax_periode.php b/include/ajax/ajax_periode.php index e8e2cb133..b6f1bc4c4 100644 --- a/include/ajax/ajax_periode.php +++ b/include/ajax/ajax_periode.php @@ -38,8 +38,6 @@ if (!defined('ALLOWED')) * ledger_id == 0 or not * The answer must be in JSON */ -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode_ledger.class.php'; $err=0; $a_answer=[]; diff --git a/include/ajax/ajax_poste.php b/include/ajax/ajax_poste.php index 8ecaaa6a1..1adccf339 100644 --- a/include/ajax/ajax_poste.php +++ b/include/ajax/ajax_poste.php @@ -35,10 +35,7 @@ if ( ! defined('ALLOWED')) die (_('Non authorisé')); require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/function_javascript.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; mb_internal_encoding("UTF-8"); extract($_REQUEST, EXTR_SKIP); diff --git a/include/ajax/ajax_preference.php b/include/ajax/ajax_preference.php index 95589e736..d98607334 100644 --- a/include/ajax/ajax_preference.php +++ b/include/ajax/ajax_preference.php @@ -22,13 +22,6 @@ * it permits to change the user preferences */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/user.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iperiod.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_report.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/exercice.class.php'; -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; global $g_user; diff --git a/include/ajax/ajax_remove_submenu.php b/include/ajax/ajax_remove_submenu.php index 209295d89..3d0ac275a 100644 --- a/include/ajax/ajax_remove_submenu.php +++ b/include/ajax/ajax_remove_submenu.php @@ -25,7 +25,6 @@ if ( ! defined ('ALLOWED') ) die(_('Non autorisé')); -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); // Security diff --git a/include/ajax/ajax_report_definition.php b/include/ajax/ajax_report_definition.php index 33139269d..5fbdc57be 100644 --- a/include/ajax/ajax_report_definition.php +++ b/include/ajax/ajax_report_definition.php @@ -43,7 +43,6 @@ if ($sa =="acc_report_mtable") die("invalid data"); } - require_once NOALYSS_INCLUDE."/class/acc_report_mtable.class.php"; $acc_report=Acc_Report_MTable::build($id, $form_def); $acc_report->set_object_name($ctl); diff --git a/include/ajax/ajax_save_card_option.php b/include/ajax/ajax_save_card_option.php index 58457d431..51262e5cb 100644 --- a/include/ajax/ajax_save_card_option.php +++ b/include/ajax/ajax_save_card_option.php @@ -21,7 +21,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/follow_up_other_concerned.class.php"; /** * @file * @brief save option of card into action_person_option diff --git a/include/ajax/ajax_save_predf_op.php b/include/ajax/ajax_save_predf_op.php index 8e463b02e..a87f1edd8 100644 --- a/include/ajax/ajax_save_predf_op.php +++ b/include/ajax/ajax_save_predf_op.php @@ -25,8 +25,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/operation_predef_mtable.class.php'; $http=new HttpInput(); diff --git a/include/ajax/ajax_search_action.php b/include/ajax/ajax_search_action.php index 9c21b5a0a..a0d36009f 100755 --- a/include/ajax/ajax_search_action.php +++ b/include/ajax/ajax_search_action.php @@ -21,9 +21,7 @@ * \brief Search module */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; include_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; $_REQUEST['ac']='FOLLOW'; diff --git a/include/ajax/ajax_search_add_tag.php b/include/ajax/ajax_search_add_tag.php index b3697ae4e..c6186452a 100644 --- a/include/ajax/ajax_search_add_tag.php +++ b/include/ajax/ajax_search_add_tag.php @@ -25,7 +25,6 @@ if (!defined('ALLOWED')) * @brief add tag , used for follow up * @see Tag */ -require_once NOALYSS_INCLUDE.'/class/tag_action.class.php'; //Single Tag ob_start(); if ($_GET['clear']==1) diff --git a/include/ajax/ajax_search_clear_tag.php b/include/ajax/ajax_search_clear_tag.php index 95ab181c5..3863a87f3 100644 --- a/include/ajax/ajax_search_clear_tag.php +++ b/include/ajax/ajax_search_clear_tag.php @@ -24,7 +24,6 @@ if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); *@see Tag */ -require_once NOALYSS_INCLUDE.'/class/tag_action.class.php'; ob_start(); echo Tag_Action::select_tag_search($_GET['pref']); $response= ob_get_clean(); diff --git a/include/ajax/ajax_search_display_tag.php b/include/ajax/ajax_search_display_tag.php index a4ced329b..86389adab 100644 --- a/include/ajax/ajax_search_display_tag.php +++ b/include/ajax/ajax_search_display_tag.php @@ -24,8 +24,6 @@ if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); *@see Tag */ -require_once NOALYSS_INCLUDE.'/class/tag_action.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag_operation.class.php'; try { $caller_obj=$http->request("caller_obj"); diff --git a/include/ajax/ajax_search_filter.php b/include/ajax/ajax_search_filter.php index 305142289..1d58a86ed 100644 --- a/include/ajax/ajax_search_filter.php +++ b/include/ajax/ajax_search_filter.php @@ -22,9 +22,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require NOALYSS_INCLUDE.'/database/user_filter_sql.class.php'; -require NOALYSS_INCLUDE.'/class/acc_ledger_search.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag_operation.class.php'; $cn=Dossier::connect(); $dossier_id=Dossier::id(); global $g_user; diff --git a/include/ajax/ajax_search_operation.php b/include/ajax/ajax_search_operation.php index 4ab531258..afc86d173 100644 --- a/include/ajax/ajax_search_operation.php +++ b/include/ajax/ajax_search_operation.php @@ -23,18 +23,14 @@ */ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_search.class.php'; global $http; $gDossier=dossier::id(); -require_once NOALYSS_INCLUDE.'/class/database.class.php'; /* Admin. Dossier */ $cn=Dossier::connect(); -require_once NOALYSS_INCLUDE.'/class/user.class.php'; // display a search box diff --git a/include/ajax/ajax_tag_detail.php b/include/ajax/ajax_tag_detail.php index a05bb3e80..50023859b 100644 --- a/include/ajax/ajax_tag_detail.php +++ b/include/ajax/ajax_tag_detail.php @@ -7,8 +7,6 @@ //see licence.txt if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/lib/single_record.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag.class.php'; ob_start(); $tag=new Tag($cn); $http=new HttpInput(); diff --git a/include/ajax/ajax_tag_group.php b/include/ajax/ajax_tag_group.php index 7da3aa46a..b433e43b6 100644 --- a/include/ajax/ajax_tag_group.php +++ b/include/ajax/ajax_tag_group.php @@ -27,7 +27,6 @@ if ( $g_user->check_module('CFGTAG') == 0 ) { exit(); } -require_once NOALYSS_INCLUDE."/class/tag_group_mtable.class.php"; /** * @file * @brief Manage the group of tags diff --git a/include/ajax/ajax_tag_list.php b/include/ajax/ajax_tag_list.php index 0babe10a0..9b00c20b4 100644 --- a/include/ajax/ajax_tag_list.php +++ b/include/ajax/ajax_tag_list.php @@ -23,7 +23,6 @@ */ if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/tag_action.class.php'; ob_start(); $tag=new Tag_Action($cn); $tag->select(); diff --git a/include/ajax/ajax_tag_save.php b/include/ajax/ajax_tag_save.php index d52b39614..c79abbf3f 100644 --- a/include/ajax/ajax_tag_save.php +++ b/include/ajax/ajax_tag_save.php @@ -18,7 +18,6 @@ if ( $g_user->check_module('CFGTAG')==0 && $g_user->check_action(TAGADD) == 0) } -require_once NOALYSS_INCLUDE.'/class/tag.class.php'; //Save a tag if ($op=='tag_save') diff --git a/include/ajax/ajax_tag_select_search.php b/include/ajax/ajax_tag_select_search.php index f103a4f43..7b4c9d994 100644 --- a/include/ajax/ajax_tag_select_search.php +++ b/include/ajax/ajax_tag_select_search.php @@ -23,7 +23,6 @@ if ( !defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); *@brief Show the tags to select *@see Tag */ -require_once NOALYSS_INCLUDE.'/class/tag_action.class.php'; ob_start(); $tag=new Tag_Action($cn); $tag->select_search(); diff --git a/include/ajax/ajax_tag_set_group.php b/include/ajax/ajax_tag_set_group.php index 4d3634830..255953ab9 100644 --- a/include/ajax/ajax_tag_set_group.php +++ b/include/ajax/ajax_tag_set_group.php @@ -22,7 +22,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/tag_group_mtable.class.php"; /** * @file diff --git a/include/ajax/ajax_template_cat_card.php b/include/ajax/ajax_template_cat_card.php index b5bd8e41d..a1ed35bf5 100644 --- a/include/ajax/ajax_template_cat_card.php +++ b/include/ajax/ajax_template_cat_card.php @@ -27,7 +27,6 @@ if (!defined('ALLOWED')) * @brief Manage the template of category of card */ -require_once NOALYSS_INCLUDE."/class/template_card_category.class.php"; /** * ajax_template_cat_card add security , accessible only for CFGCARDCAT */ diff --git a/include/ajax/ajax_todo_list.php b/include/ajax/ajax_todo_list.php index 7a8c980b2..85553c88c 100644 --- a/include/ajax/ajax_todo_list.php +++ b/include/ajax/ajax_todo_list.php @@ -34,12 +34,7 @@ * - i id */ if ( ! defined ('ALLOWED') ) die (_('Aucun accès direct')); -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/todo_list.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; mb_internal_encoding("UTF-8"); -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); $cn= Dossier::connect(); diff --git a/include/ajax/ajax_tva_parameter.php b/include/ajax/ajax_tva_parameter.php index 8be4577bb..1e396ada0 100644 --- a/include/ajax/ajax_tva_parameter.php +++ b/include/ajax/ajax_tva_parameter.php @@ -27,7 +27,6 @@ if (!defined('ALLOWED')) * @brief * @param type $name Descriptionara */ -require_once NOALYSS_INCLUDE."/class/tva_rate_mtable.class.php"; if ( $g_user->check_module('CFGTVA') ==0 ) { diff --git a/include/ajax/ajax_update_payment.php b/include/ajax/ajax_update_payment.php index d65807ec9..3e9839191 100644 --- a/include/ajax/ajax_update_payment.php +++ b/include/ajax/ajax_update_payment.php @@ -26,7 +26,6 @@ * -l for the ledger */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; $ledger=new Acc_Ledger($cn,$l); echo $ledger->input_paid(1); ?> diff --git a/include/ajax/ajax_update_predef.php b/include/ajax/ajax_update_predef.php index 89b8e9834..aa78c22a5 100644 --- a/include/ajax/ajax_update_predef.php +++ b/include/ajax/ajax_update_predef.php @@ -29,9 +29,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; // Check if the needed field does exist extract ($_GET, EXTR_SKIP); diff --git a/include/ajax/ajax_user_security.php b/include/ajax/ajax_user_security.php index 43d8e37dd..d7d4985d4 100644 --- a/include/ajax/ajax_user_security.php +++ b/include/ajax/ajax_user_security.php @@ -23,11 +23,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/inum.class.php'; -require_once NOALYSS_INCLUDE.'/lib/inplace_edit.class.php'; -require_once NOALYSS_INCLUDE.'/lib/inplace_switch.class.php'; /** * @file diff --git a/include/ajax/ajax_view_action.php b/include/ajax/ajax_view_action.php index 438d605c7..fa68d473a 100644 --- a/include/ajax/ajax_view_action.php +++ b/include/ajax/ajax_view_action.php @@ -27,8 +27,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); ob_start(); -require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; -require_once NOALYSS_INCLUDE.'/class/default_menu.class.php'; echo HtmlInput::title_box(_("Détail action"), $div,"close","","y"); $act = new Follow_Up($cn); diff --git a/include/ajax/ajax_view_mod_stock.php b/include/ajax/ajax_view_mod_stock.php index b0f612446..8cc487f23 100644 --- a/include/ajax/ajax_view_mod_stock.php +++ b/include/ajax/ajax_view_mod_stock.php @@ -25,7 +25,6 @@ * @brief show detail of inv. * */ -require_once NOALYSS_INCLUDE.'/class/stock_goods.class.php'; if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); $st=new Stock_Goods($cn); diff --git a/include/anc_acc_balance.inc.php b/include/anc_acc_balance.inc.php index 646376f84..afebdd0e4 100644 --- a/include/anc_acc_balance.inc.php +++ b/include/anc_acc_balance.inc.php @@ -6,7 +6,6 @@ * @brief Module Balance Accountancy - Analyc */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_acc_list.class.php'; echo '
'; $tab = new Anc_Acc_List($cn); $tab->get_request(); diff --git a/include/anc_acc_table.inc.php b/include/anc_acc_table.inc.php index af9c18d9a..454f14646 100644 --- a/include/anc_acc_table.inc.php +++ b/include/anc_acc_table.inc.php @@ -7,7 +7,6 @@ * Analytic */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_table.class.php'; $tab = new Anc_Table($cn); $tab->get_request(); echo ''; diff --git a/include/anc_balance_double.inc.php b/include/anc_balance_double.inc.php index 6b56ec8f5..c52f46405 100644 --- a/include/anc_balance_double.inc.php +++ b/include/anc_balance_double.inc.php @@ -7,7 +7,6 @@ *@see Anc_Balance_Double */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_balance_double.class.php'; $bc = new Anc_Balance_Double($cn); $bc->get_request(); echo ''; diff --git a/include/anc_balance_simple.inc.php b/include/anc_balance_simple.inc.php index af25310c4..705347eca 100644 --- a/include/anc_balance_simple.inc.php +++ b/include/anc_balance_simple.inc.php @@ -7,7 +7,6 @@ * @see Anc_Balance_Simple */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_balance_simple.class.php'; $bs = new Anc_Balance_Simple($cn); $bs->get_request(); echo ''; diff --git a/include/anc_great_ledger.inc.php b/include/anc_great_ledger.inc.php index 13ca0e185..5e3c353e4 100644 --- a/include/anc_great_ledger.inc.php +++ b/include/anc_great_ledger.inc.php @@ -9,7 +9,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); echo '
'; global $http; -require_once NOALYSS_INCLUDE.'/class/anc_grandlivre.class.php'; $cn=Dossier::connect(); $grandLivre=new Anc_Grandlivre($cn); diff --git a/include/anc_group.inc.php b/include/anc_group.inc.php index ed11af56a..c4b5ffdd3 100644 --- a/include/anc_group.inc.php +++ b/include/anc_group.inc.php @@ -24,9 +24,6 @@ * */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_group.class.php'; $r=new Anc_Group($cn); diff --git a/include/anc_group_balance.inc.php b/include/anc_group_balance.inc.php index de1f1b61b..b145f3f97 100644 --- a/include/anc_group_balance.inc.php +++ b/include/anc_group_balance.inc.php @@ -7,7 +7,6 @@ * @see Anc_Group */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_group.class.php'; $gr = new Anc_Group($cn); $gr->get_request(); diff --git a/include/anc_history.inc.php b/include/anc_history.inc.php index 505927ede..c6e52b99a 100644 --- a/include/anc_history.inc.php +++ b/include/anc_history.inc.php @@ -9,7 +9,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_listing.class.php'; $list = new Anc_Listing($cn); $list->get_request(); diff --git a/include/anc_key.inc.php b/include/anc_key.inc.php index 7298ca5a5..60d11397c 100644 --- a/include/anc_key.inc.php +++ b/include/anc_key.inc.php @@ -29,7 +29,6 @@ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); global $cn, $g_user; -require_once NOALYSS_INCLUDE.'/class/anc_key.class.php'; global $http; $op=$http->request("op", "string", "list"); diff --git a/include/anc_od.inc.php b/include/anc_od.inc.php index 2924e1700..86697ce7f 100644 --- a/include/anc_od.inc.php +++ b/include/anc_od.inc.php @@ -26,12 +26,6 @@ * */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_group_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/exercice.class.php'; global $g_user; $http=new HttpInput(); diff --git a/include/anc_pa.inc.php b/include/anc_pa.inc.php index f16170804..b77026234 100644 --- a/include/anc_pa.inc.php +++ b/include/anc_pa.inc.php @@ -27,10 +27,7 @@ */ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_account_table.class.php'; require_once NOALYSS_INCLUDE.'/database/poste_analytique_sql.class.php'; -require_once NOALYSS_INCLUDE.'/lib/inplace_edit.class.php'; $ret=""; $str_dossier=Dossier::get(); diff --git a/include/backup.inc.php b/include/backup.inc.php index 05e3f323f..6c2667f9c 100644 --- a/include/backup.inc.php +++ b/include/backup.inc.php @@ -20,7 +20,6 @@ * \brief Make and restore backup */ if ( !defined("ALLOWED")) { die (_("Non autorisé")); } - require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); diff --git a/include/balance.inc.php b/include/balance.inc.php index 5591fb181..339bad1cf 100644 --- a/include/balance.inc.php +++ b/include/balance.inc.php @@ -26,13 +26,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); include_once NOALYSS_INCLUDE.'/lib/ac_common.php'; include_once NOALYSS_INCLUDE.'/class/acc_balance.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icheckbox.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/exercice.class.php'; global $g_user, $http; $gDossier=dossier::id(); // Get the exercice diff --git a/include/balance_age.inc.php b/include/balance_age.inc.php index e0d5ed749..0e17ac930 100644 --- a/include/balance_age.inc.php +++ b/include/balance_age.inc.php @@ -73,7 +73,6 @@ $w_lettre->selected=$let; ?> get('f_id',"number"); diff --git a/include/bank.inc.php b/include/bank.inc.php index d64f2b5f0..aded35f39 100644 --- a/include/bank.inc.php +++ b/include/bank.inc.php @@ -21,10 +21,6 @@ * the supplier 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/bank.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php'; global $g_user , $http; $low_action=$http->request('sb',"string",'list'); diff --git a/include/calendar.inc.php b/include/calendar.inc.php index 3fd8070d5..17c671df6 100644 --- a/include/calendar.inc.php +++ b/include/calendar.inc.php @@ -8,7 +8,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/calendar.class.php'; $cal=new Calendar(); $cal->default_periode=(isset ($_GET['in']))?$_GET['in']:$g_user->get_periode(); diff --git a/include/card_attr.inc.php b/include/card_attr.inc.php index c098f7b0b..b4176d2be 100644 --- a/include/card_attr.inc.php +++ b/include/card_attr.inc.php @@ -23,7 +23,6 @@ * \brief Manage the attributs ,CFGATCARD */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/card_attribut_mtable.class.php'; $obj=new Fiche_Attr($cn); $mtable=new Card_Attribut_MTable($obj); diff --git a/include/category_card.inc.php b/include/category_card.inc.php index 63bceb8da..a5d4a6f62 100644 --- a/include/category_card.inc.php +++ b/include/category_card.inc.php @@ -28,7 +28,6 @@ */ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/contact.class.php'; global $http; diff --git a/include/category_detail.inc.php b/include/category_detail.inc.php index e3256bc06..b13c91292 100644 --- a/include/category_detail.inc.php +++ b/include/category_detail.inc.php @@ -32,7 +32,6 @@ // Save modification //--------------------------------------------------------------------------- if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/customer.class.php'; global $http; $f_id=$http->request('f_id','number'); diff --git a/include/category_followup.inc.php b/include/category_followup.inc.php index 37e9ac803..666ba8a18 100644 --- a/include/category_followup.inc.php +++ b/include/category_followup.inc.php @@ -27,7 +27,6 @@ * - $cn = database connection */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; global $http; /** *\note problem with ShowActionList, this function is local diff --git a/include/category_operation.inc.php b/include/category_operation.inc.php index 4a20ba04d..c1008f103 100644 --- a/include/category_operation.inc.php +++ b/include/category_operation.inc.php @@ -29,7 +29,6 @@ * - $ss_action */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; global $http; $f=new Fiche($cn,$http->request('f_id',"number")); diff --git a/include/cfg_action.inc.php b/include/cfg_action.inc.php index 77a29baef..0b8ecbc98 100644 --- a/include/cfg_action.inc.php +++ b/include/cfg_action.inc.php @@ -27,7 +27,6 @@ // show list of document if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/action_document_type_mtable.class.php"; echo '
'; $doc_type=new Document_type_SQL($cn); $action_document_type=new Action_Document_Type_MTable($doc_type); diff --git a/include/cfgfiche.inc.php b/include/cfgfiche.inc.php index 6955015cc..bd44c731b 100644 --- a/include/cfgfiche.inc.php +++ b/include/cfgfiche.inc.php @@ -22,15 +22,7 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_menu.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/lib/sort_table.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php'; -require_once NOALYSS_INCLUDE.'/lib/single_record.class.php'; global $http; $retour=HtmlInput::button_anchor("Retour à la liste", HtmlInput::get_to_string(array("gDossier","ac"))); diff --git a/include/cfgledger.inc.php b/include/cfgledger.inc.php index fe8ea120e..aee29ec83 100644 --- a/include/cfgledger.inc.php +++ b/include/cfgledger.inc.php @@ -27,12 +27,8 @@ * */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_menu.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; $gDossier=dossier::id(); global $cn; diff --git a/include/cfgplugin.inc.php b/include/cfgplugin.inc.php index 6dcb39734..1887ff9f5 100644 --- a/include/cfgplugin.inc.php +++ b/include/cfgplugin.inc.php @@ -19,7 +19,6 @@ // Copyright (2014) Author Dany De Bontridder if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/extension.class.php'; /** * @file diff --git a/include/cfgtags.inc.php b/include/cfgtags.inc.php index 9a6188597..f29ab1410 100644 --- a/include/cfgtags.inc.php +++ b/include/cfgtags.inc.php @@ -25,11 +25,6 @@ if (!defined('ALLOWED')) * @brief Manage the tags * */ -require_once NOALYSS_INCLUDE.'/class/tag.class.php'; -require_once NOALYSS_INCLUDE.'/lib/single_record.class.php'; -require_once NOALYSS_INCLUDE."/lib/html_tab.class.php"; -require_once NOALYSS_INCLUDE."/lib/output_html_tab.class.php"; -require_once NOALYSS_INCLUDE."/class/tag_group_mtable.class.php"; /* * ***************************************************************************** * Tags diff --git a/include/class/acc_account.class.php b/include/class/acc_account.class.php index 8f4192712..1f28ce976 100644 --- a/include/class/acc_account.class.php +++ b/include/class/acc_account.class.php @@ -23,9 +23,6 @@ /*! * \brief Manage the account from the table tmp_pcmn */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/database/tmp_pcmn_sql.class.php'; class Acc_Account diff --git a/include/class/acc_account_ledger.class.php b/include/class/acc_account_ledger.class.php index 7809fbaf5..8f34325b6 100644 --- a/include/class/acc_account_ledger.class.php +++ b/include/class/acc_account_ledger.class.php @@ -23,9 +23,6 @@ /*! * \brief Manage the account from the table jrn, jrnx or tmp_pcmn */ -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; class Acc_Account_Ledger { diff --git a/include/class/acc_balance.class.php b/include/class/acc_balance.class.php index 58b085824..b9c5df774 100644 --- a/include/class/acc_balance.class.php +++ b/include/class/acc_balance.class.php @@ -23,7 +23,6 @@ /*! * \brief Class for manipulating data to print the balance of account */ -require_once NOALYSS_INCLUDE.'/class/acc_account.class.php'; class Acc_Balance { diff --git a/include/class/acc_bilan.class.php b/include/class/acc_bilan.class.php index a7d605af8..dcae0b861 100644 --- a/include/class/acc_bilan.class.php +++ b/include/class/acc_bilan.class.php @@ -23,12 +23,7 @@ * \brief this class handle the different bilan, from the table bilan * */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/lib/impress.class.php'; require_once NOALYSS_INCLUDE.'/header_print.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; /*! * \brief this class handle the different bilan, from the table bilan, parse the form and replace diff --git a/include/class/acc_ledger.class.php b/include/class/acc_ledger.class.php index 07453dbc0..7aaf71268 100644 --- a/include/class/acc_ledger.class.php +++ b/include/class/acc_ledger.class.php @@ -18,39 +18,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/input_switch.class.php'; -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icheckbox.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iperiod.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_op_advanced.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_reconciliation.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/gestion_purchase.class.php'; -require_once NOALYSS_INCLUDE.'/class/gestion_sold.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/lib/inum.class.php'; -require_once NOALYSS_INCLUDE.'/class/lettering.class.php'; -require_once NOALYSS_INCLUDE.'/lib/sort_table.class.php'; require_once NOALYSS_INCLUDE.'/database/jrn_def_sql.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_payment.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_history.class.php'; -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_currency.class.php'; require_once NOALYSS_INCLUDE.'/database/operation_currency_sql.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_op_ods.class.php'; -require_once NOALYSS_INCLUDE.'/class/html_input_noalyss.class.php'; /** \file * @brief Class for jrn, class acc_ledger for manipulating the ledger diff --git a/include/class/acc_ledger_fin.class.php b/include/class/acc_ledger_fin.class.php index 8ee6a25c7..36ec0cdd3 100644 --- a/include/class/acc_ledger_fin.class.php +++ b/include/class/acc_ledger_fin.class.php @@ -24,17 +24,7 @@ * \brief the class Acc_Ledger_Fin inherits from Acc_Ledger, this * object permit to manage the financial ledger */ -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ifile.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/acc_reconciliation.class.php'; class Acc_Ledger_Fin extends Acc_Ledger { diff --git a/include/class/acc_ledger_history.class.php b/include/class/acc_ledger_history.class.php index 4d3a5a383..1a1c16e99 100644 --- a/include/class/acc_ledger_history.class.php +++ b/include/class/acc_ledger_history.class.php @@ -24,11 +24,6 @@ * @brief display or export operations in HTML , PDF or CSV * */ -require_once NOALYSS_INCLUDE."/class/acc_ledger_history_generic.class.php"; -require_once NOALYSS_INCLUDE."/class/acc_ledger_history_sale.class.php"; -require_once NOALYSS_INCLUDE."/class/acc_ledger_history_purchase.class.php"; -require_once NOALYSS_INCLUDE."/class/acc_ledger_history_financial.class.php"; -require_once NOALYSS_INCLUDE."/class/prepared_query.class.php"; /** * @brief Display history of operation * @see acc_ledger_historyTest.php diff --git a/include/class/acc_ledger_history_financial.class.php b/include/class/acc_ledger_history_financial.class.php index 93cdb7e33..babae58cb 100644 --- a/include/class/acc_ledger_history_financial.class.php +++ b/include/class/acc_ledger_history_financial.class.php @@ -25,7 +25,6 @@ * @brief display financial operations in HTML , PDF or CSV * */ -require_once NOALYSS_INCLUDE."/class/acc_ledger_history.class.php"; class Acc_Ledger_History_Financial extends Acc_Ledger_History { diff --git a/include/class/acc_ledger_history_purchase.class.php b/include/class/acc_ledger_history_purchase.class.php index 3629c9f14..fa439e0ca 100644 --- a/include/class/acc_ledger_history_purchase.class.php +++ b/include/class/acc_ledger_history_purchase.class.php @@ -24,7 +24,6 @@ * @brief class Acc_Ledger_History_Purchase , list of operations * * display or export operations in HTML , PDF or CSV */ -require_once NOALYSS_INCLUDE."/class/acc_ledger_history.class.php"; /** * @brief Display the operations for Purchase diff --git a/include/class/acc_ledger_history_sale.class.php b/include/class/acc_ledger_history_sale.class.php index d4669a95b..49c00efc7 100644 --- a/include/class/acc_ledger_history_sale.class.php +++ b/include/class/acc_ledger_history_sale.class.php @@ -24,7 +24,6 @@ * @brief Acc_Ledger_History : Manage the list (history) of operations for display * display or export operations in HTML , PDF or CSV */ -require_once NOALYSS_INCLUDE."/class/acc_ledger_history.class.php"; /** * @brief Acc_Ledger_History : Manage the list (history) of operations for display diff --git a/include/class/acc_ledger_info.class.php b/include/class/acc_ledger_info.class.php index be9e9ea1d..b67b97163 100644 --- a/include/class/acc_ledger_info.class.php +++ b/include/class/acc_ledger_info.class.php @@ -18,8 +18,6 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; /*!\file diff --git a/include/class/acc_ledger_purchase.class.php b/include/class/acc_ledger_purchase.class.php index b6590f17c..feca5353b 100644 --- a/include/class/acc_ledger_purchase.class.php +++ b/include/class/acc_ledger_purchase.class.php @@ -22,25 +22,8 @@ /*!\file * \brief class for the purchase, herits from acc_ledger */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iperiod.class.php'; -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ifile.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_compute.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; -require_once NOALYSS_INCLUDE.'/class/acc_parm_code.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_payment.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/lib/itva_popup.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_info.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php'; -require_once NOALYSS_INCLUDE.'/class/stock_goods.class.php'; /*!\brief Handle the ledger of purchase, diff --git a/include/class/acc_ledger_search.class.php b/include/class/acc_ledger_search.class.php index b59a5fe8e..ccb64b466 100644 --- a/include/class/acc_ledger_search.class.php +++ b/include/class/acc_ledger_search.class.php @@ -21,7 +21,6 @@ // if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE."/class/tag_operation.class.php"; /** * @file diff --git a/include/class/acc_ledger_sold.class.php b/include/class/acc_ledger_sold.class.php index 2b1cf3717..34c4d82c2 100644 --- a/include/class/acc_ledger_sold.class.php +++ b/include/class/acc_ledger_sold.class.php @@ -24,24 +24,8 @@ * \file * \brief class for the sold, herits from acc_ledger */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ifile.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_compute.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; -require_once NOALYSS_INCLUDE.'/class/acc_payment.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itva_popup.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php'; -require_once NOALYSS_INCLUDE.'/class/stock_goods.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; /*! * \brief Handle the ledger of sold, diff --git a/include/class/acc_operation.class.php b/include/class/acc_operation.class.php index f17056aa8..07f603eff 100644 --- a/include/class/acc_operation.class.php +++ b/include/class/acc_operation.class.php @@ -23,9 +23,6 @@ * \brief this file match the tables jrn & jrnx the purpose is to * remove or save accountant writing to these table. */ -require_once NOALYSS_INCLUDE.'/class/user.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_operation.class.php'; /*! * \brief this file match the tables jrn & jrnx the purpose is to diff --git a/include/class/acc_parm_code.class.php b/include/class/acc_parm_code.class.php index f140ef4f2..2e445ee5d 100644 --- a/include/class/acc_parm_code.class.php +++ b/include/class/acc_parm_code.class.php @@ -25,8 +25,6 @@ * \brief Manage the table parm_code which contains the custom parameter * for the module accountancy */ -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; class Acc_Parm_Code { diff --git a/include/class/acc_payment.class.php b/include/class/acc_payment.class.php index 9b156b40c..a35f2b8b0 100644 --- a/include/class/acc_payment.class.php +++ b/include/class/acc_payment.class.php @@ -22,14 +22,7 @@ /*!\file * \brief Handle the table payment_method */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php'; require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; /*!\brief Handle the table payment_method *\note the private data member are accessed via diff --git a/include/class/acc_plan_mtable.class.php b/include/class/acc_plan_mtable.class.php index f2a634a1a..f8dd447b0 100644 --- a/include/class/acc_plan_mtable.class.php +++ b/include/class/acc_plan_mtable.class.php @@ -26,7 +26,6 @@ * */ require_once NOALYSS_INCLUDE.'/database/acc_plan_sql.class.php'; -require_once NOALYSS_INCLUDE.'/lib/manage_table_sql.class.php'; /** * @brief this instance extends Manage_Table_SQL and aims to manage * the Table tmp_pcmn thanks a web interface (add , delete, display...) diff --git a/include/class/acc_reconciliation.class.php b/include/class/acc_reconciliation.class.php index 31dc07f06..91f83478d 100644 --- a/include/class/acc_reconciliation.class.php +++ b/include/class/acc_reconciliation.class.php @@ -24,10 +24,6 @@ * must use it * */ -require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/lettering.class.php'; /*! \brief new class for managing the reconciliation it must be used * instead of the function InsertRapt, ... @@ -459,7 +455,6 @@ j1.j_poste as poste */ function export_csv($p_choice) { - require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php'; $export=new Noalyss_Csv(_('rapprochement')); $export->send_header(); diff --git a/include/class/acc_report.class.php b/include/class/acc_report.class.php index 27ee50484..750dd3c70 100644 --- a/include/class/acc_report.class.php +++ b/include/class/acc_report.class.php @@ -21,9 +21,6 @@ * \brief Create, view, modify and parse report */ -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php'; -require_once NOALYSS_INCLUDE.'/lib/impress.class.php'; require_once NOALYSS_INCLUDE.'/database/form_detail_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/form_definition_sql.class.php'; diff --git a/include/class/acc_report_mtable.class.php b/include/class/acc_report_mtable.class.php index 29ab91a52..7ff792cea 100644 --- a/include/class/acc_report_mtable.class.php +++ b/include/class/acc_report_mtable.class.php @@ -19,9 +19,7 @@ */ // Copyright (2002-2021) Author Dany De Bontridder -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; require_once NOALYSS_INCLUDE.'/database/form_detail_sql.class.php'; -require_once NOALYSS_INCLUDE."/lib/impress.class.php"; /** * @file * @brief manage simple report diff --git a/include/class/acc_tva.class.php b/include/class/acc_tva.class.php index 27b402990..17ee87f96 100644 --- a/include/class/acc_tva.class.php +++ b/include/class/acc_tva.class.php @@ -22,8 +22,6 @@ /*!\file * \brief this class is used for the table tva_rate */ -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; /*!\brief Acc_Tva is used for to map the table tva_rate * parameter are diff --git a/include/class/action_document_type_mtable.class.php b/include/class/action_document_type_mtable.class.php index 3443c6a84..ceab05006 100644 --- a/include/class/action_document_type_mtable.class.php +++ b/include/class/action_document_type_mtable.class.php @@ -23,7 +23,6 @@ * @brief display and allow to update , add , delete document_type for the follow up * */ -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; require_once NOALYSS_INCLUDE."/database/document_type_sql.class.php"; /** diff --git a/include/class/admin.class.php b/include/class/admin.class.php index 77216692b..e22468b5b 100644 --- a/include/class/admin.class.php +++ b/include/class/admin.class.php @@ -18,11 +18,7 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_parm_code.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \file * \brief Derived from class fiche Administration are a specific kind of card diff --git a/include/class/anc_acc_link.class.php b/include/class/anc_acc_link.class.php index 345363a3c..4a5b187ff 100644 --- a/include/class/anc_acc_link.class.php +++ b/include/class/anc_acc_link.class.php @@ -22,7 +22,6 @@ /*!\file * \brief link between accountancy and analytic, like table but as a listing */ -require_once NOALYSS_INCLUDE.'/class/anc_print.class.php'; class Anc_Acc_Link extends Anc_Print { diff --git a/include/class/anc_acc_list.class.php b/include/class/anc_acc_list.class.php index 7ac6acf27..a93a76df7 100644 --- a/include/class/anc_acc_list.class.php +++ b/include/class/anc_acc_list.class.php @@ -23,7 +23,6 @@ * \brief */ -require_once NOALYSS_INCLUDE.'/class/anc_acc_link.class.php'; class Anc_Acc_List extends Anc_Acc_Link { diff --git a/include/class/anc_account_table.class.php b/include/class/anc_account_table.class.php index 3e816e676..0363ddd01 100644 --- a/include/class/anc_account_table.class.php +++ b/include/class/anc_account_table.class.php @@ -31,7 +31,6 @@ if (!defined('ALLOWED')) * @class Anc_Account_Table * @brief derived from Manage_Table_SQL , */ -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; require_once NOALYSS_INCLUDE.'/database/poste_analytique_sql.class.php'; class Anc_Account_Table extends Manage_Table_SQL diff --git a/include/class/anc_balance_double.class.php b/include/class/anc_balance_double.class.php index f2cb55d21..feec65727 100644 --- a/include/class/anc_balance_double.class.php +++ b/include/class/anc_balance_double.class.php @@ -24,13 +24,6 @@ *@brief Print the crossed balance between 2 plan */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_print.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; -require_once NOALYSS_INCLUDE.'/class/pdf.class.php'; /** * @class Anc_Balance_Double * @brief Print the crossed balance between 2 plan diff --git a/include/class/anc_balance_simple.class.php b/include/class/anc_balance_simple.class.php index 8419c674c..80bc60968 100644 --- a/include/class/anc_balance_simple.class.php +++ b/include/class/anc_balance_simple.class.php @@ -23,11 +23,7 @@ \brief manage the simple balance for CA, inherit from balance_ca */ -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_print.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/pdfbalance_simple.class.php'; require_once NOALYSS_INCLUDE.'/header_print.php'; /*! \brief manage the simple balance for CA, inherit from balance_ca * diff --git a/include/class/anc_grandlivre.class.php b/include/class/anc_grandlivre.class.php index 884327247..01cde7809 100644 --- a/include/class/anc_grandlivre.class.php +++ b/include/class/anc_grandlivre.class.php @@ -22,9 +22,6 @@ /*!\file * \brief show the Grand Livre for analytic */ -require_once NOALYSS_INCLUDE.'/class/anc_print.class.php'; -require_once NOALYSS_INCLUDE.'/lib/impress.class.php'; -require_once NOALYSS_INCLUDE."/lib/select_box.class.php"; class Anc_GrandLivre extends Anc_Print { diff --git a/include/class/anc_group.class.php b/include/class/anc_group.class.php index 34f5cfba1..599156867 100644 --- a/include/class/anc_group.class.php +++ b/include/class/anc_group.class.php @@ -23,10 +23,7 @@ * \brief class for the group of the analytic account * */ -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_print.class.php'; /*! \brief class for the group of the analytic account * diff --git a/include/class/anc_group_operation.class.php b/include/class/anc_group_operation.class.php index b0058ef71..67dc0cab2 100644 --- a/include/class/anc_group_operation.class.php +++ b/include/class/anc_group_operation.class.php @@ -26,14 +26,6 @@ /*! \brief group of object operations, used for misc operation * */ -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icheckbox.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; class Anc_Group_Operation { diff --git a/include/class/anc_listing.class.php b/include/class/anc_listing.class.php index 80e35f266..4e4aa8b43 100644 --- a/include/class/anc_listing.class.php +++ b/include/class/anc_listing.class.php @@ -23,10 +23,6 @@ * \brief definition of Anc_Listing */ -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_print.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php'; /*! * \brief manage the CA listing * diff --git a/include/class/anc_operation.class.php b/include/class/anc_operation.class.php index 505b393b3..d4c5c0eec 100644 --- a/include/class/anc_operation.class.php +++ b/include/class/anc_operation.class.php @@ -22,11 +22,6 @@ /*!\file *\brief definition of Anc_Operation */ -require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \brief this class is used to show the form for entering an diff --git a/include/class/anc_plan.class.php b/include/class/anc_plan.class.php index fb5b69f21..5a0de039f 100644 --- a/include/class/anc_plan.class.php +++ b/include/class/anc_plan.class.php @@ -26,12 +26,8 @@ /*! \brief * Concerns the Analytic plan (table plan_analytique) */ -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/database/poste_analytique_sql.class.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; class Anc_Plan { diff --git a/include/class/anc_print.class.php b/include/class/anc_print.class.php index 9f72e499c..e16271edd 100644 --- a/include/class/anc_print.class.php +++ b/include/class/anc_print.class.php @@ -27,16 +27,7 @@ * * */ -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ibutton.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; -require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ianccard.class.php'; class Anc_Print { var $db; /*!< $db database connection */ diff --git a/include/class/anc_table.class.php b/include/class/anc_table.class.php index d08c92b54..c7f000715 100644 --- a/include/class/anc_table.class.php +++ b/include/class/anc_table.class.php @@ -22,7 +22,6 @@ /*!\file * \brief object to show a table: link between accountancy and analytic */ -require_once NOALYSS_INCLUDE.'/class/anc_acc_link.class.php'; class Anc_Table extends Anc_Acc_Link { diff --git a/include/class/anticipation.class.php b/include/class/anticipation.class.php index 694543b80..cb9f24b68 100644 --- a/include/class/anticipation.class.php +++ b/include/class/anticipation.class.php @@ -29,13 +29,7 @@ * @see Forecast Forecast_Cat Forecast_Item * */ -require_once NOALYSS_INCLUDE . '/class/forecast.class.php'; -require_once NOALYSS_INCLUDE . '/class/fiche.class.php'; -require_once NOALYSS_INCLUDE . '/class/acc_account_ledger.class.php'; -require_once NOALYSS_INCLUDE . '/class/periode.class.php'; -require_once NOALYSS_INCLUDE . '/lib/impress.class.php'; require_once NOALYSS_INCLUDE . '/database/forecast_sql.class.php'; -require_once NOALYSS_INCLUDE . '/class/forecast_category_mtable.class.php'; class Anticipation { diff --git a/include/class/balance_age.class.php b/include/class/balance_age.class.php index 1ff239398..f56753259 100644 --- a/include/class/balance_age.class.php +++ b/include/class/balance_age.class.php @@ -17,7 +17,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -require_once NOALYSS_INCLUDE.'/class/lettering.class.php'; /* * * * @file @@ -138,7 +137,6 @@ class Balance_Age */ function export_csv($p_date_start, $p_let) { - require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php'; bcscale(2); $export=new Noalyss_Csv('aged_balance'); $header = array(_('QuickCode') , diff --git a/include/class/bank.class.php b/include/class/bank.class.php index 1429f8778..cb77756fc 100644 --- a/include/class/bank.class.php +++ b/include/class/bank.class.php @@ -18,11 +18,7 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_parm_code.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \file * \brief Derived from class fiche Administration are a specific kind of card diff --git a/include/class/card_attribut_mtable.class.php b/include/class/card_attribut_mtable.class.php index 5f0b70962..a2b954639 100644 --- a/include/class/card_attribut_mtable.class.php +++ b/include/class/card_attribut_mtable.class.php @@ -24,9 +24,6 @@ * @brief manage the table attr_def * @see card_attr.inc.php */ -require_once NOALYSS_INCLUDE."/class/fiche_attr.class.php"; -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; -require_once NOALYSS_INCLUDE."/lib/inplace_switch.class.php"; class Card_Attribut_MTable extends Manage_Table_SQL { diff --git a/include/class/contact.class.php b/include/class/contact.class.php index 9efb99340..787786a6b 100644 --- a/include/class/contact.class.php +++ b/include/class/contact.class.php @@ -18,7 +18,6 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu //!\brief class for the contact, contact are derived from fiche -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; require_once NOALYSS_INCLUDE.'/constant.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \file diff --git a/include/class/contact_option_ref_mtable.class.php b/include/class/contact_option_ref_mtable.class.php index b6a62f9da..ed84e6945 100644 --- a/include/class/contact_option_ref_mtable.class.php +++ b/include/class/contact_option_ref_mtable.class.php @@ -26,7 +26,6 @@ * @todo to be implemented */ require_once NOALYSS_INCLUDE."/database/contact_option_ref_sql.class.php"; -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; class Contact_Option_Ref_MTable extends Manage_Table_SQL{ diff --git a/include/class/currency_mtable.class.php b/include/class/currency_mtable.class.php index fa6203e1f..72018c977 100644 --- a/include/class/currency_mtable.class.php +++ b/include/class/currency_mtable.class.php @@ -23,7 +23,6 @@ * @file * @brief Currency thanks the view v_currency_last_value */ -require_once NOALYSS_INCLUDE.'/lib/manage_table_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/currency_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/currency_history_sql.class.php'; diff --git a/include/class/customer.class.php b/include/class/customer.class.php index 59fba23ba..1a16872b2 100644 --- a/include/class/customer.class.php +++ b/include/class/customer.class.php @@ -18,11 +18,6 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_parm_code.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \file * \brief Derived from class fiche Customer are a specific kind of card diff --git a/include/class/database.class.php b/include/class/database.class.php index 7d6808d27..53a8261ce 100644 --- a/include/class/database.class.php +++ b/include/class/database.class.php @@ -25,7 +25,6 @@ * \brief contains the class for connecting to Noalyss */ -require_once NOALYSS_INCLUDE . '/lib/database_core.class.php'; class Database extends DatabaseCore { diff --git a/include/class/default_menu.class.php b/include/class/default_menu.class.php index 80a9de07d..460eb79a2 100644 --- a/include/class/default_menu.class.php +++ b/include/class/default_menu.class.php @@ -24,7 +24,6 @@ * @author dany */ require_once NOALYSS_INCLUDE.'/database/default_menu_sql.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; class Default_Menu { diff --git a/include/class/document.class.php b/include/class/document.class.php index 7e24b9839..28e618b00 100644 --- a/include/class/document.class.php +++ b/include/class/document.class.php @@ -18,12 +18,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/class/follow_up.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_tva.class.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; -require_once NOALYSS_INCLUDE.'/lib/zip_extended.class.php'; /*! \file * \brief Class Document corresponds to the table document diff --git a/include/class/document_export.class.php b/include/class/document_export.class.php index ab4c5d786..a7ff4a5b6 100644 --- a/include/class/document_export.class.php +++ b/include/class/document_export.class.php @@ -18,8 +18,6 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/class/pdf_operation.class.php'; -require_once NOALYSS_INCLUDE.'/lib/progress_bar.class.php'; /** * @brief Export DOCUMENT from Analytic accountancy, can transform into PDF * and add a stamp on each pages diff --git a/include/class/document_modele.class.php b/include/class/document_modele.class.php index 42367acb1..571e3a499 100644 --- a/include/class/document_modele.class.php +++ b/include/class/document_modele.class.php @@ -23,9 +23,6 @@ /*! * \brief Class for the document template */ -require_once NOALYSS_INCLUDE.'/lib/icheckbox.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ifile.class.php'; class Document_modele { var $cn; /*!< $cn database connection */ diff --git a/include/class/document_state_mtable.php b/include/class/document_state_mtable.class.php similarity index 96% rename from include/class/document_state_mtable.php rename to include/class/document_state_mtable.class.php index 41f5be48e..19754e974 100644 --- a/include/class/document_state_mtable.php +++ b/include/class/document_state_mtable.class.php @@ -27,7 +27,6 @@ * */ require_once NOALYSS_INCLUDE.'/database/document_state_sql.class.php'; -require_once NOALYSS_INCLUDE.'/lib/manage_table_sql.class.php'; /** * @brief this instance extends Manage_Table_SQL and aims to manage * the Table tmp_pcmn thanks a web interface (add , delete, display...) diff --git a/include/class/dossier.class.php b/include/class/dossier.class.php index d82f2cebb..1eaa0a13f 100644 --- a/include/class/dossier.class.php +++ b/include/class/dossier.class.php @@ -34,9 +34,7 @@ "desc"=>"dos_description"); * */ -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/user.class.php'; class Dossier { diff --git a/include/class/exercice.class.php b/include/class/exercice.class.php index 296d5d8d4..03917a7a0 100644 --- a/include/class/exercice.class.php +++ b/include/class/exercice.class.php @@ -22,8 +22,6 @@ /*!\file * \brief about the accountant exercice */ -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; class Exercice { function __construct($cn) diff --git a/include/class/extension.class.php b/include/class/extension.class.php index 31961e436..3ed6ad6f1 100644 --- a/include/class/extension.class.php +++ b/include/class/extension.class.php @@ -38,8 +38,6 @@ */ require_once NOALYSS_INCLUDE.'/database/menu_ref_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/profile_sql.class.php'; -require_once NOALYSS_INCLUDE.'/class/menu_ref.class.php'; -require_once NOALYSS_INCLUDE.'/class/profile_menu.class.php'; class Extension extends Menu_Ref_sql { diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php index 5e9cab155..1bc787426 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -20,17 +20,6 @@ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE."/class/fiche_attr.class.php"; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itva_popup.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iposte.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_operation.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account.class.php'; -require_once NOALYSS_INCLUDE."/lib/input_switch.class.php"; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php'; /*! \file * \brief define Class fiche, this class are using diff --git a/include/class/fiche_attr.class.php b/include/class/fiche_attr.class.php index ee7184195..55fdbfb7e 100644 --- a/include/class/fiche_attr.class.php +++ b/include/class/fiche_attr.class.php @@ -7,7 +7,6 @@ * * */ -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; require_once NOALYSS_INCLUDE."/database/attr_def_sql.class.php"; diff --git a/include/class/fiche_def.class.php b/include/class/fiche_def.class.php index a16c02d44..82f46ce4e 100644 --- a/include/class/fiche_def.class.php +++ b/include/class/fiche_def.class.php @@ -17,12 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/class/fiche_attr.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche_def_ref.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; -require_once NOALYSS_INCLUDE.'/lib/iradio.class.php'; /*! \file * \brief define Class fiche and fiche def, those class are using diff --git a/include/class/filter_data_currency_accounting.class.php b/include/class/filter_data_currency_accounting.class.php index c93f743c8..b0be484da 100644 --- a/include/class/filter_data_currency_accounting.class.php +++ b/include/class/filter_data_currency_accounting.class.php @@ -19,7 +19,6 @@ */ // Copyright (2002-2020) Author Dany De Bontridder -require_once NOALYSS_INCLUDE."/class/data_currency_operation.class.php"; /** * @file diff --git a/include/class/filter_data_currency_card.class.php b/include/class/filter_data_currency_card.class.php index b18e75751..1aa4e9c34 100644 --- a/include/class/filter_data_currency_card.class.php +++ b/include/class/filter_data_currency_card.class.php @@ -19,7 +19,6 @@ */ // Copyright (2002-2020) Author Dany De Bontridder -require_once NOALYSS_INCLUDE."/class/data_currency_operation.class.php"; /** * @file diff --git a/include/class/filter_data_currency_card_category.class.php b/include/class/filter_data_currency_card_category.class.php index f82d61b18..eb4ae0392 100644 --- a/include/class/filter_data_currency_card_category.class.php +++ b/include/class/filter_data_currency_card_category.class.php @@ -19,7 +19,6 @@ */ // Copyright (2002-2020) Author Dany De Bontridder -require_once NOALYSS_INCLUDE."/class/data_currency_operation.class.php"; /** * \file * \brief filter data in currency from datase , inherit from Data_Currency_Operation, filter on diff --git a/include/class/follow_up.class.php b/include/class/follow_up.class.php index e05570689..38a544c9f 100644 --- a/include/class/follow_up.class.php +++ b/include/class/follow_up.class.php @@ -18,31 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -require_once NOALYSS_INCLUDE.'/lib/itextarea.class.php'; -require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/lib/itext.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; -require_once NOALYSS_INCLUDE.'/lib/icheckbox.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ifile.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/document.class.php'; -require_once NOALYSS_INCLUDE.'/class/document_type.class.php'; -require_once NOALYSS_INCLUDE.'/class/document_modele.class.php'; -require_once NOALYSS_INCLUDE.'/class/document_option.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; -require_once NOALYSS_INCLUDE.'/class/follow_up_detail.class.php'; -require_once NOALYSS_INCLUDE.'/lib/inum.class.php'; -require_once NOALYSS_INCLUDE.'/lib/sort_table.class.php'; -require_once NOALYSS_INCLUDE.'/lib/irelated_action.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag.class.php'; -require_once NOALYSS_INCLUDE.'/class/document_option.class.php'; -require_once NOALYSS_INCLUDE.'/class/default_menu.class.php'; -require_once NOALYSS_INCLUDE.'/lib/inplace_edit.class.php'; -require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php'; -require_once NOALYSS_INCLUDE.'/class/tag_action.class.php'; /** * \file diff --git a/include/class/follow_up_detail.class.php b/include/class/follow_up_detail.class.php index 2cdd338cb..9b5b0ee7a 100644 --- a/include/class/follow_up_detail.class.php +++ b/include/class/follow_up_detail.class.php @@ -16,8 +16,6 @@ * along with NOALYSS; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; // Copyright Author Dany De Bontridder danydb@aevalys.eu /*!\file diff --git a/include/class/forecast_category_mtable.class.php b/include/class/forecast_category_mtable.class.php index 983190f5f..8c2444197 100644 --- a/include/class/forecast_category_mtable.class.php +++ b/include/class/forecast_category_mtable.class.php @@ -27,7 +27,6 @@ */ require_once NOALYSS_INCLUDE."/database/forecast_category_sql.class.php"; -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; class Forecast_Category_MTable extends Manage_Table_SQL { diff --git a/include/class/forecast_item_mtable.class.php b/include/class/forecast_item_mtable.class.php index 170cad69c..45ae780ff 100644 --- a/include/class/forecast_item_mtable.class.php +++ b/include/class/forecast_item_mtable.class.php @@ -30,10 +30,8 @@ * @brief display the item for forecast */ -require_once NOALYSS_INCLUDE . "/lib/manage_table_sql.class.php"; require_once NOALYSS_INCLUDE . "/database/forecast_item_sql.class.php"; require_once NOALYSS_INCLUDE . "/database/forecast_sql.class.php"; -require_once NOALYSS_INCLUDE . "/lib/impress.class.php"; class Forecast_Item_MTable extends Manage_Table_SQL { diff --git a/include/class/gestion_purchase.class.php b/include/class/gestion_purchase.class.php index f678738c4..152e65142 100644 --- a/include/class/gestion_purchase.class.php +++ b/include/class/gestion_purchase.class.php @@ -26,7 +26,6 @@ /*! \brief this object handles the table quant_purchase * */ -require_once NOALYSS_INCLUDE.'/class/gestion_table.class.php'; class gestion_purchase extends gestion_table diff --git a/include/class/gestion_sold.class.php b/include/class/gestion_sold.class.php index 4aca544b4..5127ffd30 100644 --- a/include/class/gestion_sold.class.php +++ b/include/class/gestion_sold.class.php @@ -27,7 +27,6 @@ * */ -require_once NOALYSS_INCLUDE.'/class/gestion_table.class.php'; class gestion_sold extends gestion_table diff --git a/include/class/html_input_noalyss.class.php b/include/class/html_input_noalyss.class.php index 9fc1e2642..68ddb4057 100644 --- a/include/class/html_input_noalyss.class.php +++ b/include/class/html_input_noalyss.class.php @@ -26,7 +26,6 @@ * */ // Copyright Author Dany De Bontridder danydb@noalyss.eu -require_once NOALYSS_INCLUDE."/lib/html_input.class.php"; /** * @class diff --git a/include/class/lettering.class.php b/include/class/lettering.class.php index cb1975e72..f59e2822d 100644 --- a/include/class/lettering.class.php +++ b/include/class/lettering.class.php @@ -22,7 +22,6 @@ /*!\file * \brief letter the accounting entry (row level) */ -require_once NOALYSS_INCLUDE.'/class/user.class.php'; /** *@brief mother class for the lettering by account and by card diff --git a/include/class/manager.class.php b/include/class/manager.class.php index 03719b46d..5a9a8ddaf 100644 --- a/include/class/manager.class.php +++ b/include/class/manager.class.php @@ -19,11 +19,6 @@ // Copyright Author Dany De Bontridder danydb@aevalys.eu require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_parm_code.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \file * \brief Derived from class fiche Supplier are a specific kind of card diff --git a/include/class/operation_predef_mtable.class.php b/include/class/operation_predef_mtable.class.php index a425c3e46..8a3aea0fc 100644 --- a/include/class/operation_predef_mtable.class.php +++ b/include/class/operation_predef_mtable.class.php @@ -24,10 +24,7 @@ * \brief Display a table and allow to change the predefined operation, insert or delete. Used the * class Manage_Table_SQL and the SQL Object for the tables op_predef and op_predef_detail. */ -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; require_once NOALYSS_INCLUDE."/database/op_predef_sql.class.php"; -require_once NOALYSS_INCLUDE."/class/pre_operation.class.php"; -require_once NOALYSS_INCLUDE."/lib/select_box.class.php"; /*! * \brief Display a table and allow to change the predefined operation, insert or delete. Used the @@ -67,7 +64,6 @@ class Operation_Predef_MTable extends Manage_Table_SQL // create our own "Append button" $this->set_append_row(false); $this->set_dialog_box("prdfop"); - $this->set_dialogbox_style(["position"=>"fixed","top"=>"5%","width:auto","min-width"=>"80%"]); } /** diff --git a/include/class/package_core.class.php b/include/class/package_core.class.php index 451148af8..d6a37d215 100644 --- a/include/class/package_core.class.php +++ b/include/class/package_core.class.php @@ -18,7 +18,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright (2018) Author Dany De Bontridder -require_once NOALYSS_INCLUDE.'/class/package_noalyss.class.php'; /** * @file diff --git a/include/class/package_plugin.class.php b/include/class/package_plugin.class.php index 5d89b38d0..a2951fd7d 100644 --- a/include/class/package_plugin.class.php +++ b/include/class/package_plugin.class.php @@ -23,7 +23,6 @@ * @file * @brief Manage the installation of plug */ -require_once NOALYSS_INCLUDE."/class/package_noalyss.class.php"; /** * @class Package_Plugin diff --git a/include/class/package_repository.class.php b/include/class/package_repository.class.php index 11affb494..093ad079f 100644 --- a/include/class/package_repository.class.php +++ b/include/class/package_repository.class.php @@ -23,10 +23,6 @@ * @file * @brief contains the class Package_Repository */ -require_once NOALYSS_INCLUDE.'/class/package_core.class.php'; -require_once NOALYSS_INCLUDE.'/class/package_plugin.class.php'; -require_once NOALYSS_INCLUDE.'/class/package_template.class.php'; -require_once NOALYSS_INCLUDE.'/class/package_contrib.class.php'; /** * @brief connect to NOALYSS_PACKAGE and fetch the file web.xml , it displays diff --git a/include/class/package_template.class.php b/include/class/package_template.class.php index fd2896fb3..31c4d67d0 100644 --- a/include/class/package_template.class.php +++ b/include/class/package_template.class.php @@ -24,7 +24,6 @@ * @file * @brief */ -require_once NOALYSS_INCLUDE."/class/package_noalyss.class.php"; /** * @brief diff --git a/include/class/parameter_extra_mtable.class.php b/include/class/parameter_extra_mtable.class.php index 67d59b5f7..164d9dea1 100644 --- a/include/class/parameter_extra_mtable.class.php +++ b/include/class/parameter_extra_mtable.class.php @@ -27,7 +27,6 @@ if (!defined('ALLOWED')) * @brief */ require_once NOALYSS_INCLUDE."/database/parameter_extra_sql.class.php"; -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; class Parameter_Extra_MTable extends Manage_Table_SQL { diff --git a/include/class/payment_method_mtable.class.php b/include/class/payment_method_mtable.class.php index ab655a7d7..0fc28f7c3 100644 --- a/include/class/payment_method_mtable.class.php +++ b/include/class/payment_method_mtable.class.php @@ -25,7 +25,6 @@ * @see Payment_Method_SQL * @see ajax_payment_method.php */ -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; require_once NOALYSS_INCLUDE."/database/jrn_def_sql.class.php"; class Payment_Method_MTable extends Manage_Table_SQL diff --git a/include/class/pdf.class.php b/include/class/pdf.class.php index 6f059e95f..214114255 100644 --- a/include/class/pdf.class.php +++ b/include/class/pdf.class.php @@ -24,7 +24,6 @@ *@see TFPDF */ -require_once NOALYSS_INCLUDE."/lib/pdf_core.class.php"; class PDF extends PDF_Core { diff --git a/include/class/pdf_land.class.php b/include/class/pdf_land.class.php index 03bdbd25c..f31c46f00 100644 --- a/include/class/pdf_land.class.php +++ b/include/class/pdf_land.class.php @@ -20,7 +20,6 @@ // Copyright Author Dany De Bontridder danydb@noalyss.eu -require_once NOALYSS_INCLUDE.'/class/pdf.class.php'; class PDFLand extends PDF diff --git a/include/class/pdf_operation.class.php b/include/class/pdf_operation.class.php index d7f4b7fdc..30d3147b7 100644 --- a/include/class/pdf_operation.class.php +++ b/include/class/pdf_operation.class.php @@ -25,11 +25,6 @@ * Detail Operation ACC + ANC , it will use Acc_Operation and Anc_Operation * */ -require_once NOALYSS_INCLUDE . '/class/pdf.class.php'; -require_once NOALYSS_INCLUDE . '/class/acc_operation.class.php'; -require_once NOALYSS_INCLUDE . '/class/acc_ledger.class.php'; -require_once NOALYSS_INCLUDE . '/class/acc_operation.class.php'; -require_once NOALYSS_INCLUDE . '/class/anc_operation.class.php'; class PDF_Operation extends PDF { diff --git a/include/class/pdfbalance_simple.class.php b/include/class/pdfbalance_simple.class.php index aa9c39f00..be0ac237c 100644 --- a/include/class/pdfbalance_simple.class.php +++ b/include/class/pdfbalance_simple.class.php @@ -19,7 +19,6 @@ // Copyright Author Dany De Bontridder danydb@noalyss.eu -require_once NOALYSS_INCLUDE."/class/pdf.class.php"; class PDFBalance_simple extends PDF { diff --git a/include/class/periode.class.php b/include/class/periode.class.php index 8d91a5f50..3ad125037 100644 --- a/include/class/periode.class.php +++ b/include/class/periode.class.php @@ -27,7 +27,6 @@ * \brief For the periode tables parm_periode and jrn_periode */ require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; require_once NOALYSS_INCLUDE."/database/parm_periode_sql.class.php"; class Periode diff --git a/include/class/periode_ledger.class.php b/include/class/periode_ledger.class.php index 6d484136a..bfb414379 100644 --- a/include/class/periode_ledger.class.php +++ b/include/class/periode_ledger.class.php @@ -23,8 +23,6 @@ * @file * @brief Manage the periode of a specific ledger */ -require_once NOALYSS_INCLUDE."/class/periode_ledger_table.class.php"; -require_once NOALYSS_INCLUDE."/class/periode.class.php"; /** * @brief Manage the periode of a specif ledger, wrap the SQL Class Jrn_Periode_SQL * @see Periode diff --git a/include/class/pre_op_ach.class.php b/include/class/pre_op_ach.class.php index f010b16b5..0e6e59ae6 100644 --- a/include/class/pre_op_ach.class.php +++ b/include/class/pre_op_ach.class.php @@ -22,7 +22,6 @@ /*!\file * \brief definition of the class pre_op_ach */ -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; /*---------------------------------------------------------------------- */ /*!\brief concerns the predefined operation for ACH ledger @@ -166,7 +165,6 @@ class Pre_op_ach extends Pre_operation_detail */ function display($p_array) { - require_once NOALYSS_INCLUDE.'/class/acc_ledger_purchase.class.php'; global $g_parameter,$g_user; $ledger=new Acc_Ledger_Purchase($this->db,$p_array['p_jrn']); diff --git a/include/class/pre_op_advanced.class.php b/include/class/pre_op_advanced.class.php index e1e45ec14..4f6bb4d3d 100644 --- a/include/class/pre_op_advanced.class.php +++ b/include/class/pre_op_advanced.class.php @@ -22,7 +22,6 @@ /*!\file * \brief definition of the class Pre_Op_Advanced */ -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; /*---------------------------------------------------------------------- */ /*!\brief concerns the predefined operation for the operation from 'Ecriture direct' @@ -162,7 +161,6 @@ class Pre_Op_Advanced extends Pre_operation_detail function display($p_array) { global $g_parameter, $g_user; - require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; $legder=new Acc_Ledger($this->db,$p_array['p_jrn']); $legder->nb=$legder->get_min_row(); diff --git a/include/class/pre_op_fin.class.php b/include/class/pre_op_fin.class.php index ea16b0dbf..7f52e1ec9 100644 --- a/include/class/pre_op_fin.class.php +++ b/include/class/pre_op_fin.class.php @@ -22,7 +22,6 @@ /*!\file * \brief definition of the class Pre_op_fin */ -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; /*---------------------------------------------------------------------- */ /*!\brief concerns the predefined operation for FIN ledger diff --git a/include/class/pre_op_ods.class.php b/include/class/pre_op_ods.class.php index 9b1d8696f..d81427238 100644 --- a/include/class/pre_op_ods.class.php +++ b/include/class/pre_op_ods.class.php @@ -22,7 +22,6 @@ /*!\file * \brief definition of the class Pre_op_ods */ -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; /*---------------------------------------------------------------------- */ /*!\brief concerns the predefined operation for ODS ledger diff --git a/include/class/pre_op_ven.class.php b/include/class/pre_op_ven.class.php index b70d7afb5..0386654d4 100644 --- a/include/class/pre_op_ven.class.php +++ b/include/class/pre_op_ven.class.php @@ -22,7 +22,6 @@ /*!\file * \brief definition of the class Pre_op_ven */ -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; /*---------------------------------------------------------------------- */ /*!\brief concerns the predefined operation for VEN ledger @@ -164,7 +163,6 @@ class Pre_op_ven extends Pre_operation_detail { global $g_parameter,$g_user; - require_once NOALYSS_INCLUDE.'/class/acc_ledger_sold.class.php'; $ledger=new Acc_Ledger_Sold($this->db,$p_array['p_jrn']); $flag_tva=$g_parameter->MY_TVA_USE; /* Add button */ diff --git a/include/class/pre_operation.class.php b/include/class/pre_operation.class.php index 43c1aef04..6983414e1 100644 --- a/include/class/pre_operation.class.php +++ b/include/class/pre_operation.class.php @@ -27,11 +27,6 @@ * and op_def_detail * */ -require_once NOALYSS_INCLUDE.'/lib/iselect.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_op_ach.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_op_ven.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_op_advanced.class.php'; class Pre_operation { private $db; /*!< $db database connection */ @@ -546,7 +541,7 @@ class Pre_operation_detail $detail=new Pre_op_advanced($database); break; default: - throw new Exception(sprintf(_('Echec PreOperatoin chargement %s'),$p_jrn_type)); + throw new Exception(sprintf(_('Echec PreOperation chargement %s'),$p_jrn_type)); } return $detail; } diff --git a/include/class/print_ledger.class.php b/include/class/print_ledger.class.php index 8b8213ff6..719dbe74f 100644 --- a/include/class/print_ledger.class.php +++ b/include/class/print_ledger.class.php @@ -23,8 +23,6 @@ * * @author danydb */ -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/pdf.class.php'; /** * @brief Strategie class for the print_ledger class @@ -119,12 +117,6 @@ class Print_Ledger extends PDF * if you put them on the top of this file, export_ledger_pdf.php will include the files * but not export_ledger_csv.php */ - require_once NOALYSS_INCLUDE.'/class/print_ledger_detail.class.php'; - require_once NOALYSS_INCLUDE.'/class/print_ledger_simple.class.php'; - require_once NOALYSS_INCLUDE.'/class/print_ledger_simple_without_vat.class.php'; - require_once NOALYSS_INCLUDE.'/class/print_ledger_fin.class.php'; - require_once NOALYSS_INCLUDE.'/class/print_ledger_misc.class.php'; - require_once NOALYSS_INCLUDE.'/class/print_ledger_detail_item.class.php'; /** * For PDF output diff --git a/include/class/print_ledger_detail.class.php b/include/class/print_ledger_detail.class.php index baa7e8fae..98d732e8a 100644 --- a/include/class/print_ledger_detail.class.php +++ b/include/class/print_ledger_detail.class.php @@ -23,7 +23,6 @@ * \brief this class extends PDF and let you export the detailled printing * of any ledgers */ -require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; class Print_Ledger_Detail extends Print_Ledger diff --git a/include/class/print_ledger_detail_item.class.php b/include/class/print_ledger_detail_item.class.php index c9fca66a3..bb3f602c1 100644 --- a/include/class/print_ledger_detail_item.class.php +++ b/include/class/print_ledger_detail_item.class.php @@ -23,9 +23,6 @@ * * @author danydb */ -require_once NOALYSS_INCLUDE.'/class/acc_ledger_sold.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_purchase.class.php'; -require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; class Print_Ledger_Detail_Item extends Print_Ledger { diff --git a/include/class/print_ledger_fin.class.php b/include/class/print_ledger_fin.class.php index 0a472cb8e..5d6578670 100644 --- a/include/class/print_ledger_fin.class.php +++ b/include/class/print_ledger_fin.class.php @@ -22,7 +22,6 @@ /*!\file * \brief print a listing of financial */ -require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; class Print_Ledger_Financial extends Print_Ledger { diff --git a/include/class/print_ledger_misc.class.php b/include/class/print_ledger_misc.class.php index 4e76bb661..9d0364eef 100644 --- a/include/class/print_ledger_misc.class.php +++ b/include/class/print_ledger_misc.class.php @@ -22,7 +22,6 @@ /*!\file * \brief print a listing of financial */ -require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; class Print_Ledger_Misc extends Print_Ledger { diff --git a/include/class/print_ledger_simple.class.php b/include/class/print_ledger_simple.class.php index 7d8265d37..c832245ba 100644 --- a/include/class/print_ledger_simple.class.php +++ b/include/class/print_ledger_simple.class.php @@ -23,8 +23,6 @@ * \brief this class extends PDF and let you export the detailled printing * of any ledgers */ -require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; -require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; class Print_Ledger_Simple extends \Print_Ledger { diff --git a/include/class/print_ledger_simple_without_vat.class.php b/include/class/print_ledger_simple_without_vat.class.php index bbc3c5f92..d39b14538 100644 --- a/include/class/print_ledger_simple_without_vat.class.php +++ b/include/class/print_ledger_simple_without_vat.class.php @@ -23,7 +23,6 @@ * \brief this class extends PDF and let you export the detailled printing * of any ledgers */ -require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php'; class Print_Ledger_Simple_Without_Vat extends Print_Ledger { diff --git a/include/class/print_operation_currency.class.php b/include/class/print_operation_currency.class.php index 5eefff80f..d53b3b4c3 100644 --- a/include/class/print_operation_currency.class.php +++ b/include/class/print_operation_currency.class.php @@ -23,12 +23,6 @@ * @file * @brief manage the operation in currency : export CSV, export PDF , output in HTML */ -require_once NOALYSS_INCLUDE."/class/acc_currency.class.php"; -require_once NOALYSS_INCLUDE."/class/data_currency_operation.class.php"; -require_once NOALYSS_INCLUDE."/class/filter_data_currency_card.class.php"; -require_once NOALYSS_INCLUDE."/class/filter_data_currency_accounting.class.php"; -require_once NOALYSS_INCLUDE."/class/filter_data_currency_card_category.class.php"; -require_once NOALYSS_INCLUDE."/lib/noalyss_csv.class.php"; /** * @class * @brief manage the operation in currency : export CSV , output in HTML diff --git a/include/class/profile_menu.class.php b/include/class/profile_menu.class.php index 96b06ca58..b16e509f2 100644 --- a/include/class/profile_menu.class.php +++ b/include/class/profile_menu.class.php @@ -85,10 +85,8 @@ class Profile_Menu extends Profile_Menu_sql ", array($p_id, $me_code)); ?> create_query_histo($p_array); - require_once NOALYSS_INCLUDE.'/lib/sort_table.class.php'; $p_url = HtmlInput::get_to_string(array("gDossier", "ac", "wcard", "wdate_start", "wdate_end", "wrepo", "wamount_start", "wamount_end", "wcode_stock", "wdirection")); diff --git a/include/class/supplier.class.php b/include/class/supplier.class.php index 0400fa34f..8a2fe14c9 100644 --- a/include/class/supplier.class.php +++ b/include/class/supplier.class.php @@ -18,11 +18,6 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu require_once NOALYSS_INCLUDE.'/constant.php'; -require_once NOALYSS_INCLUDE.'/class/database.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_parm_code.class.php'; -require_once NOALYSS_INCLUDE.'/class/periode.class.php'; -require_once NOALYSS_INCLUDE.'/class/fiche.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; /*! \file * \brief Derived from class fiche Supplier are a specific kind of card diff --git a/include/class/tag_action.class.php b/include/class/tag_action.class.php index 41521d471..1b032206a 100644 --- a/include/class/tag_action.class.php +++ b/include/class/tag_action.class.php @@ -22,7 +22,6 @@ * */ -require_once NOALYSS_INCLUDE.'/class/tag.class.php'; /** * @file diff --git a/include/class/tag_group_mtable.class.php b/include/class/tag_group_mtable.class.php index b99350118..7dd27d11a 100644 --- a/include/class/tag_group_mtable.class.php +++ b/include/class/tag_group_mtable.class.php @@ -26,7 +26,6 @@ * * */ -require_once NOALYSS_INCLUDE.'/lib/manage_table_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/tag_group_sql.class.php'; class Tag_Group_MTable extends Manage_Table_SQL diff --git a/include/class/template_card_category.class.php b/include/class/template_card_category.class.php index 0645d7d77..2fae8bb75 100644 --- a/include/class/template_card_category.class.php +++ b/include/class/template_card_category.class.php @@ -19,7 +19,6 @@ */ // Copyright (2016) Author Dany De Bontridder -require_once NOALYSS_INCLUDE.'/lib/manage_table_sql.class.php'; require_once NOALYSS_INCLUDE.'/database/fiche_def_ref_sql.class.php'; /** diff --git a/include/class/tva_rate_mtable.class.php b/include/class/tva_rate_mtable.class.php index 460d7e857..f8d8e0412 100644 --- a/include/class/tva_rate_mtable.class.php +++ b/include/class/tva_rate_mtable.class.php @@ -23,8 +23,6 @@ * @file * @brief Configure the tva : code , rate, label ... */ -require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php"; -require_once NOALYSS_INCLUDE."/lib/icon_action.class.php"; require_once NOALYSS_INCLUDE."/database/v_tva_rate_sql.class.php"; require_once NOALYSS_INCLUDE."/database/tva_rate_sql.class.php"; diff --git a/include/class/user.class.php b/include/class/user.class.php index fcf4799b9..5a7cb6ff4 100644 --- a/include/class/user.class.php +++ b/include/class/user.class.php @@ -30,7 +30,6 @@ require_once NOALYSS_INCLUDE.'/constant.php'; require_once NOALYSS_INCLUDE.'/lib/user_common.php'; -require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; class User @@ -1273,7 +1272,6 @@ class User dos_name ilike '%' || $1|| '%' or dos_description ilike '%' || $1 || '%' order by dos_name", array($p_filter)); } - require_once NOALYSS_INCLUDE.'/class/database.class.php'; $max = Database::num_row($Res); if ($max == 0) diff --git a/include/company.inc.php b/include/company.inc.php index f5ec2919f..33ecba00c 100644 --- a/include/company.inc.php +++ b/include/company.inc.php @@ -24,8 +24,6 @@ */ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php'; -require_once NOALYSS_INCLUDE.'/class/parameter_extra_mtable.class.php'; global $g_user; $http=new HttpInput(); diff --git a/include/compta_ach.inc.php b/include/compta_ach.inc.php index a7e902c69..22c3e8be8 100644 --- a/include/compta_ach.inc.php +++ b/include/compta_ach.inc.php @@ -25,10 +25,6 @@ * \brief file included to manage all the sold operation */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/lib/icheckbox.class.php'; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_purchase.class.php'; -require_once NOALYSS_INCLUDE.'/class/pre_operation.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ipopup.class.php'; $gDossier = dossier::id(); global $g_parameter; $http=new HttpInput(); diff --git a/include/compta_fin.inc.php b/include/compta_fin.inc.php index 419aac188..2df16d75f 100644 --- a/include/compta_fin.inc.php +++ b/include/compta_fin.inc.php @@ -23,8 +23,6 @@ * \brief this file is to be included to handle the financial ledger */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); -require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php'; -require_once NOALYSS_INCLUDE.'/lib/ipopup.class.php'; global $g_user,$g_parameter; $gDossier=dossier::id(); diff --git a/include/compta_fin_rec.inc.php b/include/compta_fin_rec.inc.php index 6fc2dd936..cdb11ae30 100644 --- a/include/compta_fin_rec.inc.php +++ b/include/compta_fin_rec.inc.php @@ -28,7 +28,6 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); global $g_failed,$g_succeed,$http; -require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php'; bcscale(2); ?>