Task #0000877: Renforcement protection

This commit is contained in:
Dany De Bontridder 2013-09-13 19:17:32 +00:00
parent f1ffe5cb97
commit 6d2f0949ef
147 changed files with 644 additions and 207 deletions

File diff suppressed because it is too large Load diff

View file

@ -45,7 +45,7 @@ echo '<div class="topmenu">';
echo MenuAdmin()."</div>"; echo MenuAdmin()."</div>";
define('ALLOWED',true);
?> ?>

View file

@ -7,6 +7,7 @@
* - gDossier * - gDossier
* - plugin_code * - plugin_code
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
require_once('class_database.php'); require_once('class_database.php');
require_once('class_user.php'); require_once('class_user.php');

View file

@ -54,6 +54,8 @@
* - ref if we want to refresh the window * - ref if we want to refresh the window
*\see fiche fiche::Save constant.php *\see fiche fiche::Save constant.php
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
require_once('class_database.php'); require_once('class_database.php');
require_once ('class_fiche.php'); require_once ('class_fiche.php');

View file

@ -34,6 +34,7 @@ require_once('class_acc_account.php');
require_once('class_exercice.php'); require_once('class_exercice.php');
$div=$_REQUEST['div']; $div=$_REQUEST['div'];
mb_internal_encoding("UTF-8"); mb_internal_encoding("UTF-8");
define ('ALLOWED',1);
/** /**
*if $_SESSION['g_user'] is not set : echo a warning *if $_SESSION['g_user'] is not set : echo a warning

View file

@ -29,6 +29,7 @@
- for reconcialiation - for reconcialiation
- update of analytic content - update of analytic content
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
require_once('class_database.php'); require_once('class_database.php');
require_once('class_user.php'); require_once('class_user.php');

View file

@ -35,6 +35,7 @@
* dl : display form to modify, add and delete lettering for a given operation * dl : display form to modify, add and delete lettering for a given operation
* *
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
require_once('class_database.php'); require_once('class_database.php');
require_once ('class_fiche.php'); require_once ('class_fiche.php');

View file

@ -33,6 +33,7 @@
* *
* *
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
require_once ("ac_common.php"); require_once ("ac_common.php");
require_once('class_acc_ledger.php'); require_once('class_acc_ledger.php');

View file

@ -34,6 +34,7 @@
* - gDossier * - gDossier
* - i id * - i id
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
require_once ('class_dossier.php'); require_once ('class_dossier.php');
require_once ('class_todo_list.php'); require_once ('class_todo_list.php');

View file

@ -20,7 +20,7 @@
/* $Revision$ */ /* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
define('ALLOWED',1);
/**\file /**\file
* \brief Main file * \brief Main file
*/ */

View file

@ -25,6 +25,7 @@
* act can be * act can be
* *
*/ */
define ('ALLOWED',1);
require_once '../include/constant.php'; require_once '../include/constant.php';
global $g_user,$cn,$g_parameter; global $g_user,$cn,$g_parameter;
require_once('class_database.php'); require_once('class_database.php');

View file

@ -77,7 +77,8 @@ $array=array(
array(33,'Ledger : reverse op'), array(33,'Ledger : reverse op'),
array(34,'Reconciliation'), array(34,'Reconciliation'),
array(35,'Bilan'), array(35,'Bilan'),
array(36,'SQL2Table') array(36,'SQL2Table'),
array(37,'balance')
); );
$r='<form method="get">'; $r='<form method="get">';
$r.='<select name="test_select" >'; $r.='<select name="test_select" >';
@ -297,6 +298,9 @@ case 36:
require_once('class_html_table.php'); require_once('class_html_table.php');
Html_Table::test_me(); Html_Table::test_me();
break; break;
case 37:
require 'class_acc_balance.php';
Acc_Balance::test_me();
} }

View file

