View file include/resort.php

File size: 279B
<?
if($authorize)
	{

		if($order == 1)
		{
			$newOrder = 0;
		}
		else
		{
			$newOrder = 1;
		}
		mysql_query("UPDATE `users` SET `order`=".$newOrder." WHERE `username`='".$username."'");
	}
	header("Location: ".$forumdir."p=2&v=".$version."&f=".$_GET['f']."&sid=".$sid);
?>