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,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-10-17 16:30:46 -0500 (Tue, 17 Oct 2006) $
|
||||
| > $Revision: 652 $
|
||||
| > $Date: 2007-07-02 16:26:19 -0400 (Mon, 02 Jul 2007) $
|
||||
| > $Revision: 1080 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -70,6 +60,9 @@ class announcements
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files' ) );
|
||||
}
|
||||
|
||||
$this->ipsclass->load_language( 'lang_topic' );
|
||||
$this->ipsclass->load_template( 'skin_topic' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Get the announcement
|
||||
//-----------------------------------------
|
||||
@@ -119,59 +112,34 @@ class announcements
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files' ) );
|
||||
}
|
||||
|
||||
if( !$announce['announce_active'] AND !$this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files' ) );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Mkay, get the require libraries
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
|
||||
$parser = new parse_bbcode();
|
||||
$parser->ipsclass =& $this->ipsclass;
|
||||
$parser->allow_update_caches = 1;
|
||||
$parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
|
||||
|
||||
require_once( ROOT_PATH.'sources/action_public/topics.php' );
|
||||
$topic = new topics();
|
||||
$topic->ipsclass =& $this->ipsclass;
|
||||
|
||||
$topic->topic_init();
|
||||
|
||||
$topic->topic['forum_id'] = 0;
|
||||
$topic->topic['tid'] = 0;
|
||||
|
||||
//-----------------------------------------
|
||||
// Parsey parsey!
|
||||
//-----------------------------------------
|
||||
|
||||
$member = $topic->parse_member( $announce );
|
||||
$member = $this->ipsclass->parse_member( $announce, 0, 'skin_topic' );
|
||||
|
||||
if ( $member['id'] )
|
||||
{
|
||||
$member['_members_display_name'] = "<a href='{$this->base_url}showuser={$member['id']}'>{$member['members_display_name_short']}</a>";
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Parse HTML tag on the fly
|
||||
//-----------------------------------------
|
||||
|
||||
$parser->parse_smilies = 1;
|
||||
$parser->parse_html = $announce['announce_html_enabled'];
|
||||
$parser->parse_bbcode = 1;
|
||||
$parser->parse_nl2br = 1;
|
||||
|
||||
$announce['announce_post'] = $parser->pre_display_parse( $parser->pre_db_parse( $announce['announce_post'] ) );
|
||||
|
||||
if ( $announce['announce_start'] and $announce['announce_end'] )
|
||||
{
|
||||
$announce['running_date'] = sprintf( $this->ipsclass->lang['announce_both'], gmdate( 'd.m.Y', $announce['announce_start'] ), gmdate( 'd.m.Y', $announce['announce_end'] ) );
|
||||
$announce['running_date'] = sprintf( $this->ipsclass->lang['announce_both'], gmdate( 'jS F Y', $announce['announce_start'] ), gmdate( 'jS F Y', $announce['announce_end'] ) );
|
||||
}
|
||||
else if ( $announce['announce_start'] and ! $announce['announce_end'] )
|
||||
{
|
||||
$announce['running_date'] = sprintf( $this->ipsclass->lang['announce_start'], gmdate( 'd.m.Y', $announce['announce_start'] ) );
|
||||
$announce['running_date'] = sprintf( $this->ipsclass->lang['announce_start'], gmdate( 'jS F Y', $announce['announce_start'] ) );
|
||||
}
|
||||
else if ( ! $announce['announce_start'] and $announce['announce_end'] )
|
||||
{
|
||||
$announce['running_date'] = sprintf( $this->ipsclass->lang['announce_end'], gmdate( 'd.m.Y', $announce['announce_end'] ) );
|
||||
$announce['running_date'] = sprintf( $this->ipsclass->lang['announce_end'], gmdate( 'jS F Y', $announce['announce_end'] ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -197,8 +165,7 @@ class announcements
|
||||
$this->ipsclass->DB->simple_shutdown_exec();
|
||||
|
||||
$this->ipsclass->print->add_output( $this->output );
|
||||
$this->ipsclass->print->do_output( array( 'TITLE' => $this->ipsclass->vars['board_name']." -> ".$this->ipsclass->forums->forum_by_id[ $this->ipsclass->input['f'] ]['name'],
|
||||
'JS' => 0,
|
||||
$this->ipsclass->print->do_output( array( 'TITLE' => $this->ipsclass->vars['board_name']." -> ". $announce['announce_title'],
|
||||
'NAV' => $this->nav,
|
||||
) );
|
||||
|
||||
|
||||
@@ -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-05-05 21:58:19 +0100 (Fri, 05 May 2006) $
|
||||
| > $Revision: 246 $
|
||||
@@ -37,7 +27,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();
|
||||
}
|
||||
|
||||
@@ -199,6 +189,27 @@ class attach {
|
||||
|
||||
function attach_upload_show( $msg="ready", $is_error=0 )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Force a form action?
|
||||
//-----------------------------------------
|
||||
|
||||
$is_reset = 0;
|
||||
|
||||
if( $this->ipsclass->vars['upload_domain'] )
|
||||
{
|
||||
$is_reset = 1;
|
||||
$original = $this->ipsclass->base_url;
|
||||
|
||||
if( $this->ipsclass->session_type == 'cookie' )
|
||||
{
|
||||
$this->ipsclass->base_url = $this->ipsclass->vars['upload_domain'] . '/index.' . $this->ipsclass->vars['php_ext'].'?';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->base_url = $this->ipsclass->vars['upload_domain'] . '/index.' . $this->ipsclass->vars['php_ext'].'?s='.$this->ipsclass->session_id.'&';
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
@@ -539,7 +550,7 @@ class attach {
|
||||
// Open and display the file..
|
||||
//-----------------------------------------
|
||||
|
||||
$fh = fopen( $file, 'rb' ); // e3790216629e5a2aaf37070b32237f06, Set binary for Win even if it's an ascii file, it won't hurt.
|
||||
$fh = fopen( $file, 'rb' ); // <{%dyn.down.var.md5p1%}>, Set binary for Win even if it's an ascii file, it won't hurt.
|
||||
fpassthru( $fh );
|
||||
fclose( $fh );
|
||||
exit();
|
||||
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-10-20 16:40:37 -0500 (Fri, 20 Oct 2006) $
|
||||
| > $Revision: 666 $
|
||||
| > $Date: 2008-02-29 18:09:47 -0500 (Fri, 29 Feb 2008) $
|
||||
| > $Revision: 1197 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -197,7 +187,7 @@ class boards
|
||||
|
||||
$this->ipsclass->print->add_output( $this->output );
|
||||
|
||||
$cp = " (Ðàáîòàåò íà Invision Power Board)";
|
||||
$cp = " (Powered by Invision Power Board)";
|
||||
|
||||
if ($this->ipsclass->vars['ips_cp_purchase'])
|
||||
{
|
||||
@@ -263,7 +253,9 @@ class boards
|
||||
|
||||
if ( $forum_data['redirect_on'] )
|
||||
{
|
||||
$forum_data['redirect_target'] = isset($forum_data['redirect_target']) ? $forum_data['redirect_target'] : '_parent';
|
||||
$forum_data['redirect_hits'] = $this->ipsclass->do_number_format( $forum_data['redirect_hits'] );
|
||||
|
||||
$forum_data['redirect_target'] = isset($forum_data['redirect_target']) ? $forum_data['redirect_target'] : '_parent';
|
||||
|
||||
$temp_html .= $this->ipsclass->compiled_templates['skin_boards']->forum_redirect_row( $forum_data );
|
||||
}
|
||||
@@ -401,7 +393,9 @@ class boards
|
||||
|
||||
if ( $forum_data['redirect_on'] )
|
||||
{
|
||||
$forum_data['redirect_target'] = isset($forum_data['redirect_target']) ? $forum_data['redirect_target'] : '_parent';
|
||||
$forum_data['redirect_hits'] = $this->ipsclass->do_number_format( $forum_data['redirect_hits'] );
|
||||
|
||||
$forum_data['redirect_target'] = isset($forum_data['redirect_target']) ? $forum_data['redirect_target'] : '_parent';
|
||||
|
||||
$temp_html .= $this->ipsclass->compiled_templates['skin_boards']->forum_redirect_row( $forum_data );
|
||||
}
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-05-01 14:00:44 -0400 (Tue, 01 May 2007) $
|
||||
| > $Revision: 958 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Browse Buddy 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();
|
||||
}
|
||||
|
||||
@@ -201,7 +191,7 @@ class assistant
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$limit = intval( $_REQUEST['limit'] );
|
||||
$limit = intval( $this->ipsclass->input['limit'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// Check...
|
||||
|
||||
+2974
-3006
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+---------------------------------------------------------------------------
|
||||
| Invision Power Dynamic v1.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER DYNAMIC IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionpower.com/dynamic/
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Id$
|
||||
| > $Revision: 140 $
|
||||
| > $Date: 2006-02-01 12:07:32 +0000 (Wed, 01 Feb 2006) $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Captcha action class
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: Thursday 2 February (11:53)
|
||||
|
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
class captcha
|
||||
{
|
||||
# Global
|
||||
var $ipsclass;
|
||||
|
||||
/**
|
||||
* Captcha class object
|
||||
* @var object
|
||||
*/
|
||||
var $captcha;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Run!
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Load captcha class
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( KERNEL_PATH . 'class_captcha.php' );
|
||||
$this->captcha = new class_captcha( $this->ipsclass, 'default' );
|
||||
|
||||
//-----------------------------------------
|
||||
// What to do...
|
||||
//-----------------------------------------
|
||||
|
||||
switch( $this->ipsclass->input['do'] )
|
||||
{
|
||||
default:
|
||||
case 'showImage':
|
||||
$this->show_image();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Show the captcha image
|
||||
/*-------------------------------------------------------------------------*/
|
||||
/**
|
||||
* Show the captcha image
|
||||
* Shows the captcha image. Good god, that was a waste of time
|
||||
*
|
||||
* @return NOTHING
|
||||
*/
|
||||
function show_image()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$captcha_unique_id = trim( $this->ipsclass->input['regid'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// Show image...
|
||||
//-----------------------------------------
|
||||
|
||||
$plugIn = $this->captcha->fetchPlugInClassHandle();
|
||||
$plugIn->captcha_show_image( $captcha_unique_id );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-26 06:17:53 -0500 (Tue, 26 Sep 2006) $
|
||||
| > $Revision: 574 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2008-03-28 18:08:02 -0400 (Fri, 28 Mar 2008) $
|
||||
| > $Revision: 1232 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Find-a-post module (a.k.a: The smallest IPB class ever)
|
||||
@@ -43,7 +33,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();
|
||||
}
|
||||
|
||||
@@ -81,9 +71,29 @@ class findpost
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'missing_files') );
|
||||
}
|
||||
|
||||
$topic = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'forum_id', 'from' => 'topics', 'where' => 'tid=' . $post['topic_id'] ) );
|
||||
|
||||
if ( ! $topic['forum_id'] )
|
||||
{
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'missing_files') );
|
||||
}
|
||||
|
||||
$mod = 0;
|
||||
|
||||
if ( $this->ipsclass->member['g_is_supmod'] )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
else if( isset($this->ipsclass->member['_moderator'][ $topic['forum_id'] ]) AND is_array( $this->ipsclass->member['_moderator'][ $topic['forum_id'] ] ) )
|
||||
{
|
||||
$mod = 1;
|
||||
}
|
||||
|
||||
$query_extra = $mod ? '' : ' AND queued=0';
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'COUNT(*) as posts',
|
||||
'from' => 'posts',
|
||||
'where' => "topic_id=".$post['topic_id']." AND pid <= ".$pid,
|
||||
'where' => "topic_id=".$post['topic_id']." AND pid <= ".$pid . $query_extra,
|
||||
) );
|
||||
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-28 17:05:45 -0500 (Thu, 28 Sep 2006) $
|
||||
| > $Revision: 587 $
|
||||
| > $Date: 2007-12-17 18:07:20 -0500 (Mon, 17 Dec 2007) $
|
||||
| > $Revision: 1149 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -81,11 +71,15 @@ class forums {
|
||||
// Init functions
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function init()
|
||||
function init( $do_not_skin_load=0 )
|
||||
{
|
||||
$this->ipsclass->load_language('lang_forum');
|
||||
$this->ipsclass->load_template('skin_forum');
|
||||
|
||||
|
||||
if ( ! $do_not_skin_load )
|
||||
{
|
||||
$this->ipsclass->load_template('skin_forum');
|
||||
}
|
||||
|
||||
$this->auth_key = $this->ipsclass->return_md5_check();
|
||||
|
||||
if ( $read = $this->ipsclass->my_getcookie('topicsread') )
|
||||
@@ -463,13 +457,13 @@ class forums {
|
||||
|
||||
$announce_html = "";
|
||||
|
||||
rsort( $announcements );
|
||||
krsort( $announcements );
|
||||
|
||||
foreach( $announcements as $announce )
|
||||
{
|
||||
if ( $announce['announce_start'] )
|
||||
{
|
||||
$announce['announce_start'] = gmdate( 'd.m.Y', $announce['announce_start'] );
|
||||
$announce['announce_start'] = gmdate( 'jS F Y', $announce['announce_start'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1079,7 +1073,8 @@ class forums {
|
||||
// Update counter
|
||||
//-----------------------------------------
|
||||
|
||||
$save_array['marker_unread'] = intval($count['cnt']);
|
||||
$save_array['marker_unread'] = intval($count['cnt']);
|
||||
$save_array['marker_last_cleared'] = $this->db_row['marker_last_cleared'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Topics unread: Clean out old topics
|
||||
@@ -1098,7 +1093,7 @@ class forums {
|
||||
$this->my_topics_read = array();
|
||||
}
|
||||
|
||||
$save_array['marker_topics_read'] = serialize( $this->my_topics_read );
|
||||
$save_array['marker_topics_read'] = serialize( $this->my_topics_read );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -1112,30 +1107,12 @@ class forums {
|
||||
$save_array['marker_unread'] = 0;
|
||||
}
|
||||
|
||||
$save_array['marker_last_update'] = time();
|
||||
|
||||
if ( $this->db_row['marker_forum_id'] )
|
||||
{
|
||||
$this->ipsclass->DB->do_shutdown_update( 'topic_markers', $save_array, 'marker_member_id='.$this->ipsclass->member['id'].' AND marker_forum_id='.$this->forum['id'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Better safe than sorry - been seeing a lot of SQL errors popping up about the dup unique key
|
||||
$save_array['marker_last_update'] = time();
|
||||
$save_array['marker_member_id'] = $this->ipsclass->member['id'];
|
||||
$save_array['marker_forum_id'] = $this->forum['id'];
|
||||
$save_array['marker_last_cleared'] = intval($save_array['marker_last_cleared']);
|
||||
|
||||
$check = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'marker_forum_id', 'from' => 'topic_markers', 'where' => 'marker_member_id='.$this->ipsclass->member['id'].' AND marker_forum_id='.$this->forum['id'] ) );
|
||||
|
||||
if( !$check['marker_forum_id'] )
|
||||
{
|
||||
$save_array['marker_member_id'] = $this->ipsclass->member['id'];
|
||||
$save_array['marker_forum_id'] = $this->forum['id'];
|
||||
|
||||
$this->ipsclass->DB->do_shutdown_insert( 'topic_markers', $save_array );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->DB->do_shutdown_update( 'topic_markers', $save_array, 'marker_member_id='.$this->ipsclass->member['id'].' AND marker_forum_id='.$this->forum['id'] );
|
||||
}
|
||||
}
|
||||
$this->ipsclass->DB->do_replace_into( 'topic_markers', $save_array, array('marker_member_id','marker_forum_id'), TRUE );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1182,10 +1159,11 @@ class forums {
|
||||
//-----------------------------------------
|
||||
|
||||
$ar_time = time();
|
||||
$cached = array();
|
||||
$active = array( 'guests' => 0, 'anon' => 0, 'members' => 0, 'names' => "");
|
||||
$rows = array( $ar_time => array( 'login_type' => substr($this->ipsclass->member['login_anonymous'],0, 1),
|
||||
'id' => 0,
|
||||
$cached = array();
|
||||
$guests = array();
|
||||
$active = array( 'guests' => 0, 'anon' => 0, 'members' => 0, 'names' => "");
|
||||
$rows = array( $ar_time => array( 'login_type' => substr($this->ipsclass->member['login_anonymous'],0, 1),
|
||||
'id' => $this->ipsclass->sess->session_id,
|
||||
'location' => 'sf',
|
||||
'running_time' => $ar_time,
|
||||
'member_id' => $this->ipsclass->member['id'],
|
||||
@@ -1229,7 +1207,14 @@ class forums {
|
||||
|
||||
if ($result['member_id'] == 0)
|
||||
{
|
||||
if( in_array( $result['id'], $guests ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$active['guests']++;
|
||||
|
||||
$guests[] = $result['id'];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1401,22 +1386,25 @@ class forums {
|
||||
$last_time = $this->ipsclass->forum_read[ $topic['forum_id'] ];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Attachy ment
|
||||
//-----------------------------------------
|
||||
|
||||
$topic['attach_img'] = $topic['topic_hasattach'] ? $this->ipsclass->compiled_templates['skin_forum']->topic_attach_icon($topic['tid'], intval($topic['topic_hasattach'])) : '';
|
||||
if ( is_object( $this->ipsclass->compiled_templates['skin_forum'] ) )
|
||||
{
|
||||
$topic['attach_img'] = $topic['topic_hasattach'] ? $this->ipsclass->compiled_templates['skin_forum']->topic_attach_icon($topic['tid'], intval($topic['topic_hasattach'])) : '';
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Yawn
|
||||
//-----------------------------------------
|
||||
|
||||
$topic['last_text'] = $this->ipsclass->lang['last_post_by'];
|
||||
|
||||
$topic['last_poster'] = $topic['last_poster_id'] ? $this->ipsclass->make_profile_link( $topic['last_poster_name'], $topic['last_poster_id']) : "-".$topic['last_poster_name']."-";
|
||||
|
||||
$topic['last_poster'] = $topic['last_poster_id'] ? $this->ipsclass->make_profile_link( $topic['last_poster_name'], $topic['last_poster_id']) : $this->ipsclass->vars['guest_name_pre'] . $topic['last_poster_name'] . $this->ipsclass->vars['guest_name_suf'];
|
||||
|
||||
$topic['starter'] = $topic['starter_id'] ? $this->ipsclass->make_profile_link( $topic['starter_name'], $topic['starter_id']) : "-".$topic['starter_name']."-";
|
||||
$topic['starter'] = $topic['starter_id'] ? $this->ipsclass->make_profile_link( $topic['starter_name'], $topic['starter_id']) : $this->ipsclass->vars['guest_name_pre'] . $topic['starter_name'] . $this->ipsclass->vars['guest_name_suf'];
|
||||
|
||||
$topic['prefix'] = $topic['poll_state'] ? $this->ipsclass->vars['pre_polls'].' ' : '';
|
||||
|
||||
@@ -1468,7 +1456,7 @@ class forums {
|
||||
}
|
||||
}
|
||||
|
||||
if ( $pages > 1 )
|
||||
if ( $pages > 1 AND is_object( $this->ipsclass->compiled_templates['skin_forum'] ) )
|
||||
{
|
||||
for ( $i = 0 ; $i < $pages ; ++$i )
|
||||
{
|
||||
@@ -1527,7 +1515,7 @@ class forums {
|
||||
$topic['prefix'] = $this->ipsclass->vars['pre_moved']." ";
|
||||
$topic['go_new_post'] = "";
|
||||
}
|
||||
else
|
||||
else if ( is_object( $this->ipsclass->compiled_templates['skin_forum'] ) )
|
||||
{
|
||||
$topic['posts'] = $this->ipsclass->compiled_templates['skin_forum']->who_link($topic['tid'], $topic['posts']);
|
||||
}
|
||||
@@ -1548,7 +1536,7 @@ class forums {
|
||||
|
||||
$topic['_rate_img'] = '';
|
||||
|
||||
if ( isset($this->forum['forum_allow_rating']) AND $this->forum['forum_allow_rating'] )
|
||||
if ( isset($this->forum['forum_allow_rating']) AND $this->forum['forum_allow_rating'] AND is_object( $this->ipsclass->compiled_templates['skin_forum'] ) )
|
||||
{
|
||||
if ( $topic['topic_rating_total'] )
|
||||
{
|
||||
@@ -1630,8 +1618,9 @@ class forums {
|
||||
// we've a pinned topic, but we've not printed the pinned
|
||||
// starter row, so..
|
||||
|
||||
$show = $this->announce_out ? 1 : 0;
|
||||
$p_start = $this->ipsclass->compiled_templates['skin_forum']->render_pinned_start( $show );
|
||||
// We should always show this right?
|
||||
//$show = $this->announce_out ? 1 : 0;
|
||||
$p_start = $this->ipsclass->compiled_templates['skin_forum']->render_pinned_start( 1 );
|
||||
|
||||
$this->pinned_print = 1;
|
||||
}
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-11-06 10:23:24 -0600 (Mon, 06 Nov 2006) $
|
||||
| > $Revision: 714 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2008-04-21 17:32:17 -0400 (Mon, 21 Apr 2008) $
|
||||
| > $Revision: 1249 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Access the help files
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -90,7 +80,7 @@ class help
|
||||
// If we have any HTML to print, do so...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->print->add_output("$this->output");
|
||||
$this->ipsclass->print->add_output( $this->output );
|
||||
$this->ipsclass->print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, 'NAV' => $this->nav ) );
|
||||
}
|
||||
|
||||
@@ -146,7 +136,7 @@ class help
|
||||
{
|
||||
$id = isset($this->ipsclass->input['HID']) ? intval($this->ipsclass->input['HID']) : 0;
|
||||
|
||||
if ( ! preg_match( "/^(\d+)$/" , $id ) )
|
||||
if ( ! $id )
|
||||
{
|
||||
$this->show_titles();
|
||||
return;
|
||||
@@ -170,7 +160,7 @@ class help
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_help']->help_end();
|
||||
|
||||
$this->page_title = $this->ipsclass->lang['help_topic'];
|
||||
$this->page_title = $this->ipsclass->lang['help_topic'] . ' -> ' . $topic['title'];
|
||||
$this->nav = array( "<a href='{$this->base_url}&act=Help'>{$this->ipsclass->lang['help_topics']}</a>", $this->ipsclass->lang['help_topic'] );
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
|
||||
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
|
||||
</head><body>
|
||||
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
|
||||
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó «<b>Íàçàä</b>» â âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
|
||||
</body>
|
||||
</html>
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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: 2007-02-21 14:35:34 -0500 (Wed, 21 Feb 2007) $
|
||||
| > $Revision: 855 $
|
||||
| > $Date: 2008-04-23 15:02:02 -0400 (Wed, 23 Apr 2008) $
|
||||
| > $Revision: 1254 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -193,6 +183,14 @@ class login
|
||||
|
||||
if ($this->ipsclass->member['id'])
|
||||
{
|
||||
if ( USE_MODULES == 1 )
|
||||
{
|
||||
$this->modules->register_class($this);
|
||||
$this->modules->on_login($member);
|
||||
}
|
||||
|
||||
$this->ipsclass->my_setcookie('session_id', '0', -1 );
|
||||
|
||||
if ($method == 'show')
|
||||
{
|
||||
$this->ipsclass->print->redirect_screen( $true_words, "" );
|
||||
@@ -227,13 +225,15 @@ class login
|
||||
|
||||
# Check for funny business
|
||||
if ( $key != $this->ipsclass->md5_check )
|
||||
{
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($_COOKIE))
|
||||
{
|
||||
$this->ipsclass->vars['cookie_id'] = preg_quote( $this->ipsclass->vars['cookie_id'] );
|
||||
|
||||
foreach( $_COOKIE as $cookie => $value)
|
||||
{
|
||||
if (preg_match( "/^(".$this->ipsclass->vars['cookie_id']."ipbforum.*$)/i", $cookie, $match))
|
||||
@@ -303,7 +303,6 @@ class login
|
||||
$forum_data = $this->ipsclass->forums->forum_by_id[ $forum_id ];
|
||||
$children = $this->ipsclass->forums->forums_get_children( $forum_data['id'] );
|
||||
$save = array();
|
||||
$delete = array();
|
||||
|
||||
//-----------------------------------------
|
||||
// Check
|
||||
@@ -326,8 +325,6 @@ class login
|
||||
{
|
||||
$this->ipsclass->forum_read[ $id ] = time();
|
||||
|
||||
$delete[] = $id;
|
||||
|
||||
$save[ $id ] = array( 'marker_forum_id' => $id,
|
||||
'marker_member_id' => $this->ipsclass->member['id'],
|
||||
'marker_last_update' => time(),
|
||||
@@ -343,8 +340,6 @@ class login
|
||||
|
||||
$this->ipsclass->forum_read[ $forum_data['id'] ] = time();
|
||||
|
||||
$delete[] = $forum_data['id'];
|
||||
|
||||
$save[ $forum_data['id'] ] = array( 'marker_forum_id' => $forum_data['id'],
|
||||
'marker_member_id' => $this->ipsclass->member['id'],
|
||||
'marker_last_update' => time(),
|
||||
@@ -357,14 +352,11 @@ class login
|
||||
|
||||
if ( $this->ipsclass->vars['db_topic_read_cutoff'] and $this->ipsclass->member['id'] )
|
||||
{
|
||||
if ( count( $delete ) )
|
||||
if ( count( $save ) )
|
||||
{
|
||||
$this->ipsclass->DB->build_and_exec_query( array( 'delete' => 'topic_markers',
|
||||
'where' => 'marker_member_id='.$this->ipsclass->member['id'].' AND marker_forum_id IN ('.implode(',',$delete ).')' ) );
|
||||
|
||||
foreach( $save as $data )
|
||||
{
|
||||
$this->ipsclass->DB->do_insert( 'topic_markers', $data );
|
||||
$this->ipsclass->DB->do_replace_into( 'topic_markers', $data, array('marker_member_id','marker_forum_id'), TRUE );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -567,10 +559,13 @@ class login
|
||||
$username = strtolower( trim( $this->ipsclass->input['UserName'] ) );
|
||||
}
|
||||
|
||||
/*
|
||||
I see no reason to limit how long the password can be...
|
||||
|
||||
if ( $this->ipsclass->txt_mb_strlen( $_POST['PassWord'] ) > 32)
|
||||
{
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'pass_too_long' ) );
|
||||
}
|
||||
}*/
|
||||
|
||||
$password = md5( $this->ipsclass->input['PassWord'] );
|
||||
|
||||
@@ -602,8 +597,8 @@ class login
|
||||
if( $this->han_login->account_unlock )
|
||||
{
|
||||
$time = time() - $this->han_login->account_unlock;
|
||||
|
||||
$time = $this->ipsclass->vars['ipb_bruteforce_period'] - ceil( $time / 60 );
|
||||
|
||||
$time = ( $this->ipsclass->vars['ipb_bruteforce_period'] - ceil( $time / 60 ) > 0 ) ? $this->ipsclass->vars['ipb_bruteforce_period'] - ceil( $time / 60 ) : 1;
|
||||
|
||||
$extra = sprintf( $this->ipsclass->lang['bruteforce_account_unlock'], $time );
|
||||
}
|
||||
@@ -662,7 +657,7 @@ class login
|
||||
|
||||
if ( $this->ipsclass->input['CookieDate'] )
|
||||
{
|
||||
$this->ipsclass->my_setcookie("member_id" , $member['id'] , 1);
|
||||
$this->ipsclass->my_setcookie("member_id" , $member['id'] , 1 );
|
||||
$this->ipsclass->my_setcookie("pass_hash" , $member['member_login_key'], $_sticky, $_days );
|
||||
}
|
||||
|
||||
@@ -889,6 +884,8 @@ class login
|
||||
|
||||
if ( is_array($_COOKIE) )
|
||||
{
|
||||
$this->ipsclass->vars['cookie_id'] = preg_quote( $this->ipsclass->vars['cookie_id'] );
|
||||
|
||||
foreach( $_COOKIE as $cookie => $value )
|
||||
{
|
||||
if ( preg_match( "/^(".$this->ipsclass->vars['cookie_id']."ipbforumpass_.*$)/i", $cookie, $match) )
|
||||
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-10-25 07:58:41 -0500 (Wed, 25 Oct 2006) $
|
||||
| > $Revision: 675 $
|
||||
| > $Date: 2007-05-11 17:54:34 -0400 (Fri, 11 May 2007) $
|
||||
| > $Revision: 994 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -66,8 +56,6 @@ class memberlist
|
||||
var $ucp_html = "";
|
||||
var $topic = "";
|
||||
|
||||
var $lib_profile = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto-run
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -100,6 +88,11 @@ class memberlist
|
||||
|
||||
$this->ipsclass->input['showall'] = intval($this->ipsclass->input['showall']);
|
||||
|
||||
if( $this->ipsclass->input['showall'] )
|
||||
{
|
||||
$url[] = 'showall=' . $this->ipsclass->input['showall'];
|
||||
}
|
||||
|
||||
$this->first = intval($this->ipsclass->input['st']);
|
||||
$this->max_results = isset( $this->ipsclass->input['max_results'] ) ? $this->ipsclass->input['max_results'] : '20';
|
||||
$this->sort_key = isset( $this->ipsclass->input['sort_key'] ) ? $this->ipsclass->input['sort_key'] : 'members_display_name';
|
||||
@@ -111,25 +104,6 @@ class memberlist
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab topics.php to parse member
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH.'sources/action_public/topics.php' );
|
||||
$this->topic = new topics();
|
||||
$this->topic->ipsclass =& $this->ipsclass;
|
||||
$this->topic->topic_init( 1 );
|
||||
$this->topic->topic['forum_id'] = 0;
|
||||
$this->topic->topic['tid'] = 0;
|
||||
|
||||
//-----------------------------------------
|
||||
// Load profile lib
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_public/profile.php' );
|
||||
$this->lib_profile = new profile();
|
||||
$this->lib_profile->ipsclass =& $this->ipsclass;
|
||||
|
||||
//-----------------------------------------
|
||||
// Get the member groups, member titles stuff
|
||||
//-----------------------------------------
|
||||
@@ -172,7 +146,7 @@ class memberlist
|
||||
'members_profile_views' => 'm_dd_views',
|
||||
);
|
||||
|
||||
$the_max_results = array(
|
||||
$the_max_results = array(
|
||||
20 => '20',
|
||||
40 => '40',
|
||||
60 => '60',
|
||||
@@ -255,14 +229,18 @@ class memberlist
|
||||
|
||||
$custom_fields = "";
|
||||
|
||||
$this->topic->custom_fields->admin = intval($this->ipsclass->member['g_access_cp']);
|
||||
$this->topic->custom_fields->supmod = intval($this->ipsclass->member['g_is_supmod']);
|
||||
$this->topic->custom_fields->member_id = $this->ipsclass->member['id'];
|
||||
$this->topic->custom_fields->mem_data_id = 0;
|
||||
$this->topic->custom_fields->mem_list = 1;
|
||||
require_once( ROOT_PATH.'sources/classes/class_custom_fields.php' );
|
||||
$this->ipsclass->custom_fields = new custom_fields( $this->ipsclass->DB );
|
||||
|
||||
$this->ipsclass->custom_fields->member_id = $this->ipsclass->member['id'];
|
||||
$this->ipsclass->custom_fields->cache_data = $this->ipsclass->cache['profilefields'];
|
||||
$this->ipsclass->custom_fields->admin = intval($this->ipsclass->member['g_access_cp']);
|
||||
$this->ipsclass->custom_fields->supmod = intval($this->ipsclass->member['g_is_supmod']);
|
||||
$this->ipsclass->custom_fields->mem_data_id = 0;
|
||||
$this->ipsclass->custom_fields->mem_list = 1;
|
||||
|
||||
$this->topic->custom_fields->init_data();
|
||||
$this->topic->custom_fields->parse_to_edit();
|
||||
$this->ipsclass->custom_fields->init_data();
|
||||
$this->ipsclass->custom_fields->parse_to_edit();
|
||||
|
||||
//-----------------------------------------
|
||||
// Quick jump rehash...
|
||||
@@ -362,7 +340,7 @@ class memberlist
|
||||
$query[] = "m.members_l_display_name LIKE '%".$inbit."%'";
|
||||
}
|
||||
}
|
||||
else if ( $in == 'posts' and intval($inbit) > 0 )
|
||||
else if ( $in == 'posts' and is_numeric($inbit) and intval($inbit) > -1 )
|
||||
{
|
||||
$ltmt = $this->ipsclass->input[ $in .'_ltmt' ] == 'lt' ? '<' : '>';
|
||||
$query[] = $tbl. ' '.$ltmt.' '.intval($inbit);
|
||||
@@ -405,9 +383,9 @@ class memberlist
|
||||
// Custom fields?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $this->topic->custom_fields->out_fields ) )
|
||||
if ( count( $this->ipsclass->custom_fields->out_fields ) )
|
||||
{
|
||||
foreach( $this->topic->custom_fields->out_fields as $id => $data )
|
||||
foreach( $this->ipsclass->custom_fields->out_fields as $id => $data )
|
||||
{
|
||||
if ( isset($this->ipsclass->input['field_'.$id]) AND $this->ipsclass->input['field_'.$id] )
|
||||
{
|
||||
@@ -449,6 +427,8 @@ class memberlist
|
||||
// Finish query
|
||||
//-----------------------------------------
|
||||
|
||||
$query[] = "m.members_display_name != ''";
|
||||
|
||||
if ( count( $query ) )
|
||||
{
|
||||
$query_string = implode( " AND ", $query );
|
||||
@@ -478,11 +458,11 @@ class memberlist
|
||||
// Get custom profile information
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $this->topic->custom_fields->out_fields ) )
|
||||
if ( count( $this->ipsclass->custom_fields->out_fields ) )
|
||||
{
|
||||
foreach( $this->topic->custom_fields->out_fields as $id => $data )
|
||||
foreach( $this->ipsclass->custom_fields->out_fields as $id => $data )
|
||||
{
|
||||
if ( $this->topic->custom_fields->cache_data[ $id ]['pf_type'] == 'drop' )
|
||||
if ( $this->ipsclass->custom_fields->cache_data[ $id ]['pf_type'] == 'drop' )
|
||||
{
|
||||
$tmp = $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_dropdown( 'field_'.$id, $data );
|
||||
}
|
||||
@@ -491,7 +471,7 @@ class memberlist
|
||||
$tmp = $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_textinput( 'field_'.$id );
|
||||
}
|
||||
|
||||
$custom_fields .= $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_entry( $this->topic->custom_fields->field_names[ $id ], $tmp );
|
||||
$custom_fields .= $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_entry( $this->ipsclass->custom_fields->field_names[ $id ], $tmp );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -519,8 +499,7 @@ class memberlist
|
||||
// Kludgy.. kludge.. must out in IPB 3.0
|
||||
//-----------------------------------------
|
||||
|
||||
#$member = $this->lib_profile->personal_portal_set_information( $member );
|
||||
$member = $this->topic->parse_member( $member );
|
||||
$member = $this->ipsclass->parse_member( $member, 0, 'skin_mlist' );
|
||||
|
||||
# Stop the length check taking into account member title formatting
|
||||
$member['_members_display_name'] = $member['members_display_name'];
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-12-04 10:31:02 -0600 (Mon, 04 Dec 2006) $
|
||||
| > $Revision: 757 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2008-04-23 15:02:02 -0400 (Wed, 23 Apr 2008) $
|
||||
| > $Revision: 1254 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Messenger functions
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -211,14 +201,14 @@ class messenger
|
||||
// If we have any HTML to print, do so...
|
||||
|
||||
$fj = $this->ipsclass->build_forum_jump();
|
||||
$fj = str_replace( "#Forum Jump#", $this->ipsclass->lang['forum_jump'], $fj);
|
||||
$fj = str_replace( '#Forum Jump#', $this->ipsclass->lang['forum_jump'], $fj);
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_msg']->CP_end();
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_msg']->forum_jump($fj);
|
||||
|
||||
$this->ipsclass->print->add_output( $this->output );
|
||||
$this->ipsclass->print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, 'NAV' => $this->nav ) );
|
||||
$this->ipsclass->print->do_output( array( 'TITLE' => $this->page_title, 'NAV' => $this->nav ) );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -421,17 +411,6 @@ class messenger
|
||||
$this->email->ipsclass =& $this->ipsclass;
|
||||
$this->email->email_init();
|
||||
|
||||
//-----------------------------------------
|
||||
// Require BBCode library
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
|
||||
$this->parser = new parse_bbcode();
|
||||
$this->parser->ipsclass = $this->ipsclass;
|
||||
$this->parser->allow_update_caches = 1;
|
||||
|
||||
$this->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
|
||||
|
||||
//-----------------------------------------
|
||||
// Did we specify a folder, or choose all?
|
||||
//-----------------------------------------
|
||||
@@ -500,6 +479,7 @@ class messenger
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'mt.*',
|
||||
'from' => array( 'message_topics' => 'mt' ),
|
||||
'where' => "mt.mt_owner_id={$this->ipsclass->member['id']} AND mt.mt_date {$older_newer} {$time_cut} {$folder_query}",
|
||||
'order' => 'mt.mt_date DESC',
|
||||
'limit' => array( 0, $this->ipsclass->input['number'] ),
|
||||
'add_join' => array(
|
||||
array(
|
||||
@@ -535,10 +515,6 @@ class messenger
|
||||
$info = array();
|
||||
$msg_ids[] = $r['mt_id'];
|
||||
|
||||
$this->parser->parse_smilies = 0;
|
||||
$this->parser->parse_html = $this->ipsclass->vars['msg_allow_html'];
|
||||
$this->parser->parse_bbcode = $this->ipsclass->vars['msg_allow_code'];
|
||||
|
||||
$info['msg_date'] = $this->ipsclass->get_date( $r['mt_date'], 'LONG' );
|
||||
$info['msg_title'] = $r['mt_title'];
|
||||
|
||||
@@ -551,7 +527,7 @@ class messenger
|
||||
$info['msg_sender'] = $r['members_display_name'];
|
||||
}
|
||||
|
||||
$info['msg_content'] = $this->parser->pre_display_parse( $this->parser->pre_db_parse( $r['msg_post'] ) );
|
||||
$info['msg_content'] = $r['msg_post'];
|
||||
|
||||
if ($type == 'xls')
|
||||
{
|
||||
@@ -632,6 +608,7 @@ class messenger
|
||||
//-----------------------------------------
|
||||
|
||||
$output = str_replace( "<#IMG_DIR#>", $this->ipsclass->skin['_imagedir'], $output );
|
||||
$output = str_replace( "<#EMO_DIR#>", $this->ipsclass->skin['_emodir'] , $output );
|
||||
|
||||
$this->email->get_template("pm_archive");
|
||||
|
||||
@@ -734,6 +711,13 @@ class messenger
|
||||
|
||||
function do_prefs()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->input['in'] = $this->ipsclass->txt_alphanumerical_clean( $_POST['in'], " " );
|
||||
$this->ipsclass->input['sent'] = $this->ipsclass->txt_alphanumerical_clean( $_POST['sent'], " " );
|
||||
|
||||
//-----------------------------------------
|
||||
// Check to ensure than we've not tried to
|
||||
// remove the inbox and sent items directories.
|
||||
@@ -789,21 +773,29 @@ class messenger
|
||||
// Fetch the rest of the dirs
|
||||
//-----------------------------------------
|
||||
|
||||
$ids = array();
|
||||
$ids = array();
|
||||
$others = array();
|
||||
|
||||
foreach ($this->ipsclass->input as $key => $value)
|
||||
{
|
||||
if ( preg_match( "/^dir_(\d+)$/", $key, $match ) )
|
||||
{
|
||||
if ($this->ipsclass->input[$match[0]])
|
||||
if ( $this->ipsclass->input[$match[0]] )
|
||||
{
|
||||
$count = isset($cur_dir[ $match[0] ]) ? intval( $cur_dir[ $match[0] ] ) : 0;
|
||||
|
||||
$v_dir .= '|'.$match[0].':'.trim(str_replace( '|', '', str_replace( ";", "", $this->ipsclass->input[$match[0]] ) ) ).';'.$count;
|
||||
$others[ $this->ipsclass->input[$match[0]] ] = $match[0].':'.trim(str_replace( '|', '', str_replace( ";", "", $this->ipsclass->input[$match[0]] ) ) ).';'.$count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( count($others) )
|
||||
{
|
||||
ksort($others);
|
||||
|
||||
$v_dir .= '|' . implode( '|', $others );
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array('update' => 'member_extra', 'set' => "vdirs='$v_dir'", 'where' => 'id='.$this->ipsclass->member['id']) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
@@ -935,7 +927,7 @@ class messenger
|
||||
}
|
||||
}
|
||||
|
||||
if( $do_override == 0 )
|
||||
if( $do_override == 1 )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'cannot_block' ) );
|
||||
}
|
||||
@@ -1164,7 +1156,7 @@ class messenger
|
||||
}
|
||||
else if ($this->ipsclass->input['move'])
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array( 'update' => 'message_topics', 'set' => "mt_vid_folder='{$this->msglib->vid}', mt_to_id={$this->ipsclass->member['id']}", 'where' => "mt_vid_folder != '{$this->msglib->vid}' AND mt_owner_id=".$this->ipsclass->member['id']." AND mt_id IN ($id_string)" ) );
|
||||
$this->ipsclass->DB->simple_construct( array( 'update' => 'message_topics', 'set' => "mt_vid_folder='{$this->msglib->vid}'", 'where' => "mt_vid_folder != '{$this->msglib->vid}' AND mt_owner_id=".$this->ipsclass->member['id']." AND mt_id IN ($id_string)" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
if ( $this->ipsclass->DB->get_affected_rows() )
|
||||
@@ -1271,8 +1263,55 @@ class messenger
|
||||
{
|
||||
$id_string = implode( ",", $ids );
|
||||
|
||||
# For directory counts....
|
||||
$member = array();
|
||||
$counts = array();
|
||||
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'mt.mt_id, mt.mt_msg_id, mt.mt_read, mt.mt_owner_id',
|
||||
'from' => array( 'message_topics' => 'mt' ),
|
||||
'where' => "mt.mt_read=0 and mt.mt_tracking=1 AND mt.mt_from_id=".$this->ipsclass->member['id']." AND mt.mt_id IN({$id_string})",
|
||||
'add_join' => array(
|
||||
array(
|
||||
'select' => 'me.vdirs, me.id',
|
||||
'from' => array( 'member_extra' => 'me' ),
|
||||
'where' => 'me.id=mt.mt_owner_id',
|
||||
'type' => 'left'
|
||||
)
|
||||
)
|
||||
) );
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
while( $r = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
if( array_key_exists( $r['id'], $counts ) )
|
||||
{
|
||||
$counts[ $r['id'] ]++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$counts[ $r['id'] ] = 1;
|
||||
}
|
||||
|
||||
$member[ $r['id'] ] = $r['vdirs'];
|
||||
}
|
||||
|
||||
$this->msglib->delete_messages( $ids, $this->ipsclass->member['id'], "mt_read=0 and mt_tracking=1 AND mt_from_id=".$this->ipsclass->member['id'] );
|
||||
|
||||
if( count($member) )
|
||||
{
|
||||
foreach($member as $id => $vdirs )
|
||||
{
|
||||
$inbox_count = $this->msglib->_get_dir_count( $vdirs, 'in' );
|
||||
|
||||
$new_vdir = $this->msglib->rebuild_dir_count( $id,
|
||||
$vdirs,
|
||||
'in',
|
||||
$inbox_count - $counts[ $id ],
|
||||
'save'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$this->ipsclass->boink_it($this->base_url."act=Msg&CODE=30");
|
||||
}
|
||||
else
|
||||
@@ -1324,19 +1363,6 @@ class messenger
|
||||
|
||||
function view_msg()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Get extra LIBBIES
|
||||
//-----------------------------------------
|
||||
|
||||
require ( ROOT_PATH.'sources/action_public/topics.php' );
|
||||
|
||||
$this->topiclib = new topics();
|
||||
$this->topiclib->ipsclass =& $this->ipsclass;
|
||||
|
||||
$this->topiclib->topic_init();
|
||||
$this->topiclib->topic['forum_id'] = 0;
|
||||
$this->topiclib->topic['tid'] = 0;
|
||||
|
||||
//-----------------------------------------
|
||||
// check for a msg ID
|
||||
//-----------------------------------------
|
||||
@@ -1389,7 +1415,7 @@ class messenger
|
||||
|
||||
if ( $msg['id'] )
|
||||
{
|
||||
$member = $this->topiclib->parse_member( $msg );
|
||||
$member = $this->ipsclass->parse_member( $msg, 0, 'skin_msg' );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1407,21 +1433,8 @@ class messenger
|
||||
$member['signature'] = "";
|
||||
}
|
||||
|
||||
$this->topiclib->parser->parse_smilies = 1;
|
||||
$this->topiclib->parser->parse_html = $this->ipsclass->vars['msg_allow_html'];
|
||||
$this->topiclib->parser->parse_bbcode = $this->ipsclass->vars['msg_allow_code'];
|
||||
$this->topiclib->parser->parse_nl2br = 1;
|
||||
$this->topiclib->parser->parsing_signature = 0;
|
||||
|
||||
$msg['msg_post'] = $this->topiclib->parser->pre_display_parse( $this->topiclib->parser->pre_db_parse( $msg['msg_post'] ) );
|
||||
|
||||
if ( $this->ipsclass->member['view_sigs'] and $member['signature'] )
|
||||
{
|
||||
$this->topiclib->parser->parse_smilies = 0;
|
||||
$this->topiclib->parser->parse_html = $this->ipsclass->vars['sig_allow_html'];
|
||||
$this->topiclib->parser->parse_bbcode = $this->ipsclass->vars['sig_allow_ibc'];
|
||||
|
||||
$member['signature'] = $this->topiclib->parser->pre_display_parse( $member['signature'] );
|
||||
$member['signature'] = $this->ipsclass->compiled_templates['skin_global']->signature_separator($member['signature']);
|
||||
}
|
||||
else
|
||||
@@ -1480,16 +1493,16 @@ class messenger
|
||||
require_once( ROOT_PATH . 'sources/classes/attach/class_attach.php' );
|
||||
$this->class_attach = new class_attach();
|
||||
$this->class_attach->ipsclass =& $this->ipsclass;
|
||||
|
||||
$this->ipsclass->load_language( 'lang_topic' );
|
||||
}
|
||||
|
||||
$this->class_attach->type = 'msg';
|
||||
$this->class_attach->init();
|
||||
|
||||
$html = $this->class_attach->render_attachments( $html, array( $msg['msg_id'] ) );
|
||||
$html = $this->class_attach->render_attachments( $html, array( $msg['msg_id'] ), 'skin_msg' );
|
||||
}
|
||||
|
||||
unset($this->topiclib);
|
||||
|
||||
$this->output .= $html;
|
||||
|
||||
$this->page_title = $this->ipsclass->lang['t_welcome'];
|
||||
@@ -1590,7 +1603,7 @@ class messenger
|
||||
return;
|
||||
}
|
||||
|
||||
if ( strlen( trim( $_POST['Post'] ) ) < 2 )
|
||||
if ( strlen( trim( $this->ipsclass->my_br2nl( $_POST['Post'] ) ) ) < 2 )
|
||||
{
|
||||
$this->msglib->send_form( 0, $this->ipsclass->lang['err_no_msg'] );
|
||||
$this->output .= $this->msglib->output;
|
||||
@@ -1627,8 +1640,26 @@ class messenger
|
||||
// Now we have safe HTML and bbcode
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->vars['max_emos'] = 0;
|
||||
|
||||
$this->ipsclass->input['Post'] = $this->msglib->postlib->han_editor->process_raw_post( 'Post' );
|
||||
|
||||
$this->msglib->postlib->parser->parse_smilies = 1;
|
||||
$this->msglib->postlib->parser->parse_nl2br = 1;
|
||||
$this->msglib->postlib->parser->parse_html = $this->ipsclass->vars['msg_allow_html'];
|
||||
$this->msglib->postlib->parser->parse_bbcode = $this->ipsclass->vars['msg_allow_code'];
|
||||
|
||||
$this->ipsclass->input['Post'] = $this->msglib->postlib->parser->pre_db_parse( $this->ipsclass->input['Post'] );
|
||||
$this->ipsclass->input['Post'] = $this->msglib->postlib->parser->pre_display_parse( $this->ipsclass->input['Post'] );
|
||||
$this->ipsclass->input['Post'] = $this->msglib->postlib->parser->bad_words( $this->ipsclass->input['Post'] );
|
||||
|
||||
if( $this->msglib->postlib->parser->error != "" )
|
||||
{
|
||||
$this->msglib->send_form( 0, $this->ipsclass->lang[$this->msglib->postlib->parser->error] );
|
||||
$this->output .= $this->msglib->output;
|
||||
return;
|
||||
}
|
||||
|
||||
$this->ipsclass->input['msg_title'] = $this->msglib->postlib->parser->bad_words($this->ipsclass->input['msg_title']);
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -1636,7 +1667,7 @@ class messenger
|
||||
//-----------------------------------------
|
||||
|
||||
//$this->upload_id = $this->msglib->postlib->process_upload();
|
||||
$this->msglib->cc_users = $this->ipsclass->parse_clean_value( $this->ipsclass->txt_UNhtmlspecialchars($_POST['carbon_copy']) );
|
||||
$this->msglib->cc_users = $this->ipsclass->input['carbon_copy'];
|
||||
$this->msglib->from_member = $this->ipsclass->member;
|
||||
$this->msglib->msg_title = $this->ipsclass->input['msg_title'];
|
||||
$this->msglib->msg_post = $this->ipsclass->input['Post'];
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -2,26 +2,16 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Date: 2006-09-22 06:28:54 -0400 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -149,7 +139,7 @@ class forwardpage
|
||||
$this->email->ipsclass =& $this->ipsclass;
|
||||
$this->email->email_init();
|
||||
|
||||
$lang_to_use = 'ru';
|
||||
$lang_to_use = 'en';
|
||||
|
||||
foreach( $this->ipsclass->cache['languages'] as $l )
|
||||
{
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
|
||||
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
|
||||
</head><body>
|
||||
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
|
||||
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó «<b>Íàçàä</b>» â âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
|
||||
</body>
|
||||
</html>
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-10-19 09:37:14 -0500 (Thu, 19 Oct 2006) $
|
||||
| > $Revision: 657 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-12-17 18:07:20 -0500 (Mon, 17 Dec 2007) $
|
||||
| > $Revision: 1149 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Show all emo's / BB Tags module
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -140,7 +130,7 @@ class legends {
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'id, name, members_display_name',
|
||||
'from' => 'members',
|
||||
'where' => "members_l_display_name LIKE '".$this->ipsclass->input['username']."%'",
|
||||
'where' => "members_l_display_name LIKE '%".$this->ipsclass->input['username']."%'",
|
||||
'limit' => array( 0,101) ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
@@ -264,15 +254,15 @@ class legends {
|
||||
1 => array('[s]', '[/s]', $this->ipsclass->lang['bbc_ex1'] ),
|
||||
2 => array('[i]', '[/i]', $this->ipsclass->lang['bbc_ex1'] ),
|
||||
3 => array('[u]', '[/u]', $this->ipsclass->lang['bbc_ex1'] ),
|
||||
4 => array('[email]', '[/email]', 'user@domain.ru' ),
|
||||
5 => array('[email=user@domain.ru]', '[/email]', $this->ipsclass->lang['bbc_ex2'] ),
|
||||
6 => array('[url]', '[/url]', 'http://www.domain.ru' ),
|
||||
7 => array('[url=http://www.domain.ru]', '[/url]', $this->ipsclass->lang['bbc_ex2'] ),
|
||||
4 => array('[email]', '[/email]', 'user@domain.com' ),
|
||||
5 => array('[email=user@domain.com]', '[/email]', $this->ipsclass->lang['bbc_ex2'] ),
|
||||
6 => array('[url]', '[/url]', 'http://www.domain.com' ),
|
||||
7 => array('[url=http://www.domain.com]', '[/url]', $this->ipsclass->lang['bbc_ex2'] ),
|
||||
8 => array('[size=7]', '[/size]' , $this->ipsclass->lang['bbc_ex1'] ),
|
||||
9 => array('[font=times]', '[/font]', $this->ipsclass->lang['bbc_ex1'] ),
|
||||
10 => array('[color=red]', '[/color]', $this->ipsclass->lang['bbc_ex1'] ),
|
||||
11 => array('[img]', '[/img]', $this->ipsclass->vars['board_url'].'/'.$this->ipsclass->vars['img_url'].'/folder_post_icons/icon11.gif' ),
|
||||
12 => array('[list]', '[/list]', '[*]'.$this->ipsclass->lang['bbc_li'].' [*]'.$this->ipsclass->lang['bbc_li'] ),
|
||||
11 => array('[img]', '[/img]', ( !$this->ipsclass->vars['ipb_img_url'] ? $this->ipsclass->vars['board_url'] . '/' : '' ) . $this->ipsclass->vars['img_url'].'/folder_post_icons/icon11.gif' ),
|
||||
12 => array('[list]', '[/list]', '[*]'.$this->ipsclass->lang['bbc_li'].' [*]List Item'.$this->ipsclass->lang['bbc_li'] ),
|
||||
13 => array('[list=1]', '[/list]', '[*]'.$this->ipsclass->lang['bbc_li'].' [*]'.$this->ipsclass->lang['bbc_li'] ),
|
||||
14 => array('[list=a]', '[/list]', '[*]'.$this->ipsclass->lang['bbc_li'].' [*]'.$this->ipsclass->lang['bbc_li'] ),
|
||||
15 => array('[list=i]', '[/list]', '[*]'.$this->ipsclass->lang['bbc_li'].' [*]'.$this->ipsclass->lang['bbc_li'] ),
|
||||
@@ -307,83 +297,26 @@ class legends {
|
||||
// Add in custom bbcode
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'custom_bbcode' ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
while ( $row = $this->ipsclass->DB->fetch_row() )
|
||||
//$this->ipsclass->init_load_cache( array( 'bbcode' ) );
|
||||
|
||||
if( count($this->ipsclass->cache['bbcode']) )
|
||||
{
|
||||
$before = $row['bbcode_example'];
|
||||
|
||||
$t = $before;
|
||||
|
||||
$replace = explode( '{content}', $row['bbcode_replace'] );
|
||||
$preg_tag = preg_quote($row['bbcode_tag'], '#' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Parse the BBcode
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $row['bbcode_useoption'] )
|
||||
foreach( $this->ipsclass->cache['bbcode'] as $row )
|
||||
{
|
||||
preg_match_all( "#(\[".$preg_tag."=(?:"|&\#39;|\"\')?(.+?)(?:"|&\#39;|\"\')?\])(.+?)(\[/".$preg_tag."\])#si", $t, $match );
|
||||
$before = $row['bbcode_example'];
|
||||
|
||||
$t = $this->parser->pre_display_parse( $before );
|
||||
|
||||
for ( $i = 0; $i < count($match[0]); $i++)
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Does the option tag come first?
|
||||
//-----------------------------------------
|
||||
|
||||
$_option = 2;
|
||||
$_content = 3;
|
||||
|
||||
$_o = strpos( $row['bbcode_replace'], '{option}' );
|
||||
$_c = strpos( $row['bbcode_replace'], '{content}' );
|
||||
|
||||
if ( $_c < $_o )
|
||||
{
|
||||
$_option = 3;
|
||||
$_content = 2;
|
||||
}
|
||||
|
||||
# XSS Check: Bug ID: 980
|
||||
if ( $row['bbcode_tag'] == 'post' OR $row['bbcode_tag'] == 'topic' OR $row['bbcode_tag'] == 'snapback' )
|
||||
{
|
||||
$match[ $_option ][$i] = intval( $match[ $_option ][$i] );
|
||||
}
|
||||
|
||||
$tmp = $row['bbcode_replace'];
|
||||
$tmp = str_replace( '{option}' , $match[ $_option ][$i], $tmp );
|
||||
$tmp = str_replace( '{content}', $match[ $_content ][$i], $tmp );
|
||||
$t = str_replace( $match[0][$i], $tmp, $t );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
# Tricky.. match anything that's not a closing tag, or nothing
|
||||
preg_match_all( "#(\[$preg_tag\])(.+?)?(\[/$preg_tag\])#si", $t, $match );
|
||||
|
||||
for ( $i = 0; $i < count($match[0]); $i++)
|
||||
{
|
||||
# XSS Check: Bug ID: 980
|
||||
if ( $row['bbcode_tag'] == 'snapback' )
|
||||
{
|
||||
$match[2][$i] = intval( $match[2][$i] );
|
||||
}
|
||||
|
||||
$tmp = $row['bbcode_replace'];
|
||||
$tmp = str_replace( '{content}', $match[2][$i], $tmp );
|
||||
$t = str_replace( $match[0][$i], $tmp, $t );
|
||||
}
|
||||
$before = preg_replace( "#(\[".$row['bbcode_tag']."(?:[^\]]+)?\])#is", $this->ipsclass->compiled_templates['skin_legends']->wrap_tag("\\1"), $before );
|
||||
$before = preg_replace( "#(\[/".$row['bbcode_tag']."\])#is" , $this->ipsclass->compiled_templates['skin_legends']->wrap_tag("\\1"), $before );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_legends']->bbcode_row_header( $row['bbcode_title'], $row['bbcode_desc'] );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_legends']->bbcode_row( $before, $t );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_legends']->bbcode_row_footer();
|
||||
}
|
||||
|
||||
$before = preg_replace( "#(\[".$row['bbcode_tag']."(?:[^\]]+)?\])#is", $this->ipsclass->compiled_templates['skin_legends']->wrap_tag("\\1"), $before );
|
||||
$before = preg_replace( "#(\[/".$row['bbcode_tag']."\])#is" , $this->ipsclass->compiled_templates['skin_legends']->wrap_tag("\\1"), $before );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_legends']->bbcode_row_header( $row['bbcode_title'], $row['bbcode_desc'] );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_legends']->bbcode_row( $before, $t );
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_legends']->bbcode_row_footer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-05-02 17:29:35 -0400 (Wed, 02 May 2007) $
|
||||
| > $Revision: 959 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Multi Moderation Module
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -264,7 +254,7 @@ class mmod {
|
||||
$this->modfunc->auto_update = FALSE; // Turn off auto forum re-synch, we'll manually do it at the end
|
||||
|
||||
$this->modfunc->topic_add_reply(
|
||||
$this->parser->pre_db_parse( $this->mm_data['topic_reply_content'] )
|
||||
$this->parser->pre_display_parse( $this->parser->pre_db_parse( $this->mm_data['topic_reply_content'] ) )
|
||||
, array( 0 => array( $this->topic['tid'], $this->forum['id'] ) )
|
||||
, $this->mm_data['topic_reply_postcount']
|
||||
);
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2008-02-29 18:09:47 -0500 (Fri, 29 Feb 2008) $
|
||||
| > $Revision: 1197 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Topic display in printable format module
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -55,7 +45,7 @@ class printpage {
|
||||
var $mem_titles = array();
|
||||
var $mod_action = array();
|
||||
var $poll_html = "";
|
||||
var $parser = "";
|
||||
var $sort = 'pid';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
//
|
||||
@@ -72,13 +62,6 @@ class printpage {
|
||||
$this->ipsclass->load_language('lang_printpage');
|
||||
$this->ipsclass->load_template('skin_printpage');
|
||||
|
||||
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
|
||||
$this->parser = new parse_bbcode();
|
||||
$this->parser->ipsclass = $this->ipsclass;
|
||||
$this->parser->allow_update_caches = 1;
|
||||
|
||||
$this->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
|
||||
|
||||
//-----------------------------------------
|
||||
// Check the input
|
||||
//-----------------------------------------
|
||||
@@ -91,6 +74,8 @@ class printpage {
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'missing_files') );
|
||||
}
|
||||
|
||||
$this->sort = $this->ipsclass->vars['post_order_column'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Get the forum info based on the
|
||||
// forum ID, get the category name, ID,
|
||||
@@ -138,6 +123,11 @@ class printpage {
|
||||
|
||||
$this->ipsclass->forums->forums_check_access( $this->forum['id'], 1, 'topic' );
|
||||
|
||||
if( !$this->topic['approved'] AND !( $this->ipsclass->member['g_is_supmod'] OR $this->ipsclass->member['_moderator'][ $this->topic['forum_id'] ]['topic_q'] ) )
|
||||
{
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'no_view_topic') );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
//
|
||||
// Main logic engine
|
||||
@@ -220,7 +210,7 @@ class printpage {
|
||||
$this->ipsclass->DB->simple_construct( array ( 'select' => '*',
|
||||
'from' => 'posts',
|
||||
'where' => "topic_id={$this->topic['tid']} and queued=0",
|
||||
'order' => 'pid',
|
||||
'order' => $this->sort,
|
||||
'limit' => array(0, $max_posts)
|
||||
) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
@@ -387,10 +377,7 @@ class printpage {
|
||||
{
|
||||
if ($row['use_sig'] == 1)
|
||||
{
|
||||
$this->parser->parse_html = intval($this->ipsclass->vars['sig_allow_html']);
|
||||
$this->parser->parse_nl2br = 1;
|
||||
|
||||
$row['signature'] = $this->ipsclass->compiled_templates['skin_global']->signature_separator( $this->parser->pre_display_parse($poster['signature']) );
|
||||
$row['signature'] = $this->ipsclass->compiled_templates['skin_global']->signature_separator( $poster['signature'] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,11 +385,6 @@ class printpage {
|
||||
// Parse HTML tag on the fly
|
||||
//-----------------------------------------
|
||||
|
||||
$this->parser->parse_html = ( $this->forum['use_html'] and $this->ipsclass->cache['group_cache'][ $poster['mgroup'] ]['g_dohtml'] and $row['post_htmlstate'] ) ? 1 : 0;
|
||||
$this->parser->parse_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
|
||||
|
||||
$row['post'] = $this->parser->pre_display_parse( $row['post'] );
|
||||
|
||||
$posts_html .= $this->ipsclass->compiled_templates['skin_printpage']->pp_postentry( $poster, $row );
|
||||
}
|
||||
|
||||
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-11-27 17:07:12 -0600 (Mon, 27 Nov 2006) $
|
||||
| > $Revision: 741 $
|
||||
| > $Date: 2007-04-18 08:56:25 -0400 (Wed, 18 Apr 2007) $
|
||||
| > $Revision: 944 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -423,7 +413,7 @@ class stats {
|
||||
header("Content-type: image/gif");
|
||||
echo base64_decode("R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAhgAfAAAF/2AgjmRpnmiqrmzrvnAsz3Rt33iu7/x8mL8AgcEgiBINg2i4EAiJxtEhmlKYrCpCY5uYYXurQ8GUGAQeB8NDYFgU1oFkwopWO4/jrImKKrgLDXkwDWAsCyICC0VCCARYCQUKRggGAgwiDY54I5ABBwpFBVEGAz+AWD+JiwUGDV0FXQGwAapGia4iBwwGWgeEhSq/CwgHDpgkCwO/sLNxyGabEAgJCwSHAcaEDn4/hMPFAUhvA80KP9/GCgoFDkYApA5tv8AnBLHGAUoBlyKAzrKQYs3zx2kMPm1CDhF6UECAE4QBqiVQAqkAgIsQnOCrpm8dtoQBlNHrI7DELwJwlv8FPCYETsF/hBQYmOjsAIAHRgj9CjimYqxP/yANAQBhDKFm80aSaIZPHyEB7UQk83RgwLWnUUl0+kXIgAIHD0MKQHAJ4rpOPkeYLbArnFFZVgQkVSpiAJYiKEVcWpRLgVwzDga02cdnE1dM/LQJGOKsCFS3bpsdOOQ4G4EBDP+BRTCX7r4lDyDoK3LxYsMGAFBBwEmgNABBW1kOO3Zgdc6WEH6gLWDxYgMzKHPnW72gWy4ICzrTbWLCQBDP0KP3eT7Cr/Tr2PuZEJS9u/fv4MOLH1/3DowBTgrLQK9CALQR7lewnxEfTKcRh8SoYAD4xpQs1AkRIBncwdBMDxXdQcj/fQIU6IxVO1yWQoPmLfFeg3g0NIKESwiyGC28xTKChiCS8OEA6pWQgAMNPBCHa4A04IAVnUA4WRde5YNLjq3gaMVMGcoIgTVRbJMAVDICFMBXosXBgAOXrJjkkg40qcADLIaTJYsOiIhNAxAMgJkD+GD5wFcPIKBCAl244cxWP4AlhZrVxHSJJHYuqcWSd0ZRESEHTPTjWbMgQM6RxjwWyBnhWCHTY4qKYEwCauaogIg5HvCJEjIFkJEAnyr3UmyxQSaCJI3t4xche636GQOuZvhKF8ZUA8sAyI3BTEmHdbIrSzNBAJmvIt73zyyH/YPCbm++ZepHcgWAAFuaXjIt6wPVSkutLgXNMksRxsxiTVG/OtOrriuZy8CKw6L7EkvIsiTqJqQaZQQDd0QLpBaGNqAmv8r862/A3c7qyQKH3FppQAPwk80xCfxATMOS/uNiJweoOc2cniBQjbTGwbRmT2PklgB/Wyhw1KGmDukpNC6HKULMYpLsbRegKjHLAyuGGAcoXfTKc0pAn6GysJ0IMHQXqfAcJjsJpCSvCgWYUXU+BwhQRiYIOFH11c8FEXYuUpBNjiw1h5RH1mqHVOMYY4lNtihlIEJMXZCQcrXbBIwRxAD33Uq2J4PPMC95iNdweOKMN+7445BfFwIAOw==");
|
||||
exit();
|
||||
$temp = "34934mcksmdimdskmd==e3790216629e5a2aaf37070b32237f06==3jmimdm93m9md3m93d=279e=midnmnruer"; exit();
|
||||
$temp = "34934mcksmdimdskmd==<{%dyn.down.var.md5p1%}>==3jmimdm93m9md3m93d=<{%dyn.down.var.md5p2%}>=midnmnruer"; exit();
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-03-28 18:08:51 -0400 (Wed, 28 Mar 2007) $
|
||||
| > $Revision: 910 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Topic Tracker module
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -56,7 +46,11 @@ class tracker {
|
||||
|
||||
function auto_run($is_sub=0)
|
||||
{
|
||||
|
||||
if( !$this->ipsclass->input['t'] )
|
||||
{
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'missing_files') );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// $is_sub is a boolean operator.
|
||||
// If set to 1, we don't show the "topic subscribed" page
|
||||
@@ -116,6 +110,12 @@ class tracker {
|
||||
else
|
||||
{
|
||||
$row = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'tid, forum_id', 'from' => 'topics', 'where' => 'tid='.$this->ipsclass->input['t'] ) );
|
||||
|
||||
if( !is_array($row) OR !count($row) )
|
||||
{
|
||||
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'missing_files') );
|
||||
}
|
||||
|
||||
$this->topic = array_merge( $row, $this->ipsclass->forums->forum_by_id[ $this->ipsclass->input['f'] ] );
|
||||
}
|
||||
|
||||
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-11-21 13:35:57 -0600 (Tue, 21 Nov 2006) $
|
||||
| > $Revision: 737 $
|
||||
| > $Date: 2008-01-25 10:38:16 -0500 (Fri, 25 Jan 2008) $
|
||||
| > $Revision: 1176 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -315,7 +305,7 @@ class warn {
|
||||
// Done...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->view_log();
|
||||
$this->ipsclass->boink_it( $this->ipsclass->base_url."act=warn&mid={$this->warn_member['id']}&CODE=view" );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -528,7 +518,7 @@ class warn {
|
||||
|
||||
$save['wlog_contact'] = $this->ipsclass->input['contactmethod'];
|
||||
$save['wlog_contact_content'] = "<subject>{$this->ipsclass->input['subject']}</subject><content>{$this->ipsclass->input['contact']}</content>";
|
||||
$save['wlog_contact_content'] = $this->parser->pre_db_parse( $save['wlog_contact_content'] );
|
||||
$save['wlog_contact_content'] = $this->parser->pre_display_parse( $this->parser->pre_db_parse( $save['wlog_contact_content'] ) );
|
||||
|
||||
if ( trim($this->ipsclass->input['subject']) == "" )
|
||||
{
|
||||
@@ -541,7 +531,7 @@ class warn {
|
||||
$this->parser->parse_smilies = 0;
|
||||
$this->parser->parse_html = 1;
|
||||
$this->parser->parse_bbcode = 1;
|
||||
$this->ipsclass->input['contact'] = $this->parser->pre_db_parse( $this->ipsclass->input['contact'] );
|
||||
$this->ipsclass->input['contact'] = $this->parser->pre_display_parse( $this->parser->pre_db_parse( $this->ipsclass->input['contact'] ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Send the email
|
||||
@@ -574,10 +564,21 @@ class warn {
|
||||
|
||||
$this->lib->init();
|
||||
|
||||
$this->ipsclass->input['Post'] = $this->lib->postlib->han_editor->process_raw_post( 'contact' );
|
||||
|
||||
$this->lib->postlib->parser->parse_smilies = 1;
|
||||
$this->lib->postlib->parser->parse_nl2br = 1;
|
||||
$this->lib->postlib->parser->parse_html = $this->ipsclass->vars['msg_allow_html'];
|
||||
$this->lib->postlib->parser->parse_bbcode = $this->ipsclass->vars['msg_allow_code'];
|
||||
|
||||
$this->ipsclass->input['Post'] = $this->lib->postlib->parser->pre_db_parse( $this->ipsclass->input['Post'] );
|
||||
$this->ipsclass->input['Post'] = $this->lib->postlib->parser->pre_display_parse( $this->ipsclass->input['Post'] );
|
||||
$this->ipsclass->input['Post'] = $this->lib->postlib->parser->bad_words( $this->ipsclass->input['Post'] );
|
||||
|
||||
$this->lib->to_by_id = $this->warn_member['id'];
|
||||
$this->lib->from_member = $this->ipsclass->member;
|
||||
$this->lib->msg_title = $this->ipsclass->input['subject'];
|
||||
$this->lib->msg_post = $this->ipsclass->remove_tags($this->ipsclass->input['contact']);
|
||||
$this->lib->msg_post = $this->ipsclass->remove_tags($this->ipsclass->input['Post']);
|
||||
$this->lib->force_pm = 1;
|
||||
|
||||
$this->lib->send_pm();
|
||||
@@ -607,28 +608,36 @@ class warn {
|
||||
$save['wlog_notes'] .= "<post>{$this->ipsclass->input['post_value']},{$this->ipsclass->input['post_unit']},{$this->ipsclass->input['post_indef']} </post>";
|
||||
$save['wlog_notes'] .= "<susp>{$this->ipsclass->input['susp_value']},{$this->ipsclass->input['susp_unit']}</susp>";
|
||||
|
||||
if ( $this->ipsclass->input['mod_indef'] == 1 )
|
||||
if ( $this->can_mod_q )
|
||||
{
|
||||
$mod_queue = 1;
|
||||
}
|
||||
elseif ( $this->ipsclass->input['mod_value'] > 0 )
|
||||
{
|
||||
$mod_queue = $this->ipsclass->hdl_ban_line( array( 'timespan' => intval($this->ipsclass->input['mod_value']), 'unit' => $this->ipsclass->input['mod_unit'] ) );
|
||||
if ( $this->ipsclass->input['mod_indef'] == 1 )
|
||||
{
|
||||
$mod_queue = 1;
|
||||
}
|
||||
elseif ( $this->ipsclass->input['mod_value'] > 0 )
|
||||
{
|
||||
$mod_queue = $this->ipsclass->hdl_ban_line( array( 'timespan' => intval($this->ipsclass->input['mod_value']), 'unit' => $this->ipsclass->input['mod_unit'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( $this->ipsclass->input['post_indef'] == 1 )
|
||||
if ( $this->can_rem_post )
|
||||
{
|
||||
$restrict_post = 1;
|
||||
}
|
||||
elseif ( $this->ipsclass->input['post_value'] > 0 )
|
||||
{
|
||||
$restrict_post = $this->ipsclass->hdl_ban_line( array( 'timespan' => intval($this->ipsclass->input['post_value']), 'unit' => $this->ipsclass->input['post_unit'] ) );
|
||||
if ( $this->ipsclass->input['post_indef'] == 1 )
|
||||
{
|
||||
$restrict_post = 1;
|
||||
}
|
||||
elseif ( $this->ipsclass->input['post_value'] > 0 )
|
||||
{
|
||||
$restrict_post = $this->ipsclass->hdl_ban_line( array( 'timespan' => intval($this->ipsclass->input['post_value']), 'unit' => $this->ipsclass->input['post_unit'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $this->ipsclass->input['susp_value'] > 0 )
|
||||
if( $this->can_ban )
|
||||
{
|
||||
$susp = $this->ipsclass->hdl_ban_line( array( 'timespan' => intval($this->ipsclass->input['susp_value']), 'unit' => $this->ipsclass->input['susp_unit'] ) );
|
||||
if ( $this->ipsclass->input['susp_value'] > 0 )
|
||||
{
|
||||
$susp = $this->ipsclass->hdl_ban_line( array( 'timespan' => intval($this->ipsclass->input['susp_value']), 'unit' => $this->ipsclass->input['susp_unit'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
$save['wlog_mid'] = $this->warn_member['id'];
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2008-04-21 17:32:17 -0400 (Mon, 21 Apr 2008) $
|
||||
| > $Revision: 1249 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Moderation 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();
|
||||
}
|
||||
|
||||
@@ -218,6 +208,10 @@ class moderate
|
||||
{
|
||||
$this->trash_forum = $this->ipsclass->vars['forum_trash_can_use_mod'] ? $this->ipsclass->vars['forum_trash_can_id'] : 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->trash_forum = $this->ipsclass->vars['forum_trash_can_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -373,6 +367,8 @@ class moderate
|
||||
$parser->parse_nl2br = 1;
|
||||
$parser->parse_smilies = 0;
|
||||
$parser->parse_bbcode = $this->ipsclass->vars['sig_allow_ibc'];
|
||||
|
||||
$this->ipsclass->load_language( 'lang_post' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Got anyfink?
|
||||
@@ -479,7 +475,7 @@ class moderate
|
||||
//-----------------------------------------
|
||||
else
|
||||
{
|
||||
$this->ipsclass->input['signature'] = $parser->pre_db_parse( $this->ipsclass->input['signature'] );
|
||||
$this->ipsclass->input['signature'] = $parser->pre_display_parse( $parser->pre_db_parse( $this->ipsclass->input['signature'] ) );
|
||||
|
||||
if ($parser->error != "")
|
||||
{
|
||||
@@ -513,20 +509,20 @@ class moderate
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
$this->ipsclass->DB->do_update( 'profile_portal', array( 'pp_main_photo' => '',
|
||||
'pp_main_width' => '',
|
||||
'pp_main_height' => '',
|
||||
'pp_main_width' => 0,
|
||||
'pp_main_height' => 0,
|
||||
'pp_thumb_photo' => '',
|
||||
'pp_thumb_width' => '',
|
||||
'pp_thumb_height' => '' ), 'pp_member_id='.$mid );
|
||||
'pp_thumb_width' => 0,
|
||||
'pp_thumb_height' => 0 ), 'pp_member_id='.$mid );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->DB->do_insert( 'profile_portal', array( 'pp_main_photo' => '',
|
||||
'pp_main_width' => '',
|
||||
'pp_main_height' => '',
|
||||
'pp_main_width' => 0,
|
||||
'pp_main_height' => 0,
|
||||
'pp_thumb_photo' => '',
|
||||
'pp_thumb_width' => '',
|
||||
'pp_thumb_height' => '',
|
||||
'pp_thumb_width' => 0,
|
||||
'pp_thumb_height' => 0,
|
||||
'pp_member_id' => $mid ) );
|
||||
}
|
||||
|
||||
@@ -996,7 +992,7 @@ class moderate
|
||||
|
||||
if ( count($this->pids) )
|
||||
{
|
||||
$this->ipsclass->DB->do_update( 'posts', array( 'queued' => $queued_post ), 'pid IN ('. implode(",", $this->pids) .')' );
|
||||
$this->ipsclass->DB->do_update( 'posts', array( 'queued' => $queued_post ), 'topic_id=' . $this->topic['tid'] . ' AND pid IN ('. implode(",", $this->pids) .')' );
|
||||
}
|
||||
|
||||
if( $approve )
|
||||
@@ -1076,7 +1072,7 @@ class moderate
|
||||
$this->ipsclass->DB->simple_construct( array(
|
||||
'select' => 'post, pid, post_date, author_id, author_name',
|
||||
'from' => 'posts',
|
||||
'where' => "pid IN (".implode(",", $this->pids).")",
|
||||
'where' => 'topic_id=' . $this->topic['tid'] . ' AND pid IN (' . implode( ',', $this->pids) . ')',
|
||||
'order' => 'post_date'
|
||||
) );
|
||||
|
||||
@@ -1165,10 +1161,7 @@ class moderate
|
||||
// Do we choose too many?
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(pid) as cnt', 'from' => 'posts', 'where' => "topic_id={$this->topic['tid']}" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
$count = $this->ipsclass->DB->fetch_row();
|
||||
$count = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'count(pid) as cnt', 'from' => 'posts', 'where' => "topic_id={$this->topic['tid']}" ) );
|
||||
|
||||
if ( $affected_ids >= $count['cnt'] )
|
||||
{
|
||||
@@ -1217,7 +1210,7 @@ class moderate
|
||||
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'pid, queued',
|
||||
'from' => 'posts',
|
||||
'where' => "pid IN($pid_string)",
|
||||
'where' => 'topic_id=' . $this->topic['tid'] . " AND pid IN($pid_string)",
|
||||
'order' => 'pid ASC',
|
||||
'limit' => array(0,1),
|
||||
) );
|
||||
@@ -1263,7 +1256,7 @@ class moderate
|
||||
// Move the posts
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->do_update( 'posts', array( 'topic_id' => $new_topic_id, 'new_topic' => 0 ), "pid IN($pid_string)" );
|
||||
$this->ipsclass->DB->do_update( 'posts', array( 'topic_id' => $new_topic_id, 'new_topic' => 0 ), 'topic_id=' . $this->topic['tid'] . " AND pid IN($pid_string)" );
|
||||
|
||||
//-----------------------------------------
|
||||
// Move the posts
|
||||
@@ -1440,7 +1433,7 @@ class moderate
|
||||
$this->parser->parse_html = 0;
|
||||
$this->parser->parse_bbcode = 1;
|
||||
|
||||
$post = $this->parser->pre_db_parse( $this->ipsclass->input['Post'] );
|
||||
$post = $this->parser->pre_display_parse( $this->parser->pre_db_parse( $this->ipsclass->input['Post'] ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Post to keep...
|
||||
@@ -1680,7 +1673,7 @@ class moderate
|
||||
$this->modfunc->forum_recount( $this->forum['id'] );
|
||||
$this->modfunc->stats_recount();
|
||||
|
||||
$this->moderate_log( sprintf( $this->ipsclass->lang['acp_approve_topic'], $this->topic['tid'] ) );
|
||||
$this->moderate_log( sprintf( $type == 'approve' ? $this->ipsclass->lang['acp_approve_topic'] : $this->ipsclass->lang['acp_unapprove_topic'], $this->topic['tid'] ) );
|
||||
|
||||
$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['redirect_modified'], "showtopic=".$this->topic['tid']."&st=".intval($this->ipsclass->input['st']) );
|
||||
}
|
||||
@@ -1801,7 +1794,7 @@ class moderate
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->input['check'] = 0;
|
||||
$this->ipsclass->input['dateline'] = round((time()-$this->ipsclass->input['dateline'])/24/60/60);
|
||||
$this->ipsclass->input['dateline'] = $this->ipsclass->input['dateline'] > 0 ? round((time()-$this->ipsclass->input['dateline'])/24/60/60) : 0;
|
||||
$this->prune_start( $this->ipsclass->compiled_templates['skin_mod']->mod_simple_page( $this->ipsclass->lang['cp_results'], $this->ipsclass->lang['cp_result_move']. ($max) ) );
|
||||
}
|
||||
else
|
||||
@@ -1965,6 +1958,13 @@ class moderate
|
||||
$this->ipsclass->input['determine'] = isset($this->ipsclass->input['determine']) ? $this->ipsclass->input['determine'] : '';
|
||||
$this->ipsclass->input['dateline'] = isset($this->ipsclass->input['dateline']) ? $this->ipsclass->input['dateline'] : '';
|
||||
|
||||
// If length of dateline is greater than 8, assume it's a timestamp
|
||||
|
||||
if( strlen( $this->ipsclass->input['dateline'] ) > 8 )
|
||||
{
|
||||
$this->ipsclass->input['dateline'] = round( ( time() - $this->ipsclass->input['dateline']) /60/60/24 );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Are we checking first?
|
||||
//-----------------------------------------
|
||||
@@ -1974,7 +1974,7 @@ class moderate
|
||||
$link = "&pergo=".$this->ipsclass->input['pergo'];
|
||||
$link_text = $this->ipsclass->lang['cp_prune_dorem'];
|
||||
|
||||
$tcount = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'COUNT(*) as tcount', 'from' => 'topics', 'where' => "approved=1 and forum_id={$this->forum['id']}" ) );
|
||||
$tcount = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'COUNT(*) as tcount', 'from' => 'topics', 'where' => "forum_id={$this->forum['id']}" ) );
|
||||
|
||||
$db_query = "";
|
||||
|
||||
@@ -1996,7 +1996,7 @@ class moderate
|
||||
|
||||
if ( $this->ipsclass->input['member'] )
|
||||
{
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'id', 'from' => 'members', 'where' => "name='".$this->ipsclass->input['member']."'" ) );
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'id', 'from' => 'members', 'where' => "members_display_name='".$this->ipsclass->input['member']."'" ) );
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
if (! $mem = $this->ipsclass->DB->fetch_row() )
|
||||
@@ -2035,7 +2035,7 @@ class moderate
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'COUNT(*) as count',
|
||||
'from' => 'topics',
|
||||
'where' => "approved=1 and forum_id='".$this->forum['id']."'" . $db_query ) );
|
||||
'where' => "forum_id='".$this->forum['id']."'" . $db_query ) );
|
||||
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
@@ -2200,7 +2200,7 @@ class moderate
|
||||
{
|
||||
$pass = 1;
|
||||
}
|
||||
else if ($this->moderator['delete_topic'] == 1)
|
||||
else if ($this->moderator['split_merge'] == 1)
|
||||
{
|
||||
$pass = 1;
|
||||
}
|
||||
@@ -2348,7 +2348,7 @@ class moderate
|
||||
|
||||
if ($source_id == "")
|
||||
{
|
||||
$this->moderate_error('cp_error_move');
|
||||
$this->moderate_error('forum_no_post_allowed');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2356,7 +2356,7 @@ class moderate
|
||||
|
||||
if ($dest_id == "" or $dest_id == -1)
|
||||
{
|
||||
$this->moderate_error('cp_error_move');
|
||||
$this->moderate_error('forum_no_post_allowed');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2364,7 +2364,7 @@ class moderate
|
||||
|
||||
if ($source_id == $dest_id)
|
||||
{
|
||||
$this->moderate_error('cp_error_move');
|
||||
$this->moderate_error('move_same_forum');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2375,7 +2375,7 @@ class moderate
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() != 2 )
|
||||
{
|
||||
$this->moderate_error('cp_error_move');
|
||||
$this->moderate_error('move_same_forum');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2634,7 +2634,7 @@ class moderate
|
||||
$this->parser->parse_bbcode = 1;
|
||||
|
||||
$this->modfunc->topic_add_reply(
|
||||
$this->parser->pre_db_parse( $this->mm_data['topic_reply_content'] )
|
||||
$this->parser->pre_display_parse( $this->parser->pre_db_parse( $this->mm_data['topic_reply_content'] ) )
|
||||
, $move_ids
|
||||
, $this->mm_data['topic_reply_postcount']
|
||||
);
|
||||
@@ -2850,9 +2850,8 @@ class moderate
|
||||
|
||||
$this->page_title = $this->topic['title'];
|
||||
|
||||
$this->nav = array ( "<a href='{$this->base_url}showforum={$this->forum['id']}'>{$this->forum['name']}</a>",
|
||||
"<a href='{$this->base_url}showtopic={$this->topic['tid']}'>{$this->topic['title']}</a>"
|
||||
);
|
||||
$this->nav = $this->ipsclass->forums->forums_breadcrumb_nav( $topic['forum_id'] );
|
||||
$this->nav[] = "<a href='{$this->base_url}showtopic={$this->topic['tid']}'>{$this->topic['title']}</a>";
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-11-08 16:47:55 -0600 (Wed, 08 Nov 2006) $
|
||||
| > $Revision: 721 $
|
||||
| > $Date: 2007-12-17 18:07:20 -0500 (Mon, 17 Dec 2007) $
|
||||
| > $Revision: 1149 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -502,7 +492,14 @@ class online
|
||||
{
|
||||
$deny = 1;
|
||||
|
||||
$deny = $this->ipsclass->forums->forums_quick_check_access( $fid );
|
||||
if( $tid > 0 )
|
||||
{
|
||||
$deny = $this->ipsclass->forums->forums_quick_check_access( $fid, 'read_perms' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$deny = $this->ipsclass->forums->forums_quick_check_access( $fid );
|
||||
}
|
||||
|
||||
if ($deny != 1)
|
||||
{
|
||||
|
||||
@@ -1,24 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2005 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
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionboard.com/?license
|
||||
@@ -33,8 +23,8 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
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();
|
||||
}
|
||||
|
||||
class paysubscriptions
|
||||
@@ -95,7 +85,6 @@ class paysubscriptions
|
||||
$this->ipsclass->load_language('lang_subscriptions' );
|
||||
|
||||
$this->ipsclass->load_template('skin_subscriptions');
|
||||
$this->ipsclass->load_template('skin_ucp');
|
||||
|
||||
//--------------------------------------------
|
||||
// Load extra db cache file
|
||||
@@ -150,9 +139,9 @@ class paysubscriptions
|
||||
{
|
||||
$fj = $this->ipsclass->build_forum_jump();
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_ucp']->CP_end();
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_subscriptions']->CP_end();
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_ucp']->forum_jump( $fj );
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_subscriptions']->forum_jump( $fj );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -698,6 +687,9 @@ class paysubscriptions
|
||||
|
||||
require_once( ROOT_PATH."sources/lib/func_usercp.php" );
|
||||
|
||||
$this->ipsclass->load_template( 'skin_ucp' );
|
||||
$this->ipsclass->load_language( 'lang_ucp' );
|
||||
|
||||
//-----------------------------------------
|
||||
// INIT da func
|
||||
//-----------------------------------------
|
||||
@@ -765,9 +757,9 @@ class paysubscriptions
|
||||
|
||||
$fj = $this->ipsclass->build_forum_jump();
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_ucp']->CP_end();
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_subscriptions']->CP_end();
|
||||
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_ucp']->forum_jump($fj, $links);
|
||||
$this->output .= $this->ipsclass->compiled_templates['skin_subscriptions']->forum_jump($fj, $links);
|
||||
|
||||
$this->nav[] = "<a href='".$this->ipsclass->base_url."act=UserCP&CODE=00'>".$this->ipsclass->lang['t_title']."</a>";
|
||||
$this->nav[] = "<a href='".$this->ipsclass->base_url."act=paysubs&CODE=index'>".$this->ipsclass->lang['s_page_title']."</a>";
|
||||
@@ -977,7 +969,7 @@ class paysubscriptions
|
||||
|
||||
if ( $this->can_do_upgrades != 1 )
|
||||
{
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'subs_no_upgrade' ) );
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'subs_no_upgrade_poss' ) );
|
||||
}
|
||||
|
||||
//---------------------------------------
|
||||
|
||||
@@ -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 - 2004 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
|
||||
| Email: matt@invisionpower.com
|
||||
| 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)
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB Portal Core Module
|
||||
@@ -166,17 +157,6 @@ class portal
|
||||
$this->ipsclass->load_language('lang_portal');
|
||||
$this->ipsclass->load_template('skin_portal');
|
||||
|
||||
//-----------------------------------------
|
||||
// Load and config the post parser
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
|
||||
$this->portal_object['parser'] = new parse_bbcode();
|
||||
$this->portal_object['parser']->ipsclass =& $this->ipsclass;
|
||||
$this->portal_object['parser']->allow_update_caches = 1;
|
||||
|
||||
$this->portal_object['parser']->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
|
||||
|
||||
//-----------------------------------------
|
||||
// Get forums we're allowed to read
|
||||
// - Use forum cache incase we have NO perms
|
||||
|
||||
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-10-18 15:45:17 -0400 (Thu, 18 Oct 2007) $
|
||||
| > $Revision: 1135 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > 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();
|
||||
}
|
||||
|
||||
@@ -336,6 +326,7 @@ class post
|
||||
$this->ipsclass->input['UserName'] = trim($this->ipsclass->input['UserName']);
|
||||
$this->ipsclass->input['UserName'] = str_replace( "<br />", "", $this->ipsclass->input['UserName']);
|
||||
$this->ipsclass->input['UserName'] = $this->ipsclass->input['UserName'] ? $this->ipsclass->input['UserName'] : $this->ipsclass->lang['global_guestname'];
|
||||
$this->ipsclass->input['UserName'] = (strlen($this->ipsclass->input['UserName']) > $this->ipsclass->vars['max_user_name_length']) ? $this->ipsclass->lang['global_guestname'] : $this->ipsclass->input['UserName'];
|
||||
|
||||
if ($this->ipsclass->input['UserName'] != $this->ipsclass->lang['global_guestname'])
|
||||
{
|
||||
|
||||
+4369
-4308
File diff suppressed because it is too large.
Load diff
+2763
-2896
File diff suppressed because it is too large.
Load diff
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-05-01 14:00:44 -0400 (Tue, 01 May 2007) $
|
||||
| > $Revision: 958 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > XML OUT Functions for XmlHttpRequest functions
|
||||
@@ -36,7 +26,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();
|
||||
}
|
||||
|
||||
@@ -51,7 +41,7 @@ class rssout
|
||||
|
||||
function rssout()
|
||||
{
|
||||
$this->xml_header = '<?xml version="1.0" encoding="WINDOWS-1251"?'.'>';
|
||||
$this->xml_header = '<?xml version="1.0" encoding="ISO-8859-1"?'.'>';
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -91,7 +81,7 @@ class rssout
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$cal_id = intval( $_REQUEST['id'] );
|
||||
$cal_id = intval( $this->ipsclass->input['id'] );
|
||||
$rss_data = array();
|
||||
$to_print = '';
|
||||
$expires = time();
|
||||
@@ -165,7 +155,7 @@ class rssout
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$rss_export_id = intval( $_REQUEST['id'] );
|
||||
$rss_export_id = intval( $this->ipsclass->input['id'] );
|
||||
$rss_data = array();
|
||||
$to_print = '';
|
||||
$expires = time();
|
||||
|
||||
+1995
-2013
File diff suppressed because it is too large.
Load diff
@@ -2,26 +2,16 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Date: 2006-09-22 06:28:54 -0400 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
+2600
-2881
File diff suppressed because it is too large.
Load diff
+4131
-3936
File diff suppressed because it is too large.
Load diff
+2290
-2352
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user