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/videos/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/administrator/components/com_allvideoshare/views/videos/tmpl/add.php
<?php
/*
 * @version		$Id: add.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 ( 'general' == f.type.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();
						if( /mp4|m4v|mov|flv/.test( url.toLowerCase() )  ) {
							return true;
						} else {
							if( /dropbox.com|drive.google.com/.test( value ) )  {
								return true;
							}
							return false;
						}
					};
				};
				
				return true;
			});
			
			document.formvalidator.setHandler( 'hd', function( value ) {
				if ( 'general' == f.type.value ) {
					if ( 'upload' == f.type_hd.value ) {
						var value = f.upload_hd.value;
						var url = value.split('.').pop();
						return ( url != '' ) ? /mp4|m4v|mov|flv/.test( url.toLowerCase() ) : true;
					} else if ( 'url' == f.type_hd.value ) {
						var value = f.hd.value;
						var url = value.split('.').pop();
						if( /mp4|m4v|mov|flv/.test( url.toLowerCase() )  ) {
							return true;
						} else {
							if( /dropbox.com|drive.google.com/.test( value ) )  {
								return true;
							}
							return false;
						}
					};
				};
				
				return true;
			});
			
			document.formvalidator.setHandler( 'thumb', function( value ) {
				if ( 'upload' == f.type_thumb.value ) {
					var value = f.upload_thumb.value;
					var url = value.split('.').pop();
					return ( url != '' ) ? /jpg|jpeg|png|gif/.test( url.toLowerCase() ) : true;
				} else if ( 'url' == f.type_thumb.value ) {
					var value = f.thumb.value;
					var url = value.split('.').pop();
					return ( url != '' ) ? /jpg|jpeg|png|gif/.test( url.toLowerCase() ) : true;
				};
					
				return true;
			});
			
			document.formvalidator.setHandler( 'rtmp', function( value ) {
				if ( 'rtmp' == f.type.value ) {
					return value !== '';
				};
				
				return true;
			});
			
			document.formvalidator.setHandler( 'hls', function( value ) {
				if ( 'rtmp' == f.type.value ) {
					var url = value.split('.').pop();
					return ( url !== '' ) ? /m3u8/.test( url.toLowerCase() ) : true;
				} else if ( 'hls' == f.type.value ) {
					var url = value.split('.').pop();
					return /m3u8/.test( url.toLowerCase() );
				};
				
				return true;
			});
			
			document.formvalidator.setHandler( 'thirdparty', function( value ) {
				if ( 'thirdparty' == f.type.value ) {
					return value !== '';
				};
				
				return true;
			});
			
        	if ( document.formvalidator.isValid( f ) ) {
            	submitform( pressbutton );    
        	};
			
    	};  
		
	};
");
?>

<div id="avs-videos" class="avs videos add">
  	<form action="index.php" method="post" name="adminForm" id="adminForm" class="form-horizontal form-validate" enctype="multipart/form-data">
      	<div class="row-fluid">
        
        	<!-- GENERAL_SETTINGS -->
            <fieldset>
            
            	<legend><?php echo JText::_( 'GENERAL_SETTINGS' ); ?></legend>
                
                <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" />
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'SLUG' ); ?></label>
                    <div class="controls">
                        <input type="text" id="slug" name="slug" />
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'SELECT_A_CATEGORY' ); ?><span class="star">&nbsp;*</span></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::ListCategories( 'catid', 0, 'class="required"' ); ?>
                    </div>
                </div>

                <?php if ( 1 == $this->config->is_premium && $this->config->multi_categories ) : ?>
                    <div class="control-group">
                        <label class="control-label"><?php echo JText::_( 'ADDITIONAL_CATEGORIES' ); ?></label>
                        <div class="controls">
                            <?php echo AllVideoShareHtml::ListMutiCategories( '' ); ?>
                        </div>
                    </div>
                <?php endif; ?>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'TYPE' ); ?></label>
                    <div class="controls">
                        <?php
                        if ( 1 == $this->config->is_premium ) {
                            echo AllVideoShareHtml::ListItems(
                                'type',
                                array(
                                    'general'    => JText::_( 'SELF_HOSTED_EXTERNAL_URL' ),
                                    'youtube'    => JText::_( 'YOUTUBE' ),
									'vimeo'      => JText::_( 'VIMEO' ),
                                    'rtmp'       => JText::_( 'RTMP_STREAMING' ),
									'hls'        => JText::_( 'HLS' ),
                                    'thirdparty' => JText::_( 'THIRD_PARTY_EMBEDCODE' ),
                                ),							
                                'general'
                            );
                        } else {
                            echo AllVideoShareHtml::ListTypes(
                                'type',
                                array(
                                    'general' => JText::_( 'SELF_HOSTED_EXTERNAL_URL' ),                                    
                                    'rtmp'    => JText::_( 'RTMP_STREAMING' )
                                ),							
                                'general'
                            );
                        }
                        ?>
                    </div>
                </div> 
                
                <div class="control-group avs-toggle-fields avs-general-fields">
                    <label class="control-label"><?php echo JText::_( 'VIDEO' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::FileUploader( 'video' ); ?>
                    </div>
                </div>
                
                <div class="control-group avs-toggle-fields avs-general-fields">
                    <label class="control-label"><?php echo JText::_( 'HD_VIDEO' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::FileUploader( 'hd' ); ?>
                    </div>
                </div>
                
                <div class="control-group avs-toggle-fields avs-rtmp-fields">
                    <label class="control-label"><?php echo JText::_( 'STREAMER' ); ?><span class="star">&nbsp;*</span></label>
                    <div class="controls">
                        <input type="text" id="streamer" name="streamer" class="required validate-rtmp" />
                    </div>
                </div>
                
                <div class="control-group avs-toggle-fields avs-youtube-fields avs-vimeo-fields avs-rtmp-fields">
                    <label class="control-label"><?php echo JText::_( 'VIDEO' ); ?><span class="star">&nbsp;*</span></label>
                    <div class="controls">
                        <input type="text" id="external" name="external" class="required validate-external" />
                    </div>
                </div>
                
                <div class="control-group avs-toggle-fields avs-rtmp-fields avs-hls-fields">
                    <label class="control-label"><?php echo JText::_( 'HLS' ); ?><span class="star" style="display: none;">&nbsp;*</span></label>
                    <div class="controls">
                        <input type="text" id="hls" name="hls" class="validate-hls" />
                    </div>
                </div>                
                
                <div class="control-group avs-toggle-fields avs-rtmp-fields">
                    <label class="control-label"><?php echo JText::_( 'TOKEN' ); ?></label>
                    <div class="controls">
                        <input type="text" id="token" name="token" />
                    </div>
                </div>
                
                <div class="control-group avs-toggle-fields avs-thirdparty-fields">
                    <label class="control-label"><?php echo JText::_( 'THIRD_PARTY_EMBEDCODE' ); ?><span class="star">&nbsp;*</span></label>
                    <div class="controls">
                        <textarea name="thirdparty" id="thirdparty" class="required validate-thirdparty" rows="6" cols="50"></textarea>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'THUMB' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::FileUploader( 'thumb' ); ?>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'USER' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::ListUsers( 'user', ALLVIDEOSHARE_USERNAME ); ?>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'ACCESS' ); ?></label>
                    <div class="controls">
                        <?php echo JHtml::_( 'access.level', 'access', 1, '', false ); ?>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'FEATURED' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::ListBoolean( 'featured', 0 ); ?>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'DATE_ADDED' ); ?></label>
                    <div class="controls">
                        <?php echo JHTML::calendar( '', 'created_date', 'published_up', "%Y-%m-%d %H:%M:%S", '' ); ?>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'PUBLISH' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::ListBoolean( 'published' ); ?>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'DESCRIPTION' ); ?></label>
                    <div class="controls">
                        <?php echo AllVideoShareHtml::Editor( 'description' ); ?>
                    </div>
                </div>
  
            </fieldset>
            
            <!-- ADVANCED_SETTINGS -->
            <fieldset>
            
            	<legend><?php echo JText::_( 'ADVANCED_SETTINGS' ); ?></legend>

                <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'META_KEYWORDS' ); ?></label>
                    <div class="controls">
                        <textarea name="tags" rows="3"></textarea>
                        <span class="help-block"><?php echo JText::_( 'META_KEYWORDS_DESCRIPTION' ); ?></span>
                    </div>
                </div>
                
                 <div class="control-group">
                    <label class="control-label"><?php echo JText::_( 'META_DESCRIPTION' ); ?></label>
                    <div class="controls">
                        <textarea name="metadescription" rows="3"></textarea>
                    </div>
                </div>
                
            </fieldset>
        
        </div>
        <input type="hidden" name="boxchecked" value="1" />
        <input type="hidden" name="option" value="com_allvideoshare" />
        <input type="hidden" name="view" value="videos" />
        <input type="hidden" name="task" value="" />
        <?php echo JHTML::_( 'form.token' ); ?>
  	</form>
</div>

NexusLeads