<?php
/*
 * @component UserPoints
 * @copyright Copyright (C) 2015-2022 Bernard Gilly - Adrien Roussel - Martin Brampton
 * @license : GNU/GPL
 * @Website : https://remository.com
 */

defined( '_JEXEC' ) or die( 'Restricted access' );

use Joomla\CMS\Language\Text;

$show = function ($string) {
    return htmlspecialchars($string, ENT_QUOTES, false);
};

echo <<<PLUGIN_FORM

<form enctype="multipart/form-data" action="index.php" method="post" name="filename">
	<div class="form">
		<fieldset class="adminform">
			<legend>{$show(Text::_('AUP_INSTALL_NEW_PLUGIN_RULE'))}</legend>
			<div class="control-group">
				<div class="control-label">
					{$show(Text::_('AUP_UPLOADXMLFILE'))}
				</div>
			</div>
			<div class="controls">
				<div><{$show(Text::_('AUP_FILENAME'))}:
				<input class="text_area" name="userfile" type="file" size="70"/>
				<input class="btn btn-primary" type="submit" value="{$show(Text::_('AUP_UPLOADANDINSTALL'))}" />
				</div>
			</div>
			<input type="hidden" name="task" value="uploadfile"/>
			<input type="hidden" name="option" value="com_userpoints"/>
		</fieldset>
	</div>
</form>

PLUGIN_FORM;

