Version 2.2.2
This commit is contained in:
1 parent
22f1b963ee
commit
a3bb603c96
858 files changed
+479463
-188140
No files matched your search
@@ -1,15 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionboard.com
|
||||
| ========================================
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@ibforums.com
|
||||
| Licence Info: http://www.invisionpower.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 ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Moderator Core Functions
|
||||
@@ -23,11 +30,12 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class func_mod
|
||||
{
|
||||
var $ipsclass;
|
||||
@@ -204,7 +212,7 @@ class func_mod
|
||||
$this->rebuild_topic($tid);
|
||||
}
|
||||
|
||||
$this->add_moderate_log("", "", "", $pid, "Deleted posts ($pid)");
|
||||
$this->add_moderate_log("", "", "", $pid, "Óäàëåííûå ñîîáùåíèÿ ñ id ($pid)");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -973,16 +981,16 @@ class func_mod
|
||||
//-----------------------------------------
|
||||
|
||||
$dbs = array(
|
||||
'last_poster_id' => $last_post['last_poster_id'],
|
||||
'last_poster_id' => intval($last_post['last_poster_id']),
|
||||
'last_poster_name' => $last_post['last_poster_name'],
|
||||
'last_post' => $last_post['last_post'],
|
||||
'last_post' => intval($last_post['last_post']),
|
||||
'last_title' => $last_post['title'],
|
||||
'last_id' => $last_post['tid'],
|
||||
'last_id' => intval($last_post['tid']),
|
||||
'topics' => intval($topics['count']),
|
||||
'posts' => intval($posts['replies']),
|
||||
'queued_topics' => intval($queued_topics['count']),
|
||||
'queued_posts' => intval($queued_posts['replies']),
|
||||
'newest_id' => $newest_topic['tid'],
|
||||
'newest_id' => intval($newest_topic['tid']),
|
||||
'newest_title' => $newest_topic['title'],
|
||||
);
|
||||
|
||||
@@ -992,7 +1000,8 @@ class func_mod
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->force_data_type = array( 'last_poster_name' => 'string',
|
||||
'last_title' => 'string' );
|
||||
'last_title' => 'string',
|
||||
'newest_title' => 'string' );
|
||||
|
||||
$this->ipsclass->DB->do_update( 'forums', $dbs, "id=".$fid );
|
||||
|
||||
@@ -1313,21 +1322,18 @@ class func_mod
|
||||
{
|
||||
$this->ipsclass->DB->force_data_type = array( 'member_name' => 'string' );
|
||||
|
||||
$qstring = $this->ipsclass->my_getenv('QUERY_STRING');
|
||||
$qstring = htmlentities( strip_tags( str_replace( '\\', '', $qstring ) ) );
|
||||
|
||||
$this->ipsclass->DB->do_insert( 'moderator_logs', array (
|
||||
'forum_id' => $fid,
|
||||
'topic_id' => $tid,
|
||||
'post_id' => $pid,
|
||||
'forum_id' => intval($fid),
|
||||
'topic_id' => intval($tid),
|
||||
'post_id' => intval($pid),
|
||||
'member_id' => $this->ipsclass->member['id'],
|
||||
'member_name' => $this->ipsclass->member['members_display_name'],
|
||||
'ip_address' => $this->ipsclass->input['IP_ADDRESS'],
|
||||
'http_referer'=> $this->ipsclass->my_getenv('HTTP_REFERER'),
|
||||
'http_referer'=> htmlspecialchars($this->ipsclass->my_getenv('HTTP_REFERER')),
|
||||
'ctime' => time(),
|
||||
'topic_title' => $t_title,
|
||||
'action' => $mod_title,
|
||||
'query_string'=> $qstring,
|
||||
'query_string'=> htmlspecialchars($this->ipsclass->my_getenv('QUERY_STRING')),
|
||||
) );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user