} // Salt if (empty($_POST['salt'])) { $errors[] = 'salt cannot be empty'; } else { if ($_POST['salt'] != $GLOBALS['CONFIG']['SALT']) { $errors[] = 'salt does not match config.php'; } } if (!count($errors)) { $clean['nickname'] = $_POST['nickname']; $clean['email'] = $_POST['email']; $clean['password'] = $_POST['password']; try { $uid = $u->save(null, $clean); $u->root($uid); $rooted = true; } catch (Exception $e) { echo $e->getMessage() . "\n"; echo "File: " . $e->getFile() . "\n"; echo "Line: " . $e->getLine() . "\n\n"; } } } // --------------------------------------------------------------------------- // Inline, horrible inline // --------------------------------------------------------------------------- ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>