/**
	* show server settings
	*/
	function showlayoutsettings(&$gtree)
	{
		global $smartyvs;
		$s = hwd_vs_SConfig::get_instance();
		$c = hwd_vs_Config::get_instance();

		hwdvsInitialise::language('settings');

		require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'views'.DS.'layoutsettings.php');
		hwdvids_HTML_settings::showlayoutsettings($gtree);
		return;
	}
Ejemplo n.º 2
0
function hwdVideoShareParseRoute($segments)
{
	require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'config.hwdvideoshare.php');
	require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'helpers'.DS.'initialise.php');
	hwdvsInitialise::language('plugs');

	$vars = array();
	switch($segments[0])
	{
		case URLSafe(_HWDVS_SEF_FP):
			$vars['task'] = 'frontpage';
		break;

		case URLSafe(_HWDVS_SEF_UPLOAD):
			$vars['task'] = 'upload';
		break;

		case URLSafe(_HWDVS_SEF_UPLOADEDP):
			$vars['task'] = 'uploadconfirmperl';
		break;

		case URLSafe(_HWDVS_SEF_UPLOADEDF):
			$vars['task'] = 'uploadconfirmflash';
		break;

		case URLSafe(_HWDVS_SEF_UPLOADEDB):
			$vars['task'] = 'uploadconfirmphp';
		break;

		case URLSafe(_HWDVS_SEF_ADDED):
			$vars['task'] = 'addconfirm';
		break;

		case URLSafe(_HWDVS_SEF_GROUPS):
			$vars['task'] = 'groups';
		break;

		case URLSafe(_HWDVS_SEF_CREATEGROUP):
			$vars['task'] = 'creategroup';
		break;

		case URLSafe(_HWDVS_SEF_EDITGROUP):
			$vars['task'] = 'editgroup';
		break;

		case URLSafe(_HWDVS_SEF_VIEWGROUP):
			$vars['task'] = 'viewgroup';
		break;

		case URLSafe(_HWDVS_SEF_YV):
			$vars['task'] = 'yourvideos';
		break;

		case URLSafe(_HWDVS_SEF_YF):
			$vars['task'] = 'yourfavourites';
		break;

		case URLSafe(_HWDVS_SEF_YG):
			$vars['task'] = 'yourgroups';
		break;

		case URLSafe(_HWDVS_SEF_YM):
			$vars['task'] = 'yourmemberships';
		break;

		case URLSafe(_HWDVS_SEF_EDITVIDEO):
			$vars['task'] = 'editvideo';
		break;

		case URLSafe(_HWDVS_SEF_FEATUREDVIDEOS):
			$vars['task'] = 'featuredvideos';
		break;

		case URLSafe(_HWDVS_SEF_FEATUREDGROUPS):
			$vars['task'] = 'featuredgroups';
		break;

		case URLSafe(_HWDVS_SEF_RSS):
			$vars['task'] = 'rss';
			$vars['feed'] = $segments[1];
		break;

		case URLSafe(_HWDVS_SEF_CATEGORIES):
			$vars['task'] = 'categories';
		break;

		case URLSafe(_HWDVS_SEF_VC):
			$vars['task'] = 'gotocategory';
		break;

		case URLSafe(_HWDVS_SEF_NV):
			$vars['task'] = 'nextvideo';
			$vars['category_id'] = $segments[1];
			$vars['video_id'] = $segments[2];
		break;

		case URLSafe(_HWDVS_SEF_PV):
			$vars['task'] = 'previousvideo';
			$vars['category_id'] = $segments[1];
			$vars['video_id'] = $segments[2];
		break;

		case URLSafe(_HWDVS_SEF_SEARCH):
			$vars['task'] = 'search';
			$vars['category_id'] = $segments[1];
		break;

		case URLSafe(_HWDVS_SEF_DR):
			$vars['task'] = 'displayresults';
			$vars['category_id'] = $segments[1];
		break;

		case URLSafe(_HWDVS_SEF_VIEWVIDEO):
			$vars['task'] = 'viewvideo';
			$vars['video_id'] = $segments[1];
		break;

		case URLSafe(_HWDVS_SEF_VIEWCATEGORY):
			$vars['task'] = 'viewcategory';
			$vars['cat_id'] = $segments[1];
		break;

		case URLSafe(_HWDVS_SEF_VIEWGROUP):
			$vars['task'] = 'viewgroup';
			$vars['group_id'] = $segments[1];
		break;

		case URLSafe(_HWDVS_SEF_VIEWCHANNEL):
			$vars['task'] = 'viewchannel';
			$vars['user_id'] = $segments[1];
		break;

		default:
			$vars['task'] = $segments[0];
		break;
	}
	return $vars;
}
Ejemplo n.º 3
0
hwdvsInitialise::getJVersion();
hwdvsInitialise::getMooVersion();
hwdvsInitialise::language('be');
if (!hwdvsInitialise::template('0')) {return;}
hwdvsInitialise::mysqlQuery();
hwdvsInitialise::definitions();

// Check for initialisation request
if ( $c->initialise_now == "1" && $task !== "initialise_now" )
{
	hwdvids_HTML::initialise($option);
	return;
}
else if ( $c->initialise_now == "1" && $task == "initialise_now" )
{
	hwdvsInitialise::initialiseSetup();
	return;
}

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Create the controller
$controller	= new UsersController( );

// Perform the Request task
$controller->execute( $task );
$controller->redirect();

?>
Ejemplo n.º 4
0
$limit       = JRequest::getInt( 'limit', 0 );
$limitstart  = JRequest::getInt( 'limitstart', 0 );
$task        = JRequest::getCmd( 'task', 'frontpage' );

hwdvsInitialise::getJVersion();
if ($task !== "deliverThumb")
{
	hwdvsInitialise::isModerator();
	hwdvsInitialise::itemid();
	hwdvsInitialise::mobiles();
	hwdvsInitialise::background();
	hwdvsInitialise::language();
	if (!hwdvsInitialise::template()) {return;}
	hwdvsInitialise::revenueManager();
	hwdvsInitialise::mysqlQuery();
	hwdvsInitialise::definitions();
	if (!hwd_vs_access::checkAccess($c->gtree_core, $c->gtree_core_child, 1, 0, _HWDVIDS_TITLE_NOACCESS, _HWDVIDS_ALERT_REGISTERFORACCESS, _HWDVIDS_ALERT_NOT_AUTHORIZED, 'exclamation.png', 0)) {return;}
	if ($c->loadmootools == "on")
	{
		JHTML::_('behavior.mootools');
	}
}

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Create the controller
$controller = new UserController();

// Perform the Request task
$controller->execute($task);