Vergleich report.php - 1.8.12 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 55Zeile 55

if(!$post)
{


if(!$post)
{

		$error = $lang->error_invalid_report;

		$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
else
{
$id = $post['pid'];
$id2 = $post['tid'];
$report_type_db = "(type = 'post' OR type = '')";

	}
else
{
$id = $post['pid'];
$id2 = $post['tid'];
$report_type_db = "(type = 'post' OR type = '')";

 
		$checkid = $post['uid'];


// Check for a valid forum
$forum = get_forum($post['fid']);

if(!isset($forum['fid']))
{


// Check for a valid forum
$forum = get_forum($post['fid']);

if(!isset($forum['fid']))
{

			$error = $lang->error_invalid_report;

			$error = $lang->sprintf($lang->error_invalid_report, $report_type);

		}
else
{
$verified = true;

		}
else
{
$verified = true;

 
			$button = '#post_'.$id.' .postbit_report';

		}

// Password protected forums ......... yhummmmy!

		}

// Password protected forums ......... yhummmmy!

Zeile 86Zeile 88

if(!isset($user['uid']))
{


if(!isset($user['uid']))
{

		$error = $lang->error_invalid_report;

		$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
else
{

	}
else
{

 
		$verified = true;
$report_type_db = "type = 'profile'";

		$id2 = $id3 = 0; // We don't use these on the profile

		$id2 = $id3 = 0; // We don't use these on the profile

		$id = $user['uid']; // id is the profile user
$permissions = user_permissions($user['uid']);

if(empty($permissions['canbereported']))
{
$error = $lang->error_invalid_report;
}
else
{
$verified = true;
$report_type_db = "type = 'profile'";
}
}
}

		$id = $checkid = $user['uid']; // id is the profile user
$button = '.report_user_button';
}
}











else if($report_type == 'reputation')
{
// Any member can report a reputation comment but let's make sure it exists first

else if($report_type == 'reputation')
{
// Any member can report a reputation comment but let's make sure it exists first

Zeile 112Zeile 106

if(!$db->num_rows($query))
{


if(!$db->num_rows($query))
{

		$error = $lang->error_invalid_report;

		$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
else
{
$verified = true;
$reputation = $db->fetch_array($query);

	}
else
{
$verified = true;
$reputation = $db->fetch_array($query);



 
		$id = $reputation['rid']; // id is the reputation id

		$id = $reputation['rid']; // id is the reputation id

		$id2 = $reputation['adduid']; // id2 is the user who gave the comment

		$id2 = $checkid = $reputation['adduid']; // id2 is the user who gave the comment

		$id3 = $reputation['uid']; // id3 is the user who received the comment

		$id3 = $reputation['uid']; // id3 is the user who received the comment



 
		$report_type_db = "type = 'reputation'";

		$report_type_db = "type = 'reputation'";

 
		$button = '#rid'.$id.' .postbit_report';

	}
}

$plugins->run_hooks("report_type");

	}
}

$plugins->run_hooks("report_type");

 

$permissions = user_permissions($checkid);
if(empty($permissions['canbereported']))
{
$error = $lang->sprintf($lang->error_invalid_report, $report_type);
}


// Check for an existing report
if(!empty($report_type_db))


// Check for an existing report
if(!empty($report_type_db))

Zeile 166Zeile 165

eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;


eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;

 
		echo sprintf("<script type='text/javascript'>$('%s').remove();</script>", $button);

		exit;
}
else

		exit;
}
else

Zeile 184Zeile 184

if(!$db->num_rows($query))
{


if(!$db->num_rows($query))
{

			$error = $lang->error_invalid_report_reason;

			$error = $lang->sprintf($lang->error_invalid_report, $report_type);

			$verified = false;
}
else

			$verified = false;
}
else

Zeile 224Zeile 224

eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;


eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;

 
			echo sprintf("<script type='text/javascript'>$('%s').remove();</script>", $button);

			exit;
}
}

			exit;
}
}

Zeile 235Zeile 236

if($verified == false && empty($error))
{


if($verified == false && empty($error))
{

		$error = $lang->error_invalid_report;

		$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
}


	}
}