%PDF- %PDF-
| Direktori : /home/lightco1/www/lightingrepublic.com.au/components/com_allvideoshare/controllers/ |
| Current File : /home/lightco1/www/lightingrepublic.com.au/components/com_allvideoshare/controllers/user.php |
<?php
/*
* @version $Id: user.php 2.2.0 2014-01-18 $
* @package Joomla
* @copyright Copyright (C) 2012-2014 MrVinoth
* @license GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Import libraries
require_once( JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_allvideoshare'.DS.'controllers'.DS.'controller.php' );
class AllVideoShareControllerUser extends AllVideoShareController {
function __construct() {
parent::__construct();
}
function user() {
$document = JFactory::getDocument();
$vType = $document->getType();
$view = $this->getView('user', $vType);
$model = $this->getModel('user');
$view->setModel($model, true);
$view->setLayout('default');
$view->display();
}
function editvideo() {
if(JRequest::checkToken( 'get' )) {
JRequest::checkToken( 'get' ) or die( 'Invalid Token' );
} else {
JRequest::checkToken() or die( 'Invalid Token' );
}
$document = JFactory::getDocument();
$vType = $document->getType();
$view = $this->getView('user', $vType);
$model = $this->getModel('user');
$view->setModel($model, true);
$view->setLayout('edit');
$view->display();
}
function savevideo() {
if(JRequest::checkToken( 'get' )) {
JRequest::checkToken( 'get' ) or die( 'Invalid Token' );
} else {
JRequest::checkToken() or die( 'Invalid Token' );
}
$model = $this->getModel('user');
$model->savevideo();
}
function deletevideo() {
if(JRequest::checkToken( 'get' )) {
JRequest::checkToken( 'get' ) or die( 'Invalid Token' );
} else {
JRequest::checkToken() or die( 'Invalid Token' );
}
$model = $this->getModel('user');
$model->deletevideo();
}
}