@ -29,7 +29,7 @@
* - $sub_action sa from suivi courrier but sc from Suivi client, fournisseur... * - $sub_action sa from suivi courrier but sc from Suivi client, fournisseur...
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$supl_hidden = ''; $supl_hidden = '';
if (isset($_REQUEST['sc'])) if (isset($_REQUEST['sc']))
$supl_hidden.=HtmlInput::hidden('sc', $_REQUEST['sc']); $supl_hidden.=HtmlInput::hidden('sc', $_REQUEST['sc']);

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief Page who manage the different actions (meeting, letter) * \brief Page who manage the different actions (meeting, letter)
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_ipopup.php'); require_once('class_ipopup.php');
global $g_user; global $g_user;
$retour=HtmlInput::button_anchor(_('Retour liste'), $retour=HtmlInput::button_anchor(_('Retour liste'),

View file

@ -21,6 +21,7 @@
/*!\brief include from adm.inc.php and concerned only the customer card and /*!\brief include from adm.inc.php and concerned only the customer card and
* the customer category * the customer category
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_iselect.php"); require_once("class_iselect.php");
require_once("class_ihidden.php"); require_once("class_ihidden.php");
require_once("class_customer.php"); require_once("class_customer.php");

View file

@ -25,6 +25,7 @@
* @file * @file
* @brief show the form to add a menu * @brief show the form to add a menu
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$type=$_GET['type']; $type=$_GET['type'];
if ( $type=='me') if ( $type=='me')
{ {

View file

@ -28,6 +28,7 @@
// parameter are gDossier , c1 : the control id to update, // parameter are gDossier , c1 : the control id to update,
// c2 the control id which contains the pa_id // c2 the control id which contains the pa_id
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_itext.php"); require_once("class_itext.php");
require_once("class_ihidden.php"); require_once("class_ihidden.php");
require_once("class_ibutton.php"); require_once("class_ibutton.php");

View file

@ -1,4 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ("class_database.php"); require_once ("class_database.php");
require_once 'class_user.php'; require_once 'class_user.php';
$cn=new Database($_GET['gDossier']); $cn=new Database($_GET['gDossier']);

View file

@ -35,6 +35,7 @@
* - l the jrn id * - l the jrn id
* - ctl the ctl where to get the quick_code * - ctl the ctl where to get the quick_code
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_user.php'); require_once('class_user.php');
require_once('class_dossier.php'); require_once('class_dossier.php');
require_once('class_fiche.php'); require_once('class_fiche.php');

View file

@ -26,6 +26,7 @@
* @brief show result card search * @brief show result card search
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$sql=" $sql="
select distinct vw.f_id,vw_name,vw_first_name,vw_description,fd_label,quick_code,tva_num,(select ad_value from fiche_Detail where f_id=pc.f_id and ad_id=5) as poste select distinct vw.f_id,vw_name,vw_first_name,vw_description,fd_label,quick_code,tva_num,(select ad_value from fiche_Detail where f_id=pc.f_id and ad_id=5) as poste
from vw_fiche_attr as vw from vw_fiche_attr as vw

View file

@ -1,4 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_menu_ref.php'; require_once 'class_menu_ref.php';
$msg="Création"; $msg="Création";
$m=new Menu_Ref($cn); $m=new Menu_Ref($cn);

View file

@ -26,6 +26,7 @@
* @brief show detail of a fiche_def (category of card) + Attribut * @brief show detail of a fiche_def (category of card) + Attribut
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_fiche_def.php'); require_once('class_fiche_def.php');
require_once 'class_tool_uos.php'; require_once 'class_tool_uos.php';
global $g_user; global $g_user;

View file

@ -27,6 +27,7 @@
* *
*/ */
// retrieve data // retrieve data
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$profile=$cn->get_value("select p_id from profile_menu where pm_id=$1",array($pm_id)); $profile=$cn->get_value("select p_id from profile_menu where pm_id=$1",array($pm_id));
$a_value=$cn->make_array("select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref",0); $a_value=$cn->make_array("select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') from menu_ref",0);
$ame_code_dep=$cn->make_array(" $ame_code_dep=$cn->make_array("

View file

@ -27,6 +27,7 @@
* @see ajax_misc.php scripts.js profile.inc.php * @see ajax_misc.php scripts.js profile.inc.php
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_profile_sql.php'; require_once 'class_profile_sql.php';
require_once 'class_profile_menu.php'; require_once 'class_profile_menu.php';
$profile=new Profile_sql($cn,$p_id); $profile=new Profile_sql($cn,$p_id);

View file

@ -28,6 +28,7 @@
* Must return at least tva, htva and tvac * Must return at least tva, htva and tvac
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('constant.php'); require_once ('constant.php');
require_once ('class_database.php'); require_once ('class_database.php');

View file

@ -26,6 +26,7 @@
* @brief * @brief
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_user.php'); require_once('class_user.php');
require_once('class_dossier.php'); require_once('class_dossier.php');
extract($_GET); extract($_GET);

View file

@ -23,6 +23,7 @@
/*!\file /*!\file
* \brief show the detail of a document and let you modify it * \brief show the detail of a document and let you modify it
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_database.php'); require_once('class_database.php');
require_once('class_dossier.php'); require_once('class_dossier.php');
require_once("class_document_modele.php"); require_once("class_document_modele.php");

View file

@ -1,4 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_menu_ref.php'; require_once 'class_menu_ref.php';
$m=new Menu_Ref($cn,$me_code); $m=new Menu_Ref($cn,$me_code);
$msg="Modification ".$m->me_code.' '.h($m->me_menu); $msg="Modification ".$m->me_code.' '.h($m->me_menu);

View file

@ -20,6 +20,7 @@
/* $Revision$ */ /* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_periode.php'); require_once('class_periode.php');
/**\file /**\file

View file

@ -24,6 +24,7 @@
/**\file /**\file
* \brief display a form to change the name of a predefined operation * \brief display a form to change the name of a predefined operation
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
ob_start(); ob_start();
require_once 'class_pre_operation.php'; require_once 'class_pre_operation.php';
$op=new Pre_Operation($cn,$_GET['id']); $op=new Pre_Operation($cn,$_GET['id']);

View file

@ -26,6 +26,7 @@
* @brief show a depot * @brief show a depot
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_stock_sql.php'; require_once 'class_stock_sql.php';
$st=new Stock_Sql($_GET['r_id']); $st=new Stock_Sql($_GET['r_id']);

View file

@ -26,6 +26,7 @@
* @brief add, modify or delete plugin * @brief add, modify or delete plugin
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$msg=($new==1)?"Nouvelle extension":"Modification ".$me_menu->value; $msg=($new==1)?"Nouvelle extension":"Modification ".$me_menu->value;
echo HtmlInput::title_box($msg, $ctl); echo HtmlInput::title_box($msg, $ctl);
?> ?>

View file

@ -24,6 +24,7 @@
* \brief save the new predefined operation * \brief save the new predefined operation
* included from ajax_misc * included from ajax_misc
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
if ($g_user->check_module('PREDOP') == 0) exit(); if ($g_user->check_module('PREDOP') == 0) exit();
if ( trim($_POST['opd_name']) != '') if ( trim($_POST['opd_name']) != '')
{ {

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief Search module * \brief Search module
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_dossier.php'); require_once('class_dossier.php');
include_once("ac_common.php"); include_once("ac_common.php");
require_once('class_follow_up.php'); require_once('class_follow_up.php');

View file

@ -26,6 +26,7 @@
* @brief refresh the area with payment method * @brief refresh the area with payment method
* -l for the ledger * -l for the ledger
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_acc_ledger.php'; require_once 'class_acc_ledger.php';
$ledger=new Acc_Ledger($cn,$l); $ledger=new Acc_Ledger($cn,$l);
echo $ledger->input_paid(1); echo $ledger->input_paid(1);

View file

@ -27,6 +27,7 @@
* - gDossier * - gDossier
* Must return at least tva, htva and tvac * Must return at least tva, htva and tvac
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('constant.php'); require_once ('constant.php');
require_once ('class_database.php'); require_once ('class_database.php');

View file

@ -26,6 +26,7 @@
* @brief show the detail of an action * @brief show the detail of an action
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_follow_up.php'; require_once 'class_follow_up.php';
echo HtmlInput::title_box(_("Détail action"), $div); echo HtmlInput::title_box(_("Détail action"), $div);
$act = new Follow_Up($cn); $act = new Follow_Up($cn);

View file

@ -27,6 +27,7 @@
* *
*/ */
require_once 'class_stock_goods.php'; require_once 'class_stock_goods.php';
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
$st=new Stock_Goods($cn); $st=new Stock_Goods($cn);
$array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id'])); $array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id']));

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_anc_acc_list.php'); require_once('class_anc_acc_list.php');
$tab = new Anc_Acc_List($cn); $tab = new Anc_Acc_List($cn);
$tab->get_request(); $tab->get_request();

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_anc_table.php'); require_once('class_anc_table.php');
$tab = new Anc_Table($cn); $tab = new Anc_Table($cn);
$tab->get_request(); $tab->get_request();

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_anc_balance_double.php'); require_once ('class_anc_balance_double.php');
$bc = new Anc_Balance_Double($cn); $bc = new Anc_Balance_Double($cn);
$bc->get_request(); $bc->get_request();

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_anc_balance_simple.php'); require_once ('class_anc_balance_simple.php');
$bs = new Anc_Balance_Simple($cn); $bs = new Anc_Balance_Simple($cn);
$bs->get_request(); $bs->get_request();

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_anc_grandlivre.php'); require_once('class_anc_grandlivre.php');
$gl = new Anc_GrandLivre($cn); $gl = new Anc_GrandLivre($cn);
$gl->get_request(); $gl->get_request();

