| Current Path : /home/digilove/public_html/41423/ |
| Current File : //home/digilove/public_html/41423/controller.php.tar |
home/digilove/public_html/components/com_weblinks/controller.php 0000644 00000003574 15232574450 0021355 0 ustar 00 <?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Weblinks Component Controller
*
* @since 1.5
*/
class WeblinksController extends JControllerLegacy
{
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe url parameters and their variable types,
* for valid values see {@link JFilterInput::clean()}.
*
* @return WeblinksController This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
$cachable = true; // Huh? Why not just put that in the constructor?
$user = JFactory::getUser();
// Set the default view name and format from the Request.
// Note we are using w_id to avoid collisions with the router and the return page.
// Frontend is a bit messier than the backend.
$id = $this->input->getInt('w_id');
$vName = $this->input->get('view', 'categories');
$this->input->set('view', $vName);
if (JFactory::getUser()->id ||($this->input->getMethod() == 'POST' && $vName = 'categories'))
{
$cachable = false;
}
$safeurlparams = array(
'id' => 'INT',
'limit' => 'UINT',
'limitstart' => 'UINT',
'filter_order' => 'CMD',
'filter_order_Dir' => 'CMD',
'lang' => 'CMD'
);
// Check for edit form.
if ($vName == 'form' && !$this->checkEditId('com_weblinks.edit.weblink', $id))
{
// Somehow the person just went to the form - we don't allow that.
return JError::raiseError(403, JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
}
return parent::display($cachable, $safeurlparams);
}
}
home/digilove/public_html/components/com_contact/controller.php 0000644 00000004243 15232601366 0021161 0 ustar 00 <?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Contact Component Controller
*
* @since 1.5
*/
class ContactController extends JControllerLegacy
{
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
*
* @since 3.7.0
*/
public function __construct($config = array())
{
$this->input = JFactory::getApplication()->input;
// Contact frontpage Editor contacts proxying:
if ($this->input->get('view') === 'contacts' && $this->input->get('layout') === 'modal')
{
JHtml::_('stylesheet', 'system/adminlist.css', array(), true);
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
}
parent::__construct($config);
}
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe URL parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
*
* @return JControllerLegacy This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = array())
{
if (JFactory::getApplication()->getUserState('com_contact.contact.data') === null)
{
$cachable = true;
}
// Set the default view name and format from the Request.
$vName = $this->input->get('view', 'categories');
$this->input->set('view', $vName);
$safeurlparams = array('catid' => 'INT', 'id' => 'INT', 'cid' => 'ARRAY', 'year' => 'INT', 'month' => 'INT',
'limit' => 'UINT', 'limitstart' => 'UINT', 'showall' => 'INT', 'return' => 'BASE64', 'filter' => 'STRING',
'filter_order' => 'CMD', 'filter_order_Dir' => 'CMD', 'filter-search' => 'STRING', 'print' => 'BOOLEAN',
'lang' => 'CMD');
parent::display($cachable, $safeurlparams);
return $this;
}
}
home/digilove/public_html/components/com_sj_newsletter/controller.php 0000644 00000002161 15234426602 0022413 0 ustar 00 <?php
/**
* @version 1.0.0
* @package Com_Sj_newsletter
* @author YouTech Company <contact@ytcvn.com>
* @copyright Copyright (c) 2016 YouTech Company
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.application.component.controller');
/**
* Class Sj_newsletterController
*
* @since 1.6
*/
class Sj_newsletterController extends JControllerLegacy
{
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached
* @param mixed $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
*
* @return JController This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
require_once JPATH_COMPONENT . '/helpers/sj_newsletter.php';
$view = JFactory::getApplication()->input->getCmd('view', 'emails');
JFactory::getApplication()->input->set('view', $view);
parent::display($cachable, $urlparams);
return $this;
}
}
home/digilove/public_html/components/com_rsfirewall/controller.php 0000644 00000001115 15234427412 0021673 0 ustar 00 <?php
/*
* @package RSFirewall!
* @copyright (c) 2009 - 2024 RSJoomla!
* @link https://www.rsjoomla.com/joomla-extensions/joomla-security.html
* @license GNU General Public License https://www.gnu.org/licenses/gpl-3.0.en.html
*/
\defined('_JEXEC') or die;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Factory;
class RsfirewallController extends BaseController
{
public function display($cachable = false, $urlparams = false)
{
Factory::getApplication()->input->set('view', 'rsfirewall');
parent::display($cachable, $urlparams);
}
} home/digilove/public_html/components/com_menus/controller.php 0000644 00000002124 15234430141 0020642 0 ustar 00 <?php
/**
* @package Joomla.Site
* @subpackage com_menus
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Menus manager master display controller.
*
* @since 3.7.0
*/
class MenusController extends JControllerLegacy
{
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
*
* @since 3.7.0
*/
public function __construct($config = array())
{
$this->input = JFactory::getApplication()->input;
// Menus frontpage Editor Menu proxying:
if ($this->input->get('view') === 'items' && $this->input->get('layout') === 'modal')
{
JHtml::_('stylesheet', 'system/adminlist.css', array(), true);
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
}
parent::__construct($config);
}
}
home/digilove/public_html/components/com_finder/controller.php 0000644 00000003032 15234430446 0020771 0 ustar 00 <?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JLoader::register('FinderHelperLanguage', JPATH_ADMINISTRATOR . '/components/com_finder/helpers/language.php');
/**
* Finder Component Controller.
*
* @since 2.5
*/
class FinderController extends JControllerLegacy
{
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached. [optional]
* @param array $urlparams An array of safe URL parameters and their variable types,
* for valid values see {@link JFilterInput::clean()}. [optional]
*
* @return JControllerLegacy This object is to support chaining.
*
* @since 2.5
*/
public function display($cachable = false, $urlparams = array())
{
$input = JFactory::getApplication()->input;
$cachable = true;
// Load plugin language files.
FinderHelperLanguage::loadPluginLanguage();
// Set the default view name and format from the Request.
$viewName = $input->get('view', 'search', 'word');
$input->set('view', $viewName);
// Don't cache view for search queries
if ($input->get('q', null, 'string') || $input->get('f', null, 'int') || $input->get('t', null, 'array'))
{
$cachable = false;
}
$safeurlparams = array(
'f' => 'INT',
'lang' => 'CMD'
);
return parent::display($cachable, $safeurlparams);
}
}
home/digilove/public_html/components/com_marketplace/controller.php 0000644 00000014643 15234440366 0022026 0 ustar 00 <?php
/**
* Marketplace - Component Marketplace
* ******************************************************************
*
* PHP version 7.0
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @copyright 2010 WebKul software private limited
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @version GIT:5.2
* @filesource http://store.webkul.com
* @link Technical Support: webkul.uvdesk.com
* ******************************************************************
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controller');
jimport('joomla.mail.mail');
if (!class_exists('MarketplaceHelper')) {
include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.
DIRECTORY_SEPARATOR.'com_marketplace'.DIRECTORY_SEPARATOR.'helpers'.
DIRECTORY_SEPARATOR.'marketplace.php';
}
/**
* Marketplace Controller class
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @link Technical Support: webkul.uvdesk.com
*/
class MarketplaceController extends JControllerLegacy
{
/**
* Display function
*
* @param boolean $cachable var
* @param array $urlparams var
*
* @return void
*/
function display($cachable = false, $urlparams = array())
{
parent::display();
}
/**
* Ask_to_admin function
*
* @return void
*/
public function ask_to_admin()
{
$config = new JConfig();
$adminemail = $config->mailfrom;
$user =JFactory::getUser();
$mail = JFactory::getMailer();
$jinput=JFactory::getApplication()->input;
$method=$jinput->getMethod();
$ask_to_admin = MarketplaceHelper::getMarketModelS('asktoadmin');
$subject=$jinput->$method->getString('subject');
$message=nl2br($jinput->$method->getString('message'));
$ask_to_admin->storeSellerMessage($user->id, $subject, $message);
$mail->setSubject($subject);
$u_email=$user->email;
$adminmail=$ask_to_admin->getAdminList();
$mail->setBody($message);
$mail->setSender($u_email);
$admin='';
foreach ($adminmail as $key => $value) {
$mail->addRecipient($value->email);
}
$mail->isHtml(true);
$success = $mail->send();
echo $success;
JFactory::getApplication()->close();
}
/**
* Logout function
*
* @return void
*/
function logout()
{
$app = JFactory::getApplication();
$menu = $app->getMenu();
$home = $menu->getDefault();
$hash = JApplicationHelper::getHash('PlgSystemLogout');
$conf = JFactory::getConfig();
$cookie_domain = $conf->get('cookie_domain', '');
$cookie_path = $conf->get('cookie_path', '/');
setcookie($hash, true, time() + 86400, $cookie_path, $cookie_domain);
if (!class_exists('MarketplaceHelper')) {
include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.
DIRECTORY_SEPARATOR.'com_marketplace'.DIRECTORY_SEPARATOR.
'helpers'.DIRECTORY_SEPARATOR.'marketplace.php';
}
if (MarketplaceHelper::isCurlInstalled()) {
if (!class_exists('wk_Facebook')) {
include JPATH_SITE.
"/modules/mod_marketplacemenus/facebookv2/src/facebook.php";
}
}
$fb_setting = JComponentHelper::getParams('com_marketplace');
$_input = $app->input;
$inputCookie = $app->input->cookie;
$appid = $fb_setting->get('appid');
$secretkey = $fb_setting->get('secretkey');
$facebook = new wk_Facebook(
array(
'appId' => $appid,
'secret' => $secretkey,
'cookie' => true,
)
);
$key = $inputCookie->get(
'accessToken',
null,
0,
$app->get('cookie_path', '/'),
$app->get('cookie_domain'),
$app->isSSLConnection()
);
$facebook->clearPersistentData($key);
$facebook->destroySession();
$jsession=JFactory::getSession();
$jsession->clear('user');
$option = "com_virtuemart";
$wk_log = $_input->get('wk_log', 0, 'INT');
$layout = $_input->get('layout', '');
$id = $_input->get('id', 0, 'INT');
$view = "virtuemart";
$Itemid = $_input->get('Itemid', 0, 'INT');
$seller_id = $_input->get('seller_id', 0, 'INT');
$virtuemart_category_id = $_input->get('virtuemart_category_id', 0, 'INT');
$virtuemart_product_id = $_input->get('virtuemart_product_id', 0, 'INT');
if (isset($virtuemart_product_id)) {
if (is_array($virtuemart_product_id)) {
$virtuemart_product_id = $virtuemart_product_id[0];
}
$wk_nosef_url=JUri::root().'?option='.$option.'&view='.$view.
'&layout='.$layout.'&id='.$id.'&Itemid='.$Itemid;
if ($seller_id) {
$wk_nosef_url = $wk_nosef_url.'&seller_id='.$seller_id;
}
if ($virtuemart_category_id && $virtuemart_product_id) {
$wk_nosef_url = $wk_nosef_url.'&$virtuemart_category_id='.
$virtuemart_category_id.'&virtuemart_product_id='.
$virtuemart_product_id.'&seller_id='.$seller_id;
}
if ($virtuemart_category_id) {
$wk_nosef_url = $wk_nosef_url.'&$virtuemart_category_id='.
$virtuemart_category_id.'&seller_id='.$seller_id;
}
if ($virtuemart_product_id) {
$wk_nosef_url = $wk_nosef_url.'&$virtuemart_product_id='.
$virtuemart_product_id.'&seller_id='.$seller_id;
}
}
$inputCookie->set(
'checkpoint',
null,
time() - 1,
JRoute::_("index.php", false),
$app->get('cookie_domain'),
$app->isSSLConnection()
);
if ($wk_log==1) {
$this->setRedirect(
JRoute::_($home->link."&Itemid=".$home->id, false)
);
} else {
$this->setRedirect(
JRoute::_($home->link."&Itemid=".$home->id, false)
);
}
}
}
?>