- md5
- 6f43cae0af18f1db264d320429b00ff3
- sha1
- 4a2dac1a2b845cc9545208bc4abd8eb0117d6541
- sha256
- 90f3c1973eb6919422ee931a15dca307ec69ab1d4230ef1c4ca559f5e83afcc7
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<script language="javascript" type="text/javascript">
<!--
function submitbutton3(pressbutton) {
var form = document.adminForm;
// do field validation
if (form.install_directory.value == ""){
alert( "<?php echo JText::_( 'Please select a directory', true ); ?>" );
} else {
form.installtype.value = 'folder';
form.submit();
}
}
function submitbutton4(pressbutton) {
var form = document.adminForm;
// do field validation
if (form.install_url.value == "" || form.install_url.value == "http://"){
alert( "<?php echo JText::_( 'Please enter a URL', true ); ?>" );
} else {
form.installtype.value = 'url';
form.submit();
}
}
//-->
</script>
<form enctype="multipart/form-data" action="index.php" method="post" name="adminForm">
<?php if ($this->ftp) : ?>
<?php echo $this->loadTemplate('ftp'); ?>
<?php endif; ?>
<table class="adminform">
<tr>
<th colspan="2"><?php echo JText::_( 'Upload Package File' ); ?></th>
</tr>
<tr>
<td width="120">
<label for="install_package"><?php echo JText::_( 'Package File' ); ?>:</label>
</td>
<td>
<input class="input_box" id="install_package" name="install_package" type="file" size="57" />
<input class="button" type="button" value="<?php echo JText::_( 'Upload File' ); ?> & <?php echo JText::_( 'Install' ); ?>" onclick="submitbutton()" />
</td>
</tr>
</table>
<table class="adminform">
<tr>
<th colspan="2"><?php echo JText::_( 'Install from directory' ); ?></th>
</tr>
<tr>
<td width="120">
<label for="install_directory"><?php echo JText::_( 'Install directory' ); ?>:</label>
</td>
<td>
<input type="text" id="install_directory" name="install_directory" class="input_box" size="70" value="<?php echo $this->state->get('install.directory'); ?>" />
<input type="button" class="button" value="<?php echo JText::_( 'Install' ); ?>" onclick="submitbutton3()" />
</td>
</tr>
</table>
<table class="adminform">
<tr>
<th colspan="2"><?php echo JText::_( 'Install from URL' ); ?></th>
</tr>
<tr>
<td width="120">
<label for="install_url"><?php echo JText::_( 'Install URL' ); ?>:</label>
</td>
<td>
<input type="text" id="install_url" name="install_url" class="input_box" size="70" value="http://" />
<input type="button" class="button" value="<?php echo JText::_( 'Install' ); ?>" onclick="submitbutton4()" />
</td>
</tr>
</table>
<input type="hidden" name="type" value="" />
<input type="hidden" name="installtype" value="upload" />
<input type="hidden" name="task" value="doInstall" />
<input type="hidden" name="option" value="com_installer" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
The same content is in 15 releases, Joomla 1.5.12 to 1.5.26. See them all, or every version of this file.