This repository was archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.php
72 lines (60 loc) · 3 KB
/
config.example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* Configuration class.
*
* @author Jared Howland <[email protected]>
* @version 2013-02-27
* @since 2013-02-22
*
*/
class config {
// Database settings
const DB_HOST = '';
const DB_PORT = '';
const DB_NAME = '';
const DB_USERNAME = '';
const DB_PASSWORD = '';
// App settings
const DEVELOPMENT = TRUE; // Changes the app behavior (error reporting, template caching, which database to use, etc.)
const URL = '';
const UPLOAD_DIRECTORY = 'records';
const TIME_ZONE = ''; // Needed for date calculations in PHP
const NOTIFY_EMAILS = ''; // Who should receive the emails; comma-delimited if more than one recipient (http://php.net/manual/en/function.mail.php)
const FROM_EMAIL = '';
const FREQUENCY = '["Once","Weekly","Monthly","Quarterly","Semiannually","Annually","When notified"]'; // JSON of allowed values for frequency records are loaded
const ITEM_TYPES = '["archival_material","article","audio","audiobook","bluray","book","book_chapter","calculator","cassette","cd","cd-rom","conference_proceeding","cuneiform","curriculum","database","dissertation","dvd","ebook","ebookreader","ejournal","equipment","faculty_use","filmstrip","finding_aid","government_document","image","index","ipad","journal","laptop","laserdisc","legal_document","magazine","map","microfiche","microformat","newspaper_article","ostrakon","other","palmleaf","pamphlet","periodical","photograph","pitcture","poster","rare_book","record","reeltape","reference_entry","research_datasets","review","score","statistical_data_set","scroll","serial","slide","software","statistical_data_set","streamingaudio","streamingvideo","streamingmedia","text_resource","vhs","video","walkman","website"]'; // Acceptable item types to be parsed by Primo
/****************************************************************************/
/* DO NOT EDIT BELOW THIS LINE */
/****************************************************************************/
/**
* Determines type of error reporting
* Based on state of DEVELOPMENT constant
*
* @param null
* @return string Type of error reporting
*/
public static function set_error_reporting() {
if(self::DEVELOPMENT) {
// error_reporting(E_ALL);
ini_set('error_reporting', E_ALL^E_NOTICE);
ini_set('display_errors', 1);
} else {
error_reporting(0);
}
}
} // End class
/****************************************/
/* Miscellaneous configuration settings */
/****************************************/
// Autoload classes
// Must be in the 'classes' directory and prefixed with 'class.'
function __autoload( $class ) {
require_once( __DIR__ . '/classes/class.' . $class . '.php' );
}
// Set default time zone
date_default_timezone_set( config::TIME_ZONE );
// Increase memory limit for large reading schedules
ini_set('memory_limit', '128M');
// Set error reporting
config::set_error_reporting();
?>