diff --git a/htdocs/ajaxbox.php b/htdocs/ajaxbox.php index 31c90506857..e0a653533c4 100644 --- a/htdocs/ajaxbox.php +++ b/htdocs/ajaxbox.php @@ -27,6 +27,8 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); +if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); +if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // This is to make Dolibarr working with Plesk set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs'); diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index 1bd684d2436..1fa0d2f4ab4 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -258,8 +258,7 @@ if (! defined('NOREQUIREDB')) } /* - * Creation objet $mysoc - * Objet Societe qui contient carac de l'institution g�r�e par Dolibarr. + * Create object $mysoc (A "Societe" object that contains properties of companies managed by Dolibarr. */ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC')) { @@ -329,7 +328,7 @@ if (! defined('NOREQUIRETRAN')) /* * Pour utiliser d'autres versions des librairies externes que les - * versions embarqu�es dans Dolibarr, d�finir les constantes adequates: + * versions embarquees dans Dolibarr, definir les constantes adequates: * Pour FPDF: FPDF_PATH * Pour PHP_WriteExcel: PHP_WRITEEXCEL_PATH * Pour MagpieRss: MAGPIERSS_PATH diff --git a/htdocs/product/ajaxproducts.php b/htdocs/product/ajaxproducts.php index f0ffb403ce7..8a28082e4a4 100644 --- a/htdocs/product/ajaxproducts.php +++ b/htdocs/product/ajaxproducts.php @@ -28,6 +28,7 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); if (empty($_GET['keysearch']) && ! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); +if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); require('../main.inc.php'); diff --git a/htdocs/societe/ajaxcompanies.php b/htdocs/societe/ajaxcompanies.php index 6f190e0c7a5..574b997eec1 100644 --- a/htdocs/societe/ajaxcompanies.php +++ b/htdocs/societe/ajaxcompanies.php @@ -28,6 +28,7 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); +if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); require('../main.inc.php'); diff --git a/htdocs/societe/ajaxcountries.php b/htdocs/societe/ajaxcountries.php index 2dbbe9dbc95..f4d079eb023 100644 --- a/htdocs/societe/ajaxcountries.php +++ b/htdocs/societe/ajaxcountries.php @@ -27,6 +27,7 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); +if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); require('../main.inc.php'); @@ -46,7 +47,6 @@ if(isset($_POST['pays']) && !empty($_POST['pays'])) $sql.= " ORDER BY libelle ASC;"; $resql=$db->query($sql); - if ($resql) { print '