| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/www/cj79373/administrator/components/com_jce/helpers/ |
Upload File : |
<?php
defined('JPATH_PLATFORM') or die;
/**
* Admin helper.
*
* @since 3.0
*/
class JceHelperAdmin
{
/**
* Configure the Submenu links.
*
* @param string $vName The view name
*
* @since 3.0
*/
public static function addSubmenu($vName)
{
$uri = (string)JUri::getInstance();
$return = urlencode(base64_encode($uri));
$user = JFactory::getUser();
JHtmlSidebar::addEntry(
JText::_('WF_CPANEL'),
'index.php?option=com_jce&view=cpanel',
$vName == 'cpanel'
);
$views = array(
'config' => 'WF_CONFIGURATION',
'profiles' => 'WF_PROFILES',
'browser' => 'WF_CPANEL_BROWSER',
'mediabox' => 'WF_MEDIABOX'
);
foreach($views as $key => $label) {
if ($key === "mediabox" && !JPluginHelper::isEnabled('system', 'jcemediabox')) {
continue;
}
if ($user->authorise('jce.' . $key, 'com_jce')) {
JHtmlSidebar::addEntry(
JText::_($label),
'index.php?option=com_jce&view=' . $key,
$vName == $key
);
}
}
}
public static function getTemplateStylesheets()
{
require_once(JPATH_SITE . '/components/com_jce/editor/libraries/classes/editor.php');
return WFEditor::getTemplateStyleSheets();
}
}