CoreFiles by mySites.guru
default.php46 lines, 1,555 bytes, from Joomla_3.7.0-beta3-Beta-Full_Package.zip
Raw History Compare with 3.7.0-beta2
md5
5183653c88249d9f6eb6d09a1e703c75
sha1
bf07764b157ba1da2efb295d5e631eaaf09f1cfa
sha256
da6424f08cc164906934d6bee96eedce3b0ee6c021c2f720ea8cdc4af84df343
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Installer.packageinstaller
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');

JFactory::getDocument()->addScriptDeclaration('
	Joomla.submitbuttonpackage = function()
	{
		var form = document.getElementById("adminForm");

		// do field validation 
		if (form.install_package.value == "")
		{
			alert("' . JText::_('PLG_INSTALLER_PACKAGEINSTALLER_NO_PACKAGE', true) . '");
		}
		else
		{
			jQuery("#loading").css("display", "block");
			form.installtype.value = "upload"
			form.submit();
		}
	};
');
?>
<legend><?php echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_UPLOAD_INSTALL_JOOMLA_EXTENSION'); ?></legend>
<div class="control-group">
	<label for="install_package" class="control-label"><?php echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_EXTENSION_PACKAGE_FILE'); ?></label>
	<div class="controls">
		<input class="input_box" id="install_package" name="install_package" type="file" size="57" /><br>
		<?php $maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize()); ?>
		<?php echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?>
	</div>
</div>
<div class="form-actions">
	<button class="btn btn-primary" type="button" id="installbutton_package" onclick="Joomla.submitbuttonpackage()">
		<?php echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_UPLOAD_AND_INSTALL'); ?>
	</button>
</div>

The same content is in 4 releases, Joomla 3.7.0-alpha2 to 3.7.0-beta3. See them all, or every version of this file.