View file

@ -24,6 +24,7 @@
*\brief manage the group *\brief manage the group
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_itext.php"); require_once("class_itext.php");
require_once("class_iselect.php"); require_once("class_iselect.php");
require_once ('class_anc_group.php'); require_once ('class_anc_group.php');

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_anc_group.php'); require_once('class_anc_group.php');
$gr = new Anc_Group($cn); $gr = new Anc_Group($cn);
$gr->get_request(); $gr->get_request();

View file

@ -5,7 +5,7 @@
* and open the template in the editor. * and open the template in the editor.
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_anc_listing.php'); require_once ('class_anc_listing.php');
$list = new Anc_Listing($cn); $list = new Anc_Listing($cn);
$list->get_request(); $list->get_request();

View file

@ -26,6 +26,7 @@
* \brief Misc Operation for analytic accountancy * \brief Misc Operation for analytic accountancy
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_ihidden.php"); require_once("class_ihidden.php");
require_once("class_iselect.php"); require_once("class_iselect.php");
require_once("class_anc_account.php"); require_once("class_anc_account.php");

View file

@ -25,6 +25,7 @@
* \brief Plan Analytique * \brief Plan Analytique
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_anc_plan.php"); require_once("class_anc_plan.php");
require_once("class_anc_account.php"); require_once("class_anc_account.php");
$ret=""; $ret="";

