summaryrefslogtreecommitdiff
path: root/linkshorter/view/templ-index.php
diff options
context:
space:
mode:
authorroot2014-11-27 15:55:25 +0100
committerroot2014-11-27 15:55:25 +0100
commit4f923b809b4e38e0639e253f428fb6c4df03ee67 (patch)
tree20d9d9ad9dae0316dad27358b4239b6f18f80e87 /linkshorter/view/templ-index.php
parent311ad398e06cd2eba270ea70ca5a326d03b490f9 (diff)
downloadtools.iamfabulous.de-4f923b809b4e38e0639e253f428fb6c4df03ee67.tar.gz
More structured + better UI
Diffstat (limited to 'linkshorter/view/templ-index.php')
-rw-r--r--linkshorter/view/templ-index.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/linkshorter/view/templ-index.php b/linkshorter/view/templ-index.php
index 17b042e..46ff6a8 100644
--- a/linkshorter/view/templ-index.php
+++ b/linkshorter/view/templ-index.php
@@ -1,6 +1,9 @@
<?php
$title= "Link Shorter";
require 'view/templ-head.php';
+
+ if ( $_scheme . $_SERVER["HTTP_HOST"] != __domain_ )
+ redirect(__domain_ . "/linkshorter/");
?>
<div class="container">
<div class="text-center">
@@ -13,27 +16,31 @@
<div class="form-group">
<label class="col-md-4 control-label" for="url">Link:</label>
<div class="col-md-5">
- <input id="url" name="url" placeholder="http://www.moehm.org/" class="form-control input-md" required="" type="text">
+ <input id="url" name="url" placeholder="Enter a URL to shorten..." class="form-control input-md" required="" type="text">
</div>
</div>
<div class="form-group">
- <label class="col-md-4 control-label grey" for="short">(optional)</label>
+ <h4>Options:</h4>
+ </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." class="form-control input-md" type="text">
+ <input id="short" name="short" placeholder="Your own query string here. (optional)" class="form-control input-md" type="text">
</div>
</div>
<!-- Password input-->
<div class="form-group">
- <label class="col-md-4 control-label grey" for="password">(optional)</label>
+ <label class="col-md-4 control-label grey" for="password">Password</label>
<div class="col-md-4">
<input id="password" name="password" placeholder="Protect your link with a password." class="form-control input-md" type="password">
</div>
</div>
<div class="form-group">
- <label class="col-md-4 control-label grey" for="ttl">(optional)</label>
+ <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>