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/views/commercials/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/administrator/components/com_allvideoshare/views/commercials/tmpl/edit.php
<?php
/*
 * @version		$Id: edit.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');

JHTML::_( 'behavior.formvalidation' );
JHtml::_( 'jquery.framework' );

$doc = JFactory::getDocument();
$doc->addStyleSheet( AllVideoShareUtils::prepareURL( 'administrator/components/com_allvideoshare/assets/css/allvideoshare.css' ), 'text/css', 'screen' );
$doc->addScript( AllVideoShareUtils::prepareURL( 'administrator/components/com_allvideoshare/assets/js/allvideoshare.js' ) );
$doc->addScriptDeclaration("
	Joomla.submitbutton = function( pressbutton ) {
	
    	if ( pressbutton == 'cancel' ) {		
        	submitform( pressbutton );			
    	} else {
		
			var f = document.adminForm;	
	
			document.formvalidator.setHandler( 'video', function( value ) {
				if ( 'upload' == f.type_video.value ) {
					var value = f.upload_video.value;
					var url = value.split('.').pop();
					return ( url != '' ) ? /mp4|m4v|mov|flv/.test( url.toLowerCase() ) : true;
				} else if ( 'url' == f.type_video.value ) {
					var value = f.video.value;
					var url = value.split('.').pop();
					return ( url != '' ) ? /mp4|m4v|mov|flv/.test( url.toLowerCase() ) : true;
				};
				
				return true;
			});
			
        	if ( document.formvalidator.isValid( f ) ) {
            	submitform( pressbutton );    
        	};
			
    	};  
		
	};
");
?>

<div id="avs-commercials" class="avs commercials edit">
  	<form action="index.php" method="post" name="adminForm" id="adminForm" class="form-horizontal form-validate" enctype="multipart/form-data">
    	<div class="control-group">
        	<label class="control-label"><?php echo JText::_( 'TITLE' ); ?><span class="star">&nbsp;*</span></label>
        	<div class="controls">
          		<input type="text" id="title" name="title" class="required" value="<?php echo $this->item->title; ?>" />
        	</div>
      	</div> 
        
        <div class="control-group">
        	<label class="control-label"><?php echo JText::_( 'TYPE' ); ?></label>
        	<div class="controls">
				<?php
                	echo AllVideoShareHtml::ListItems(
						'type',
						array(
							'preroll'  => JText::_( 'PREROLL' ),
					  		'postroll' => JText::_( 'POSTROLL' ),
					  		'both'     => JText::_( 'BOTH' )
						),							
						$this->item->type
					);
				?>
           	</div>
      	</div> 
        
		<div class="control-group">
            <label class="control-label"><?php echo JText::_( 'VIDEO' ); ?></label>
            <div class="controls">
                <?php echo AllVideoShareHtml::FileUploader( 'video', $this->item->video ); ?>
            </div>
        </div>
                        
        <div class="control-group">
        	<label class="control-label"><?php echo JText::_( 'ADVERTISEMENT_LINK' ); ?></label>
        	<div class="controls"><input type="text" id="link" name="link" value="<?php echo $this->item->link; ?>" /></div>
      	</div> 
        
        <div class="control-group">
        	<label class="control-label"><?php echo JText::_( 'PUBLISH' ); ?></label>
        	<div class="controls"><?php echo AllVideoShareHtml::ListBoolean( 'published', $this->item->published ); ?></div>
      	</div> 
        
        <input type="hidden" name="boxchecked" value="1" />
        <input type="hidden" name="option" value="com_allvideoshare" />
        <input type="hidden" name="view" value="commercials" />
        <input type="hidden" name="task" value="" />
        <input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
        <?php echo JHTML::_( 'form.token' ); ?>
  	</form>
</div>

NexusLeads