Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2006 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: 2006-02-01 18:16:26 +0000 (Wed, 01 Feb 2006) $
|
||||
| > $Revision: 132 $
|
||||
| > $Author: bfarber $
|
||||
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Post core module
|
||||
@@ -39,7 +29,7 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -69,6 +59,11 @@ class post
|
||||
$this->modules->ipsclass =& $this->ipsclass;
|
||||
}
|
||||
|
||||
if( $this->ipsclass->input['CODE'] == 'image' )
|
||||
{
|
||||
$this->show_captcha_image();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check the input
|
||||
//-----------------------------------------
|
||||
@@ -76,7 +71,7 @@ class post
|
||||
$this->ipsclass->input['t'] = intval($this->ipsclass->input['t']);
|
||||
$this->ipsclass->input['p'] = intval($this->ipsclass->input['p']);
|
||||
$this->ipsclass->input['f'] = intval($this->ipsclass->input['f']);
|
||||
$this->ipsclass->input['st'] = intval($this->ipsclass->input['st']);
|
||||
$this->ipsclass->input['st'] = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0;
|
||||
|
||||
//-----------------------------------------
|
||||
// At some point in the future, I want to
|
||||
@@ -93,7 +88,7 @@ class post
|
||||
'poll_add' => '14',
|
||||
'poll_add_do' => '15' );
|
||||
|
||||
if ( $this->ipsclass->input['do'] )
|
||||
if ( isset($this->ipsclass->input['do']) AND $this->ipsclass->input['do'] )
|
||||
{
|
||||
$this->ipsclass->input['CODE'] = $this->do_into_code[ $this->ipsclass->input['do'] ];
|
||||
}
|
||||
@@ -113,7 +108,7 @@ class post
|
||||
// Set up object array
|
||||
//-----------------------------------------
|
||||
|
||||
$this->han_post->obj['preview_post'] = $this->ipsclass->input['preview'];
|
||||
$this->han_post->obj['preview_post'] = isset($this->ipsclass->input['preview']) ? $this->ipsclass->input['preview'] : NULL;
|
||||
$this->han_post->obj['moderate'] = $this->ipsclass->member['g_avoid_q'] ? 0 : intval($this->han_post->forum['preview_posts']);
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -181,7 +176,7 @@ class post
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'posting_off_susp', 'EXTRA' => $this->ipsclass->get_date($post_arr['date_end'], 'LONG') ) );
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'posting_off_susp', 'EXTRA' => $this->ipsclass->get_date($post_arr['date_end'], 'LONG', 1) ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -303,7 +298,7 @@ class post
|
||||
|
||||
$topic = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."act=ST&f=".$this->han_post->forum['id']."&t=".$topic['tid']);
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."showtopic=".$topic['tid']);
|
||||
exit();
|
||||
}
|
||||
else
|
||||
@@ -312,7 +307,7 @@ class post
|
||||
// It's a reply, so simply show the topic...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."act=ST&f=".$this->han_post->forum['id']."&t=".$this->ipsclass->input['t']."&view=getlastpost");
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."showtopic=".$this->ipsclass->input['t']."&view=getlastpost");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
@@ -355,7 +350,7 @@ class post
|
||||
// Does this member have mod_posts enabled?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->member['mod_posts'] )
|
||||
if ( isset($this->ipsclass->member['mod_posts']) AND $this->ipsclass->member['mod_posts'] )
|
||||
{
|
||||
if ( $this->ipsclass->member['mod_posts'] == 1 )
|
||||
{
|
||||
@@ -388,6 +383,55 @@ class post
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function show_captcha_image()
|
||||
{
|
||||
if ( $this->ipsclass->input['rc'] == "" )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the info from the db
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'reg_antispam',
|
||||
'where' => "regid='".trim(addslashes($this->ipsclass->input['rc']))."'"
|
||||
) );
|
||||
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Using GD?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->vars['guest_captcha'] == 'gd' )
|
||||
{
|
||||
$this->ipsclass->show_gd_img($row['regcode']);
|
||||
}
|
||||
else
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Using normal then, check for "p"
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->input['p'] == "" )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$p = intval($this->ipsclass->input['p']) - 1; //substr starts from 0, not 1 :p
|
||||
|
||||
$this_number = substr( $row['regcode'], $p, 1 );
|
||||
|
||||
$this->ipsclass->show_gif_img($this_number);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user