Location: PHPKode > projects > NewsCloud Social Media Toolkit > smt/sites/tech/php/index.php
<?php

	/* configure constants */
	include_once('constants.php');

	/* site request handler */
	// Note: htaccess isn't used because it increases the complexity of the install for some open source users
	if (isset($_GET['p']))
		$p=$_GET['p'];
	else
		$p='default';
	switch ($p) {
		default:
			include_once(PATH_PHP.'/home.php');
		break;
		case 'about':
			include_once(PATH_PHP.'/about.php');
		break;
		case 'resources':
			include_once(PATH_PHP.'/resources.php');
		break;
		case 'upcoming':
			include_once(PATH_PHP.'/upcoming.php');
		break;
		case 'newswire':
			include_once(PATH_PHP.'/newswire.php');
		break;
		case 'ajax':
			include_once(PATH_PHP.'/ajax.php');
		break;
		case 'process':
			include_once(PATH_PHP.'/process.php');
		break;
		case 'engine':
			include_once(PATH_CORE.'/engine.php');
		break;
		case 'readStory':
			include_once(PATH_PHP.'/readStory.php');
		break;
		case 'signin':
			include_once(PATH_PHP.'/signin.php');
		break;
		case 'img':
			include_once(PATH_PHP.'/img.php');
		break;
		case 'cache':
			include_once(PATH_PHP.'/cache.php');
		break;
		case 'config':
			include_once(PATH_PHP.'/config.php');
		break;
		case 'sync':
			include_once(PATH_CORE.'/sync.php');
		break;
		case 'rss':
			include_once(PATH_PHP.'/rss.php');
		break;		
		case 'x':
			include_once(PATH_PHP.'/x.php');
		break;				
	}	
?>
Return current item: NewsCloud Social Media Toolkit