forked from unl-creq/UNL_UndergraduateBulletin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.php
32 lines (24 loc) · 1.32 KB
/
config.sample.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
<?php
function autoload($class)
{
$class = str_replace('_', '/', $class);
include $class . '.php';
}
spl_autoload_register("autoload");
// Set to false on production machines
ini_set('display_errors', true);
error_reporting(E_ALL);
set_include_path(dirname(__FILE__).'/src'.PATH_SEPARATOR.dirname(__FILE__).'/includes/php');
require_once 'UNL/Autoload.php';
// Set this to the web root for the site
UNL_UndergraduateBulletin_Controller::$url = '/workspace/UNL_UndergraduateBulletin/www/';
// Remove this line on production machines so the default UNLCacheLite cache interface is used
UNL_UndergraduateBulletin_OutputController::setCacheInterface(new UNL_UndergraduateBulletin_CacheInterface_Mock());
UNL_UndergraduateBulletin_OutputController::setDefaultExpireTimestamp(strtotime('+1 week'));
//UNL_UndergraduateBulletin_CacheInterface_Mock::$logger = function($key) {
// $log = 'unlcache_5174748813ed8803e7651fae9d2d077f_'.md5($key).PHP_EOL;
// file_put_contents('/tmp/cachedfiles.txt', $log, FILE_APPEND);
//};
UNL_Services_CourseApproval::setCachingService(new UNL_Services_CourseApproval_CachingService_Null());
UNL_Services_CourseApproval::setXCRIService(new UNL_UndergraduateBulletin_CourseDataDriver());
//UNL_UndergraduateBulletin_Controller::setEdition(new UNL_UndergraduateBulletin_Edition(array('year'=>'2010')));