View file

@ -23,7 +23,7 @@
/*!\file /*!\file
* \brief let you see the list of the connexion * \brief let you see the list of the connexion
*/ */
if ( !defined ('ALLOWED')) die('Forbidden');
?> ?>
<DIV class="content" style="width:80%;margin-left:10%"> <DIV class="content" style="width:80%;margin-left:10%">
<span class="notice">Liste limitée aux 100 dernières connexions</span> <span class="notice">Liste limitée aux 100 dernières connexions</span>

View file

@ -24,7 +24,7 @@
* *
* some variable are already defined ($cn, $g_user ...) * some variable are already defined ($cn, $g_user ...)
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once ("ac_common.php"); include_once ("ac_common.php");
include_once("class_acc_balance.php"); include_once("class_acc_balance.php");
require_once("class_iselect.php"); require_once("class_iselect.php");

View file

@ -23,6 +23,7 @@
/*!\file /*!\file
* \brief show the status of a card * \brief show the status of a card
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_exercice.php'); require_once('class_exercice.php');
global $g_user; global $g_user;
echo '<div class="content" style="width:90%;margin-left:5%">'; echo '<div class="content" style="width:90%;margin-left:5%">';

View file

@ -21,6 +21,7 @@
/*!\brief include from supplier.inc.php and concerned only the supplier card and /*!\brief include from supplier.inc.php and concerned only the supplier card and
* the supplier category * the supplier category
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_iselect.php"); require_once("class_iselect.php");
require_once("class_ihidden.php"); require_once("class_ihidden.php");
require_once("class_bank.php"); require_once("class_bank.php");

View file

@ -23,6 +23,7 @@
/*!\file /*!\file
* \brief Manage the attributs * \brief Manage the attributs
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_fiche_attr.php'); require_once('class_fiche_attr.php');

View file

@ -26,6 +26,7 @@
*/ */
// show list of document // show list of document
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_document_type.php'); require_once ('class_document_type.php');
if ( isset($_POST['add']) ) if ( isset($_POST['add']) )

View file

@ -26,6 +26,7 @@
* include from client.inc.php and concerned only the customer card and * include from client.inc.php and concerned only the customer card and
* the customer category * the customer category
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_contact.php'); require_once('class_contact.php');
$str_dossier=Dossier::get(); $str_dossier=Dossier::get();

View file

