Version 2.3.6

This commit is contained in:
Neo committed 2025-12-19 00:26:08 -08:00
1 parent a3bb603c96
commit 19b38c7c74
764 files changed
+143731 -118164

No files matched your search

+22 -42
View File
@@ -2,24 +2,15 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.2.2
| =============================================
| Invision Power Board
| ========================================
| by Matthew Mecham
| (c) 2001 - 2006 Invision Power Services, Inc.
| (c) 2001 - 2003 Invision Power Services
| 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)
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > LO-FI VERSION!
@@ -41,13 +32,13 @@ define( 'LOFI_NAME' , 'lofiversion' );
if ( substr(PHP_OS, 0, 3) == 'WIN' OR strstr( php_sapi_name(), 'cgi') OR php_sapi_name() == 'apache2filter' )
{
define( 'THIS_PATH', str_replace( '\\', '/', dirname( __FILE__ ) ) .'/' );
define( 'ROOT_PATH', str_replace( LOFI_NAME, '', THIS_PATH ) );
define( 'ROOT_PATH', str_replace( LOFI_NAME . '/', '', THIS_PATH ) );
define( 'SERVER' , 'WIN' );
}
else
{
define( 'THIS_PATH', str_replace( '\\', '/', dirname( __FILE__ ) ) .'/' );
define( 'ROOT_PATH', str_replace( LOFI_NAME, '', THIS_PATH ) );
define( 'ROOT_PATH', str_replace( LOFI_NAME . '/', '', THIS_PATH ) );
define( 'SERVER' , 'UNX' );
}
@@ -456,19 +447,24 @@ function get_forum_page($id, $st)
'order' => 'pinned desc, last_post desc',
'limit' => array( $st, $ipsclass->vars['display_max_topics'] )
) );
$ipsclass->DB->simple_exec();
$outer = $ipsclass->DB->simple_exec();
while( $r = $ipsclass->DB->fetch_row() )
while( $r = $ipsclass->DB->fetch_row($outer) )
{
if ( $r['pinned'] )
{
$r['_prefix'] = $ipsclass->lang['lofi_pinned'];
$r['_prefix'] = $ipsclass->vars['pre_pinned'] ? $ipsclass->vars['pre_pinned'] : $ipsclass->lang['lofi_pinned'];
}
else
{
$r['_prefix'] = "";
}
if( $r['posts'] < 0 )
{
$r['posts'] = 0;
}
if ($r['state'] == 'link')
{
$t_array = explode("&", $r['moved_to']);
@@ -476,7 +472,7 @@ function get_forum_page($id, $st)
$r['forum_id'] = $t_array[1];
$r['title'] = $r['title'];
$r['posts'] = '--';
$r['_prefix'] = $ipsclass->lang['lofi_moved'];
$r['_prefix'] = $ipsclass->vars['pre_moved'] ? $ipsclass->vars['pre_moved'] : $ipsclass->lang['lofi_moved'];
}
$r['lang_key'] = ($r['posts'] > 1 OR $r['posts'] == 0) ? 'lofi_replies' : 'lofi_reply';
@@ -490,10 +486,10 @@ function get_forum_page($id, $st)
if( $output )
{
return LOFISKIN_topics($output);
return LOFISKIN_topics($output);
}
}
}
}
//--------------------------------
// Topics index
@@ -505,17 +501,6 @@ function get_topic_page($id, $st)
$output = "";
//--------------------------------
// Get post_parser
//--------------------------------
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
$parser = new parse_bbcode();
$parser->ipsclass =& $ipsclass;
$parser->allow_update_caches = 1;
$parser->bypass_badwords = intval($ipsclass->member['g_bypass_badwords']);
//--------------------------------
// get topic
//--------------------------------
@@ -566,19 +551,14 @@ function get_topic_page($id, $st)
'limit' => array( $st, $ipsclass->vars['display_max_posts'] )
) );
$ipsclass->DB->simple_exec();
$outer = $ipsclass->DB->simple_exec();
while( $r = $ipsclass->DB->fetch_row() )
while( $r = $ipsclass->DB->fetch_row($outer) )
{
$r['post_date'] = $ipsclass->get_date( $r['post_date'], 'LONG', 1 );
$r['author_name'] = $r['members_display_name'] ? $r['members_display_name'] : $r['author_name'];
$parser->parse_html = ( $ipsclass->forums->forum_by_id[ $topic['forum_id'] ]['use_html'] and $ipsclass->cache['group_cache'][ $r['mgroup'] ]['g_dohtml'] and $r['post_htmlstate'] ) ? 1 : 0;
$parser->parse_nl2br = $r['post_htmlstate'] == 2 ? 1 : 0;
$r['post'] = $parser->pre_display_parse( $r['post'] );
//--------------------------------
// Manage POST / TOPIC tags index.php?act=findpost&pid=415
// <a href='index.php?showtopic=100'>
@@ -615,7 +595,7 @@ function print_it($content, $title='')
$fullurl = $ipsclass->vars['board_url'].'/'.LOFI_NAME.'/';
$copyright = "<a href='http://www.ibresource.ru/'>Ðóññêàÿ âåðñèÿ</a> <a href='http://www.invisionboard.com/'>IP.Board</a> &copy; 2001-".date("Y")." <a href='http://www.invisionpower.com'>IPS, Inc.</a>";
$copyright = "Invision Power Board &copy; 2001-".date("Y")." <a href='http://anonym.to/http://www.invisionpower.com'>Invision Power Services, Inc.</a>";
if ( $ipsclass->vars['ipb_copy_number'] )
{