Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: global.php 4151 2008-08-26 04:39:31Z Tikitiki $
| * $Id: global.php 4369 2009-05-11 08:48:32Z Tomm $
|
*/ $working_dir = dirname(__FILE__);
| */ $working_dir = dirname(__FILE__);
|
Zeile 413 | Zeile 413 |
---|
if($pm['fromuid'] == 0) { $pm['fromusername'] = 'MyBB Engine';
|
if($pm['fromuid'] == 0) { $pm['fromusername'] = 'MyBB Engine';
|
| $user_text = $pm['fromusername'];
|
}
|
}
|
| else { $user_text = build_profile_link($pm['fromusername'], $pm['fromuid']); }
|
if($mybb->user['pms_unread'] == 1) {
|
if($mybb->user['pms_unread'] == 1) {
|
$privatemessage_text = $lang->sprintf($lang->newpm_notice_one, get_profile_link($pm['fromuid']), htmlspecialchars_uni($pm['fromusername']), $pm['pmid'], htmlspecialchars_uni($pm['subject']));
| $privatemessage_text = $lang->sprintf($lang->newpm_notice_one, $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));
|
} else {
|
} else {
|
$privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], get_profile_link($pm['fromuid']), htmlspecialchars_uni($pm['fromusername']), $pm['pmid'], htmlspecialchars_uni($pm['subject']));
| $privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));
|
} eval("\$pm_notice = \"".$templates->get("global_pm_alert")."\";"); }
| } eval("\$pm_notice = \"".$templates->get("global_pm_alert")."\";"); }
|
Zeile 505 | Zeile 510 |
---|
// Check banned ip addresses if(is_banned_ip($session->ipaddress, true)) {
|
// Check banned ip addresses if(is_banned_ip($session->ipaddress, true)) {
|
$db->delete_query("sessions", "ip='".$db->escape_string($session->ipaddress)."' OR uid='{$mybb->user['uid']}'");
| if ($mybb->user['uid']) { $db->delete_query("sessions", "ip='".$db->escape_string($session->ipaddress)."' OR uid='{$mybb->user['uid']}'"); } else { $db->delete_query("sessions", "ip='".$db->escape_string($session->ipaddress)."'"); }
|
error($lang->error_banned); }
| error($lang->error_banned); }
|