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 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']}";
|