Zeile 124 | Zeile 124 |
---|
// Set the appropriate image language directory for this theme. // Are we linking to a remote theme server?
|
// Set the appropriate image language directory for this theme. // Are we linking to a remote theme server?
|
if(my_substr($theme['imgdir'], 0, 7) == 'http://' || my_substr($theme['imgdir'], 0, 8) == 'https://')
| if(my_validate_url($theme['imgdir']))
|
{ // If a language directory for the current language exists within the theme - we use it if(!empty($mybb->user['language']))
| { // If a language directory for the current language exists within the theme - we use it if(!empty($mybb->user['language']))
|
Zeile 255 | Zeile 255 |
---|
if($limit == 1) { $user = $db->fetch_array($query);
|
if($limit == 1) { $user = $db->fetch_array($query);
|
$user['username'] = htmlspecialchars_uni($user['username']);
| |
$data = array('id' => $user['username'], 'text' => $user['username']); } else
| $data = array('id' => $user['username'], 'text' => $user['username']); } else
|
Zeile 263 | Zeile 262 |
---|
$data = array(); while($user = $db->fetch_array($query)) {
|
$data = array(); while($user = $db->fetch_array($query)) {
|
$user['username'] = htmlspecialchars_uni($user['username']);
| |
$data[] = array('id' => $user['username'], 'text' => $user['username']); } }
| $data[] = array('id' => $user['username'], 'text' => $user['username']); } }
|
Zeile 577 | Zeile 575 |
---|
"me_username" => $post['username'], "filter_badwords" => 1 );
|
"me_username" => $post['username'], "filter_badwords" => 1 );
|
| $post['username'] = htmlspecialchars_uni($post['username']);
|
if($post['smilieoff'] == 1) {
| if($post['smilieoff'] == 1) {
|
Zeile 602 | Zeile 602 |
---|
while($attachment = $db->fetch_array($query)) { $attachcache[$attachment['pid']][$attachment['aid']] = $attachment;
|
while($attachment = $db->fetch_array($query)) { $attachcache[$attachment['pid']][$attachment['aid']] = $attachment;
|
}
| }
|
require_once MYBB_ROOT."inc/functions_post.php";
get_post_attachments($post['pid'], $post);
| require_once MYBB_ROOT."inc/functions_post.php";
get_post_attachments($post['pid'], $post);
|
Zeile 615 | Zeile 615 |
---|
{ $post['editdate'] = my_date('relative', TIME_NOW); $post['editnote'] = $lang->sprintf($lang->postbit_edited, $post['editdate']);
|
{ $post['editdate'] = my_date('relative', TIME_NOW); $post['editnote'] = $lang->sprintf($lang->postbit_edited, $post['editdate']);
|
| $mybb->user['username'] = htmlspecialchars_uni($mybb->user['username']);
|
$post['editedprofilelink'] = build_profile_link($mybb->user['username'], $mybb->user['uid']); $post['editreason'] = trim($editreason); $editreason = "";
| $post['editedprofilelink'] = build_profile_link($mybb->user['username'], $mybb->user['uid']); $post['editreason'] = trim($editreason); $editreason = "";
|
Zeile 629 | Zeile 630 |
---|
// Send our headers. header("Content-type: application/json; charset={$charset}");
|
// Send our headers. header("Content-type: application/json; charset={$charset}");
|
|
|
$editedmsg_response = null; if($editedmsg) {
| $editedmsg_response = null; if($editedmsg) {
|
Zeile 681 | Zeile 682 |
---|
{ $inactiveforums = "AND t.fid NOT IN ({$inactiveforums})"; }
|
{ $inactiveforums = "AND t.fid NOT IN ({$inactiveforums})"; }
|
| // Check group permissions if we can't view threads not started by us $group_permissions = forum_permissions(); $onlyusfids = array(); foreach($group_permissions as $gpfid => $forum_permissions) { if(isset($forum_permissions['canonlyviewownthreads']) && $forum_permissions['canonlyviewownthreads'] == 1) { $onlyusfids[] = $gpfid; } }
|
$message = '';
// Are we loading all quoted posts or only those not in the current thread?
| $message = '';
// Are we loading all quoted posts or only those not in the current thread?
|
Zeile 702 | Zeile 715 |
---|
// Query for any posts in the list which are not within the specified thread $query = $db->query("
|
// Query for any posts in the list which are not within the specified thread $query = $db->query("
|
SELECT p.subject, p.message, p.pid, p.tid, p.username, p.dateline, t.fid, p.visible, u.username AS userusername
| SELECT p.subject, p.message, p.pid, p.tid, p.username, p.dateline, t.fid, t.uid AS thread_uid, p.visible, u.username AS userusername
|
FROM ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
| FROM ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
|
Zeile 711 | Zeile 724 |
---|
"); while($quoted_post = $db->fetch_array($query)) {
|
"); while($quoted_post = $db->fetch_array($query)) {
|
if(!is_moderator($quoted_post['fid'], "canviewunapprove") && $quoted_post['visible'] == 0)
| if( (!is_moderator($quoted_post['fid'], "canviewunapprove") && $quoted_post['visible'] == 0) || (!is_moderator($quoted_post['fid'], "canviewdeleted") && $quoted_post['visible'] == -1) || (in_array($quoted_post['fid'], $onlyusfids) && (!$mybb->user['uid'] || $quoted_post['thread_uid'] != $mybb->user['uid'])) )
|
{ continue; }
| { continue; }
|
Zeile 1010 | Zeile 1027 |
---|
$offline = array(); while($buddy = $db->fetch_array($query)) {
|
$offline = array(); while($buddy = $db->fetch_array($query)) {
|
| $buddy['username'] = htmlspecialchars_uni($buddy['username']);
|
$buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']); $profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank'); if($buddy['lastactive'] > $timecut && ($buddy['invisible'] == 0 || $mybb->user['usergroup'] == 4) && $buddy['lastvisit'] != $buddy['lastactive'])
| $buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']); $profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank'); if($buddy['lastactive'] > $timecut && ($buddy['invisible'] == 0 || $mybb->user['usergroup'] == 4) && $buddy['lastvisit'] != $buddy['lastactive'])
|