View Single Post
  #65  
Old 30th September 2008, 12:38
Timisoreanul's Avatar
Timisoreanul Timisoreanul is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 211
Default
hi, when i try to change my privacy it give error ,in my
Code:
tr("Reset passkey","<input type=\"checkbox\" name=\"resetpasskey\" value=\"1\" /><br/>Any active torrents must be downloaded again to continue leeching/seeding.", 1);

function priv($name, $descr) {
	global $CURUSER;
	if ($CURUSER["privacy"] == $name)
		return "<input type=\"radio\" name=\"privacy\" value=\"$name\" checked=\"checked\" /> $descr";
	return "<input type=\"radio\" name=\"privacy\" value=\"$name\" /> $descr";
}

tr("Privacy level",  priv("normal", "Normal") . " " . priv("low", "Low (email address will be shown)") . " " . priv("strong", "Strong (no info will be made available)"), 1);

?>
this is ok..but ,where is not ok in takeprofedit :
Code:
$yahoo = unesc($_POST["yahoo"]);
if (strlen($yahoo) > 30)
    bark("Sorry, Yours yahoo too long   (Max - 30)");
$updateset[] = "yahoo = " . sqlesc($yahoo);

$skype = unesc($_POST["skype"]);
if (strlen($skype) > 20)
    bark("Sorry, Yours skype too long  (Max - 20)");
$updateset[] = "skype = " . sqlesc($skype);
if ($privacy != "normal" && $privacy != "low" && $privacy != "strong")
	bark("whoops");

$updateset[] = "privacy = " . sqlesc($privacy);

$updateset[] = "torrentsperpage = " . min(100, 0 + $_POST["torrentsperpage"]);
$updateset[] = "topicsperpage = " . min(100, 0 + $_POST["topicsperpage"]);
Reply With Quote