✖"; $g_succeed = ""; define('SMALLX', '#xe816;'); define('BUTTONADD', "✚"); define('ICON_SEARCH', '🔎'); define('ICON_CLEAN', '✕'); // If noalyss_version is not defined it is likely directly taken from // git and so this variable is not set, this cause some issue if (!defined('DEBUGNOALYSS')) { define("DEBUGNOALYSS", 0); } if (!defined('LOGINPUT')) { define("LOGINPUT", false); } if (!defined('DEBUGNOALYSS')) { define('DEBUGNOALYSS', 0); } $version_noalyss = NOALYSS_VERSION; // If you don't want to be notified of the update if (!defined("SITE_UPDATE")) define("SITE_UPDATE", 'https://www.noalyss.eu/last_version.txt'); if (!defined("SITE_UPDATE_PLUGIN")) define("SITE_UPDATE_PLUGIN", 'https://www.noalyss.eu/plugin_last_version.txt'); if (!defined("NOALYSS_PACKAGE_REPOSITORY")) { define("NOALYSS_PACKAGE_REPOSITORY", "https://package.noalyss.eu/"); } // If you don't want that the system information is accessible if (!defined("SYSINFO_DISPLAY")) { define("SYSINFO_DISPLAY", TRUE); } define('NOTFOUND', '--not found--'); define("MAX_COMPTE", 4); define('MAX_ARTICLE', 5); define('MAX_ARTICLE_STOCK', 10); define('MAX_CAT', 15); define('MAX_CARD_SEARCH', 550); define('MAX_FORECAST_ITEM', 10); define('MAX_PREDEFINED_OPERATION', 50); define('MAX_COMPTE_CARD', 4); define('COMPTA_MAX_YEAR', 2100); define('COMPTA_MIN_YEAR', 1900); define('MAX_RECONCILE', 25); define('MAX_QCODE', 4); if (!defined('MAX_SEARCH_CARD')) { define('MAX_SEARCH_CARD', 20); } define('MAX_FOLDER_TO_SHOW', 80); define('MAX_ACTION_SHOW', 20); if (DEBUGNOALYSS == 0) { // PRODUCTION : nothing is displaid , report only errors and warning // Rapporte les erreurs d'exĂ©cution de script error_reporting(E_ERROR | E_WARNING); ini_set("display_errors", 0); ini_set("html_errors", 0); ini_set('log_errors', 1); ini_set('log_errors_max_len', 0); } elseif (DEBUGNOALYSS == 1) { /* DEVELOPPEMENT : display all errors warning notice deprecated ...*/ error_reporting(2147483647); ini_set("display_errors", 1); ini_set("display_startup_errors", 1); ini_set("html_errors", 1); ini_set('log_errors', 1); ini_set('log_errors_max_len', 0); } elseif (DEBUGNOALYSS == 2) { // like level 1 plus extra info (filename, ...) error_reporting(2147483647); ini_set("display_errors", 1); ini_set("display_startup_errors", 1); ini_set("html_errors", 1); ini_set('log_errors', 1); ini_set('log_errors_max_len', 0); } // Erreur define("NOERROR", 0); define("BADPARM", 1); define("BADDATE", 2); define("NOTPERIODE", 3); define("PERIODCLOSED", 4); define("INVALID_ECH", 5); define("RAPPT_ALREADY_USED", 6); define("RAPPT_NOT_EXIST", 7); define("DIFF_AMOUNT", 8); define("RAPPT_NOMATCH_AMOUNT", 9); define("NO_PERIOD_SELECTED", 10); define("NO_POST_SELECTED", 11); define("LAST", 1); define("FIRST", 0); define("ERROR", 12); //! '); // Sql string define("SQL_LIST_ALL_INVOICE", ""); define("SQL_LIST_UNPAID_INVOICE", " (jr_rapt is null or jr_rapt = '') and jr_valid = true " ); define("SQL_LIST_UNPAID_INVOICE_DATE_LIMIT", " where (jr_rapt is null or jr_rapt = '') and to_date(to_char(jr_ech,'DD.MM.YYYY'),'DD.MM.YYYY') < to_date(to_char(now(),'DD.MM.YYYY'),'DD.MM.YYYY') and jr_valid = true"); /** * Exception */ // Limit email exceeds parameter define('EMAIL_LIMIT', 1002); define('EXC_PARAM_VALUE', 1005); define('EXC_PARAM_TYPE', 1006); define('EXC_DUPLICATE', 1200); define('EXC_INVALID', 1400); define('EXC_FORBIDDEN', 1500); define("UNPINDG", ""); define("PINDG", ""); // Url of NOALYSS (http://...) // if (!defined("NOALYSS_URL")) { $protocol = "http"; if (isset ($_SERVER['REQUEST_SCHEME'])) { $protocol = $_SERVER['REQUEST_SCHEME']; } $base = $protocol . '://' . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . dirname($_SERVER['PHP_SELF']); define("NOALYSS_URL", $base); } if (!defined("DEFAULT_SERVER_VIDEO_CONF")) { define("DEFAULT_SERVER_VIDEO_CONF", "https://www.free-solutions.org/"); } define ("VATCHECK_URL","https://ec.europa.eu/taxation_customs/vies/rest-api/"); /** * @brief load automatically class * * @param string $class classname to load */ function noalyss_class_autoloader($class) { $class = strtolower($class); foreach (array("class","lib","database") as $path) { if ( file_exists(NOALYSS_INCLUDE.'/'.$path.'/'.$class.'.class.php')) { require_once NOALYSS_INCLUDE.'/'.$path.'/'.$class.'.class.php'; return; } } $aClass = array( "database" => "class/database.class.php", "acc_detail" => "class/acc_operation.class.php", "acc_sold" => "class/acc_operation.class.php", "acc_misc" => "class/acc_operation.class.php", "acc_purchase" => "class/acc_operation.class.php", "acc_fin" => "class/acc_operation.class.php", "lettering_card" => "class/lettering.class.php", "lettering_account" => "class/lettering.class.php", "print_ledger_financial" => "class/print_ledger_fin.class.php", "anc_key_ledger_sql" => "database/anc_key_sql.class.php", "anc_key_detail_sql" => "database/anc_key_sql.class.php", "anc_key_activity_sql" => "database/anc_key_sql.class.php", "databasecore" => "lib/database_core.class.php", "httpinput" => "lib/http_input.class.php", "ismallbutton" => "lib/ibutton.class.php", "inputswitch" => "lib/input_switch.class.php", 'noalyss\mobile' => "class/mobile.class.php", "htmlinput" => "lib/html_input.class.php", 'noalyss\dbg'=>"lib/dbg.php", 'noalyss\file_cache'=>"lib/file_cache.class.php", "pdfland"=>"class/pdf_land.class.php", "noalyss\widget\widget"=>"widget/widget.php" ); if (isset ($aClass[$class])) { require_once NOALYSS_INCLUDE . "/" . $aClass[$class]; } } spl_autoload_register('\noalyss_class_autoloader', true);