@ -32,6 +32,7 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Save modification // Save modification
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
if ( isset ($_POST['mod'])) if ( isset ($_POST['mod']))
{ {

View file

@ -27,6 +27,7 @@
* - sd = this parameter is used here * - sd = this parameter is used here
* - $cn = database connection * - $cn = database connection
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_follow_up.php'); require_once('class_follow_up.php');
/** /**

View file

@ -29,6 +29,7 @@
* - $sub_action * - $sub_action
* - $ss_action * - $ss_action
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_acc_ledger.php'); require_once('class_acc_ledger.php');
$f=new Fiche($cn,$_REQUEST['f_id']); $f=new Fiche($cn,$_REQUEST['f_id']);
$qcode=$f->get_quick_code(); $qcode=$f->get_quick_code();

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief module to manage the card (removing, listing, creating, modify attribut) * \brief module to manage the card (removing, listing, creating, modify attribut)
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once ("ac_common.php"); include_once ("ac_common.php");
require_once("class_itext.php"); require_once("class_itext.php");
require_once("class_ihidden.php"); require_once("class_ihidden.php");

View file

@ -27,6 +27,7 @@
* @brief Create, update and delete ledgers * @brief Create, update and delete ledgers
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_dossier.php'); require_once('class_dossier.php');
require_once ("ac_common.php"); require_once ("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');

View file

@ -18,9 +18,11 @@
*/ */
/* $Revision$ */ /* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/**\brief include from client.inc.php and concerned only the customer card and /**
* \brief include from client.inc.php and concerned only the customer card and
* the customer category * the customer category
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_iselect.php"); require_once("class_iselect.php");
require_once("class_ihidden.php"); require_once("class_ihidden.php");
require_once("class_customer.php"); require_once("class_customer.php");

View file

@ -1,5 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
global $g_user; global $g_user;
echo '<div class="content">'; echo '<div class="content">';
require_once("class_own.php"); require_once("class_own.php");

View file

@ -21,9 +21,11 @@
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/**\file /**
*\file
* \brief file included to manage all the sold operation * \brief file included to manage all the sold operation
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_icheckbox.php"); require_once("class_icheckbox.php");
require_once("class_acc_ledger_purchase.php"); require_once("class_acc_ledger_purchase.php");
require_once ('class_pre_op_ach.php'); require_once ('class_pre_op_ach.php');

View file

@ -23,6 +23,7 @@
/*!\file /*!\file
* \brief this file is to be included to handle the financial ledger * \brief this file is to be included to handle the financial ledger
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_acc_ledger_fin.php'); require_once ('class_acc_ledger_fin.php');
require_once('class_ipopup.php'); require_once('class_ipopup.php');
global $g_user,$g_parameter; global $g_user,$g_parameter;

View file

@ -27,6 +27,7 @@
* \brief reconcile operation * \brief reconcile operation
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
global $g_failed,$g_succeed; global $g_failed,$g_succeed;
require_once 'class_acc_ledger_fin.php'; require_once 'class_acc_ledger_fin.php';
bcscale(2); bcscale(2);

View file

@ -27,6 +27,7 @@
* \brief show bank saldo * \brief show bank saldo
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_acc_parm_code.php'); require_once ('class_acc_parm_code.php');
echo '<div class="content">'; echo '<div class="content">';
$fiche=new Fiche($cn); $fiche=new Fiche($cn);

View file

@ -27,6 +27,7 @@
* quant_purchase and quant_sold are not changed by this * quant_purchase and quant_sold are not changed by this
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_icheckbox.php"); require_once("class_icheckbox.php");
require_once ('class_acc_ledger.php'); require_once ('class_acc_ledger.php');
require_once ('class_acc_reconciliation.php'); require_once ('class_acc_reconciliation.php');

View file

@ -23,6 +23,7 @@
/*!\file /*!\file
* \brief file included to manage all the sold operation * \brief file included to manage all the sold operation
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_icheckbox.php"); require_once("class_icheckbox.php");
require_once("class_acc_ledger_sold.php"); require_once("class_acc_ledger_sold.php");
require_once ('class_pre_op_ven.php'); require_once ('class_pre_op_ven.php');

View file

@ -21,6 +21,7 @@
/**\brief include from client.inc.php and concerned only the contact card and /**\brief include from client.inc.php and concerned only the contact card and
* the contact category * the contact category
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_iselect.php"); require_once("class_iselect.php");
require_once("class_ihidden.php"); require_once("class_ihidden.php");
require_once("class_contact.php"); require_once("class_contact.php");

View file

@ -1,4 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_idate.php"); require_once("class_idate.php");
require_once("class_itext.php"); require_once("class_itext.php");
require_once ('constant.php'); require_once ('constant.php');

View file

@ -26,6 +26,7 @@
* @brief Manage the status of the document (document_state) * @brief Manage the status of the document (document_state)
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
global $cn; global $cn;
if ( isset($_POST['add'])) if ( isset($_POST['add']))

View file

@ -22,6 +22,7 @@
* \brief Manage the document template * \brief Manage the document template
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once("class_document_modele.php"); require_once("class_document_modele.php");
$sub_action=(isset ($_REQUEST['sa']))?$_REQUEST['sa']:""; $sub_action=(isset ($_REQUEST['sa']))?$_REQUEST['sa']:"";
echo js_include('modele_document.js'); echo js_include('modele_document.js');

View file

@ -19,7 +19,7 @@
/* $Revision$ */ /* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
if ( !defined ('ALLOWED')) die('Forbidden');
/*!\file /*!\file
* \brief Management of the folder * \brief Management of the folder
* *

View file

@ -24,6 +24,7 @@
* \brief export analytic list in csv * \brief export analytic list in csv
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="export-anc-list.csv"',FALSE); header('Content-Disposition: attachment;filename="export-anc-list.csv"',FALSE);

View file

@ -27,6 +27,7 @@
/* \brief export the operation in pdf /* \brief export the operation in pdf
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Pragma: public'); header('Pragma: public');
header('Content-Disposition: attachment;filename="ca_bal_croise.csv"',FALSE); header('Content-Disposition: attachment;filename="ca_bal_croise.csv"',FALSE);

View file

@ -23,7 +23,7 @@
/*!\file /*!\file
* \brief export the operation in pdf * \brief export the operation in pdf
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_anc_balance_double.php'); require_once ('class_anc_balance_double.php');
require_once ('header_print.php'); require_once ('header_print.php');

View file

@ -23,7 +23,7 @@
/*!\file /*!\file
* \brief export balance by group * \brief export balance by group
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_anc_group.php'); require_once('class_anc_group.php');
header('Pragma: public'); header('Pragma: public');

View file

@ -23,6 +23,7 @@
/*!\file /*!\file
* \brief export the operation in pdf * \brief export the operation in pdf
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="ca_bal_simple.csv"',FALSE); header('Content-Disposition: attachment;filename="ca_bal_simple.csv"',FALSE);

View file

@ -24,6 +24,7 @@
* \brief export the operation in pdf * \brief export the operation in pdf
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ('class_anc_balance_simple.php'); require_once ('class_anc_balance_simple.php');
$cn=new Database(dossier::id()); $cn=new Database(dossier::id());

View file

@ -1,4 +1,5 @@
<?php <?php
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="anc-grand-livre.csv"',FALSE); header('Content-Disposition: attachment;filename="anc-grand-livre.csv"',FALSE);

View file

@ -24,6 +24,7 @@
* \brief export the operation in pdf * \brief export the operation in pdf
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="jrn.csv"',FALSE); header('Content-Disposition: attachment;filename="jrn.csv"',FALSE);

View file

@ -23,7 +23,7 @@
/*!\file /*!\file
* \brief export the anc tables in CSV * \brief export the anc tables in CSV
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="anc-table-export.csv"',FALSE); header('Content-Disposition: attachment;filename="anc-table-export.csv"',FALSE);

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief Return the balance in CSV format * \brief Return the balance in CSV format
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="balance.csv"',FALSE); header('Content-Disposition: attachment;filename="balance.csv"',FALSE);

View file

@ -30,7 +30,7 @@
*/ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
// $Revision$ // $Revision$
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once("ac_common.php"); include_once("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');
include_once("class_acc_balance.php"); include_once("class_acc_balance.php");

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief send a Bilan in RTF format * \brief send a Bilan in RTF format
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once("ac_common.php"); include_once("ac_common.php");
include_once("class_impress.php"); include_once("class_impress.php");
require_once('class_database.php'); require_once('class_database.php');

View file

@ -24,6 +24,7 @@
* \brief Called by impress->category, export in CVS the history of a category * \brief Called by impress->category, export in CVS the history of a category
* of card * of card
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="bal-fiche.csv"',FALSE); header('Content-Disposition: attachment;filename="bal-fiche.csv"',FALSE);

View file

@ -24,7 +24,7 @@
* \brief Called by impress->category, export in PDF the history of a category or balance * \brief Called by impress->category, export in PDF the history of a category or balance
* of card * of card
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
// Security we check if user does exist and his privilege // Security we check if user does exist and his privilege
require_once('class_user.php'); require_once('class_user.php');
require_once('class_database.php'); require_once('class_database.php');

View file

@ -21,7 +21,7 @@
/*! \file /*! \file
* \brief Send a CSV file with card * \brief Send a CSV file with card
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="fiche.csv"',FALSE); header('Content-Disposition: attachment;filename="fiche.csv"',FALSE);

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief Send the poste list in csv * \brief Send the poste list in csv
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once("ac_common.php"); include_once("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');
require_once("class_fiche.php"); require_once("class_fiche.php");

View file

@ -23,6 +23,7 @@
/*! \file /*! \file
* \brief send the account list in PDF * \brief send the account list in PDF
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once("class_acc_account_ledger.php"); include_once("class_acc_account_ledger.php");
include_once("ac_common.php"); include_once("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');

View file

@ -24,7 +24,7 @@
* \brief Called by impress->category, export in PDF the history of a category * \brief Called by impress->category, export in PDF the history of a category
* of card * of card
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
// Security we check if user does exist and his privilege // Security we check if user does exist and his privilege
require_once('class_user.php'); require_once('class_user.php');
require_once('class_database.php'); require_once('class_database.php');

View file

@ -26,6 +26,7 @@
* @brief export Action Gestion to csv, taking in account the search * @brief export Action Gestion to csv, taking in account the search
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once 'class_follow_up.php'; require_once 'class_follow_up.php';
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief Send a report in CSV format * \brief Send a report in CSV format
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once ("ac_common.php"); require_once ("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');
require_once ('class_user.php'); require_once ('class_user.php');

View file

@ -23,7 +23,7 @@
/*! \file /*! \file
* \brief Send a report in PDF * \brief Send a report in PDF
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once("class_acc_report.php"); include_once("class_acc_report.php");
include_once("ac_common.php"); include_once("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');

View file

@ -23,7 +23,7 @@
/*! \file /*! \file
* \brief create GL comptes as PDF * \brief create GL comptes as PDF
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once('class_acc_account_ledger.php'); include_once('class_acc_account_ledger.php');
include_once('ac_common.php'); include_once('ac_common.php');
require_once('class_database.php'); require_once('class_database.php');

View file

@ -23,7 +23,7 @@
/*! \file /*! \file
* \brief create GL comptes as PDF * \brief create GL comptes as PDF
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once('class_acc_account_ledger.php'); include_once('class_acc_account_ledger.php');
include_once('ac_common.php'); include_once('ac_common.php');
require_once('class_database.php'); require_once('class_database.php');

View file

@ -23,7 +23,7 @@
/*!\file /*!\file
* \brief history of the accountancy exported in CSV * \brief history of the accountancy exported in CSV
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="histo-export.csv"',FALSE); header('Content-Disposition: attachment;filename="histo-export.csv"',FALSE);

View file

@ -21,7 +21,7 @@
/*! \file /*! \file
* \brief Send a ledger in CSV format * \brief Send a ledger in CSV format
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
header('Pragma: public'); header('Pragma: public');
header('Content-type: application/csv'); header('Content-type: application/csv');
header('Content-Disposition: attachment;filename="jrn.csv"',FALSE); header('Content-Disposition: attachment;filename="jrn.csv"',FALSE);

View file

@ -25,7 +25,7 @@
* \brief Send a ledger in a pdf format * \brief Send a ledger in a pdf format
* *
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once('class_dossier.php'); require_once('class_dossier.php');
$gDossier=dossier::id(); $gDossier=dossier::id();
require_once('class_pdf.php'); require_once('class_pdf.php');

View file

@ -21,6 +21,7 @@
/*! \file /*! \file
* \brief Send the poste list in csv * \brief Send the poste list in csv
*/ */
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once("ac_common.php"); include_once("ac_common.php");
require_once('class_database.php'); require_once('class_database.php');
require_once("class_acc_account_ledger.php"); require_once("class_acc_account_ledger.php");

Some files were not shown because too many files have changed in this diff Show more