2013-12-18 21:48:32 +01:00
|
|
|
<?php
|
2021-10-11 16:10:47 +02:00
|
|
|
|
2013-12-18 21:48:32 +01:00
|
|
|
error_reporting(E_ALL | E_STRICT);
|
|
|
|
|
2022-02-04 11:00:41 +01:00
|
|
|
require_once dirname(__DIR__, 2) . '/application/preload.php';
|
2013-12-18 21:48:32 +01:00
|
|
|
|
|
|
|
// Ensure library/ is on include_path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-18 21:48:32 +01:00
|
|
|
realpath('./library'),
|
|
|
|
get_include_path(),
|
2021-10-11 16:10:47 +02:00
|
|
|
]));
|
2013-12-18 21:48:32 +01:00
|
|
|
|
2013-12-18 22:05:31 +01:00
|
|
|
// Ensure library/ is on include_path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-18 22:05:31 +01:00
|
|
|
get_include_path(),
|
2021-10-11 16:10:47 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../library'),
|
|
|
|
]));
|
2013-12-18 22:05:31 +01:00
|
|
|
|
2015-01-27 16:53:58 +01:00
|
|
|
// Ensure vendor/ is on the include path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-19 21:31:12 +01:00
|
|
|
get_include_path(),
|
2021-09-11 04:20:50 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../vendor'),
|
2021-10-11 16:10:47 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../vendor/zf1s/zend-loader/library'),
|
|
|
|
]));
|
2015-01-27 16:53:58 +01:00
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2015-01-27 16:53:58 +01:00
|
|
|
get_include_path(),
|
2023-01-12 17:14:18 +01:00
|
|
|
realpath(APPLICATION_PATH . '/../vendor/libretime/propel1/runtime/lib'),
|
2021-10-11 16:10:47 +02:00
|
|
|
]));
|
2013-12-19 21:31:12 +01:00
|
|
|
|
2013-12-19 17:16:06 +01:00
|
|
|
// Ensure library/ is on include_path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-19 17:16:06 +01:00
|
|
|
get_include_path(),
|
2021-10-11 16:10:47 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../../install_minimal/include'),
|
|
|
|
]));
|
2013-12-19 17:16:06 +01:00
|
|
|
|
2022-02-04 11:00:41 +01:00
|
|
|
Logging::setLogPath(LIBRETIME_LOG_FILEPATH);
|
2014-01-24 17:39:15 +01:00
|
|
|
|
2013-12-18 22:05:31 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// Propel classes.
|
2013-12-18 22:05:31 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// Services
|
2013-12-19 17:16:06 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/services' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// models
|
2014-01-16 23:01:22 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// Controllers.
|
2014-02-05 21:37:47 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/controllers' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// Controller plugins.
|
2013-12-18 22:05:31 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// test data
|
2014-01-24 22:08:38 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/../tests/application/testdata' . PATH_SEPARATOR . get_include_path());
|
2014-01-07 00:08:57 +01:00
|
|
|
|
2022-03-14 11:15:04 +01:00
|
|
|
// helper functions
|
2014-01-08 21:51:11 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/../tests/application/helpers' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2023-01-12 17:14:18 +01:00
|
|
|
require_once 'libretime/propel1/runtime/lib/Propel.php';
|
2021-10-11 16:10:47 +02:00
|
|
|
Propel::init('../application/configs/airtime-conf-production.php');
|
2013-12-19 21:31:12 +01:00
|
|
|
|
2013-12-19 17:40:35 +01:00
|
|
|
Zend_Session::start();
|