help.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 127 行
PHP
127 行
<?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:27 GMT| Release: | Licence Info: +---------------------------------------------------------------------------| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $| > $Revision: 23 $| > $Author: matt $+---------------------------------------------------------------------------|| > Help Control functions| > Module written by Matt Mecham| > Date started: 2nd April 2002|| > Module Version Number: 1.0.0| > DBA Checked: Mon 24th May 2004+--------------------------------------------------------------------------*/if ( ! defined( 'IN_ACP' ) ){ print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit();}class ad_help{ var $base_url; /** * Section title name * * @var string */ var $perm_main = "tools"; /** * Section title name * * @var string */ var $perm_child = "help"; function auto_run() { //----------------------------------------- // Kill globals - globals bad, Homer good. //----------------------------------------- $tmp_in = array_merge( $_GET, $_POST, $_COOKIE ); foreach ( $tmp_in as $k => $v ) { unset($$k); } //----------------------------------------- switch($this->ipsclass->input['code']) { case 'edit': $this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' ); $this->show_form('edit'); break; case 'new': $this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':add' ); $this->show_form('new'); break; case 'doedit': $this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' ); $this->doedit(); break; case 'donew': $this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':add' ); $this->doadd(); break; case 'remove': $this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':remove' ); $this->remove(); break; //----------------------------------------- default: $this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' ); $this->list_files(); break; } } //----------------------------------------- // HELP FILE FUNCTIONS //----------------------------------------- function doedit() { if ($this->ipsclass->input['id'] == "") { $this->ipsclass->admin->error("You must pass a valid emoticon id, silly!"); } $text = preg_replace( "/\n/", "<br>", stripslashes($_POST['text'] ) ); //$title = preg_replace( "/\n/", "<br>", stripslashes($_POST['title'] ) ); $desc = preg_replace( "/\n/", "<br>", stripslashes($_POST['description'] ) ); $text = preg_replace( "/\\\/", "\", $text ); $this->ipsclass->DB->do_update( 'faq', array( 'title' => $this->ipsclass->input['title'], 'text' => $text, 'description' => $desc, ) , "id=".intval($this->ipsclass->input['id']) ); $this->ipsclass->admin->save_log("缂栬緫甯
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?