Location: PHPKode > projects > papaya CMS > files/papaya/cronjobs.php
<?php
/**
* Cronjob managment
*
* @copyright 2002-2009 by papaya Software GmbH - All rights reserved.
* @link http://www.papaya-cms.com/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, version 2
*
* You can redistribute and/or modify this script under the terms of the GNU General Public
* License (GPL) version 2, provided that the copyright and license notes, including these
* lines, remain unmodified. papaya 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.
*
* @package Papaya
* @subpackage Administration
* @version $Id: cronjobs.php 32291 2009-09-30 18:22:23Z weinert $
*/

/**
* Authentication
*/
require_once("./inc.auth.php");

if ($PAPAYA_SHOW_ADMIN_PAGE && ($PAPAYA_USER->hasPerm(32))) {
  initNavigation('options.php');
  $PAPAYA_LAYOUT->setParam(
    'PAGE_TITLE', _gt('Administration').' - '._gt('Settings').' - '._gt('Cronjobs')
  );
  $PAPAYA_LAYOUT->setParam('PAGE_ICON', $PAPAYA_IMAGES['items-cronjob']);


  include_once(PAPAYA_INCLUDE_PATH.'system/base_cron.php');

  $cron = &new base_cronjobs();
  $cron->layout = &$PAPAYA_LAYOUT;
  $cron->images = &$PAPAYA_IMAGES;
  $cron->msgs = &$PAPAYA_MSG;
  $cron->authUser = &$PAPAYA_USER;

  $cron->initialize();
  $cron->execute();
  $cron->getXML();
}
require('inc.footer.php');
?>
Return current item: papaya CMS