taskloader.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 88 行
PHP
88 行
<?php/*+--------------------------------------------------------------------------| Invision Power Board v2.1.5| =============================================| by Matthew Mecham| (c) 2001 - 2005 Invision Power Services, Inc.| | =============================================| Web: | Time: Wed, 01 Mar 2006 19:11:28 GMT| Release: | Licence Info: +---------------------------------------------------------------------------| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $| > $Revision: 23 $| > $Author: matt $+---------------------------------------------------------------------------|| > Task loader module| > Module written by Matt Mecham| > Date started: 28th January 2004|| > Module Version Number: 1.0.0| > DBA Checked: Thu 20 May 2004| > Quality Checked: Wed 15 Sept. 2004+--------------------------------------------------------------------------*/if ( ! defined( 'IN_IPB' ) ){ print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit();}class taskloader{ # Global var $ipsclass; /*-------------------------------------------------------------------------*/ // Run.. /*-------------------------------------------------------------------------*/ function auto_run() { @set_time_limit(1200); //----------------------------------------- // Require and run //----------------------------------------- chdir( ROOT_PATH ); $ROOT_PATH = getcwd() .'/'; require_once( ROOT_PATH.'sources/lib/func_taskmanager.php' ); $functions = new func_taskmanager(); $functions->ipsclass =& $this->ipsclass; $functions->root_path = $ROOT_PATH; //----------------------------------------- // Check shutdown functions //----------------------------------------- if ( USE_SHUTDOWN ) { register_shutdown_function( array( &$functions, 'run_task') ); } else { $functions->run_task(); } if ( $functions->type != 'cron' ) { //----------------------------------------- // Print out the 'blank' gif //----------------------------------------- @header( "Content-Type: image/gif" ); print base64_decode( "R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" ); } }}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?