Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 833 Bytes
if(isset($_GET["cancel"])) {
<h1>Upgrade canceled</h1>
<p>You canceled the payment.</p>
else {
log_event("User paid for the services");
$q = "UPDATE users SET user_flags = user_flags | ". USER_FLAG_PREMIUM ." WHERE id='". $m->escape_string($_SESSION["u"]->id) ."'";
if(@$m->query($q) === FALSE)
log_event("Failed to reflect payment in users-table: $m->error\nSQL: $q");
$_SESSION["u"]->user_flags |= USER_FLAG_PREMIUM;
<h1>Your account has been upgraded</h1>
<p>Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. You may log into your account at <a href="" target="_blank"></a> to view details of this transaction.</p>
<p><a href="/">Continue to the frontpage</a></p>