50516c3280
07.28.2007 - Build 19 (Consolation Prize): - Added "moddedby" column to controlrow. Will display next to normal Scourge copyright. - Added SigBot, which lets players display their character stats in forum signature images. - PVP fights now properly escape the opposing player's $userrow before updating. - Fixed misspellings of 'bonusdefense' in spells.php. - Fixed error that occurred when you failed to select a spell slot when adding new spells. - Minor changes to err() output.
31 lines
971 B
PHP
31 lines
971 B
PHP
<?php // verify.php :: Standalone file for verifying accounts.
|
|
|
|
// Dragon Scourge
|
|
//
|
|
// Program authors: Jamin Blount
|
|
// Copyright (C) 2007 by renderse7en
|
|
// Script Version 1.0 Beta 5 Build 19
|
|
|
|
// You may not distribute this program in any manner, modified or
|
|
// otherwise, without the express, written consent from
|
|
// renderse7en.
|
|
//
|
|
// You may make modifications, but only for your own use and
|
|
// within the confines of the Dragon Scourge License Agreement
|
|
// (see our website for that).
|
|
|
|
include("lib.php");
|
|
|
|
if (isset($_GET["code"])) {
|
|
$code = $_GET["code"];
|
|
} else { die("Invalid account verification code."); }
|
|
|
|
$query = doquery("SELECT * FROM <<accounts>> WHERE verifycode='$code' LIMIT 1");
|
|
if (mysql_num_rows($query) != 1) {
|
|
die("Invalid account verification code.");
|
|
} else {
|
|
$update = doquery("UPDATE <<accounts>> SET verifycode='1' WHERE verifycode='$code' LIMIT 1");
|
|
}
|
|
display("Account Verification",gettemplate("users_verified"), false);
|
|
|
|
?>
|