example.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 69 行
PHP
69 行
<?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 $+---------------------------------------------------------------------------|| > MODULE INIT FILE| > Module written by Matt Mecham| > Date started: Wed 20th April 2005 (16:28)|+--------------------------------------------------------------------------*/if ( ! defined( 'IN_IPB' ) ){ print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit();}/*+--------------------------------------------------------------------------| This module has one function:| run_init: Do any work you want to do before the caches are loaded and| processed+--------------------------------------------------------------------------*///-----------------------------------------// This must always be 'component_init'//-----------------------------------------class component_init{ var $ipsclass; /*-------------------------------------------------------------------------*/ // run_init // Do any work before the caches are loaded. // ADD to $this->ipsclass->cache_array() // DO NOT overwrite it or call $this->ipsclass->cache_array = array(...); // As the array has already been started off by IPB in index.php /*-------------------------------------------------------------------------*/ function run_init() { $this->ipsclass->cache_array[] = 'birthdays'; $this->ipsclass->cache_array[] = 'calendar'; } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?