22 lines
487 B
PHP
22 lines
487 B
PHP
<?php
|
|
$cwd = getcwd();
|
|
chdir(dirname(__FILE__));
|
|
|
|
/* Load the framework. */
|
|
include '../framework/router.class.php';
|
|
include '../framework/control.class.php';
|
|
include '../framework/model.class.php';
|
|
include '../framework/helper.class.php';
|
|
|
|
/* Create the app. */
|
|
$app = router::createApp('pms', dirname(dirname(__FILE__)));
|
|
|
|
/* Reconnect to the test database. */
|
|
include '../config/test.php';
|
|
$app->connectDB();
|
|
|
|
/* Load the common module. */
|
|
$common = $app->loadCommon();
|
|
|
|
chdir($cwd);
|