|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 30.63 GB of 70.42 GB (43.51%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
http/
guitar.1/
components/
com_contushdvideoshare/
- drwxr-xr-x
|
Viewing file: router.php (4.61 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
<?php
/*
* "ContusHDVideoShare Component" - Version 1.3
* Author: Contus Support - http://www.contussupport.com
* Copyright (c) 2010 Contus Support - support@hdvideoshare.net
* License: GNU/GPL http://www.gnu.org/copyleft/gpl.html
* Project page and Demo at http://www.hdvideoshare.net
* Creation Date: March 30 2011
*/
function contushdvideoshareBuildRoute(&$query) {
$segments = array();
//Code for get itemid if itemid is empty. It's used to add alias name in URL link
$db = JFactory::getDBO();
if (empty($query['Itemid']))
{
$db->setQuery("select id from #__menu where link='index.php?option=com_contushdvideoshare&view=index' and published=1 order by id desc Limit 1");
$query['Itemid'] = $db->loadResult();
}
if (isset($query['view']))
{
$segments[] = $query['view'];
unset($query['view']);
}
if (isset($query['catid'])) {
$segments[] = $query['catid'];
unset($query['catid']);
} else if (isset($query['category'])) {
$segments[] = $query['category'];
unset($query['category']);
}
if (isset($query['id'])) {
$segments[] = $query['id'];
unset($query['id']);
}
else if (isset($query['video'])) {
$segments[] = $query['video'];
unset($query['video']);
}
if (isset($query['type'])) {
$segments[] = $query['type'];
unset($query['type']);
}
return $segments;
}
/**
* @param array A named array
* @param array
*
* Formats:
*
* index.php?/banners/task/bid/Itemid
*
* index.php?/banners/bid/Itemid
*/
function contushdvideoshareParseRoute($segments) {
$vars = array();
// view is always the first element of the array
$count = count($segments);
//echo '<pre>';print_r($segments);
if ($count) {
switch ($segments[0]) {
case 'category':
$vars['view'] = 'category';
$vars['category'] = $segments[1];
break;
case 'player':
$vars['view'] = 'player';
if (isset($segments[2])) {
$vars['category'] = $segments[1];
$vars['video'] = $segments[2];
} else {
// $vars['video'] = $segments[1];
}
break;
case 'configxml':
$vars['view'] = 'configxml';
$vars['id'] = $segments[1];
if (isset($segments[2]))
$vars['catid'] = $segments[2];
break;
case 'playxml':
$vars['view'] = 'playxml';
$vars['id'] = $segments[1];
if (isset($segments[2]))
$vars['catid'] = $segments[2];
break;
case 'adsxml':
$vars['view'] = 'adsxml';
break;
case 'midrollxml':
$vars['view'] = 'midrollxml';
break;
case 'languagexml':
$vars['view'] = 'languagexml';
break;
case 'playerbase':
$vars['view'] = 'playerbase';
break;
case 'featuredvideos':
$vars['view'] = 'featuredvideos';
break;
case 'myvideos':
$vars['view'] = 'myvideos';
break;
case 'recentvideos':
$vars['view'] = 'recentvideos';
break;
case 'myvideos':
$vars['view'] = 'myvideos';
break;
case 'hdvideosharesearch':
$vars['view'] = 'hdvideosharesearch';
break;
case 'membercollection':
$vars['view'] = 'membercollection';
break;
case 'popularvideos':
$vars['view'] = 'popularvideos';
break;
case 'relatedvideos':
$vars['view'] = 'relatedvideos';
break;
case 'recentvideos':
$vars['view'] = 'recentvideos';
break;
case 'featuredvideos':
$vars['view'] = 'featuredvideos';
break;
case 'videoupload':
$vars['view'] = 'videoupload';
if (isset($segments[1]))
$vars['id'] = $segments[1];
if (isset($segments[2]))
$vars['type'] = $segments[2];
break;
}
}
return $vars;
}
|