primo commit
This commit is contained in:
		
							
								
								
									
										30
									
								
								components/com_attachments/legacy/controller.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								components/com_attachments/legacy/controller.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Attachments component Legacy controller class compatibility | ||||
|  * | ||||
|  * @package Attachments | ||||
|  * @subpackage Attachments_Component | ||||
|  * | ||||
|  * @copyright Copyright (C) 2011-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 | ||||
|  */ | ||||
|  | ||||
| // No direct access. | ||||
| defined('_JEXEC') or die('Restricted access'); | ||||
|  | ||||
|  | ||||
| if (!class_exists('JControllerLegacy', false)) | ||||
| { | ||||
| 	if (version_compare(JVERSION, '3.0', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 3.0 | ||||
| 		jimport('legacy.controller.legacy'); | ||||
| 	} | ||||
| 	else if (version_compare(JVERSION, '2.5', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 2.5 | ||||
| 		jimport('cms.controller.legacy'); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										39
									
								
								components/com_attachments/legacy/controller_form.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								components/com_attachments/legacy/controller_form.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Attachments component Legacy controllerForm class compatibility | ||||
|  * | ||||
|  * @package Attachments | ||||
|  * @subpackage Attachments_Component | ||||
|  * | ||||
|  * @copyright Copyright (C) 2011-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 | ||||
|  */ | ||||
|  | ||||
| // No direct access. | ||||
| defined('_JEXEC') or die('Restricted access'); | ||||
|  | ||||
|  | ||||
| if (!class_exists('JControllerFormLegacy', false)) | ||||
| { | ||||
| 	if (version_compare(JVERSION, '3.0', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 3.0 | ||||
| 		jimport('legacy.controller.form'); | ||||
| 		class JControllerFormLegacy extends JControllerForm | ||||
| 		{ | ||||
| 		} | ||||
| 	} | ||||
| 	else if (version_compare(JVERSION, '2.5', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 2.5 | ||||
| 		if (!class_exists('JControllerForm', false)) | ||||
| 		{ | ||||
| 			jimport('joomla.application.component.controllerform'); | ||||
| 		} | ||||
| 		class JControllerFormLegacy extends JControllerForm | ||||
| 		{ | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										1
									
								
								components/com_attachments/legacy/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								components/com_attachments/legacy/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| <html><body bgcolor="#FFFFFF"></body></html> | ||||
							
								
								
									
										30
									
								
								components/com_attachments/legacy/model.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								components/com_attachments/legacy/model.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Attachments component Legacy model class compatibility | ||||
|  * | ||||
|  * @package Attachments | ||||
|  * @subpackage Attachments_Component | ||||
|  * | ||||
|  * @copyright Copyright (C) 2011-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 | ||||
|  */ | ||||
|  | ||||
| // No direct access. | ||||
| defined('_JEXEC') or die('Restricted access'); | ||||
|  | ||||
|  | ||||
| if (!class_exists('JModelLegacy', false)) | ||||
| { | ||||
| 	if (version_compare(JVERSION, '3.0', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 3.0 | ||||
| 		jimport('legacy.model.legacy'); | ||||
| 	} | ||||
| 	else if (version_compare(JVERSION, '2.5', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 2.5 | ||||
| 		jimport('cms.model.legacy'); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										30
									
								
								components/com_attachments/legacy/view.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								components/com_attachments/legacy/view.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Attachments component Legacy view class compatibility | ||||
|  * | ||||
|  * @package Attachments | ||||
|  * @subpackage Attachments_Component | ||||
|  * | ||||
|  * @copyright Copyright (C) 2011-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 | ||||
|  */ | ||||
|  | ||||
| // No direct access. | ||||
| defined('_JEXEC') or die('Restricted access'); | ||||
|  | ||||
| if (!class_exists('JViewLegacy', false)) | ||||
| { | ||||
| 	if (version_compare(JVERSION, '3.0', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 3.0 | ||||
| 		jimport('legacy.view.legacy'); | ||||
| 	} | ||||
| 	else if (version_compare(JVERSION, '2.5', 'ge')) | ||||
| 	{ | ||||
| 		// Joomla 2.5 | ||||
| 		jimport( 'joomla.application.component.view' ); | ||||
| 		jimport('cms.view.legacy'); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user