| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/moke/components/com_imageads/ |
Upload File : |
<?php
/**
* @version $Id: router.php
* @package ImageAds
* @author Andrey Sokolnikov <aasfalcon@gmail.com>
* @copyright (C) 2011 Emergination, LLC. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
// no direct access
defined('_JEXEC') or die ('Restricted access');
/**
* Build URL segments
*
* @param array $query Query
* @return array Segments
*/
function imageadsBuildRoute(&$query)
{
$segments = array();
if (isset($query['view'])) {
$segments[] = $query['view'];
unset($query['view']);
}
return $segments;
}
/**
* Parse URL segments
*
* @param array $segments Segments
* @return array Query
*/
function imageadsParseRoute($segments)
{
$vars = array();
if ($segments[0]) {
$vars['view'] = $segments[0];
}
return $vars;
}