blob: 22ec27c3d3fe195d4304b0315b195e10c9b34935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<?php
require('inc/common.php');
fatal('We\'re sorry but we\'re unable to permit registrations at this time. If you hold on to your activation email, your account can be activated when registaration is opened again.');
$db = new bdb() or fatal($db-error);
$uid = intval($_GET['uid']);
$key = $_GET['key'];
$db->query('UPDATE users SET active = 1 WHERE id = '.$uid.' AND session = \''.bulletin_hash($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/');
?>
|