FIX #15168
This commit is contained in:
parent
c918acaadc
commit
32ff76178e
@ -25,6 +25,10 @@
|
|||||||
* \brief Page to detect empty accounting account
|
* \brief Page to detect empty accounting account
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
|
$path = __DIR__.'/';
|
||||||
|
|
||||||
require_once $path."../../htdocs/master.inc.php";
|
require_once $path."../../htdocs/master.inc.php";
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||||
|
|||||||
@ -22,6 +22,9 @@
|
|||||||
* \ingroup bank
|
* \ingroup bank
|
||||||
* \brief Script file to export bank receipts into Excel files
|
* \brief Script file to export bank receipts into Excel files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup company
|
* \ingroup company
|
||||||
* \brief Script file to export contacts into an Excel file
|
* \brief Script file to export contacts into an Excel file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup ldap company
|
* \ingroup ldap company
|
||||||
* \brief Script to update all contacts from Dolibarr into a LDAP database
|
* \brief Script to update all contacts from Dolibarr into a LDAP database
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -24,6 +24,9 @@
|
|||||||
* \ingroup facture
|
* \ingroup facture
|
||||||
* \brief Script to send a mail to customers with services to expire
|
* \brief Script to send a mail to customers with services to expire
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -24,6 +24,9 @@
|
|||||||
* \ingroup contracts
|
* \ingroup contracts
|
||||||
* \brief Script to send a mail to dolibarr users linked to companies with services to expire
|
* \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();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -30,7 +30,7 @@ if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
|||||||
if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1');
|
||||||
if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
||||||
if (!defined('NOLOGIN')) define('NOLOGIN', '1');
|
if (!defined('NOLOGIN')) define('NOLOGIN', '1');
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
|
|||||||
@ -25,6 +25,9 @@
|
|||||||
* \ingroup mailing
|
* \ingroup mailing
|
||||||
* \brief Script d'envoi d'un mailing prepare et valide
|
* \brief Script d'envoi d'un mailing prepare et valide
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -24,6 +24,9 @@
|
|||||||
* \ingroup facture
|
* \ingroup facture
|
||||||
* \brief Script to send a mail to customers with unpaid invoices
|
* \brief Script to send a mail to customers with unpaid invoices
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -24,6 +24,9 @@
|
|||||||
* \ingroup facture
|
* \ingroup facture
|
||||||
* \brief Script to send a mail to dolibarr users linked to companies with unpaid invoices
|
* \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();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -22,6 +22,9 @@
|
|||||||
* \ingroup facture
|
* \ingroup facture
|
||||||
* \brief Script to rebuild PDF and merge PDF files into one
|
* \brief Script to rebuild PDF and merge PDF files into one
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup ldap member
|
* \ingroup ldap member
|
||||||
* \brief Script de mise a jour des adherents dans LDAP depuis base Dolibarr
|
* \brief Script de mise a jour des adherents dans LDAP depuis base Dolibarr
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
@ -40,7 +43,7 @@ require_once DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php";
|
|||||||
$langs->load("main");
|
$langs->load("main");
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
$version = DOL_VERSION;
|
$version = constant('DOL_VERSION');
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$confirmed = 0;
|
$confirmed = 0;
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup ldap member
|
* \ingroup ldap member
|
||||||
* \brief Script de mise a jour des adherents dans Dolibarr depuis LDAP
|
* \brief Script de mise a jour des adherents dans Dolibarr depuis LDAP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
@ -42,7 +45,7 @@ require_once DOL_DOCUMENT_ROOT."/adherents/class/subscription.class.php";
|
|||||||
$langs->loadLangs(array("main", "errors"));
|
$langs->loadLangs(array("main", "errors"));
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
$version = DOL_VERSION;
|
$version = constant('DOL_VERSION');
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$forcecommit = 0;
|
$forcecommit = 0;
|
||||||
$confirmed = 0;
|
$confirmed = 0;
|
||||||
|
|||||||
@ -24,6 +24,9 @@
|
|||||||
* \ingroup ldap core
|
* \ingroup ldap core
|
||||||
* \brief Script de mise a jour des types de membres dans LDAP depuis base Dolibarr
|
* \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();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
@ -38,6 +41,7 @@ if (!isset($argv[1]) || !$argv[1]) {
|
|||||||
print "Usage: ".$script_file." now\n";
|
print "Usage: ".$script_file." now\n";
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$now = $argv[1];
|
$now = $argv[1];
|
||||||
|
|
||||||
require_once $path."../../htdocs/master.inc.php";
|
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";
|
require_once DOL_DOCUMENT_ROOT."/adherents/class/adherent_type.class.php";
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
$version = DOL_VERSION;
|
$version = constant('DOL_VERSION');
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -25,6 +25,9 @@
|
|||||||
* \ingroup ldap member
|
* \ingroup ldap member
|
||||||
* \brief Script to update members types into Dolibarr from LDAP
|
* \brief Script to update members types into Dolibarr from LDAP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
@ -43,7 +46,7 @@ require_once DOL_DOCUMENT_ROOT."/adherents/class/adherent_type.class.php";
|
|||||||
$langs->loadLangs(array("main", "errors"));
|
$langs->loadLangs(array("main", "errors"));
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
$version = DOL_VERSION;
|
$version = constant('DOL_VERSION');
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$forcecommit = 0;
|
$forcecommit = 0;
|
||||||
$confirmed = 0;
|
$confirmed = 0;
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup scripts
|
* \ingroup scripts
|
||||||
* \brief Migrate pictures from old system prior to 3.7 to new path for 3.7+
|
* \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();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup scripts
|
* \ingroup scripts
|
||||||
* \brief Migrate pictures from old system prior to 3.7 to new path for 3.7+
|
* \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();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup scripts
|
* \ingroup scripts
|
||||||
* \brief Migrate pictures from old system prior to 3.7 to new path for 3.7+
|
* \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();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup ldap core
|
* \ingroup ldap core
|
||||||
* \brief Script de mise a jour des groupes dans LDAP depuis base Dolibarr
|
* \brief Script de mise a jour des groupes dans LDAP depuis base Dolibarr
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -24,6 +24,9 @@
|
|||||||
* \ingroup ldap member
|
* \ingroup ldap member
|
||||||
* \brief Script to update groups into Dolibarr from LDAP
|
* \brief Script to update groups into Dolibarr from LDAP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup ldap core
|
* \ingroup ldap core
|
||||||
* \brief Script de mise a jour des users dans LDAP depuis base Dolibarr
|
* \brief Script de mise a jour des users dans LDAP depuis base Dolibarr
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup ldap member
|
* \ingroup ldap member
|
||||||
* \brief Script to update users into Dolibarr from LDAP
|
* \brief Script to update users into Dolibarr from LDAP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -22,6 +22,8 @@
|
|||||||
* \brief Migrate news from a Joomla databse into a Dolibarr website
|
* \brief Migrate news from a Joomla databse into a Dolibarr website
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -22,6 +22,8 @@
|
|||||||
* \brief Regenerate all pages of a web site
|
* \brief Regenerate all pages of a web site
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$path = __DIR__.'/';
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
* \ingroup prelevement
|
* \ingroup prelevement
|
||||||
* \brief Script de prelevement
|
* \brief Script de prelevement
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!defined('NOSESSION')) define('NOSESSION', '1');
|
||||||
|
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path = __DIR__.'/';
|
$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";
|
require_once DOL_DOCUMENT_ROOT."/compta/paiement/class/paiement.class.php";
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
$version = DOL_VERSION;
|
$version = constant('DOL_VERSION');
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user