diff --git a/include/action.common.inc.php b/include/action.common.inc.php
index e2b1b4056..689cc3d9c 100644
--- a/include/action.common.inc.php
+++ b/include/action.common.inc.php
@@ -52,7 +52,7 @@ if ( isset ($_POST['other_action_bt'])) {
case 'IMP':
//Impression
Follow_Up::action_print($cn,$_POST);
- exit(0);
+ return;
break;
case 'ST':
// Etat
@@ -124,7 +124,7 @@ if ($sub_action == "update")
echo '
';
echo create_script(" get_last_date()");
}
echo create_script(" update_name()");
-exit();
+return;
?>
diff --git a/include/contact.inc.php b/include/contact.inc.php
index 829f028b6..71678287f 100644
--- a/include/contact.inc.php
+++ b/include/contact.inc.php
@@ -147,7 +147,7 @@ if ( $low_action == 'detail')
{
/* Menu */
require_once('category_card.inc.php');
- exit();
+ return;
}
html_page_stop();
diff --git a/include/customer.inc.php b/include/customer.inc.php
index 87554bd47..b1e867786 100644
--- a/include/customer.inc.php
+++ b/include/customer.inc.php
@@ -137,7 +137,7 @@ if ( $low_action == 'detail')
{
/* Menu */
require_once('category_card.inc.php');
- exit();
+ return;
}
html_page_stop();
diff --git a/include/dossier.inc.php b/include/dossier.inc.php
index ccd9562c8..ec7c663bd 100644
--- a/include/dossier.inc.php
+++ b/include/dossier.inc.php
@@ -58,7 +58,7 @@ if ( isset ($_POST["DATABASE"]) )
echo _('le modele ').domaine.'mod'.$_POST["FMOD_ID"]._(" doit être migré en unicode.");
echo _('Pour le passer en unicode, faites-en un backup puis restaurez le fichier reçu').'';
echo HtmlInput::button_anchor('Retour','admin_repo.php?action=dossier_mgt');
- exit();
+ return;
}
$desc=sql_string($_POST["DESCRIPTION"]);
@@ -344,7 +344,7 @@ if ( $sa == 'remove' )
{
echo _('Désolé, vous n\'avez pas coché la case');
echo HtmlInput::button_anchor('Retour','?action=dossier_mgt');
- exit();
+ return;
}
$cn=new Database();
@@ -353,7 +353,7 @@ if ( $sa == 'remove' )
if ( strlen(trim($name)) == 0 )
{
echo "
$msg "._('inexistant')."
";
- exit();
+ return;
}
$sql="drop database ".domaine."dossier".sql_string($_REQUEST['d']);
ob_start();
diff --git a/include/extension_get.inc.php b/include/extension_get.inc.php
index fc76e0d76..e051490bc 100644
--- a/include/extension_get.inc.php
+++ b/include/extension_get.inc.php
@@ -26,17 +26,17 @@ $ext=new Extension();
if ($ext->search($_REQUEST['plugin_code']) == -1)
{
echo_warning("plugin non trouvé");
- exit();
+ return;
}
if ($ext->can_request($g_user->login)==-1)
{
alert("Plugin non authorisé");
- exit();
+ return;
}
if ( ! file_exists('../include/ext'.DIRECTORY_SEPARATOR.trim($ext->me_file)))
{
alert(j(_("Ce fichier n'existe pas ")));
- exit();
+ return;
}
echo '
';
require_once('ext'.DIRECTORY_SEPARATOR.trim($ext->me_file));
diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index ea2393ff0..053135ae8 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -103,7 +103,7 @@ echo '
';
//-----------------------------------------------------
if (!isset($_GET['cat_display']))
- exit();
+ return;
$fd_id = $_GET['cat'];
@@ -123,7 +123,7 @@ if ($array == null)
echo ' '._('Aucune fiche trouvée').'
';
echo $str_add_card;
echo '';
- exit();
+ return;
}
$allcard = (isset($_GET['allcard'])) ? 1 : 0;
@@ -218,7 +218,7 @@ if ($_GET['histo'] == -1)
require_once 'template/fiche_list.php';
echo '
'.$bar;
- exit();
+ return;
}
/* * *********************************************************************************************************************************
* Summary
@@ -241,7 +241,7 @@ if ($_GET['histo'] == 3)
$hid->input("fd_id", $_REQUEST['cat']);
echo "";
- exit();
+ return;
}
$export_pdf = '
';
echo '
';
echo '';
- exit();
+ return;
}
catch (Exception $e)
{
diff --git a/include/impress_gl_comptes.inc.php b/include/impress_gl_comptes.inc.php
index 21c416d65..e20f6b9f4 100644
--- a/include/impress_gl_comptes.inc.php
+++ b/include/impress_gl_comptes.inc.php
@@ -147,7 +147,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
if ( isDate($_REQUEST['from_periode'])==null || isDate($_REQUEST['to_periode'])==null)
{
echo alert('Date malformée, désolée');
- exit();
+ return;
}
echo '';
diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php
index d6c55c01c..0532ff4db 100644
--- a/include/impress_poste.inc.php
+++ b/include/impress_poste.inc.php
@@ -134,7 +134,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
if ( isDate($_REQUEST['from_periode'])==null || isDate($_REQUEST['to_periode'])==null)
{
echo alert('Date malformée, désolée');
- exit();
+ return;
}
require_once("class_acc_account_ledger.php");
$go=0;
@@ -187,7 +187,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
Acc_Account_Ledger::HtmlTableHeader();
$Poste->get_row_date( $_GET['from_periode'], $_GET['to_periode'],$_GET['ople']);
- if ( empty($Poste->row)) exit();
+ if ( empty($Poste->row)) return;
$Poste->load();
echo '
';
diff --git a/include/impress_rec.inc.php b/include/impress_rec.inc.php
index 4f8bec5fb..0beee6bce 100644
--- a/include/impress_rec.inc.php
+++ b/include/impress_rec.inc.php
@@ -82,7 +82,7 @@ echo '
';
echo '';
echo '';
echo '';
-if ( ! isset($_GET['vis'])) exit();
+if ( ! isset($_GET['vis'])) return;
$acc_reconciliation=new Acc_Reconciliation($cn);
$acc_reconciliation->a_jrn=$r_jrn;
$acc_reconciliation->start_day=$dstart->value;
@@ -100,4 +100,4 @@ $gDossier=Dossier::id();
';
if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null )
{
echo alert(_('Date malformée, désolé'));
- exit();
+ return;
}
$letter=new Lettering_Account($cn);
$letter->set_parameter('account',$_GET['acc']);
diff --git a/include/lettering.gestion.inc.php b/include/lettering.gestion.inc.php
index 0da3fc750..a421b7c41 100644
--- a/include/lettering.gestion.inc.php
+++ b/include/lettering.gestion.inc.php
@@ -71,7 +71,7 @@ if ( isset($_GET['start']) && isset($_GET['end']))
if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null )
{
echo alert(_('Date malformée, désolé'));
- exit();
+ return;
}
}
echo '
';
diff --git a/include/manager.inc.php b/include/manager.inc.php
index 382de0488..2064b710f 100644
--- a/include/manager.inc.php
+++ b/include/manager.inc.php
@@ -139,7 +139,7 @@ if ($low_action == 'detail')
{
/* Menu */
require_once('category_card.inc.php');
- exit();
+ return;
}
diff --git a/include/modele.inc.php b/include/modele.inc.php
index 5480dc518..a571c9973 100644
--- a/include/modele.inc.php
+++ b/include/modele.inc.php
@@ -70,7 +70,7 @@ if (isset($_POST["FMOD_NAME"]))
echo ' Pour le passer en unicode, faites-en un backup puis restaurez le fichier reçu';
echo HtmlInput::button_anchor('Retour', 'admin_repo.php?action=dossier_mgt');
- exit();
+ return;
}
$mod_name = sql_string($_POST["FMOD_NAME"]);
@@ -387,7 +387,7 @@ if ($sa == 'add')
{
echo('Désolé, vous n\'avez pas coché la case');
echo HtmlInput::button_anchor('Retour', '?action=modele_mgt');
- exit();
+ return;
}
$cn = new Database();
@@ -396,7 +396,7 @@ if ($sa == 'add')
if (strlen(trim($name)) == 0)
{
echo "
$msg inexistant
";
- exit();
+ return;
}
$sql = "drop database " . domaine . "mod" . sql_string($_REQUEST['m']);
ob_start();
diff --git a/include/opening.inc.php b/include/opening.inc.php
index d639124b2..b9fc4689d 100644
--- a/include/opening.inc.php
+++ b/include/opening.inc.php
@@ -42,7 +42,7 @@ if (isset($_POST['correct']))
{
$ledger = new Acc_Ledger($cn, $_REQUEST['p_jrn']);
require_once 'operation_ods_new.inc.php';
- exit();
+ return;
}
// confirm before saving
@@ -59,7 +59,7 @@ if ( isset($_POST['summary']))
require('operation_ods_new.inc.php');
}
- exit();
+ return;
}
// record
@@ -89,7 +89,7 @@ if (isset($_POST['save']))
require('operation_ods_new.inc.php');
alert($e->getMessage());
}
- exit();
+ return;
}
@@ -108,7 +108,7 @@ if ($sa == '')
if (empty($avail))
{
echo '*** Aucun dossier ***';
- exit();
+ return;
}
echo '';
echo '';
echo '
';
- exit();
+ return;
}
/* --------------------------------------------------
* Step 2 choose now the exercice of this folder
diff --git a/include/operation_ods_new.inc.php b/include/operation_ods_new.inc.php
index 0e6cc84cc..ce1e9a40f 100644
--- a/include/operation_ods_new.inc.php
+++ b/include/operation_ods_new.inc.php
@@ -41,7 +41,7 @@ $ledger->id = ($ledger->id == -1) ? $first_ledger['jrn_def_id'] : $id_ledger;
if ( $g_user->check_jrn($ledger->id)=='X')
{
alert("Vous ne pouvez pas écrire dans ce journal, contacter votre administrateur");
- exit();
+ return;
}
echo '';
echo '
';
if ( isset($_POST['upload']))
{
- exit();
+ return;
}
if ( isset ($_REQUEST["action"]) )
{
diff --git a/include/stock_cfg.inc.php b/include/stock_cfg.inc.php
index 6c7ada2b1..cd307145b 100644
--- a/include/stock_cfg.inc.php
+++ b/include/stock_cfg.inc.php
@@ -36,7 +36,7 @@ if ($g_parameter->MY_STOCK == 'N')
echo '
';
echo _("Vous n'utilisez pas de gestion de stock");
echo '
';
- exit();
+ return;
}
if ( isset ($_POST['add_stock']))
{
diff --git a/include/supplier.inc.php b/include/supplier.inc.php
index 7b49b36ee..0dc5a652a 100644
--- a/include/supplier.inc.php
+++ b/include/supplier.inc.php
@@ -143,7 +143,7 @@ if ( $low_action == 'detail')
{
/* Menu */
require_once('category_card.inc.php');
- exit();
+ return;
}
diff --git a/include/tva.inc.php b/include/tva.inc.php
index 4446e2669..9b65f850b 100644
--- a/include/tva.inc.php
+++ b/include/tva.inc.php
@@ -90,8 +90,8 @@ if (isset($_POST['confirm_mod'])
$own = new Own($cn);
if ($own->MY_TVA_USE == 'N')
{
- echo '
Vous n\'êtes pas assujetti à la TVA
';
- exit();
+ echo '
'._("Vous n'êtes pas assujetti à la TVA").'
';
+ return;
}
//-----------------------------------------------------
// Display
diff --git a/include/user.inc.php b/include/user.inc.php
index 3646e69f3..85799eed6 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -61,7 +61,7 @@ if ( isset($_REQUEST['det']))
{
require_once("user_detail.inc.php");
- exit();
+ return;
}
?>
diff --git a/include/user_detail.inc.php b/include/user_detail.inc.php
index 6b5fa8046..9905dec56 100644
--- a/include/user_detail.inc.php
+++ b/include/user_detail.inc.php
@@ -31,7 +31,7 @@ $rep = new Database();
if (!isset($_REQUEST['use_id']))
{
html_page_stop();
- exit();
+ return;
}
$uid = $_REQUEST['use_id'];
$UserChange = new User($rep, $uid);
@@ -210,7 +210,7 @@ if (empty($Dossier))
{
echo hb('* Aucun Dossier *');
echo '
';
- exit();
+ return;
}
$mod_user = new User(new Database(), $uid);