28define(
'NOALYSS_VERSION', 9201 );
31define(
"DBVERSION", 196);
34define(
"MONO_DATABASE", 25);
37define(
"DBVERSIONREPO", 20);
50if (file_exists(
$dirname .
'/config.inc.php')) require_once
$dirname .
'/config.inc.php';
52if (!defined(
"NOALYSS_HOME")) define(
"NOALYSS_HOME", dirname(
$dirname) .
"/html");
53if (!defined(
"NOALYSS_BASE")) define(
"NOALYSS_BASE", dirname(
$dirname) );
54if (!defined(
"NOALYSS_PLUGIN")) define(
"NOALYSS_PLUGIN",
$g_ext_dir);
55if (!defined(
"NOALYSS_INCLUDE")) define(
"NOALYSS_INCLUDE",
$g_include_dir);
56if (!defined(
"NOALYSS_TEMPLATE")) define(
"NOALYSS_TEMPLATE",
$g_template_dir);
59if (!defined(
"FIX_BROKEN_PDF")) define(
"FIX_BROKEN_PDF",
'NO');
62if (!defined(
'NOALYSS_ADMINISTRATOR')) {
63 define(
'NOALYSS_ADMINISTRATOR',
'phpcompta');
65if (!defined(
"SESSION_KEY")) {
66 define(
"SESSION_KEY",
"RtYu0uu");
68require_once NOALYSS_INCLUDE .
'/constant.security.php';
77set_include_path($new_path);
78@ini_set(
'default_charset',
"UTF-8");
79@ini_set(
'session.use_cookies', 1);
81@ini_set(
'magic_quotes_gpc',
'off');
83if (!defined(
'OVERRIDE_PARAM')) {
84 ini_set(
'max_execution_time', 240);
85 ini_set(
'memory_limit',
'256M');
87@ini_set(
'session.use_trans_sid',
'on');
94if (!defined(
'NOALYSS_CAPTCHA')) {
95 define(
"NOALYSS_CAPTCHA",
false);
99$g_failed =
"<span style=\"font-size:18px;color:red\">✖</span>";
100$g_succeed =
"<span style=\"font-size:18px;color:green\">✓</span>";
101define(
'SMALLX',
'#xe816;');
102define(
'BUTTONADD',
"✚");
106if (!defined(
'DEBUGNOALYSS')) {
107 define(
"DEBUGNOALYSS", 0);
110if (!defined(
'LOGINPUT')) {
111 define(
"LOGINPUT",
false);
114if (!defined(
'DEBUGNOALYSS')) {
115 define(
'DEBUGNOALYSS', 0);
120if (!defined(
"SITE_UPDATE"))
121 define(
"SITE_UPDATE",
'https://www.noalyss.eu/last_version.txt');
122if (!defined(
"SITE_UPDATE_PLUGIN"))
123 define(
"SITE_UPDATE_PLUGIN",
'https://www.noalyss.eu/plugin_last_version.txt');
124if (!defined(
"NOALYSS_PACKAGE_REPOSITORY")) {
125 define(
"NOALYSS_PACKAGE_REPOSITORY",
"https://package.noalyss.eu/");
128if (!defined(
"SYSINFO_DISPLAY")) {
129 define(
"SYSINFO_DISPLAY", TRUE);
131define(
'NOTFOUND',
'--not found--');
132define(
"MAX_COMPTE", 4);
133define(
'MAX_ARTICLE', 5);
134define(
'MAX_ARTICLE_STOCK', 10);
135define(
'MAX_CAT', 15);
136define(
'MAX_CARD_SEARCH', 550);
137define(
'MAX_FORECAST_ITEM', 10);
138define(
'MAX_PREDEFINED_OPERATION', 50);
139define(
'MAX_COMPTE_CARD', 4);
140define(
'COMPTA_MAX_YEAR', 2100);
141define(
'COMPTA_MIN_YEAR', 1900);
142define(
'MAX_RECONCILE', 25);
143define(
'MAX_QCODE', 4);
144if (!defined(
'MAX_SEARCH_CARD')) {
145 define(
'MAX_SEARCH_CARD', 20);
148define(
'MAX_FOLDER_TO_SHOW', 80);
149define(
'MAX_ACTION_SHOW', 20);
151if (DEBUGNOALYSS == 0) {
154 error_reporting(E_ERROR | E_WARNING);
155 ini_set(
"display_errors", 0);
156 ini_set(
"html_errors", 0);
157 ini_set(
'log_errors', 1);
158 ini_set(
'log_errors_max_len', 0);
159}
elseif (DEBUGNOALYSS == 1) {
161 error_reporting(2147483647);
162 ini_set(
"display_errors", 1);
163 ini_set(
"display_startup_errors", 1);
164 ini_set(
"html_errors", 1);
165 ini_set(
'log_errors', 1);
166 ini_set(
'log_errors_max_len', 0);
167}
elseif (DEBUGNOALYSS == 2) {
169 error_reporting(2147483647);
170 ini_set(
"display_errors", 1);
171 ini_set(
"display_startup_errors", 1);
172 ini_set(
"html_errors", 1);
173 ini_set(
'log_errors', 1);
174 ini_set(
'log_errors_max_len', 0);
182define(
"NOTPERIODE", 3);
183define(
"PERIODCLOSED", 4);
184define(
"INVALID_ECH", 5);
185define(
"RAPPT_ALREADY_USED", 6);
186define(
"RAPPT_NOT_EXIST", 7);
187define(
"DIFF_AMOUNT", 8);
188define(
"RAPPT_NOMATCH_AMOUNT", 9);
189define(
"NO_PERIOD_SELECTED", 10);
190define(
"NO_POST_SELECTED", 11);
196define(
'ACTION',
'1,5,6,7,8');
203define(
"NOTCENTRALIZED", 3);
207define(
"MENU_FACT", 1);
208define(
"MENU_FICHE", 2);
209define(
"MENU_PARAM", 3);
212define(
"ALL_FICHE_DEF_REF", 1000);
215define(
"ATTR_DEF_ACCOUNT", 5);
216define(
"ATTR_DEF_NAME", 1);
217define(
"ATTR_DEF_BQ_NO", 3);
218define(
"ATTR_DEF_BQ_NAME", 4);
219define(
"ATTR_DEF_PRIX_ACHAT", 7);
220define(
"ATTR_DEF_PRIX_VENTE", 6);
221define(
"ATTR_DEF_TVA", 2);
222define(
"ATTR_DEF_NUMTVA", 13);
223define(
"ATTR_DEF_ADRESS", 14);
224define(
"ATTR_DEF_CP", 15);
225define(
"ATTR_DEF_PAYS", 16);
226define(
"ATTR_DEF_STOCK", 19);
227define(
"ATTR_DEF_TEL", 17);
228define(
"ATTR_DEF_EMAIL", 18);
229define(
"ATTR_DEF_CITY", 24);
230define(
"ATTR_DEF_COMPANY", 25);
231define(
"ATTR_DEF_FAX", 26);
232define(
"ATTR_DEF_NUMBER_CUSTOMER", 30);
233define(
"ATTR_DEF_DEP_PRIV", 31);
234define(
"ATTR_DEF_DEPENSE_NON_DEDUCTIBLE", 20);
235define(
"ATTR_DEF_TVA_NON_DEDUCTIBLE", 21);
236define(
"ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP", 22);
237define(
"ATTR_DEF_QUICKCODE", 23);
238define(
"ATTR_DEF_FIRST_NAME", 32);
239define(
"ATTR_DEF_WEBSITE", 34);
241define(
'ATTR_DEF_ACCOUNT_ND_TVA', 50);
242define(
'ATTR_DEF_ACCOUNT_ND_TVA_ND', 51);
243define(
'ATTR_DEF_ACCOUNT_ND_PERSO', 52);
244define(
'ATTR_DEF_ACCOUNT_ND', 53);
245define(
'ATTR_DEF_ACTIF', 54);
247define(
"FICHE_TYPE_CLIENT", 9);
248define(
"FICHE_TYPE_VENTE", 1);
249define(
"FICHE_TYPE_FOURNISSEUR", 8);
250define(
"FICHE_TYPE_FIN", 4);
251define(
"FICHE_TYPE_CONTACT", 16);
252define(
"FICHE_TYPE_EMPL", 25);
253define(
"FICHE_TYPE_ADM_TAX", 14);
254define(
"FICHE_TYPE_ACH_MAR", 2);
255define(
"FICHE_TYPE_ACH_SER", 3);
256define(
"FICHE_TYPE_ACH_MAT", 7);
257define(
"FICHE_TYPE_PROJET", 26);
258define(
"FICHE_TYPE_MATERIAL", 7);
260if (!defined(
"MAX_FILE_SIZE")) {
261 define(
"MAX_FILE_SIZE", 2097152);
270if (!defined(
'OFFICE')) define(
'OFFICE',
'');
271if (!defined(
'GENERATE_PDF')) define(
'GENERATE_PDF',
'NO');
280 define(
'CONVERT_GIF_PDF',
'NOT');
289 define(
'PDF2PS',
'NOT');
298 define(
'PS2PDF',
'NOT');
306if (!isset ($pdftk)) {
307 $pdftk =
'/usr/bin/pdftk';
309if (file_exists($pdftk)) {
310 define(
'PDFTK', $pdftk);
312 define(
'PDFTK',
'NOT');
316if (!defined(
'MULTI')) {
320define(
'JS_INFOBULLE',
'
321 <DIV id="bulle" class="infobulle"></DIV>
322 <script type="text/javascript" language="javascript" src="js/infobulle.js">
327define(
"SQL_LIST_ALL_INVOICE",
"");
329define(
"SQL_LIST_UNPAID_INVOICE",
" (jr_rapt is null or jr_rapt = '') and jr_valid = true "
333define(
"SQL_LIST_UNPAID_INVOICE_DATE_LIMIT",
"
334 where (jr_rapt is null or jr_rapt = '')
335 and to_date(to_char(jr_ech,'DD.MM.YYYY'),'DD.MM.YYYY') < to_date(to_char(now(),'DD.MM.YYYY'),'DD.MM.YYYY')
336 and jr_valid = true");
342define(
'EMAIL_LIMIT', 1002);
343define(
'EXC_PARAM_VALUE', 1005);
344define(
'EXC_PARAM_TYPE', 1006);
345define(
'EXC_DUPLICATE', 1200);
346define(
'EXC_INVALID', 1400);
347define(
'EXC_FORBIDDEN', 1500);
348define(
"UNPINDG",
"");
349define(
"PINDG",
"");
353if (!defined(
"NOALYSS_URL")) {
355 if (isset ($_SERVER[
'REQUEST_SCHEME'])) {
356 $protocol = $_SERVER[
'REQUEST_SCHEME'];
358 $base = $protocol .
'://' .
359 $_SERVER[
'SERVER_NAME'] .
360 ":" . $_SERVER[
'SERVER_PORT'] .
361 dirname($_SERVER[
'PHP_SELF']);
362 define(
"NOALYSS_URL",
$base);
364if (!defined(
"DEFAULT_SERVER_VIDEO_CONF")) {
365 define(
"DEFAULT_SERVER_VIDEO_CONF",
"https://www.free-solutions.org/");
376 foreach (array(
"class",
"lib",
"database") as
$path) {
377 if ( file_exists(NOALYSS_INCLUDE.
'/'.
$path.
'/'.
$class.
'.class.php')) {
378 require_once NOALYSS_INCLUDE.
'/'.
$path.
'/'.
$class.
'.class.php';
384 "database" =>
"class/database.class.php",
385 "acc_detail" =>
"class/acc_operation.class.php",
386 "acc_sold" =>
"class/acc_operation.class.php",
387 "acc_misc" =>
"class/acc_operation.class.php",
388 "acc_purchase" =>
"class/acc_operation.class.php",
389 "acc_fin" =>
"class/acc_operation.class.php",
390 "lettering_card" =>
"class/lettering.class.php",
391 "lettering_account" =>
"class/lettering.class.php",
392 "print_ledger_financial" =>
"class/print_ledger_fin.class.php",
393 "anc_key_ledger_sql" =>
"database/anc_key_sql.class.php",
394 "anc_key_detail_sql" =>
"database/anc_key_sql.class.php",
395 "anc_key_activity_sql" =>
"database/anc_key_sql.class.php",
396 "databasecore" =>
"lib/database_core.class.php",
397 "httpinput" =>
"lib/http_input.class.php",
398 "ismallbutton" =>
"lib/ibutton.class.php",
399 "inputswitch" =>
"lib/input_switch.class.php",
400 'noalyss\mobile' =>
"class/mobile.class.php",
401 "htmlinput" =>
"lib/html_input.class.php",
402 'noalyss\dbg'=>
"lib/dbg.php",
403 'noalyss\file_cache'=>
"lib/file_cache.class.php",
404 "pdfland"=>
"class/pdf_land.class.php"
406 if (isset ($aClass[
$class])) {
407 require_once NOALYSS_INCLUDE .
"/" . $aClass[
$class];
412spl_autoload_register(
'\noalyss_class_autoloader',
true);
if(!defined('NOALYSS_CAPTCHA')) global $g_failed
$convert_gif_pdf
Pour conversion GIF en PDF.
$pdf2ps
PDF2PS is used when the PDF is broken , used with FIX_BROKEN_PDF.
$ps2pdf
PS2PDF is used when the PDF is broken , used with FIX_BROKEN_PDF.
if(!defined('NOALYSS_CAPTCHA')) global $g_succeed
if(!defined("NOALYSS_URL")) if(!defined("DEFAULT_SERVER_VIDEO_CONF")) noalyss_class_autoloader($class)
load automatically class
if( $delta< 0) elseif( $delta==0)