NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/administrator/components/com_allvideoshare/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/administrator/components/com_allvideoshare/models/licensing.php
<?php
/*
 * @version		$Id: licensing.php 3.5.0 2020-01-25 $
 * @package		All Video Share
 * @copyright   Copyright (C) 2012-2020 MrVinoth
 * @license     GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class AllVideoShareModelLicensing extends AllVideoShareModel {
	
	public function getItem() {
	
         $row = JTable::getInstance( 'Licensing', 'AllVideoShareTable' );
         $row->load(1);

         return $row;
		 
	}
	
	public function save()	{
	
		$app = JFactory::getApplication();
		
		$cid = $app->input->get( 'cid', array(0), 'ARRAY' );
		$id = $cid[0];
		 
	  	$row = JTable::getInstance( 'Licensing', 'AllVideoShareTable' );
      	$row->load( $id );
	
		$post = $app->input->post->getArray();
      	if ( ! $row->bind( $post ) ) {
		 	$app->enqueueMessage( $row->getError(), 'error' );
	  	}

	  	if ( 'upload' == $post['type_logo'] ) {
			jimport( 'joomla.filesystem.folder' );
			
			$folder = 'system';
		 	if ( ! JFolder::exists( ALLVIDEOSHARE_UPLOAD_BASE ) ) {
				JFolder::create( ALLVIDEOSHARE_UPLOAD_BASE );
			}
		
			$row->logo = AllVideoShareUpload::doUpload( 'upload_logo', $folder, $row->logo );
	  	}
		$row->logo = AllVideoShareUtils::cleanURL( $row->logo );
	  
	  	if ( ! $row->store() ) {
			$app->enqueueMessage( $row->getError(), 'error' );
	  	}

		$msg  = JText::_( 'SAVED' );
        $link = 'index.php?option=com_allvideoshare&view=licensing';
		 
		$app->redirect( $link, $msg, 'message' ); 
		 	 
	}
	
}

NexusLeads