diff options
| author | root | 2014-11-27 17:59:00 +0100 |
|---|---|---|
| committer | root | 2014-11-27 17:59:00 +0100 |
| commit | 08f3b8c3930ecc009f3473d9cae9e26ad17fb23d (patch) | |
| tree | fcf7091769bb859da5856d42588f7774ed8452c0 /linkshorter | |
| parent | 4f923b809b4e38e0639e253f428fb6c4df03ee67 (diff) | |
| download | tools.iamfabulous.de-08f3b8c3930ecc009f3473d9cae9e26ad17fb23d.tar.gz | |
Small improvements.
Diffstat (limited to 'linkshorter')
| -rw-r--r-- | linkshorter/index.php | 2 | ||||
| -rw-r--r-- | linkshorter/view/templ-head.php | 1 | ||||
| -rw-r--r-- | linkshorter/view/templ-index.php | 8 |
3 files changed, 6 insertions, 5 deletions
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 @@ <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <style> <?php echo file_get_contents("../tools/style.css"); ?> - .grey { color: #737373;} </style> <link rel='shortcut icon' href='<?php echo __domain_; ?>/tools/favicon.ico' type='image/x-icon'> <meta name="viewport" content="width=device-width, initial-scale=1.0"> 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 @@ </div> <div class="form-group"> - <h4>Options:</h4> + <h4>Options:<br>-</h4><span class="grey">Everything below is optional.</span> </div> <div class="form-group"> <label class="col-md-4 control-label grey" for="short">Query String</label> <div class="col-md-4"> - <input id="short" name="short" placeholder="Your own query string here. (optional)" class="form-control input-md" type="text"> + <input id="short" name="short" placeholder="Your own query string here." class="form-control input-md" type="text"> </div> </div> @@ -42,8 +42,8 @@ <div class="form-group"> <label class="col-md-4 control-label grey" for="ttl">Expires</label> <div class="col-md-4"> - <input id="ttl" name="ttl" class="form-control input-md" type="number" min="0"> - <span class="help-block text-left">Choose how long the shortlink should be valid. (In seconds)</span> + <input id="ttl" name="ttl" class="form-control input-md" type="number" min="0" value="0"> + <span class="help-block text-left">Choose how long the shortlink should be valid. (In seconds, 0 = never)</span> </div> </div> |
