From 8aa6d386cf23e8bbaf8c3505e3d5f15b517144c5 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Mon, 26 May 2014 14:10:11 +0200 Subject: [PATCH] Fix indenting and show the correct content for 'content' --- index.php | 724 +++++++++++++++++++++++++++--------------------------- 1 file changed, 362 insertions(+), 362 deletions(-) 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"; + } } ?> - - - - - - - - - - - - - + + + + + + + + + + + + +
- - + +
@@ -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 = ''; } ?>
- -
-
-
-
- -
-
-
- + +
+
+
+
+ +
+
+
+