00001 <?php
00002 if (!defined('APP_THROW_ON_DB_ERROR')) define('APP_THROW_ON_DB_ERROR', !APP_TESTMODE);
00003 if (!defined('APP_THROW_ON_WARNING')) define('APP_THROW_ON_WARNING', !APP_TESTMODE);
00004 if (!defined('APP_DEBUG_QUERIES')) define('APP_DEBUG_QUERIES', APP_TESTMODE);
00005 if (!defined('APP_PRINT_DURATION')) define('APP_PRINT_DURATION', APP_TESTMODE);
00006 if (!defined('APP_DISABLE_CACHE')) define('APP_DISABLE_CACHE', APP_TESTMODE);
00007
00008 if (!defined('APP_ENABLE_HTTPS')) define('APP_ENABLE_HTTPS', true);
00009
00010
00011
00012
00013 if (!defined('APP_DEFAULT_TEMPLATE_ENGINE')) define ('APP_DEFAULT_TEMPLATE_ENGINE', 'core');
00014 if (!defined('APP_PAGE_TEMPLATE')) define ('APP_PAGE_TEMPLATE', 'core::page');
00015
00016
00017
00018
00019 if (!defined('APP_LOG_QUERIES')) define('APP_LOG_QUERIES', APP_TESTMODE);
00020 if (!defined('APP_LOG_TRANSLATIONS')) define('APP_LOG_TRANSLATIONS', APP_TESTMODE);
00021 if (!defined('APP_LOG_HTML_ERROR_STATUS')) define('APP_LOG_HTML_ERROR_STATUS', APP_TESTMODE);
00022
00023
00024
00025
00026 if (!defined('APP_MAIL_SUBJECT')) define('APP_MAIL_SUBJECT', '[' . APP_TITLE . '] ');
00027
00028
00029
00030
00031
00032 if (!defined('APP_MAILER_TYPE')) define ('APP_MAILER_TYPE', 'mail');
00033
00034
00035
00036 if (!defined('APP_MAILER_SMTP_HOST')) define ('APP_MAILER_SMTP_HOST', '');
00037
00038
00039
00040 if (!defined('APP_MAILER_SMTP_USER')) define ('APP_MAILER_SMTP_USER', '');
00041
00042
00043
00044 if (!defined('APP_MAILER_SMTP_PASSWORD')) define ('APP_MAILER_SMTP_PASSWORD', '');
00045
00046
00047
00048
00049 if ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') ) {
00050 define('APP_GZIP', true);
00051 }
00052 else {
00053 define('APP_GZIP', false);
00054 }
00055
00056
00057
00058
00059 if (!defined('APP_URL_BASEDIR')) define('APP_URL_BASEDIR', '/');
00060 if (!defined('APP_URL_SERVER')) define('APP_URL_SERVER', 'http://' . APP_URL_DOMAIN);
00061 if (!defined('APP_URL_SERVER_SAFE')) define('APP_URL_SERVER_SAFE', 'https://' . APP_URL_DOMAIN);
00062 define('APP_URL_BASEURL', APP_URL_SERVER . APP_URL_BASEDIR);
00063 define('URL_BASEURL_SAFE', APP_URL_SERVER_SAFE . APP_URL_BASEDIR);
00064 if (!defined('APP_URL_ABSPATH')) define('APP_URL_ABSPATH', APP_INCLUDE_ABSPATH . '../htdocs/');
00065
00066
00067
00068
00069
00070
00071 if (!defined('APP_DEFAULT_PAGE')) define('APP_DEFAULT_PAGE', APP_URL_BASEURL);
00072
00073
00074
00075
00076 if (!defined('APP_URL_IMAGES')) define('APP_URL_IMAGES', Config::get_value(Config::URL_BASEDIR) . 'images/');
00077
00078
00079
00080
00081 if (!defined('APP_TEMP_DIR')) define('APP_TEMP_DIR', APP_INCLUDE_ABSPATH . '../tmp/');
00082
00083
00084
00085
00086 if (!defined('APP_OUT_DIR')) define('APP_OUT_DIR', APP_TEMP_DIR);
00087
00088
00089
00090
00091 if (defined('APP_3RDPARTY_DIR')) set_include_path(get_include_path() . PATH_SEPARATOR . APP_3RDPARTY_DIR);
00092
00093 if (!defined('FORMVALIDATION_FIELD_NAME')) define('FORMVALIDATION_FIELD_NAME', 'wergpiozt');
00094 if (!defined('FORMVALIDATION_HANDLER_NAME')) define('FORMVALIDATION_HANDLER_NAME', 'uehfjkwe');