From 1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 Mon Sep 17 00:00:00 2001 From: Bulletin Date: Thu, 29 Dec 2016 16:42:32 -0500 Subject: Added existing progress --- activate.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 activate.php (limited to 'activate.php') diff --git a/activate.php b/activate.php new file mode 100644 index 0000000..66f14b3 --- /dev/null +++ b/activate.php @@ -0,0 +1,14 @@ +query('UPDATE users SET active = 1 WHERE id = '.$uid.' AND session = \''.hash('sha512', $key).'\'') or fatal($db->error); +if ($db->affected_rows < 1) fatal('Invalid information provided.'); +setcookie($b_config['c_name'], $uid.';'.$key, 0, $b_config['c_path'], $b_config['c_dom'], $b_config['c_sec'], $b_config['c_http']); +fatal('Your account is now active, you will be taken to the user dashboard.', $b_config['base_url'].'dash/'); +?> -- cgit v1.2.3