From 08f3b8c3930ecc009f3473d9cae9e26ad17fb23d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Nov 2014 17:59:00 +0100 Subject: Small improvements. --- header/index.php | 4 ++-- linkshorter/index.php | 2 ++ linkshorter/view/templ-head.php | 1 - linkshorter/view/templ-index.php | 8 ++++---- tools/style.css | 4 ++++ 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/header/index.php b/header/index.php index b57643d..056cde5 100644 --- a/header/index.php +++ b/header/index.php @@ -161,7 +161,7 @@ Host: ""
- +
@@ -201,7 +201,7 @@ Host: "" diff --git a/linkshorter/index.php b/linkshorter/index.php index 8d05977..3f96ee3 100644 --- a/linkshorter/index.php +++ b/linkshorter/index.php @@ -48,6 +48,8 @@ if ( ! isset($_REQUEST['url']) || $_REQUEST['url'] == "" ){ _do_output("Failure!", "Your Lifetime doesn't look like a valid number."); } $options["ttl"] = $_REQUEST["ttl"]; + if ( $options["ttl"] == 0 ) + $options["ttl"] = ""; } if ( ! isset($_REQUEST["password"]) || $_REQUEST["password"] == "" ) diff --git a/linkshorter/view/templ-head.php b/linkshorter/view/templ-head.php index 4dd76d5..fad0fb8 100644 --- a/linkshorter/view/templ-head.php +++ b/linkshorter/view/templ-head.php @@ -10,7 +10,6 @@ diff --git a/linkshorter/view/templ-index.php b/linkshorter/view/templ-index.php index 46ff6a8..619e763 100644 --- a/linkshorter/view/templ-index.php +++ b/linkshorter/view/templ-index.php @@ -21,13 +21,13 @@
-

Options:

+

Options:
-

Everything below is optional.
- +
@@ -42,8 +42,8 @@
- - Choose how long the shortlink should be valid. (In seconds) + + Choose how long the shortlink should be valid. (In seconds, 0 = never)
diff --git a/tools/style.css b/tools/style.css index b5aa321..304eff7 100644 --- a/tools/style.css +++ b/tools/style.css @@ -66,3 +66,7 @@ a { text-decoration: underline; font-weight: bold; } + +.grey { + color: #737373; +} -- cgit v1.2.3