src.dualinventive.com/mtinfo/dist/webroot/main/include/definitions.php

112 lines
5.0 KiB
PHP

<?php
/** \file include\definitions.php
* \brief DI webinterface definitions page
* \author Rob Schalken, Core|Vision
* \version $Revision: 1.57 $
* \date $Date: 2013/12/12 10:08:09 $
*
* This file contains all the global definitions
*/
/*
* Retrieve server specific settings
*/
require_once("/etc/di/mtinfo/default.php");
/*
* Global info
*/
define("VERSION" ,"v4.4.2");
/*
* Directories
*/
define("PAGE_PROJECT" ,"page/project");
define("PAGE_MENU" ,"page/menu");
define("PAGE_ERROR" ,"page/error");
define("PAGE_LOGIN" ,"page/login");
define("PAGE_TEL" ,"page/tel");
define("PROC_RESULT" ,"proc_result");
define("PAGE_NOT_SUPPORTED" ,"page/login_not_supported");
define("IMAGE_DIR" ,"html/images/");
define("CSS_DIR" ,"html/css/");
define("JAVA_DIR" ,"html/javascript/");
define("SCRIPT_DIR" ,"scripts/");
define("SKIN_DIR" ,"skin/");
define("FONT_DIR" ,"/usr/local/share/fonts/Windows/TrueType/");
/*
* Translations
*/
define("ADMIN" ,"root");
define("GENERAL" ,"general");
/*
* Default databases
*/
$_DATABASE = array("default" => array("config" => "/etc/di/database/di_zkl", // database configuration file
"host" => "localhost", // default database settings
"db" => "di_zkl",
"user" => "dualinventive",
"passwd" => "JanLex"),
"report" => array("config" => "/etc/di/database/di_zkl_rapportage", // database configuration file
"host" => "localhost", // default report database settings
"db" => "di_zkl_rapportage",
"user" => "dualinventive",
"passwd" => "JanLex"),
"archive" => array("config" => "/etc/di/database/di_zkl_archief", // database configuration file
"host" => "localhost", // default archive database settings
"db" => "di_zkl_archief",
"user" => "dualinventive",
"passwd" => "JanLex"),
"restore" => array("config" => "/etc/di/database/di_zkl_restore", // database configuration file
"host" => "localhost", // default "restore" database settings
"db" => "di_zkl_restore",
"user" => "dualinventive",
"passwd" => "JanLex"));
define("ARCHIVE_OLDER_DAYS" ,40); // Remove all entries older than 30 days
define("CHECK_RC" ,1); // Check release candidates?
define("LOGIN_MAX" ,50); // Max login attempts
/*
* Secure certificate
*/
define("CERT" ,"/home/dualinventive/src/mtinfo/cert/private/mtinfo.key");
define("CERT_PASSPHRASE" ,"MTinfo");
/*
* Task manager
*/
define("TSKMGR" ,1); // Enable Task manager which handles all checking tasks and periodic reports
/*
* Timeouts
*/
define("TCP_TIMEOUT" ,3); // TCP server timeout (seconds)
define("PM_TIMEOUT" ,300); // Power management timeout (seconds)
define("WTDG_TIMEOUT" ,1200); // Watchdog timeout (seconds)
/*
* Upload file size
*/
define("MAX_FILE_SIZE" ,8388608); // 8 Megabyte
/*
* links
*/
define("TIME_ZONE_FILE" ,"/usr/share/zoneinfo/zone.tab");
define("GOOGLE_MAPS" ,"http://maps.google.com/");
/*
* Debug/log definitions
*/
define("LOG_SC" ,1); // Debug secure server (all message to syslog)
define("LOG_RS" ,1); // Debug RS3000 communication (all RS3000 messages to syslog)
define("LOG_ALARM" ,0); // Debug alarm numbers (retrieve all when using SYNCDB)
define("LOG_HREF_HISTORY" ,0); // Debug browser pages
define("LOG_SQL_HISTORY" ,0); // Debug mysql queries
define("LOG" ,1); // Enable/Disable log functionality
?>