$Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $ | > $Revision: 23 $ | > $Author: matt $ +--------------------------------------------------------------------------- | | > TASK SCRIPT: Test | > Script written by Matt Mecham | > Date started: 28th January 2004 | +-------------------------------------------------------------------------- */ //----------------------------------------- // THIS TASKS OPERATIONS: // Gathers birthday and calendar events for a few days and caches them //+-------------------------------------------------------------------------- if ( ! defined( 'IN_IPB' ) ) { print "

Некорректный адрес

Вы не имеете доступа к этому файлу напрямую. Если вы недавно обновляли форум, вы должны обновить все соответствующие файлы."; exit(); } class task_item { var $class = ""; var $root_path = ""; var $task = ""; var $restrict_log = 0; /*-------------------------------------------------------------------------*/ // Our 'auto_run' function // ADD CODE HERE /*-------------------------------------------------------------------------*/ function run_task() { //----------------------------------------- // Load and recache info //----------------------------------------- define( 'IN_ACP', 1 ); require_once( ROOT_PATH . 'sources/action_admin/calendars.php' ); $calendars = new ad_calendars(); $calendars->ipsclass =& $this->ipsclass; $calendars->calendar_rebuildcache( 0 ); //----------------------------------------- // Log to log table - modify but dont delete //----------------------------------------- if ( ! $this->restrict_log ) { $this->class->append_task_log( $this->task, "Кеш календаря обновлен" ); } //----------------------------------------- // Unlock Task: DO NOT MODIFY! //----------------------------------------- $this->class->unlock_task( $this->task ); } /*-------------------------------------------------------------------------*/ // register_class // LEAVE ALONE /*-------------------------------------------------------------------------*/ function register_class(&$class) { $this->class = $class; $this->ipsclass =& $class->ipsclass; $this->root_path = $this->class->root_path; } /*-------------------------------------------------------------------------*/ // pass_task // LEAVE ALONE /*-------------------------------------------------------------------------*/ function pass_task( $this_task ) { $this->task = $this_task; } } ?>