__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @name Slider CK
* @package com_sliderck
* @copyright Copyright (C) 2016. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr
*/
// No direct access
defined('_JEXEC') or die;
/**
* Helper Class.
*/
class SliderckHelper {
/**
* Configure the Linkbar.
*/
public static function addSubmenu($vName = '') {
$doc = JFactory::getDocument();
$doc->addStyleSheet(SLIDERCK_MEDIA_URI . '/assets/sliderck.css');
$input = JFactory::getApplication()->input;
if (! $vName) $vName = $input->get('view', 'about');
JSubMenuHelper::addEntry(
JText::_('COM_SLIDERCK_MODULES'), 'index.php?option=com_sliderck&view=modules', $vName == 'modules'
);
JSubMenuHelper::addEntry(
JText::_('COM_SLIDERCK_STYLES'), 'index.php?option=com_sliderck&view=styles', $vName == 'styles'
);
JSubMenuHelper::addEntry(
JText::_('CK_ABOUT') . '<span class="sliderckchecking isbadgeck"></span>', 'index.php?option=com_sliderck&view=about', $vName == 'about'
);
// JSubMenuHelper::addEntry(
// JText::_('COM_SLIDERCK_HELP'), 'index.php?option=com_sliderck&view=help', $vName == 'help'
// );
}
/**
* Gets a list of the actions that can be performed.
*
* @return JObject
* @since 1.6
*/
public static function getActions() {
$user = JFactory::getUser();
$result = new JObject;
$assetName = 'com_sliderck';
$actions = array(
'core.admin', 'core.manage', 'core.create', 'core.edit', 'core.edit.own', 'core.edit.state', 'core.delete'
);
foreach ($actions as $action) {
$result->set($action, $user->authorise($action, $assetName));
}
return $result;
}
/*
* Load the JS and CSS files needed to use CKBox
*
* Return void
*/
public static function loadCkbox() {
$doc = JFactory::getDocument();
$doc->addScript(JUri::root(true) . '/media/jui/js/jquery.min.js');
$doc->addStyleSheet(SLIDERCK_MEDIA_URI . '/assets/ckbox.css');
$doc->addScript(SLIDERCK_MEDIA_URI . '/assets/ckbox.js');
}
/*
* Remove special character
*/
public static function cleanName($path) {
return preg_replace('/[^a-z0-9]/i', '_', $path);
}
/*
* Format the path to use only /
*/
public static function formatPath($p) {
return trim(str_replace("\\", "/", $p), "/");
}
/**
* Get the name of the style
*/
public static function getStyleNameById($id) {
if (! $id) return '';
// Create a new query object.
$db = JFactory::getDbo();
$query = $db->getQuery(true);
// Select the required fields from the table.
$query->select('a.name');
$query->from($db->quoteName('#__sliderck_styles') . ' AS a');
$query->where('(a.state IN (0, 1))');
$query->where('a.id = ' . (int)$id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
// Load the results as a list of stdClass objects (see later for more options on retrieving data).
$results = $db->loadResult();
return $results;
}
public static function getAjaxToken() {
// check the token for security
if (! JSession::checkToken('get')) {
$msg = JText::_('JINVALID_TOKEN');
echo '{"result": "0", "message": "' . $msg . '"}';
return false;
}
return true;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| source | Folder | 0775 |
|
|
| ckbrowse.php | File | 6.7 KB | 0664 |
|
| ckcontroller.php | File | 7.2 KB | 0664 |
|
| ckfile.php | File | 124 B | 0664 |
|
| ckfof.php | File | 13.33 KB | 0664 |
|
| ckfolder.php | File | 130 B | 0664 |
|
| ckframework.php | File | 3.12 KB | 0664 |
|
| ckinput.php | File | 91 B | 0664 |
|
| ckinterface.php | File | 40.55 KB | 0664 |
|
| ckmodel.php | File | 3.27 KB | 0664 |
|
| ckpath.php | File | 124 B | 0664 |
|
| ckstyles.php | File | 46.39 KB | 0664 |
|
| cktext.php | File | 88 B | 0664 |
|
| ckuri.php | File | 86 B | 0664 |
|
| ckview.php | File | 1.15 KB | 0664 |
|
| defines.js.php | File | 1018 B | 0664 |
|
| defines.php | File | 1.81 KB | 0664 |
|
| helper.php | File | 18.31 KB | 0664 |
|
| htmlfixer.php | File | 13.99 KB | 0664 |
|
| index.html | File | 44 B | 0664 |
|
| sliderck.php | File | 3.21 KB | 0664 |
|