Пример #1
0
 /**
  * logic to massdelete unassigned images
  *
  * @access public
  * @return void
  * @since 0.9
  */
 function triggerarchive()
 {
     ELHelper::cleanup(1);
     $link = 'index.php?option=com_eventlist&view=cleanup';
     $msg = JText::_('AUTOARCHIVE DONE');
     $this->setRedirect($link, $msg);
 }
Пример #2
0
 * @license GNU/GPL, see LICENSE.php
 * EventList is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.
 * EventList is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with EventList; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
defined('_JEXEC') or die('Restricted access');
//Require helperfile
require_once JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'helper.php';
require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'user.class.php';
require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'image.class.php';
require_once JPATH_COMPONENT_SITE . DS . 'classes' . DS . 'output.class.php';
//perform cleanup if it wasn't done today (archive, delete, recurrence)
ELHelper::cleanup();
// Set the table directory
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'tables');
// Require the controller
require_once JPATH_COMPONENT . DS . 'controller.php';
// Create the controller
$classname = 'EventListController';
$controller = new $classname();
// Perform the Request task
$controller->execute(JRequest::getVar('task', null, 'default', 'cmd'));
// Redirect if set by the controller
$controller->redirect();