Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -2,24 +2,14 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| 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-08-01 17:02:55 +0100 (Tue, 01 Aug 2006) $
|
||||
| > $Revision: 425 $
|
||||
@@ -40,7 +30,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 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -52,6 +42,15 @@ class profile_posts
|
||||
*/
|
||||
var $ipsclass;
|
||||
|
||||
/**
|
||||
* Maximum number of days to check:
|
||||
* limits resource usage. Set to 0
|
||||
* for no days restriction.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
var $max_days = 40;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Return data
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -81,13 +80,20 @@ class profile_posts
|
||||
$this->ipsclass->load_template( 'skin_profile' );
|
||||
}
|
||||
|
||||
$this->ipsclass->load_language( 'lang_topic' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Got a member?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! is_array( $member ) OR ! count( $member ) )
|
||||
{
|
||||
return '';
|
||||
return $this->ipsclass->compiled_templates['skin_profile']->personal_portal_no_content( 'err_no_posts_to_show' );
|
||||
}
|
||||
|
||||
if( !$this->ipsclass->member['g_other_topics'] AND $this->ipsclass->member['id'] != $member['id'] )
|
||||
{
|
||||
return $this->ipsclass->compiled_templates['skin_profile']->personal_portal_no_content( 'err_no_posts_to_show' );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -111,19 +117,10 @@ class profile_posts
|
||||
|
||||
if ( ! is_array( $forum_ids ) OR ! count( $forum_ids ) )
|
||||
{
|
||||
return $this->ipsclass->lang['err_no_posts_to_show'];
|
||||
return $this->ipsclass->compiled_templates['skin_profile']->personal_portal_no_content( 'err_no_posts_to_show' );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Load parser
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
|
||||
$parser = new parse_bbcode();
|
||||
$parser->ipsclass = $this->ipsclass;
|
||||
$parser->allow_update_caches = 0;
|
||||
|
||||
$parser->bypass_badwords = intval( $this->ipsclass->member['g_bypass_badwords'] );
|
||||
$time_restrict = $this->max_days ? " AND p.post_date > " . ( time() - 60 * 60 * 24 * $this->max_days ) : '';
|
||||
|
||||
//-----------------------------------------
|
||||
// Get last X posts
|
||||
@@ -131,7 +128,7 @@ class profile_posts
|
||||
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'p.*',
|
||||
'from' => array( 'posts' => 'p' ),
|
||||
'where' => 't.tid=p.topic_id AND p.queued=0 AND p.author_id='.$member['id'] . " AND p.new_topic=0",
|
||||
'where' => 't.tid=p.topic_id AND p.queued=0 AND t.approved=1 AND p.author_id='.$member['id'] . " AND p.new_topic=0" . $time_restrict,
|
||||
'order' => 'p.post_date DESC',
|
||||
'limit' => array( 0, $last_x ),
|
||||
'add_join' => array( 0 => array(
|
||||
@@ -158,11 +155,6 @@ class profile_posts
|
||||
$row['_post_date'] = $this->ipsclass->get_date( $row['post_date'], 'SHORT' );
|
||||
$row['_date_array'] = $this->ipsclass->date_getgmdate( $row['post_date'] + $this->ipsclass->get_time_offset() );
|
||||
|
||||
$parser->parse_html = ( $this->ipsclass->cache['forum_cache'][ $row['forum_id'] ]['use_html'] and $this->ipsclass->cache['group_cache'][ $member['mgroup'] ]['g_dohtml'] and $row['post_htmlstate'] ) ? 1 : 0;
|
||||
$parser->parse_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
|
||||
|
||||
$row['post'] = $parser->pre_display_parse( $row['post'] );
|
||||
|
||||
$row['post'] .= "\n<!--IBF.ATTACHMENT_". $row['pid']. "-->";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
Reference in new issue
Block a user