Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+84 -77
View File
@@ -2,27 +2,17 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
| > $Revision: 567 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
@@ -38,7 +28,7 @@
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
exit();
}
@@ -61,16 +51,7 @@ class ad_emailerror
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Email Error Logs' );
//-----------------------------------------
// Make sure we're a root admin, or else!
@@ -78,7 +59,7 @@ class ad_emailerror
if ($this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'])
{
//$this->ipsclass->admin->error("Èçâèíèòå, ýòà ôóíêöèÿ äîñòóïíà òîëüêî îñíîâíûì Àäìèíèñòðàòîðàì");
//$this->ipsclass->admin->error("Sorry, these functions are for the root admin group only");
}
switch($this->ipsclass->input['code'])
@@ -116,7 +97,7 @@ class ad_emailerror
{
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID àäðåñà email, âåðíèòåñü è ïîïðîáóéòå åùå ðàç");
$this->ipsclass->admin->error("Could not resolve the email ID, please try again");
}
$id = intval($this->ipsclass->input['id']);
@@ -126,7 +107,7 @@ class ad_emailerror
if ( ! $row = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID àäðåñà email, âåðíèòåñü è ïîïðîáóéòå åùå ðàç ($id)");
$this->ipsclass->admin->error("Could not resolve the email ID, please try again ($id)");
}
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "100%" );
@@ -136,21 +117,21 @@ class ad_emailerror
$row['mlog_date'] = $this->ipsclass->admin->get_date( $row['mlog_date'], 'LONG' );
$row['mlog_content'] = nl2br($row['mlog_content']);
$row['mlog_msg'] = $row['mlog_msg'] ? $row['mlog_msg'] : '<em>Íåò èíôîðìàöèè</em>';
$row['mlog_code'] = $row['mlog_code'] ? $row['mlog_code'] : '<em>Íåò èíôîðìàöèè</em>';
$row['mlog_smtp_error'] = $row['mlog_smtp_error'] ? $row['mlog_smtp_error'] : '<em>Íåò èíôîðìàöèè</em>';
$row['mlog_msg'] = $row['mlog_msg'] ? $row['mlog_msg'] : '<em>No Info</em>';
$row['mlog_code'] = $row['mlog_code'] ? $row['mlog_code'] : '<em>No Info</em>';
$row['mlog_smtp_error'] = $row['mlog_smtp_error'] ? $row['mlog_smtp_error'] : '<em>No Info</em>';
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<strong>Îò:</strong> &lt;{$row['mlog_from']}&gt;
<br /><strong>Êîìó:</strong> &lt;{$row['mlog_to']}&gt;
<br /><strong>Îòïðàâëåíî:</strong> {$row['mlog_date']}
<br /><strong>Òåìà:</strong> {$row['mlog_subject']}
"<strong>From:</strong> &lt;{$row['mlog_from']}&gt;
<br /><strong>To:</strong> &lt;{$row['mlog_to']}&gt;
<br /><strong>Sent:</strong> {$row['mlog_date']}
<br /><strong>Subject:</strong> {$row['mlog_subject']}
<hr />
<br />{$row['mlog_content']}....
<hr />
<br />IPB ÎØÈÁÊÀ: {$row['mlog_msg']}
<br />SMTP ÊÎÄ: {$row['mlog_code']}
<br />SMTP ÎØÈÁÊÀ: {$row['mlog_smtp_error']}
<br />IPB ERROR: {$row['mlog_msg']}
<br />SMTP CODE: {$row['mlog_code']}
<br />SMTP ERROR: {$row['mlog_smtp_error']}
"
) );
@@ -184,17 +165,19 @@ class ad_emailerror
}
}
$ids = $this->ipsclass->clean_int_array( $ids );
//-----------------------------------------
if ( count($ids) < 1 )
{
$this->ipsclass->admin->error("Âû äîëæíû âûáðàòü õîòü îäíó çàïèñü ëîãà äëÿ óäàëåíèÿ");
$this->ipsclass->admin->error("You did not select any email log entries to approve or delete");
}
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'mail_error_logs', 'where' => "mlog_id IN (".implode(',', $ids ).")" ) );
}
$this->ipsclass->admin->save_log("Æóðíàë e-mail îøèáîê î÷èùåí");
$this->ipsclass->admin->save_log("Removed email error log entries");
$this->ipsclass->boink_it($this->ipsclass->base_url."&{$this->ipsclass->form_code}");
}
@@ -209,10 +192,10 @@ class ad_emailerror
$form_array = array();
$start = intval($this->ipsclass->input['st']);
$start = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0;
$this->ipsclass->admin->page_detail = "Æóðíàë ñîõðàíåííûõ e-mail îøèáîê";
$this->ipsclass->admin->page_title = "Óïðàâëåíèå ëîãàìè îøèáîê ïî÷òû";
$this->ipsclass->admin->page_detail = "Stored email error logs";
$this->ipsclass->admin->page_title = "Email Error Logs Manager";
//-----------------------------------------
// Check URL parameters
@@ -221,9 +204,9 @@ class ad_emailerror
$url_query = array();
$db_query = array();
if ( $this->ipsclass->input['type'] != "" )
if ( isset($this->ipsclass->input['type']) AND $this->ipsclass->input['type'] != "" )
{
$this->ipsclass->admin->page_title .= " (Ðåçóëüòàòû ïîèñêà)";
$this->ipsclass->admin->page_title .= " (Search Results)";
switch( $this->ipsclass->input['type'] )
{
@@ -231,7 +214,7 @@ class ad_emailerror
$string = urldecode($this->ipsclass->input['string']);
if ( $string == "" )
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè õîòü ÷òî-íèáóäü");
$this->ipsclass->admin->error("You must enter something to search by");
}
$url_query[] = 'type='.$this->ipsclass->input['type'];
$url_query[] = 'string='.urlencode($string);
@@ -241,7 +224,7 @@ class ad_emailerror
$string = urldecode($this->ipsclass->input['string']);
if ( $string == "" )
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè õîòü ÷òî-íèáóäü");
$this->ipsclass->admin->error("You must enter something to search by");
}
$url_query[] = 'type='.$this->ipsclass->input['type'];
$url_query[] = 'string='.urlencode($string);
@@ -251,7 +234,7 @@ class ad_emailerror
$string = urldecode($this->ipsclass->input['string']);
if ( $string == "" )
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè õîòü ÷òî-íèáóäü");
$this->ipsclass->admin->error("You must enter something to search by");
}
$url_query[] = 'type='.$this->ipsclass->input['type'];
$url_query[] = 'string='.urlencode($string);
@@ -261,7 +244,7 @@ class ad_emailerror
$string = urldecode($this->ipsclass->input['string']);
if ( $string == "" )
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè õîòü ÷òî-íèáóäü");
$this->ipsclass->admin->error("You must enter something to search by");
}
$url_query[] = 'type='.$this->ipsclass->input['type'];
$url_query[] = 'string='.urlencode($string);
@@ -296,30 +279,58 @@ class ad_emailerror
$count = $this->ipsclass->DB->fetch_row();
$links = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $count['cnt'],
$links = $this->ipsclass->adskin->build_pagelinks( array( 'TOTAL_POSS' => $count['cnt'],
'PER_PAGE' => 25,
'CUR_ST_VAL' => $start,
'L_SINGLE' => "Îäíà ñòðàíèöà",
'L_MULTI' => "Ñòðàíèöû: ",
'L_SINGLE' => "Single Page",
'L_MULTI' => "Pages: ",
'BASE_URL' => $this->ipsclass->base_url."&{$this->ipsclass->form_code}".$url,
)
);
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'mail_error_logs', 'where' => $dbe, 'order' => 'mlog_date DESC', 'limit' => array( $start, 25 ) ) );
$this->ipsclass->DB->simple_exec();
$this->ipsclass->html .= "<script type='text/javascript'>
function checkall( )
{
var formobj = document.getElementById('theAdminForm');
var checkboxes = formobj.getElementsByTagName('input');
for ( var i = 0 ; i <= checkboxes.length ; i++ )
{
var e = checkboxes[i];
var docheck = formobj.checkme.checked;
if ( e && (e.type == 'checkbox') && (! e.disabled) && (e.id != 'checkme') && (e.name != 'type') )
{
if( docheck == false )
{
e.checked = false;
}
else
{
e.checked = true;
}
}
}
return false;
}
</script>";
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'remove' ),
2 => array( 'act' , 'emailerror' ),
3 => array( 'section', $this->ipsclass->section_code ),
) );
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "1%" );
$this->ipsclass->adskin->td_header[] = array( "Êîìó" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Òåìà" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Îøèáêà" , "30%" );
$this->ipsclass->adskin->td_header[] = array( "Äàòà Âðåìÿ" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "<input type='checkbox' onclick='checkall();' id='checkme' />" , "1%" );
$this->ipsclass->adskin->td_header[] = array( "To" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Subject" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Error MSG" , "30%" );
$this->ipsclass->adskin->td_header[] = array( "Date" , "20%" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñîõðàíåííûå íåîòïðàâëåííûå ïèñüìà" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Logged Emails Errors" );
if ( $this->ipsclass->DB->get_num_rows() )
{
@@ -330,7 +341,7 @@ class ad_emailerror
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<center><input type='checkbox' class='checkbox' name='id_{$row['mlog_id']}' value='1' /></center>",
'<b>'.$row['mlog_to'].'</b>',
"<a href='javascript:pop_win(\"&{$this->ipsclass->form_code_js}&code=viewemail&id={$row['mlog_id']}\", \"{$row['mlog_id']}\",400,350)' title='×èòàòü ïèñüìî'>".$row['mlog_subject']."</a>",
"<a href='javascript:pop_win(\"&{$this->ipsclass->form_code_js}&code=viewemail&id={$row['mlog_id']}\", \"{$row['mlog_id']}\",400,350)' title='Read email'>".$row['mlog_subject']."</a>",
$row['mlog_msg'].'<br />'.$row['mlog_code']. '&nbsp;'.$row['mlog_smtp_msg'],
$row['mlog_date'],
) );
@@ -340,10 +351,10 @@ class ad_emailerror
}
else
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>Ðåçóëüòàòîâ íåò</center>");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>No results</center>");
}
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic('<div style="float:left;width:auto"><input type="submit" value="Óäàëèòü îòìå÷åííûå ëîãè" id="button" />&nbsp;<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;Óäàëèòü âñå?</div><div align="right">'.$links.'</div></form>', 'left', 'pformstrip');
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic('<div style="float:left;width:auto"><input type="submit" value="Remove Checked" class="realbutton" />&nbsp;<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;Remove all?</div><div align="right">'.$links.'</div></form>', 'left', 'tablesubheader');
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -358,39 +369,35 @@ class ad_emailerror
3 => array( 'section', $this->ipsclass->section_code ),
) );
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "100%" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïîèñê â ëîãàõ îøèáîê ïî÷òû" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Search Email Error Logs" );
$form_array = array(
0 => array( 'subject' , 'Òåìà ïèñüìà' ),
2 => array( 'email_from' , 'Îò (àäðåñ email)' ),
3 => array( 'email_to' , 'Êîìó (àäðåñ email)' ),
4 => array( 'error' , 'Ñîîáùåíèå îá îøèáêå' ),
0 => array( 'subject' , 'Email Subject' ),
2 => array( 'email_from' , 'From Email Address' ),
3 => array( 'email_to' , 'To Email Address' ),
4 => array( 'error' , 'Error Message' ),
);
$type_array = array(
0 => array( 'exact' , 'ñîâïàäåíèå' ),
1 => array( 'loose' , 'ñîäåðæèò' ),
0 => array( 'exact' , 'is exactly' ),
1 => array( 'loose' , 'contains' ),
);
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ãäå èñêàòü</b> &nbsp;"
. $this->ipsclass->adskin->form_dropdown( "type" , $form_array, $_POST['type']) ." "
. $this->ipsclass->adskin->form_dropdown( "match", $type_array, $_POST['match']) ." "
. $this->ipsclass->adskin->form_input( "string", $_POST['string']),
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search where</b> &nbsp;"
. $this->ipsclass->adskin->form_dropdown( "type" , $form_array, isset($_POST['type']) ? $_POST['type'] : '' ) ." "
. $this->ipsclass->adskin->form_dropdown( "match", $type_array, isset($_POST['match']) ? $_POST['match'] : '') ." "
. $this->ipsclass->adskin->form_input( "string", isset($_POST['string']) ? $_POST['string'] : '' ),
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èñêàòü");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Search");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
//-----------------------------------------
//-------------------------------
$this->ipsclass->admin->nav[] = array( 'section=admin&act=emailerror', 'Æóðíàë e-mail îøèáîê' );
$this->ipsclass->admin->output();
}