]> git.evergreen-ils.org Git - contrib/pines/report-creator.git/blob - config/production.config.php
De-PINES-ify master and fix a spacing issue in the footer.
[contrib/pines/report-creator.git] / config / production.config.php
1 <?php
2 //system configs
3 define ('QR_ERROR_REPORTING_LEVEL', E_ALL);
4 define ('QR_DEFAULT_TIME_ZONE', 'America/New_York');
5 define ('QR_REPORT_OUTPUT_URL_PREFIX', 'https://next.gapines.org/reporter/');
6 define ('QR_SITE_ROOT', '/report-creator/');
7 //define ('QR_REPORT_OUTPUT_URL_PREFIX', 'https://reports-dev.gapines.org/reporter/');
8 define ('QR_REPORT_OUTPUT_URL_SUFFIX', '/report-data.html');
9 define ('QR_REPORT_TRANSFORM_START_YEAR', '2006');
10
11 //page headings
12 define ('QR_DEFAULT_LOGO_TEXT', 'Quick Reports');
13 define ('QR_DEFAULT_TITLE_TAG_TEXT', 'Quick Reports');
14 define ('QR_HOME_PAGE_WELCOME_TEXT', 'Welcome to the Evergreen Quick Reports Tool');
15 define ('QR_LOGIN_PAGE_WELCOME_TEXT', 'Welcome to the Evergreen Quick Reports Tool.');
16 define ('QR_PAGE_FOOTER_TEXT', '');
17
18 //executive reports
19 define ('QR_EXECUTIVE_REPORTS_ENABLED', true);
20 define ('QR_EXECUTIVE_REPORTS_START_YEAR', '2016');
21 define ('QR_EXECUTIVE_REPORTS_ADDITIONAL_ALLOWED_PERMISSIONS', '141,143');
22 define ('QR_EXECUTIVE_REPORTS_DESCRIPTION_URL', '');
23 define ('QR_EXECUTIVE_REPORTS_TITLE_TAG_TEXT', 'PINES Executive Reports');
24 define ('QR_EXECUTIVE_REPORTS_OUTPUT_HEADER_TITLE', 'PINES Executive Reports');
25 define ('QR_EXECUTIVE_REPORTS_CONSORTIUM_COLUMN_HEADING', 'PINES');
26 define ('QR_EXECUTIVE_REPORTS_ZERO_VALUE', '---');
27 define ('QR_EXECUTIVE_REPORTS_TOTAL_KEY', '__total__');
28 define ('QR_EXECUTIVE_REPORTS_SUBREPORT_PADDING', '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
29 define ('QR_EXECUTIVE_REPORTS_MISSING_SUBREPORT_LABEL', '*unknown');
30
31 //Sessions
32 define ('QR_SESSION_TIMEOUT', 120);     //minutes
33
34 //security 
35 define ('QR_BROWSER_PAGE_CACHE_TIMEOUT', '20'); //seconds
36 define ('QR_MAX_LOGIN_ATTEMPTS_ALLOWED', 3);
37 define ('QR_USERS_ALLOWED_PERMISSIONS', '141,143');
38 define ('QR_ADMINS_ALLOWED_PERMISSIONS', '-1,1200');    //-1 is super admin
39 define ('QR_ALLOW_GROUP_PERMISSIONS', true);
40 define ('QR_ADMIN_PERMISSION_REQUIRED_MESSAGE', 'You must be an administrator to acces this pasge.');
41
42 //general database constants
43 define('QR_DB_SCHEMA','quick_reports'); //schema created for tables specific to this reporting tool
44
45 //Folders
46 define('QR_PARENT_FOLDER_NAME', 'Quick Reports');
47 define('QR_REPORT_FOLDER_NAME', 'reporter.report_folder');
48 define('QR_OUTPUT_FOLDER_NAME', 'reporter.output_folder');
49
50 //Queries
51 define('QR_ADMIN_SCHEDULED_REPORTS_QUERY_DAYS', 30);
52
53 //Version 4 templates
54 define('QR_SHOW_DOC_URL', true);
55 define('QR_SHOW_FIELD_DOC', true);
56
57 //if OPENSRF.XML is true every page access will parse the xml file to obtain database credentials
58 define('QR_PGSQL_USE_OPENSRF_XML_CONFIG', true);
59 define('QR_OPENSRF_XML_PATH', '/openils/conf/opensrf.xml');
60
61 //PostgreSQL
62 if (!QR_PGSQL_USE_OPENSRF_XML_CONFIG) {
63 define ('QR_PGSQL_HOST', '');
64 define ('QR_PGSQL_PORT', '');
65 define ('QR_PGSQL_DBNAME', '');
66 define ('QR_PGSQL_USER', '');
67 define ('QR_PGSQL_PASSWORD', '');
68 }
69
70 //memcache
71 define ('QR_SESSIONS_IN_MEMCACHE', true);
72 define('QR_MEMCACHE_USE_OPENSRF_XML_CONFIG', true);
73
74 if (QR_SESSIONS_IN_MEMCACHE) {
75 define ('QR_MEMCACHE_PROTOCOL_1', 'tcp');
76 define ('QR_MEMCACHE_PARAMS_1', '?persistent=1&weight=2&timeout=2&retry_interval=10');
77 define ('QR_MEMCACHE_PROTOCOL_2', 'tcp');
78 define ('QR_MEMCACHE_PARAMS_2', '?persistent=1&weight=2&timeout=2&retry_interval=10');
79
80 if (!QR_MEMCACHE_USE_OPENSRF_XML_CONFIG) {
81 define ('QR_MEMCACHE_HOST_1', '10.30.30.151');
82 define ('QR_MEMCACHE_PORT_1', 11211);
83 //define ('QR_MEMCACHE_HOST_2', '10.10.10.152');
84 //define ('QR_MEMCACHE_PORT_2', 11211);
85 }
86 }
87 ?>