Zeile 59 | Zeile 59 |
---|
$query = $db->simple_select("maillogs", "*", "mid='".$mybb->get_input('mid', MyBB::INPUT_INT)."'"); $log = $db->fetch_array($query);
|
$query = $db->simple_select("maillogs", "*", "mid='".$mybb->get_input('mid', MyBB::INPUT_INT)."'"); $log = $db->fetch_array($query);
|
if(!$log['mid'])
| if(!$log)
|
{ exit; }
| { exit; }
|
Zeile 134 | Zeile 134 |
---|
$per_page = 20; }
|
$per_page = 20; }
|
if(!empty($mybb->input['page']) && $mybb->input['page'] > 1)
| $mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT); if($mybb->input['page'] > 1)
|
{
|
{
|
$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
| |
$start = ($mybb->input['page']*$per_page)-$per_page; $pages = ceil($total_rows / $per_page); if($mybb->input['page'] > $pages)
| $start = ($mybb->input['page']*$per_page)-$per_page; $pages = ceil($total_rows / $per_page); if($mybb->input['page'] > $pages)
|
Zeile 207 | Zeile 207 |
---|
else if(!empty($mybb->input['fromname'])) { $user = get_user_by_username($mybb->input['fromname'], array('fields' => 'uid, username'));
|
else if(!empty($mybb->input['fromname'])) { $user = get_user_by_username($mybb->input['fromname'], array('fields' => 'uid, username'));
|
$from_filter = $user['username'];
if(!$user['uid'])
| if(!$user)
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=tools-maillogs");
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=tools-maillogs");
|
}
| }
$from_filter = $user['username'];
|
$additional_sql_criteria .= "AND l.fromuid = '{$user['uid']}'"; $additional_criteria[] = "fromuid={$user['uid']}";
| $additional_sql_criteria .= "AND l.fromuid = '{$user['uid']}'"; $additional_criteria[] = "fromuid={$user['uid']}";
|
Zeile 230 | Zeile 231 |
---|
{ $query = $db->simple_select("users", "uid, username", "uid = '{$touid}'"); $user = $db->fetch_array($query);
|
{ $query = $db->simple_select("users", "uid, username", "uid = '{$touid}'"); $user = $db->fetch_array($query);
|
$to_filter = $user['username'];
| $to_filter = $user['username'];
|
$additional_sql_criteria .= " AND l.touid = '{$touid}'"; $additional_criteria[] = "touid={$touid}";
| $additional_sql_criteria .= " AND l.touid = '{$touid}'"; $additional_criteria[] = "touid={$touid}";
|
Zeile 238 | Zeile 239 |
---|
else if(!empty($mybb->input['toname'])) { $user = get_user_by_username($toname, array('fields' => 'username'));
|
else if(!empty($mybb->input['toname'])) { $user = get_user_by_username($toname, array('fields' => 'username'));
|
$to_filter = $user['username'];
if(!$user['uid'])
| if(!$user)
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=tools-maillogs"); }
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=tools-maillogs"); }
|
| $to_filter = $user['username'];
|
$additional_sql_criteria .= "AND l.touid='{$user['uid']}'"; $additional_criteria[] = "touid={$user['uid']}";
| $additional_sql_criteria .= "AND l.touid='{$user['uid']}'"; $additional_criteria[] = "touid={$user['uid']}";
|
Zeile 400 | Zeile 402 |
---|
$form->end();
|
$form->end();
|
echo "<br />".draw_admin_pagination($mybb->get_input('page'), $per_page, $total_rows, "index.php?module=tools-maillogs&page={page}{$additional_criteria}");
| echo "<br />".draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=tools-maillogs&page={page}{$additional_criteria}");
|
$form = new Form("index.php?module=tools-maillogs", "post"); $form_container = new FormContainer($lang->filter_user_email_log);
| $form = new Form("index.php?module=tools-maillogs", "post"); $form_container = new FormContainer($lang->filter_user_email_log);
|