diff --git a/index.php b/index.php
index 3a2845d..46fe115 100644
--- a/index.php
+++ b/index.php
@@ -5,34 +5,34 @@ include_once('includes/session.inc.php');
include_once('includes/misc.inc.php');
if (isset($_GET['logout']) or isset($_POST['logout'])) {
- logout();
- header("Location: index.php");
+ logout();
+ header("Location: index.php");
}
if (!is_logged_in() and isset($_POST['formname']) && $_POST['formname'] == "loginform") {
- if (try_login() === TRUE) {
- set_logged_in($_POST['username']);
- } else {
- $errormsg = "Error while trying to authenticate you\n";
- }
+ if (try_login() === TRUE) {
+ set_logged_in($_POST['username']);
+ } else {
+ $errormsg = "Error while trying to authenticate you\n";
+ }
}
?>
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -40,32 +40,32 @@ if (!is_logged_in()) {
?>
-
-

-
-
- if (isset($errormsg)) {
- echo '
' . $errormsg . '';
- }
- ?>
-
-
+
+

+
+
+ if (isset($errormsg)) {
+ echo '
' . $errormsg . '';
+ }
+ ?>
+
+
@@ -75,53 +75,53 @@ exit(0);
}
if (is_adminuser()) {
- foreach (get_all_users() as $user) {
- $userlist[] = "'" . $user['emailaddress'] . "':'" . $user['emailaddress'] . "'";
- }
+ foreach (get_all_users() as $user) {
+ $userlist[] = "'" . $user['emailaddress'] . "':'" . $user['emailaddress'] . "'";
+ }
- $ulist = ',';
- $ulist .= join(',', $userlist);
+ $ulist = ',';
+ $ulist .= join(',', $userlist);
}
foreach ($templates as $template) {
- if (is_adminuser() or (isset($template['owner']) && $template['owner'] == get_sess_user()) or ($template['owner'] == 'public')) {
- $templatelist[] = "'" . $template['name'] . "':'" . $template['name'] . "'";
- }
+ if (is_adminuser() or (isset($template['owner']) && $template['owner'] == get_sess_user()) or ($template['owner'] == 'public')) {
+ $templatelist[] = "'" . $template['name'] . "':'" . $template['name'] . "'";
+ }
}
if (isset($templatelist)) {
- $tmpllist = ',';
- $tmpllist .= join(',', $templatelist);
+ $tmpllist = ',';
+ $tmpllist .= join(',', $templatelist);
} else {
- $tmpllist = '';
+ $tmpllist = '';
}
?>
-
-
- if (is_adminuser()) { ?>
-
- } ?>
+
+
+ if (is_adminuser()) { ?>
+
+ } ?>