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: 2005-12-01 16:45:12 +0000 (Thu, 01 Dec 2005) $
|
||||
| > $Revision: 88 $
|
||||
| > $Author: bfarber $
|
||||
| > $Date: 2006-10-12 12:25:54 +0100 (Thu, 12 Oct 2006) $
|
||||
| > $Revision: 630 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Topic Outline Display Module wodule wookie, nookie shut up
|
||||
@@ -38,7 +28,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();
|
||||
}
|
||||
|
||||
@@ -52,7 +42,6 @@ class topic_display
|
||||
var $html = "";
|
||||
var $forum = array();
|
||||
var $topic = array();
|
||||
var $mem_titles = array();
|
||||
var $mod_action = array();
|
||||
var $poll_html = "";
|
||||
var $parser = "";
|
||||
@@ -153,7 +142,7 @@ class topic_display
|
||||
|
||||
$query_type = 'topics_get_posts';
|
||||
|
||||
$first = intval($this->ipsclass->input['start']);
|
||||
$first = intval( $this->ipsclass->input['show'] );
|
||||
$last = $this->ipsclass->vars['threaded_per_page'] ? $this->ipsclass->vars['threaded_per_page'] : 250;
|
||||
|
||||
if ( $this->ipsclass->vars['custom_profile_topic'] == 1 )
|
||||
@@ -174,12 +163,12 @@ class topic_display
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array (
|
||||
'select' => 'pid, post_parent',
|
||||
'from' => 'posts',
|
||||
'where' => 'topic_id='.$this->topic['tid']. ' and queued != 1',
|
||||
'order' => 'pid',
|
||||
'limit' => array( $first, $last )
|
||||
) );
|
||||
'select' => 'pid, post_parent',
|
||||
'from' => 'posts',
|
||||
'where' => 'topic_id='.$this->topic['tid']. ' and queued != 1',
|
||||
'order' => 'pid',
|
||||
'limit' => array( $first, $last )
|
||||
) );
|
||||
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
@@ -204,11 +193,11 @@ class topic_display
|
||||
if ( count( $this->pids ) )
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array (
|
||||
'select' => 'pid, post, author_id, author_name, post_date, post_title, post_parent, topic_id, icon_id',
|
||||
'from' => 'posts',
|
||||
'where' => 'pid IN('.implode(',',$this->pids).')',
|
||||
'order' => 'pid',
|
||||
) );
|
||||
'select' => 'pid, post, author_id, author_name, post_date, post_title, post_parent, topic_id, icon_id',
|
||||
'from' => 'posts',
|
||||
'where' => 'pid IN('.implode(',',$this->pids).')',
|
||||
'order' => 'pid',
|
||||
) );
|
||||
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
@@ -231,14 +220,19 @@ class topic_display
|
||||
|
||||
$this->post_cache[0] = array( 'id' => 1 );
|
||||
|
||||
$this->post_cache[$this->topic['topic_firstpost']]['post_title'] = $this->topic['title'];
|
||||
$this->post_cache[ $this->topic['topic_firstpost'] ]['post_title'] = $this->topic['title'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Are we viewing Posts?
|
||||
//-----------------------------------------
|
||||
|
||||
$post_id = intval( $this->ipsclass->input['pid'] );
|
||||
|
||||
$post_id = intval($this->ipsclass->input['pid']);
|
||||
|
||||
if ( $post_id && ! in_array( $post_id, $this->pids ) )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files') );
|
||||
}
|
||||
|
||||
$postid_array = array( 1 => $post_id );
|
||||
|
||||
if ( $post_id and $post_id != $this->topic['topic_firstpost'] )
|
||||
@@ -247,7 +241,7 @@ class topic_display
|
||||
|
||||
if ( count($parents) )
|
||||
{
|
||||
foreach( $parents as $p => $pid )
|
||||
foreach( $parents as $pid )
|
||||
{
|
||||
if ( $pid != $this->topic['topic_firstpost'] )
|
||||
{
|
||||
@@ -375,7 +369,7 @@ class topic_display
|
||||
{
|
||||
$html .= $this->ipsclass->compiled_templates['skin_topic']->toutline_start_new_parent();
|
||||
|
||||
foreach( $this->structured_pids[ $root_id ] as $idx => $pid )
|
||||
foreach( $this->structured_pids[ $root_id ] as $pid )
|
||||
{
|
||||
$html .= $this->render_list_row( $this->post_cache[ $pid ], $dguide );
|
||||
|
||||
@@ -466,11 +460,11 @@ class topic_display
|
||||
|
||||
if ( strstr( $this->used_post_ids, ','.$post['pid'].',' ) )
|
||||
{
|
||||
return $this->ipsclass->compiled_templates['skin_topic']->toutline_show_row_highlight( $post );
|
||||
return $this->ipsclass->compiled_templates['skin_topic']->toutline_show_row_highlight( $post, $this->ipsclass->input['start'], $this->ipsclass->input['st'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->ipsclass->compiled_templates['skin_topic']->toutline_show_row( $post );
|
||||
return $this->ipsclass->compiled_templates['skin_topic']->toutline_show_row( $post, $this->ipsclass->input['start'], $this->ipsclass->input['st'] );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -481,6 +475,24 @@ class topic_display
|
||||
|
||||
function post_get_parents($root_id, $ids=array())
|
||||
{
|
||||
if( in_array( $root_id, $ids ) )
|
||||
{
|
||||
$cnt = 0;
|
||||
|
||||
foreach( $ids as $id )
|
||||
{
|
||||
if( $id == $root_id )
|
||||
{
|
||||
$cnt++;
|
||||
|
||||
if( $cnt > 1 )
|
||||
{
|
||||
return $ids;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $this->post_cache[ $root_id ]['post_parent'] )
|
||||
{
|
||||
$ids[] = $this->post_cache[ $root_id ]['post_parent'];
|
||||
@@ -499,7 +511,7 @@ class topic_display
|
||||
{
|
||||
if ( is_array($this->structured_pids[ $root_id ]) )
|
||||
{
|
||||
foreach( $this->structured_pids[ $root_id ] as $id => $pid )
|
||||
foreach( $this->structured_pids[ $root_id ] as $pid )
|
||||
{
|
||||
$ids[] = $pid;
|
||||
|
||||
|
||||
Reference in new issue
Block a user