name = "Change Display Name";
$this->desc = "Change your display name!";
$this->price = 50;
}
function getUseInput() {
return "New Display Name:
Please choose a name which is at least {$this->minLength} characters long.";
}
function onUse() {
global $db_prefix, $ID_MEMBER;
if (strlen($_POST['newDisplayName']) < $this->minLength)
die("ERROR: The name you chose was not long enough! Please go back and choose a name which is at least {$this->minLength} characters long.");
$result = db_query("UPDATE {$db_prefix}members
SET realName = '{$_POST['newDisplayName']}'
WHERE ID_MEMBER = {$ID_MEMBER}",
__FILE__, __LINE__);
return "Successfully changed your display name to {$_POST['newDisplayName']}";
}
}
?>