| 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/Engineering/V2/modules/mod_exmenu-j15/exmenu/util/ |
Upload File : |
<?php
/**
* @version $Id:$
* @author Daniel Ecer
* @package exmenu
* @copyright (C) 2005-2009 Daniel Ecer (de.siteof.de)
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
// no direct access
if (!defined('EXTENDED_MENU_HOME')) {
die('Restricted access');
}
class de_siteof_exmenu_SiteHelper {
var $_joomla15 = FALSE;
var $_absolutePath = FALSE;
var $_rootUri = FALSE;
var $_siteTemplate = FALSE;
var $_currentMenuId = FALSE;
function __construct() {
if (function_exists('jimport')) {
global $mainframe;
$this->_joomla15 = TRUE;
$this->_absolutePath = JPATH_SITE;
$this->_rootUri = JURI::root();
$this->_siteTemplate = ''.$mainframe->getTemplate();
$this->_currentMenuId = JRequest::getInt('Itemid');
} else {
$this->_absolutePath = $GLOBALS['mosConfig_absolute_path'];
$this->_rootUri = $GLOBALS['mosConfig_live_site'];
if ($this->_rootUri != '') {
$this->_rootUri .= '/';
}
$this->_siteTemplate = $GLOBALS['cur_template'];
$this->_currentMenuId = $GLOBALS['Itemid'];
}
}
function de_siteof_exmenu_SiteHelper() {
$this->__construct();
}
function isJoomla15() {
return $this->_joomla15;
}
function getAbsolutePath($name = '') {
$path = $this->_absolutePath;
if ($name != '') {
$path = $path.'/'.$name;
}
return $path;
}
function getUri($name = FALSE) {
$uri = $this->_rootUri;
if ($name != '') {
$uri = $uri.$name;
}
return $uri;
}
function getSiteTemplateName() {
return $this->_siteTemplate;
}
function getSiteTemplateUri($name = FALSE) {
$uri = $this->getUri('templates/'.$this->_siteTemplate);
if ($name != '') {
$uri = $uri.'/'.$name;
}
return $uri;
}
function getCurrentMenuId() {
return $this->_currentMenuId;
}
}
?>