if($hideadult == 'yes')
$updateset[] = "hideadult = 'yes'";
else
$updateset[] = "hideadult = 'no'";

if (is_valid_id($stylesheet))
  $updateset[] = "stylesheet = '$stylesheet'";
if (is_valid_id($country))
  $updateset[] = "country = $country";

//$updateset[] = "timezone = $timezone";
//$updateset[] = "dst = '$dst'";
$updateset[] = "info = " . sqlesc($info);
if($titlechange !== $CURUSER['title'] && ($CURUSER['class'] >= UC_POWER_USER || $CURUSER['donor'] === 'yes')) {
	forumlog($CURUSER['id'],$titlechange,$CURUSER['title'],title);
	$updateset[] = "title = " . sqlesc($titlechange);
	$CURUSER['title'] = $titlechange;
}
$updateset[] = "acceptpms = " . sqlesc($acceptpms);
$updateset[] = "deletepms = '$deletepms'";
$updateset[] = "savepms = '$savepms'";
$updateset[] = "notifs = '$notifs'";
$updateset[] = "avatar = " . sqlesc($avatar);
$updateset[] = "avatars = '$avatars'";
if ($_POST['resetpasskey']) $updateset[] = "passkey=''";
/* ****** */

$urladd = "";

if ($changedemail) {
Exemple #2
0
	// Hólfaviðbót
	$t_added = str_replace(array(' ',':','-','\''),'',sqlesc(get_date_time(gmtime() - 86400*2)));
	$t_added2 = str_replace(array(' ',':','-'),'',$torrent['added']);
	if($t_added2 <= $t_added && slots($userid) < '1')
		err("Ekki naeg holf til ad hefja nidurhal eda deilingu");

} else {
	$upthis = max(0, $uploaded - $self['uploaded']);
	$downthis = max(0, $downloaded - $self['downloaded']);

	if ($upthis > '0' || $downthis > '0') {
		mysql_query('UPDATE users SET uploaded=uploaded+'.$upthis.',downloaded=downloaded+'.$downthis.' WHERE id='.$userid) or sqlerr(__FILE__,__LINE__);
		$date_upthis = date('YmdHis');
		mysql_query('INSERT DELAYED INTO uploads SET userid='.$userid.',date='.$date_upthis.',upload='.$upthis.',download='.$downthis) or sqlerr(__FILE__,__LINE__);
		if($upthis >= '2147483648')
			forumlog($userid,mksize($upthis),mksize($downthis),'cheat');
	}
}

////////////////////////////////////////////

if(substr_count($_SERVER['HTTP_USER_AGENT'],'Transmission') >= 1)
	err('Transmission hefur verid bannad vegna galla i forritinu');

$updateset = array();

if ($event == 'stopped') {
	if (isset($self))
	{
		mysql_query('DELETE FROM peers WHERE '.$selfwhere) or sqlerr(__FILE__,__LINE__);
		if (mysql_affected_rows()) {