Version 2.1.7
This commit is contained in:
1 parent
0eecc172d9
commit
f73f8bff6d
941 files changed
+215301
-103093
No files matched your search
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user