Skip to content
Snippets Groups Projects
Commit 870e9108 authored by Prasad's avatar Prasad
Browse files

Replaced inclusion of config file.

parent 9e08ea37
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,12 @@
************************************************************************************/
include_once dirname(__FILE__).'/classes/Portal/Loader.php';
include_once PORTAL_APP_DIR.'/config..sample.php';
if (!file_exists(PORTAL_APP_DIR . '/config.php')) {
header ("Content-type: text/plain");
echo "Please make copy of config.sample.php as config.php and update.";
exit;
}
include_once PORTAL_APP_DIR.'/config.php';
$portalMainController = new Portal_Main_Controller();
$portalMainController->dispatch(Portal_Request::parseFormOrJSONRequest());
$portalMainController->dispatch(Portal_Request::parseFormOrJSONRequest());
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment