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/register.php | 132 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 central/trunk/register.php (limited to 'central/trunk/register.php') diff --git a/central/trunk/register.php b/central/trunk/register.php new file mode 100644 index 0000000..8322861 --- /dev/null +++ b/central/trunk/register.php @@ -0,0 +1,132 @@ + 0) + { + showForm($_POST['username'], $_POST['password'], $_POST['email'], $errors); + } else { + $send = instaDisc_sendActivationEmail($_POST['username'], $_POST['password'], $_POST['email']); + if ($send === TRUE) + { +?> + + + <?php echo(instaDisc_getConfig('siteName')); ?> InstaDisc Central Server + + +
+

InstaDisc Registration

+ +

Thank you for registering! An activation email has been sent to the address you provided. When you recieve it, copy the + code inside to the Activation page. +

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

InstaDisc Registration

+ +

If you would like to sign up for our InstaDisc service, please fill out 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