| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/components/com_attachments/ |
Upload File : |
<?php
/**
* Attachments component
*
* @package Attachments
* @subpackage Attachments_Component
*
* @copyright Copyright (C) 2007-2011 Jonathan M. Cameron, All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @link http://joomlacode.org/gf/project/attachments/frs/
* @author Jonathan M. Cameron
*/
defined('_JEXEC') or die('Restricted access');
/** Load the default controller */
require_once( JPATH_COMPONENT.DS.'controller.php' );
JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_attachments'.DS.'tables');
// Check for requests for named controller
$controller = JRequest::getWord('controller', False);
if ( $controller ) {
// Invoke the named controller, if it exists
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
$controller = JString::ucfirst($controller);
jimport('joomla.filesystem.file');
if ( JFile::exists($path) ) {
require_once( $path );
$classname = 'AttachmentsController' . $controller;
}
else {
$errmsg = JText::_('UNKNOWN_CONTROLLER') . ' (ERR 79)';
JError::raiseError(500, $errmsg);
}
}
else {
$classname = 'AttachmentsController';
}
// Invoke the requested function of the controller
$controller = new $classname( array('default_task' => 'noop') );
$controller->execute( JRequest::getCmd('task') );
$controller->redirect();
?>