hello.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 71 行
PHP
71 行
<?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:29 GMT| Release: | Licence Info: +---------------------------------------------------------------------------| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $| > $Revision: 23 $| > $Author: matt $+---------------------------------------------------------------------------|| > UCP: LIBRARY| > Module written by Matt Mecham| > Date started: 18th April 2005+--------------------------------------------------------------------------*/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();}//-----------------------------------------// Must be "components_ucp_{component name}//-----------------------------------------class components_ucp_hello{ /*-------------------------------------------------------------------------*/ // Build menu // Use: $content .= menu_bar_new_link( $url, $name ) for the links // Use: menu_bar_new_category( 'Blog', $content ) for the content /*-------------------------------------------------------------------------*/ function ucp_build_menu() { //----------------------------------------- // INIT //----------------------------------------- $content = ""; //----------------------------------------- // Get links //----------------------------------------- $content .= $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_link( "{$this->ipsclass->base_url}autocom=hello&code=ucp_settings", "User Settings" ); if ( $content ) { return $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_category( "Hello", $content ); } else { return ''; } }}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?