Server IP : 195.201.23.43 / Your IP : 18.218.26.136 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kdecoratie/public_html/administrator/components/com_media/views/medialist/tmpl/ |
Upload File : |
<?php /** * @package Joomla.Administrator * @subpackage com_media * * @copyright (C) 2007 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $params = JComponentHelper::getParams('com_media'); $path = 'file_path'; JHtml::_('jquery.framework'); JHtml::_('behavior.core'); $doc = JFactory::getDocument(); // Need to override this core function because we use a different form id $doc->addScriptDeclaration( " Joomla.isChecked = function( isitchecked, form ) { if ( typeof form === 'undefined' ) { form = document.getElementById( 'mediamanager-form' ); } form.boxchecked.value += isitchecked ? 1 : -1; // If we don't have a checkall-toggle, done. if ( !form.elements[ 'checkall-toggle' ] ) return; // Toggle main toggle checkbox depending on checkbox selection var c = true, i, e, n; for ( i = 0, n = form.elements.length; i < n; i++ ) { e = form.elements[ i ]; if ( e.type == 'checkbox' && e.name != 'checkall-toggle' && !e.checked ) { c = false; break; } } form.elements[ 'checkall-toggle' ].checked = c; }; " ); $doc->addScriptDeclaration( " jQuery(document).ready(function($){ window.parent.document.updateUploader(); $('.img-preview, .preview').each(function(index, value) { $(this).on('click', function(e) { window.parent.jQuery('#imagePreviewSrc').attr('src', $(this).attr('href')); window.parent.jQuery('#imagePreview').modal('show'); return false; }); }); $('.video-preview').each(function(index, value) { $(this).unbind('click'); $(this).on('click', function(e) { e.preventDefault(); window.parent.jQuery('#videoPreview').modal('show'); var elementInitialised = window.parent.jQuery('#mejsPlayer').attr('src'); if (!elementInitialised) { window.parent.jQuery('#mejsPlayer').attr('src', $(this).attr('href')); window.parent.jQuery('#mejsPlayer').mediaelementplayer(); } window.parent.jQuery('#mejsPlayer')[0].player.media.setSrc($(this).attr('href')); return false; }); }); }); " ); ?> <form target="_parent" action="index.php?option=com_media&tmpl=index&folder=<?php echo rawurlencode($this->state->folder); ?>" method="post" id="mediamanager-form" name="mediamanager-form"> <div class="muted"> <p> <span class="icon-folder"></span> <?php echo $params->get($path, 'images'), ($this->escape($this->state->folder) != '') ? '/' . $this->escape($this->state->folder) : ''; ?> </p> </div> <div class="manager"> <table class="table table-striped table-condensed"> <thead> <tr> <?php if ($this->canDelete) : ?> <th width="1%"> <?php echo JHtml::_('grid.checkall'); ?> </th> <?php endif; ?> <th width="1%"><?php echo JText::_('JGLOBAL_PREVIEW'); ?></th> <th><?php echo JText::_('COM_MEDIA_NAME'); ?></th> <th width="15%"><?php echo JText::_('COM_MEDIA_PIXEL_DIMENSIONS'); ?></th> <th width="8%"><?php echo JText::_('COM_MEDIA_FILESIZE'); ?></th> <?php if ($this->canDelete) : ?> <th width="8%"> <?php echo JText::_('JACTION_DELETE'); ?> </th> <?php endif; ?> </tr> </thead> <tbody> <?php echo $this->loadTemplate('up'), $this->loadTemplate('folders'), $this->loadTemplate('docs'), $this->loadTemplate('videos'), $this->loadTemplate('imgs'); ?> </tbody> </table> </div> <input type="hidden" name="task" value="list" /> <input type="hidden" name="username" value="" /> <input type="hidden" name="password" value="" /> <input type="hidden" name="boxchecked" value="" /> <?php echo JHtml::_('form.token'); ?> </form>Private