This commit is contained in:
Laurent Destailleur 2020-10-27 01:44:00 +01:00
parent c918acaadc
commit 32ff76178e
25 changed files with 78 additions and 6 deletions

View File

@ -25,6 +25,10 @@
* \brief Page to detect empty accounting account
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$path = __DIR__.'/';
require_once $path."../../htdocs/master.inc.php";
require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';

View File

@ -22,6 +22,9 @@
* \ingroup bank
* \brief Script file to export bank receipts into Excel files
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup company
* \brief Script file to export contacts into an Excel file
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup ldap company
* \brief Script to update all contacts from Dolibarr into a LDAP database
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -24,6 +24,9 @@
* \ingroup facture
* \brief Script to send a mail to customers with services to expire
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -24,6 +24,9 @@
* \ingroup contracts
* \brief Script to send a mail to dolibarr users linked to companies with services to expire
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -30,7 +30,7 @@ if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
if (!defined('NOLOGIN')) define('NOLOGIN', '1');
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);

View File

@ -25,6 +25,9 @@
* \ingroup mailing
* \brief Script d'envoi d'un mailing prepare et valide
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -24,6 +24,9 @@
* \ingroup facture
* \brief Script to send a mail to customers with unpaid invoices
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -24,6 +24,9 @@
* \ingroup facture
* \brief Script to send a mail to dolibarr users linked to companies with unpaid invoices
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -22,6 +22,9 @@
* \ingroup facture
* \brief Script to rebuild PDF and merge PDF files into one
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup ldap member
* \brief Script de mise a jour des adherents dans LDAP depuis base Dolibarr
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';
@ -40,7 +43,7 @@ require_once DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php";
$langs->load("main");
// Global variables
$version = DOL_VERSION;
$version = constant('DOL_VERSION');
$error = 0;
$confirmed = 0;

View File

@ -23,6 +23,9 @@
* \ingroup ldap member
* \brief Script de mise a jour des adherents dans Dolibarr depuis LDAP
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';
@ -42,7 +45,7 @@ require_once DOL_DOCUMENT_ROOT."/adherents/class/subscription.class.php";
$langs->loadLangs(array("main", "errors"));
// Global variables
$version = DOL_VERSION;
$version = constant('DOL_VERSION');
$error = 0;
$forcecommit = 0;
$confirmed = 0;

View File

@ -24,6 +24,9 @@
* \ingroup ldap core
* \brief Script de mise a jour des types de membres dans LDAP depuis base Dolibarr
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';
@ -38,6 +41,7 @@ if (!isset($argv[1]) || !$argv[1]) {
print "Usage: ".$script_file." now\n";
exit(-1);
}
$now = $argv[1];
require_once $path."../../htdocs/master.inc.php";
@ -45,7 +49,7 @@ require_once DOL_DOCUMENT_ROOT."/core/class/ldap.class.php";
require_once DOL_DOCUMENT_ROOT."/adherents/class/adherent_type.class.php";
// Global variables
$version = DOL_VERSION;
$version = constant('DOL_VERSION');
$error = 0;
/*

View File

@ -25,6 +25,9 @@
* \ingroup ldap member
* \brief Script to update members types into Dolibarr from LDAP
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';
@ -43,7 +46,7 @@ require_once DOL_DOCUMENT_ROOT."/adherents/class/adherent_type.class.php";
$langs->loadLangs(array("main", "errors"));
// Global variables
$version = DOL_VERSION;
$version = constant('DOL_VERSION');
$error = 0;
$forcecommit = 0;
$confirmed = 0;

View File

@ -23,6 +23,9 @@
* \ingroup scripts
* \brief Migrate pictures from old system prior to 3.7 to new path for 3.7+
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup scripts
* \brief Migrate pictures from old system prior to 3.7 to new path for 3.7+
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup scripts
* \brief Migrate pictures from old system prior to 3.7 to new path for 3.7+
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup ldap core
* \brief Script de mise a jour des groupes dans LDAP depuis base Dolibarr
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -24,6 +24,9 @@
* \ingroup ldap member
* \brief Script to update groups into Dolibarr from LDAP
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup ldap core
* \brief Script de mise a jour des users dans LDAP depuis base Dolibarr
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup ldap member
* \brief Script to update users into Dolibarr from LDAP
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -22,6 +22,8 @@
* \brief Migrate news from a Joomla databse into a Dolibarr website
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -22,6 +22,8 @@
* \brief Regenerate all pages of a web site
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';

View File

@ -23,6 +23,9 @@
* \ingroup prelevement
* \brief Script de prelevement
*/
if (!defined('NOSESSION')) define('NOSESSION', '1');
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path = __DIR__.'/';
@ -40,7 +43,7 @@ require_once DOL_DOCUMENT_ROOT."/societe/class/societe.class.php";
require_once DOL_DOCUMENT_ROOT."/compta/paiement/class/paiement.class.php";
// Global variables
$version = DOL_VERSION;
$version = constant('DOL_VERSION');
$error = 0;
/*