Vergleich inc/functions_online.php - 1.6.0 - 1.6.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: functions_online.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id: functions_online.php 5498 2011-07-18 08:05:00Z Tomm $

 */

$uid_list = $aid_list = $pid_list = $tid_list = $fid_list = $eid_list = array();

 */

$uid_list = $aid_list = $pid_list = $tid_list = $fid_list = $eid_list = array();

Zeile 191Zeile 191
			
$accepted_parameters = array();
$accepted_parameters['report'] = array("do_reports", "reports", "allreports");

			
$accepted_parameters = array();
$accepted_parameters['report'] = array("do_reports", "reports", "allreports");

			$accepted_parameters['new_annoucement'] = array("do_new_announcement", "new_announcement");

			$accepted_parameters['new_announcement'] = array("do_new_announcement", "new_announcement");

			$accepted_parameters['delete_announcement'] = array("do_delete_announcement", "delete_announcement");
$accepted_parameters['edit_announcement'] = array("do_edit_announcement", "edit_announcement");
$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue");

			$accepted_parameters['delete_announcement'] = array("do_delete_announcement", "delete_announcement");
$accepted_parameters['edit_announcement'] = array("do_edit_announcement", "edit_announcement");
$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue");

Zeile 418Zeile 418
			}
elseif($parameters['action'] == "view")
{

			}
elseif($parameters['action'] == "view")
{

				$user_activity['activity'] == "warnings_view";

				$user_activity['activity'] = "warnings_view";

			}
else
{

			}
else
{

Zeile 498Zeile 498
	// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)
{

	// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)
{

 
		$perms = array();

		$tid_sql = implode(",", $tid_list);
$query = $db->query("

		$tid_sql = implode(",", $tid_list);
$query = $db->query("

			SELECT t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix

			SELECT t.uid, t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix

			FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
WHERE tid IN({$tid_sql}) {$fidnot} {$visible}
");

			FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
WHERE tid IN({$tid_sql}) {$fidnot} {$visible}
");

 


		while($thread = $db->fetch_array($query))
{

		while($thread = $db->fetch_array($query))
{

 
			if(!$perms[$thread['fid']])
{
$perms[$thread['fid']] = forum_permissions($thread['fid']);
}

if($perms[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'] && !is_moderator($thread['fid']))
{
continue;
}


			if(is_moderator($thread['fid']) || $thread['visible'] != '0')
{
$thread_title = '';

			if(is_moderator($thread['fid']) || $thread['visible'] != '0')
{
$thread_title = '';

Zeile 662Zeile 674
			$location_name = $lang->rating_user;
break;
case "member_resendactivation":

			$location_name = $lang->rating_user;
break;
case "member_resendactivation":

			$location_name = $lang->resending_account_activation;

			$location_name = $lang->member_resendactivation;

			break;
case "member_lostpw":
$location_name = $lang->member_lostpw;

			break;
case "member_lostpw":
$location_name = $lang->member_lostpw;

Zeile 686Zeile 698
			}
break;
case "misc_markread":

			}
break;
case "misc_markread":

			$location_name = $lang->marking_read;

			$location_name = $lang->sprintf($lang->marking_read, $mybb->post_code);

			break;
case "misc_help":
$location_name = $lang->viewing_helpdocs;

			break;
case "misc_help":
$location_name = $lang->viewing_helpdocs;