/** * triggers the autoarchive function * */ function autoarchive() { $res = redEVENTHelper::cleanup(1); $msg = JText::_('COM_REDEVENT_AUTOARCHIVE_DONE'); $link = 'index.php?option=com_redevent&view=tools'; $this->setRedirect($link, $msg); }
require_once JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'route.php'; require_once JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'recurrence.php'; require_once JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'customfields.php'; require_once JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'tags.php'; require_once JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'countries.php'; require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'user.class.php'; require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'useracl.class.php'; require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'image.class.php'; require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'output.class.php'; require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'attendee.class.php'; require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'attachment.class.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'error.class.php'; // redform include_once JPATH_SITE . DS . 'components' . DS . 'com_redform' . DS . 'redform.core.php'; //perform cleanup if it wasn't done today (archive, delete, recurrence) redEVENTHelper::cleanup(); // Require the controller require_once JPATH_COMPONENT . DS . 'controller.php'; // Require specific controller if requested if ($controller = JRequest::getWord('controller')) { $path = JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php'; if (file_exists($path)) { require_once $path; } else { $controller = ''; } } // Create the controller $classname = 'RedeventController' . ucfirst($controller); $controller = new $classname(); // Perform the Request task