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 +++++++++++++++++++++++++++++++++++++++++++ central/trunk/index.php | 26 +++++++++ central/trunk/register.php | 132 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 284 insertions(+) create mode 100644 central/trunk/activate.php create mode 100644 central/trunk/index.php create mode 100644 central/trunk/register.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); +} diff --git a/central/trunk/index.php b/central/trunk/index.php new file mode 100644 index 0000000..ce71def --- /dev/null +++ b/central/trunk/index.php @@ -0,0 +1,26 @@ + + + + Four Island InstaDisc Central Server + + +
+

InstaDisc

+ +

Welcome to 's InstaDisc Central Server! +

InstaDisc is a wonderful productivity-increasing notification program. For more information about the project itself, see + its project site.

An InstaDisc "Central Server" is where you can + register for the InstaDisc service. There are many Central Servers around the world, you generally pick the one that is + closest to you. If you would like to choose 's, why not register now? +

Register +
Login +
Activation page +

+ + 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