mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 19:52:28 +01:00
33 lines
1.6 KiB
PHP
33 lines
1.6 KiB
PHP
<?php
|
|
if (!@include('config.php')) {
|
|
header('Location:setup.php');
|
|
}
|
|
@session_start();
|
|
if (strlen($_SESSION['username']) < 1 && $li_show_front === true) {
|
|
die("<h1>401 Unauthorized</h1><em><a href='login.php'>Login</a> to access this resource.</em>");
|
|
}
|
|
|
|
require_once('layout-headerlg.php');
|
|
?>
|
|
<h1 class='title'><?php require_once('config.php');echo $wsn;?></h1>
|
|
<form id='shortenform' method="POST" action="createurl.php" role="form">
|
|
<input type="text" class="form-control" placeholder="URL" id="url" value="http://" name="urlr" />
|
|
<div id='options'>
|
|
<br />
|
|
<div class="btn-group btn-toggle" data-toggle="buttons">
|
|
<label class="btn btn-primary btn-sm active">
|
|
<input type="radio" name="options" value="p" checked=""> Public
|
|
</label>
|
|
<label class="btn btn-sm btn-default">
|
|
<input type="radio" name="options" value="s"> Secret
|
|
</label>
|
|
</div> <br /><br />
|
|
<br>Customize link: <br><div style='color: green'><h2 style='display:inline'><?php require_once('config.php');echo $wsa;?>/</h2><input type='text' id='custom' class="form-control" name='custom' /><br>
|
|
<a href="#" class="btn btn-inverse btn-sm" id='checkavail'>Check Availability</a><div id='status'></div></div>
|
|
</div>
|
|
<br><input type="submit" class="btn btn-info" id='shorten' value="Shorten!"/> <a href="#" class="btn btn-warning" id='showoptions'>Link Options</a>
|
|
<input type="hidden" id="hp" name="hp" value="<?php echo $hp; ?>"/>
|
|
</form>
|
|
<br><br><div id="tips" class='text-muted'><i class="fa fa-spinner"></i> Loading Tips...</div>
|
|
<?php require_once('layout-footerlg.php');
|