From 916d26b78533f6d4be4d83f9da02be6b814c43ae Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Sat, 12 Oct 2013 11:20:54 +0200 Subject: [PATCH] Add line returns to generated HTML code --- server/index.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/server/index.php b/server/index.php index 2cd138b..13e5fce 100755 --- a/server/index.php +++ b/server/index.php @@ -36,9 +36,9 @@ $user = (isset($_POST['user'])) ? $_POST['user'] : ""; gPass : global Password"; + echo "gPass : global Password\n"; else - echo "gPass : global Password - $user"; + echo "gPass : global Password - $user\n"; ?> @@ -85,10 +85,10 @@ $count = 0; } if ($count == 0) - echo "No user found
"; + echo "No user found
\n"; else { - echo 'User ' . "\n"; foreach($users as $u) { if (is_dir("./users/" . $u) && $u[0] != '_' && $u[0] != '.') @@ -100,8 +100,8 @@ else echo ""; } } - echo ""; - echo ' Master key '; + echo "\n"; + echo ' Master key ' . "\n"; } ?> @@ -116,11 +116,11 @@ if ($user != "") $nb_unciphered = 0; list($nb_ciphered, $entries) = list_entries($user, $mkey); - echo "" . (count($entries) - $nb_ciphered) . " unciphered password(s)
"; + echo "" . (count($entries) - $nb_ciphered) . " unciphered password(s)
\n"; foreach($entries as $entry) { if ($entry['ciphered'] == 1) continue; - echo '
'; + echo '' . "\n"; echo ''; echo ''; echo ''; @@ -129,23 +129,23 @@ if ($user != "") echo 'password '; echo ''; echo ''; - echo '
'; + echo '' . "\n"; } - echo "

"; - echo "$nb_ciphered ciphered password(s)
"; + echo "

\n"; + echo "$nb_ciphered ciphered password(s)
\n"; if ($VIEW_CIPHERED_PASSWORDS) { foreach($entries as $entry) { if ($entry['ciphered'] == 0) continue; - echo '
'; + echo '' . "\n"; echo ''; echo ''; echo ''; echo ''; echo ''; - echo '
'; + echo '' . "\n"; } } } @@ -157,8 +157,8 @@ if ($user != "") if ($user != "") { - echo "Add a new password
"; - echo '
'; + echo "Add a new password
\n"; + echo '' . "\n"; echo ''; echo 'URL '; @@ -167,7 +167,7 @@ if ($user != "") echo 'master key '; echo ''; echo ""; - echo '
'; + echo '' . "\n"; } ?>