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,24 +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 ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò 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 $
|
||||
+---------------------------------------------------------------------------
|
||||
@@ -36,7 +28,7 @@
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -52,7 +44,7 @@ class ad_emaillogs
|
||||
* @var string
|
||||
*/
|
||||
var $perm_main = "admin";
|
||||
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
*
|
||||
@@ -62,92 +54,92 @@ class ad_emaillogs
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Æóðíàë e-mail îòïðàâëåíèé' );
|
||||
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Email Logs' );
|
||||
|
||||
// Make sure we're a root admin, or else!
|
||||
|
||||
|
||||
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'])
|
||||
{
|
||||
case 'list':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->list_current();
|
||||
break;
|
||||
|
||||
|
||||
case 'remove':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':remove' );
|
||||
$this->remove_entries();
|
||||
break;
|
||||
|
||||
|
||||
case 'viewemail':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->view_email();
|
||||
break;
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
default:
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->list_current();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// View a single email.
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function view_email()
|
||||
{
|
||||
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']);
|
||||
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'emaillogs_view_email', array( 'id' => $id ) );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
|
||||
|
||||
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( " " , "100%" );
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( $row['email_subject'] );
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$row['email_date'] = $this->ipsclass->admin->get_date( $row['email_date'], 'LONG' );
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
"<strong>Îò:</strong> {$row['name']} <{$row['from_email_address']}>
|
||||
<br /><strong>Êîìó:</strong> {$row['to_name']} <{$row['to_email_address']}>
|
||||
<br /><strong>Îòïðàâëåíî:</strong> {$row['email_date']}
|
||||
<br /><strong>IP-àäðåñ:</strong> {$row['from_ip_address']}
|
||||
<br /><strong>Òåìà:</strong> {$row['email_subject']}
|
||||
"<strong>From:</strong> {$row['name']} <{$row['from_email_address']}>
|
||||
<br /><strong>To:</strong> {$row['to_name']} <{$row['to_email_address']}>
|
||||
<br /><strong>Sent:</strong> {$row['email_date']}
|
||||
<br /><strong>From IP:</strong> {$row['from_ip_address']}
|
||||
<br /><strong>Subject:</strong> {$row['email_subject']}
|
||||
<hr>
|
||||
<br />{$row['email_content']}
|
||||
"
|
||||
) );
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
$this->ipsclass->admin->print_popup();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove row(s)
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function remove_entries()
|
||||
{
|
||||
if ( $this->ipsclass->input['type'] == 'all' )
|
||||
@@ -157,7 +149,7 @@ class ad_emaillogs
|
||||
else
|
||||
{
|
||||
$ids = array();
|
||||
|
||||
|
||||
foreach ($this->ipsclass->input as $k => $v)
|
||||
{
|
||||
if ( preg_match( "/^id_(\d+)$/", $k, $match ) )
|
||||
@@ -168,57 +160,57 @@ class ad_emaillogs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$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' => 'email_logs', 'where' => " email_id IN (".implode(',', $ids ).")" ) );
|
||||
}
|
||||
|
||||
$this->ipsclass->admin->save_log("Óäàëåíû çàïèñè èç æóðíàëà e-mail îòïðàâëåíèé");
|
||||
|
||||
|
||||
$this->ipsclass->admin->save_log("Removed email log entries");
|
||||
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."&act=emaillog");
|
||||
exit();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// SHOW ALL LANGUAGE PACKS
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
function list_current()
|
||||
{
|
||||
$this->ipsclass->html .= ""; // removed js popwin
|
||||
|
||||
|
||||
$form_array = array();
|
||||
|
||||
|
||||
$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 = "Óïðàâëåíèå æóðíàëîì e-mail îòïðàâëåíèé";
|
||||
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Stored email logs";
|
||||
$this->ipsclass->admin->page_title = "Email Logs Manager";
|
||||
|
||||
//-----------------------------------------
|
||||
// Check URL parameters
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$url_query = array();
|
||||
$db_query = array();
|
||||
|
||||
|
||||
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'] )
|
||||
{
|
||||
case 'fromid':
|
||||
@@ -235,7 +227,7 @@ class ad_emaillogs
|
||||
$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);
|
||||
@@ -245,7 +237,7 @@ class ad_emaillogs
|
||||
$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);
|
||||
@@ -255,7 +247,7 @@ class ad_emaillogs
|
||||
$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);
|
||||
@@ -265,7 +257,7 @@ class ad_emaillogs
|
||||
$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);
|
||||
@@ -275,43 +267,43 @@ class ad_emaillogs
|
||||
$string = urldecode($this->ipsclass->input['string']);
|
||||
if ( $string == "" )
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè õîòü ÷òî-íèáóäü");
|
||||
$this->ipsclass->admin->error("You must enter something to search by");
|
||||
}
|
||||
|
||||
|
||||
if ( $this->ipsclass->input['match'] == 'loose' )
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'id,name', 'from' => 'members', 'where' => "name LIKE '%{$string}%'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
if ( ! $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íå íàéäåíî íèêàêèõ çàïèñåé, ñîîòâåòñòâóþùèõ çàïðîñó â æóðíàëå e-mail îòïðàâëåíèé");
|
||||
$this->ipsclass->admin->error("No matches found in the email logs");
|
||||
}
|
||||
|
||||
|
||||
$ids = array();
|
||||
|
||||
|
||||
while ( $r = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$ids[] = $r['id'];
|
||||
}
|
||||
|
||||
|
||||
$db_query[] = 'email.from_member_id IN('.implode( ',', $ids ).')';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'id,name', 'from' => 'members', 'where' => "name='{$string}'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
if ( ! $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íå íàéäåíî íèêàêèõ çàïèñåé, ñîîòâåòñòâóþùèõ çàïðîñó â æóðíàëå e-mail îòïðàâëåíèé");
|
||||
$this->ipsclass->admin->error("No matches found in the email logs");
|
||||
}
|
||||
|
||||
|
||||
$r = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
|
||||
$db_query[] = 'email.from_member_id IN('.$r['id'].')';
|
||||
}
|
||||
|
||||
|
||||
$url_query[] = 'type='.$this->ipsclass->input['type'];
|
||||
$url_query[] = 'string='.urlencode($string);
|
||||
break;
|
||||
@@ -319,43 +311,43 @@ class ad_emaillogs
|
||||
$string = urldecode($this->ipsclass->input['string']);
|
||||
if ( $string == "" )
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè õîòü ÷òî-íèáóäü");
|
||||
$this->ipsclass->admin->error("You must enter something to search by");
|
||||
}
|
||||
|
||||
|
||||
if ( $this->ipsclass->input['match'] == 'loose' )
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'id,name', 'from' => 'members', 'where' => "name LIKE '%{$string}%'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
if ( ! $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íå íàéäåíî íèêàêèõ çàïèñåé, ñîîòâåòñòâóþùèõ çàïðîñó â æóðíàëå e-mail îòïðàâëåíèé");
|
||||
$this->ipsclass->admin->error("No matches found in the email logs");
|
||||
}
|
||||
|
||||
|
||||
$ids = array();
|
||||
|
||||
|
||||
while ( $r = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$ids[] = $r['id'];
|
||||
}
|
||||
|
||||
|
||||
$db_query[] = 'email.to_member_id IN('.implode( ',', $ids ).')';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'id,name', 'from' => 'members', 'where' => "name='{$string}'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
if ( ! $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íå íàéäåíî íèêàêèõ çàïèñåé, ñîîòâåòñòâóþùèõ çàïðîñó â æóðíàëå e-mail îòïðàâëåíèé");
|
||||
$this->ipsclass->admin->error("No matches found in the email logs");
|
||||
}
|
||||
|
||||
|
||||
$r = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
|
||||
$db_query[] = 'email.to_member_id IN('.$r['id'].')';
|
||||
}
|
||||
|
||||
|
||||
$url_query[] = 'type='.$this->ipsclass->input['type'];
|
||||
$url_query[] = 'string='.urlencode($string);
|
||||
break;
|
||||
@@ -364,41 +356,41 @@ class ad_emaillogs
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( isset($this->ipsclass->input['match']) )
|
||||
{
|
||||
$url_query[] = 'match='.$this->ipsclass->input['match'];
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// LIST 'EM
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$dbe = "";
|
||||
$url = "";
|
||||
|
||||
|
||||
if ( count($db_query) > 0 )
|
||||
{
|
||||
$dbe = implode(' AND ', $db_query );
|
||||
}
|
||||
|
||||
|
||||
if ( count($url_query) > 0 )
|
||||
{
|
||||
$url = '&'.implode( '&', $url_query);
|
||||
}
|
||||
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(email.email_id) as cnt',
|
||||
'from' => 'email_logs email',
|
||||
'where' => $dbe ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
$count = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
|
||||
$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,
|
||||
)
|
||||
);
|
||||
@@ -406,21 +398,21 @@ class ad_emaillogs
|
||||
{
|
||||
$dbe = 'WHERE '.$dbe;
|
||||
}
|
||||
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'emaillogs_list_current', array( 'dbe' => $dbe, 'limit_a' => $start ) );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
|
||||
|
||||
$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 )
|
||||
@@ -433,100 +425,100 @@ class ad_emaillogs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
</script>";
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'remove' ),
|
||||
2 => array( 'act' , 'emaillog' ),
|
||||
3 => array( 'section', $this->ipsclass->section_code ),
|
||||
) );
|
||||
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "<input type='checkbox' onclick='checkall();' id='checkme' />" , "5%" );
|
||||
$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( "Äàòà" , "25%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñïèñîê îòïðàâëåííûõ ïèñåì" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "From Member" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Subject" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "To Member" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Sent Time" , "25%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Logged Emails" );
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
while ( $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
|
||||
|
||||
$row['email_date'] = $this->ipsclass->admin->get_date( $row['email_date'], 'SHORT' );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
"<center><input type='checkbox' class='checkbox' name='id_{$row['email_id']}' value='1' /></center>",
|
||||
"<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=list&type=fromid&id={$row['id']}' title='Ïîêàçàòü âñå îòïðàâëåííûå ïèñüìà'><img src='{$this->ipsclass->skin_acp_url}/images/acp_search.gif' border='0' alt='..by id'></a> <b><a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showuser={$row['id']}' title='Ïðîôèëü ïîëüçîâàòåëÿ (îòêðîåòñÿ â íîâîì îêíå)' target='blank'>{$row['name']}</a></b>",
|
||||
"<a href='javascript:pop_win(\"&{$this->ipsclass->form_code_js}&code=viewemail&id={$row['email_id']}\",\"Log\",400,400)' title='Ïðî÷èòàòü ïèñüìî'>{$row['email_subject']}</a>",
|
||||
"<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=list&type=toid&id={$row['to_id']}' title='Ïîêàçàòü âñå ïîëó÷åííûå ïèñüìà'><img src='{$this->ipsclass->skin_acp_url}/images/acp_search.gif' border='0' alt='..by id'></a> <a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showuser={$row['to_id']}' title='Ïðîôèëü ïîëüçîâàòåëÿ (îòêðîåòñÿ â íîâîì îêíå)' target='blank'>{$row['to_name']}</a>",
|
||||
"<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=list&type=fromid&id={$row['id']}' title='Show all from this member'><img src='{$this->ipsclass->skin_acp_url}/images/acp_search.gif' border='0' alt='..by id'></a> <b><a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showuser={$row['id']}' title='Members profile (new window)' target='blank'>{$row['name']}</a></b>",
|
||||
"<a href='javascript:pop_win(\"&{$this->ipsclass->form_code_js}&code=viewemail&id={$row['email_id']}\",\"Log\",400,400)' title='Read email'>{$row['email_subject']}</a>",
|
||||
"<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=list&type=toid&id={$row['to_id']}' title='Show all sent to this member'><img src='{$this->ipsclass->skin_acp_url}/images/acp_search.gif' border='0' alt='..by id'></a> <a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showuser={$row['to_id']}' title='Members profile (new window)' target='blank'>{$row['to_name']}</a>",
|
||||
"{$row['email_date']}",
|
||||
) );
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
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="Óäàëèòü îòìå÷åííûå" class="realbutton" /> <input type="checkbox" id="checkbox" name="type" value="all" /> Óäàëèòü âñå?</div><div align="right">'.$links.'</div></form>', 'left', 'tablesubheader');
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic('<div style="float:left;width:auto"><input type="submit" value="Remove Checked" class="realbutton" /> <input type="checkbox" id="checkbox" name="type" value="all" /> Remove all?</div><div align="right">'.$links.'</div></form>', 'left', 'tablesubheader');
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'list' ),
|
||||
2 => array( 'act' , 'emaillog' ),
|
||||
3 => array( 'section', $this->ipsclass->section_code ),
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïîèñê çàïèñåé" );
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Search Email Logs" );
|
||||
|
||||
$form_array = array(
|
||||
0 => array( 'subject' , 'Òåìà ïèñüìà' ),
|
||||
1 => array( 'content' , 'Ñîäåðæèìîå' ),
|
||||
2 => array( 'email_from' , 'Îò (E-mail)' ),
|
||||
3 => array( 'email_to' , 'Êîìó (E-mail)' ),
|
||||
4 => array( 'name_from' , 'Îò (èìÿ ïîëüçîâàòåëÿ)'),
|
||||
5 => array( 'name_to' , 'Êîìó (èìÿ ïîëüçîâàòåëÿ)' ),
|
||||
0 => array( 'subject' , 'Email Subject' ),
|
||||
1 => array( 'content' , 'Email Body' ),
|
||||
2 => array( 'email_from' , 'From Email Address' ),
|
||||
3 => array( 'email_to' , 'To Email Address' ),
|
||||
4 => array( 'name_from' , 'From Member Name'),
|
||||
5 => array( 'name_to' , 'To Member Name' ),
|
||||
);
|
||||
|
||||
|
||||
$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> "
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search where</b> "
|
||||
. $this->ipsclass->adskin->form_dropdown( "type", $form_array) ." "
|
||||
. $this->ipsclass->adskin->form_dropdown( "match", $type_array) ." "
|
||||
. $this->ipsclass->adskin->form_input( "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->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user