primo commit
This commit is contained in:
		| @ -0,0 +1 @@ | ||||
| <html><body bgcolor="#FFFFFF"></body></html> | ||||
| @ -0,0 +1,49 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Attachments component | ||||
|  * | ||||
|  * @package Attachments | ||||
|  * @subpackage Attachments_Component | ||||
|  * | ||||
|  * @copyright Copyright (C) 2007-2018 Jonathan M. Cameron, All Rights Reserved | ||||
|  * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||||
|  * @link http://joomlacode.org/gf/project/attachments/frs/ | ||||
|  * @author Jonathan M. Cameron | ||||
|  */ | ||||
|  | ||||
| // Check to ensure this file is included in Joomla! | ||||
| defined('_JEXEC') or die(); | ||||
|  | ||||
| $template = JFactory::getApplication()->getTemplate(); | ||||
|  | ||||
| // Load the tooltip behavior. | ||||
| JHtml::_('behavior.tooltip'); | ||||
|  | ||||
| $uri = JFactory::getURI(); | ||||
| $document = JFactory::getDocument(); | ||||
|  | ||||
| // Hide the vertical scrollbar using javascript | ||||
| $hide_scrollbar = "window.addEvent('domready', function() { | ||||
| 	   document.documentElement.style.overflow = \"hidden\"; | ||||
| 	   document.body.scroll = \"no\";});"; | ||||
| $document->addScriptDeclaration($hide_scrollbar); | ||||
|  | ||||
| ?> | ||||
| <div class="attachmentsWarning"> | ||||
| 	 <h1><?php echo $this->warning_title; ?></h1> | ||||
| 	 <h2 id="warning_msg"><?php echo $this->warning_question ?></h2> | ||||
|   <form action="<?php echo $this->action_url; ?>" name="warning_form" method="post"> | ||||
| 	<div class="form_buttons" align="center"> | ||||
| 	   <span class="left"> </span> | ||||
| 	   <input type="submit" name="submit" value="<?php echo $this->action_button_label ?>" /> | ||||
| 	   <span class="right"> | ||||
| 		  <input type="button" name="cancel" value="<?php echo JText::_('ATTACH_CANCEL'); ?>" | ||||
| 				 onClick="window.parent.SqueezeBox.close();" /> | ||||
| 	   </span> | ||||
| 	</div> | ||||
| 	<input type="hidden" name="option" value="<?php echo $this->option;?>" /> | ||||
| 	<input type="hidden" name="from" value="<?php echo $this->from;?>" /> | ||||
|  | ||||
| 	<?php echo JHtml::_( 'form.token' ); ?> | ||||
|   </form> | ||||
|  </div> | ||||
| @ -0,0 +1 @@ | ||||
| <html><body bgcolor="#FFFFFF"></body></html> | ||||
| @ -0,0 +1,43 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Attachments component | ||||
|  * | ||||
|  * @package Attachments | ||||
|  * @subpackage Attachments_Component | ||||
|  * | ||||
|  * @copyright Copyright (C) 2007-2018 Jonathan M. Cameron, All Rights Reserved | ||||
|  * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||||
|  * @link http://joomlacode.org/gf/project/attachments/frs/ | ||||
|  * @author Jonathan M. Cameron | ||||
|  */ | ||||
|  | ||||
| // Check to ensure this file is included in Joomla! | ||||
| defined('_JEXEC') or die(); | ||||
|  | ||||
| /** Define the legacy classes, if necessary */ | ||||
| require_once(JPATH_SITE.'/components/com_attachments/legacy/view.php'); | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * View for the special controller | ||||
|  * (adapted from administrator/components/com_config/views/component/view.php) | ||||
|  * | ||||
|  * @package Attachments | ||||
|  */ | ||||
| class AttachmentsViewWarning extends JViewLegacy | ||||
| { | ||||
| 	/** | ||||
| 	 * Display the view | ||||
| 	 */ | ||||
| 	public function display($tpl = null) | ||||
| 	{ | ||||
| 		// Add the style sheets | ||||
| 		JHtml::stylesheet('com_attachments/attachments_admin_form.css', Array(), true); | ||||
| 		$lang = JFactory::getLanguage(); | ||||
| 		if ( $lang->isRTL() ) { | ||||
| 			JHtml::stylesheet('com_attachments/attachments_admin_form_rtl.css', Array(), true); | ||||
| 			} | ||||
|  | ||||
| 		parent::display($tpl); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user