📄 han_post.php
字号:
<?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 $+---------------------------------------------------------------------------|| > Post Handler| > Module written by Matt Mecham| > Date started: Wednesday 9th March 2005 (15:23)|+--------------------------------------------------------------------------*/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 han_post{ # Global var $ipsclass; var $class_post; # Method var $method; # Forum var $forum; var $md5_check; /*-------------------------------------------------------------------------*/ // INIT /*-------------------------------------------------------------------------*/ function init() { //----------------------------------------- // INIT //----------------------------------------- $class = ""; //----------------------------------------- // Which class //----------------------------------------- switch( $this->method ) { case 'new': $class = 'class_post_new.php'; break; case 'reply': $class = 'class_post_reply.php'; break; case 'poll': $class = 'class_post_poll.php'; break; case 'edit': $class = 'class_post_edit.php'; break; default: $class = 'class_post_new.php'; } //----------------------------------------- // Load classes //----------------------------------------- require_once( ROOT_PATH . 'sources/classes/post/class_post.php' ); require_once( ROOT_PATH . 'sources/classes/post/'.$class ); $this->class_post = new post_functions(); $this->class_post->ipsclass =& $this->ipsclass; $this->class_post->forum =& $this->forum; $this->class_post->md5_check = $this->md5_check; $this->class_post->obj = $this->obj; $this->class_post->modules = $this->modules; //----------------------------------------- // Init class //----------------------------------------- $this->class_post->main_init(); } /*-------------------------------------------------------------------------*/ // Mode: Save post in DB /*-------------------------------------------------------------------------*/ function show_form() { return $this->class_post->show_form(); } /*-------------------------------------------------------------------------*/ // Mode: Save post in DB /*-------------------------------------------------------------------------*/ function save_post() { return $this->class_post->save_post(); } /*-------------------------------------------------------------------------*/ // Mode: Process /*-------------------------------------------------------------------------*/ function process_post() { return $this->class_post->process_post(); } }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -