home/wuectly/www/administrator/templates/hathor/cpanel.php 0000604 00000011535 15245557227 0020151 0 ustar 00
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/** @var JDocumentHtml $this */
$app = JFactory::getApplication();
$lang = JFactory::getLanguage();
// Output as HTML5
$this->setHtml5(true);
// Add template js
JHtml::_('script', 'template.js', array('version' => 'auto', 'relative' => true));
// Add html5 shiv
JHtml::_('script', 'jui/html5.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9'));
// Load optional RTL Bootstrap CSS
JHtml::_('bootstrap.loadCss', false, $this->direction);
// Load system style CSS
JHtml::_('stylesheet', 'templates/system/css/system.css', array('version' => 'auto'));
// Load template CSS
JHtml::_('stylesheet', 'template.css', array('version' => 'auto', 'relative' => true));
// Load additional CSS styles for colors
if (!$this->params->get('colourChoice'))
{
$colour = 'standard';
}
else
{
$colour = htmlspecialchars($this->params->get('colourChoice'));
}
JHtml::_('stylesheet', 'colour_' . $colour . '.css', array('version' => 'auto', 'relative' => true));
// Load additional CSS styles for rtl sites
if ($this->direction === 'rtl')
{
JHtml::_('stylesheet', 'template_rtl.css', array('version' => 'auto', 'relative' => true));
JHtml::_('stylesheet', 'colour_' . $colour . '_rtl.css', array('version' => 'auto', 'relative' => true));
}
// Load additional CSS styles for bold Text
if ($this->params->get('boldText'))
{
JHtml::_('stylesheet', 'boldtext.css', array('version' => 'auto', 'relative' => true));
}
// Load specific language related CSS
JHtml::_('stylesheet', 'administrator/language/' . $lang->getTag() . '/' . $lang->getTag() . '.css', array('version' => 'auto'));
// Load custom.css
JHtml::_('stylesheet', 'custom.css', array('version' => 'auto', 'relative' => true));
// IE specific
JHtml::_('stylesheet', 'ie8.css', array('version' => 'auto', 'relative' => true, 'conditional' => 'IE 8'));
JHtml::_('stylesheet', 'ie7.css', array('version' => 'auto', 'relative' => true, 'conditional' => 'IE 7'));
// Logo file
if ($this->params->get('logoFile'))
{
$logo = JUri::root() . $this->params->get('logoFile');
}
else
{
$logo = $this->baseurl . '/templates/' . $this->template . '/images/logo.png';
}
?>
home/wuectly/www/administrator/templates/isis/cpanel.php 0000604 00000000461 15245562560 0017623 0 ustar 00
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
require_once __DIR__ . '/index.php';
home/wuectly/www/administrator/components/com_cpanel/cpanel.php 0000604 00000000664 15245632667 0021156 0 ustar 00
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// No access check.
$controller = JControllerLegacy::getInstance('Cpanel');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
home/wuectly/www/administrator/components/com_jce/controller/cpanel.php 0000604 00000001276 15245654267 0022640 0 ustar 00 getModel('cpanel');
echo json_encode(array(
'feeds' => $model->getFeeds(),
));
// Close the application
Factory::getApplication()->close();
}
}
home/wuectly/www/administrator/components/com_jce/models/cpanel.php 0000604 00000010346 15245703331 0021721 0 ustar 00 'equalizer',
'profiles' => 'users',
'browser' => 'picture',
'mediabox' => 'pictures',
);
foreach ($views as $name => $icon) {
// if its mediabox, check the plugin is installed and enabled
if ($name === "mediabox" && !PluginHelper::isEnabled('system', 'jcemediabox')) {
continue;
}
// check if its allowed...
if (!$user->authorise('jce.' . $name, 'com_jce')) {
continue;
}
$link = 'index.php?option=com_jce&view=' . $name;
$title = Text::_('WF_' . strtoupper($name));
if ($name === "browser") {
if (!PluginHelper::isEnabled('quickicon', 'jce')) {
continue;
}
$title = Text::_('WF_' . strtoupper($name) . '_TITLE');
}
$icons[] = '
' . $title . '
';
}
return $icons;
}
public function getFeeds()
{
$app = Factory::getApplication();
$params = ComponentHelper::getParams('com_jce');
$limit = $params->get('feed_limit', 2);
$feeds = array();
$options = array(
'rssUrl' => 'https://www.joomlacontenteditor.net/news?format=feed',
);
$xml = simplexml_load_file($options['rssUrl']);
if (empty($xml)) {
return $feeds;
}
jimport('joomla.filter.input');
$filter = InputFilter::getInstance();
$count = count($xml->channel->item);
if ($count) {
$count = ($count > $limit) ? $limit : $count;
for ($i = 0; $i < $count; ++$i) {
$feed = new StdClass();
$item = $xml->channel->item[$i];
$link = (string) $item->link;
$feed->link = htmlspecialchars($filter->clean($link));
$title = (string) $item->title;
$feed->title = htmlspecialchars($filter->clean($title));
$description = (string) $item->description;
$feed->description = htmlspecialchars($filter->clean($description));
$feeds[] = $feed;
}
}
return $feeds;
}
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @since 1.6
*/
protected function populateState($ordering = null, $direction = null)
{
$licence = "";
$version = "";
if ($xml = simplexml_load_file(JPATH_ADMINISTRATOR . '/components/com_jce/jce.xml')) {
$licence = (string) $xml->license;
$version = (string) $xml->version;
if (PluginHelper::isEnabled('system', 'jcepro')) {
$version = 'Pro ' . $version;
$this->setState('pro', 1);
}
}
$this->setState('version', $version);
$this->setState('licence', $licence);
}
}