- md5
- b1bf5eedba620384b5fb2857296f32b8
- sha1
- f6e76068f5779762e39134e9909ca25414de15a7
- sha256
- a81d6154f5b6dda2d99fdb6a992db18390b448b04007258420bfb0174ffb296b
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
<?php
/**
* @version $Id: default.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage com_media
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$user = JFactory::getUser();
?>
<table width="100%">
<tr valign="top">
<td width="200">
<fieldset id="treeview">
<legend><?php echo JText::_('COM_MEDIA_FOLDERS'); ?></legend>
<div id="media-tree_tree"></div>
<?php echo $this->loadTemplate('folders'); ?>
</fieldset>
</td>
<td>
<?php if (($user->authorise('core.create','com_media')) and $this->require_ftp): ?>
<form action="index.php?option=com_media&task=ftpValidate" name="ftpForm" id="ftpForm" method="post">
<fieldset title="<?php echo JText::_('COM_MEDIA_DESCFTPTITLE'); ?>">
<legend><?php echo JText::_('COM_MEDIA_DESCFTPTITLE'); ?></legend>
<?php echo JText::_('COM_MEDIA_DESCFTP'); ?>
<label for="username"><?php echo JText::_('JGLOBAL_USERNAME'); ?></label>
<input type="text" id="username" name="username" class="inputbox" size="70" value="" />
<label for="password"><?php echo JText::_('JGLOBAL_PASSWORD'); ?></label>
<input type="password" id="password" name="password" class="inputbox" size="70" value="" />
</fieldset>
</form>
<?php endif; ?>
<form action="index.php?option=com_media" name="adminForm" id="mediamanager-form" method="post" enctype="multipart/form-data" >
<input type="hidden" name="task" value="" />
<input type="hidden" name="cb1" id="cb1" value="0" />
<input class="update-folder" type="hidden" name="folder" id="folder" value="<?php echo $this->state->folder; ?>" />
</form>
<form action="index.php?option=com_media&task=folder.create&tmpl=<?php echo JRequest::getCmd('tmpl','index');?>" name="folderForm" id="folderForm" method="post">
<fieldset id="folderview">
<div class="view">
<iframe src="index.php?option=com_media&view=mediaList&tmpl=component&folder=<?php echo $this->state->folder;?>" id="folderframe" name="folderframe" width="100%" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
</div>
<legend><?php echo JText::_('COM_MEDIA_FILES'); ?></legend>
<div class="path">
<?php if ($user->authorise('core.create','com_media')): ?>
<input class="inputbox" type="text" id="folderpath" readonly="readonly" />
<input class="inputbox" type="text" id="foldername" name="foldername" />
<input class="update-folder" type="hidden" name="folderbase" id="folderbase" value="<?php echo $this->state->folder; ?>" />
<button type="submit"><?php echo JText::_('COM_MEDIA_CREATE_FOLDER'); ?></button>
<?php endif; ?>
</div>
<?php echo JHtml::_('form.token'); ?>
</fieldset>
</form>
<?php if ($user->authorise('core.create','com_media')):?>
<!-- File Upload Form -->
<form action="<?php echo JURI::base(); ?>index.php?option=com_media&task=file.upload&tmpl=component&<?php echo $this->session->getName().'='.$this->session->getId(); ?>&<?php echo JUtility::getToken();?>=1&format=json" id="uploadForm" name="uploadForm" method="post" enctype="multipart/form-data">
<fieldset id="uploadform">
<legend><?php echo $this->config->get('upload_maxsize')=='0' ? JText::_('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : JText::sprintf('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?></legend>
<fieldset id="upload-noflash" class="actions">
<label for="upload-file" class="hidelabeltxt"><?php echo JText::_('COM_MEDIA_UPLOAD_FILE'); ?></label>
<input type="file" id="upload-file" name="Filedata" />
<label for="upload-submit" class="hidelabeltxt"><?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?></label>
<input type="submit" id="upload-submit" value="<?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?>"/>
</fieldset>
<div id="upload-flash" class="hide">
<ul>
<li><a href="#" id="upload-browse"><?php echo JText::_('COM_MEDIA_BROWSE_FILES'); ?></a></li>
<li><a href="#" id="upload-clear"><?php echo JText::_('COM_MEDIA_CLEAR_LIST'); ?></a></li>
<li><a href="#" id="upload-start"><?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?></a></li>
</ul>
<div class="clr"> </div>
<p class="overall-title"></p>
<?php echo JHTML::_('image','media/bar.gif', JText::_('COM_MEDIA_OVERALL_PROGRESS'), array('class' => 'progress overall-progress'), true); ?>
<div class="clr"> </div>
<p class="current-title"></p>
<?php echo JHTML::_('image','media/bar.gif', JText::_('COM_MEDIA_CURRENT_PROGRESS'), array('class' => 'progress current-progress'), true); ?>
<p class="current-text"></p>
</div>
<ul class="upload-queue" id="upload-queue">
<li style="display:none;"></li>
</ul>
<input type="hidden" name="return-url" value="<?php echo base64_encode('index.php?option=com_media'); ?>" />
<input type="hidden" name="format" value="html" />
</fieldset>
</form>
<?php endif;?>
</td>
</tr>
</table>
The same content is in 2 releases, Joomla 1.6.0 to 1.6.1. See them all, or every version of this file.