diff options
Diffstat (limited to 'linkshorter/view/templ-index.php')
| -rw-r--r-- | linkshorter/view/templ-index.php | 17 |
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> |
