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-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'];
|
||||
|
||||
Reference in new issue
Block a user