From 4116da2199a163a72860f6265d52a2ae0b860967 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 8 Aug 2008 12:26:08 +0000 Subject: Central: Started default frontend The default frontend is based on Four Island's. Perhaps at some point a templating system may be introduced to make frontending a little easier. Refs #25 --- central/trunk/activate.php | 126 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 central/trunk/activate.php (limited to 'central/trunk/activate.php') diff --git a/central/trunk/activate.php b/central/trunk/activate.php new file mode 100644 index 0000000..c8d4aa0 --- /dev/null +++ b/central/trunk/activate.php @@ -0,0 +1,126 @@ + 0) + { + showForm($_POST['username'], $_POST['code'], $errors); + } else { + if ($_POST['submit'] == "Verify") + { + if (instaDisc_activateAccount($_POST['username'], $_POST['code'])) + { +?> + + + <?php echo(instaDisc_getConfig('siteName')); ?> InstaDisc Central Server + + +
+

InstaDisc Activation

+ +

Thank you for activating! You've now been signed up for the InstaDisc service. + You will recieve an email with the information to input into your InstaDisc client. +

+ + + + + + <?php echo(instaDisc_getConfig('siteName')); ?> InstaDisc Central Server + + + +
+

InstaDisc Activation

+ +

If you've already registered and an activation email has been sent to your address, please fill in the form below. +

+ +
+
Uh oh! Validation errors!

+

    $value) + { +?>
+
User Details +
+ + +
+
+ + +
+
+
+ + +
$value) + { + if ($value['field'] == $id) + { + echo(' error'); + return; + } + } +} + +function doErrors($errors, $id) +{ + foreach ($errors as $name => $value) + { + if ($value['field'] == $id) + { +?>

*

$field, 'msg' => $msg); +} -- cgit 1.4.1