about summary refs log tree commit diff stats
path: root/data/maps/the_digital/connections.txtpb
blob: 04d612e50d7319bcf0458fe1bdfe4e90b796b6ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
generated by cgit-pink 1.4.1 (git 2.36.1) at 2026-02-10 05:59:34 +0000
 


/span> (!isset($_GET['id']) || !isset($_POST['comment']))
{
	generateError('404');
} else {
	if (isLoggedIn())
	{
		$getcomment = "SELECT * FROM comments WHERE id = " . $_GET['id'];
		$getcomment2 = mysql_query($getcomment);
		$getcomment3 = mysql_fetch_array($getcomment2);

		if ($getcomment3['id'] == $_GET['id'])
		{
			if ((isAdmin()) || (($getcomment3['is_anon'] == 0) && (getSessionUserID() === $getcomment3['user_id'])))
			{
				$setcomment = "UPDATE comments SET comment = \"" . mysql_real_escape_string($_POST['comment']) . "\" WHERE id = " . $_GET['id'];
				$setcomment2 = mysql_query($setcomment);

				header('Location: ' . getCommentUrl($getcomment3) . '#comment-' . $getcomment3['id']);
			} else {
				generateError('404');
			}
		} else {
			generateError('404');
		}
	} else {
		generateError('404');
	}
}

?>