-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.php
79 lines (73 loc) Β· 3.51 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
include('./inc/vars.php');
include('./inc/core.php');
if(isset($_COOKIE['EM'])) {
$EM = $_COOKIE['EM'];
setcookie('EM', '', '0', '/');
}
if(isset($_COOKIE['BL'])) {
$BL = $_COOKIE['BL'];
setcookie('BL', '', '0', '/');
}
include_once('./inc/page.header.php');
?>
<section class="section main">
<div class="container">
<div class="column">
<div class="box">
<form action="/create.php" method="post">
<input readonly style="display: none;" name="token" value="<?=bin2hex(openssl_random_pseudo_bytes(10));?>">
<h2 class="title">Create a ShortLink</h2>
<label title="Required" class="label">Enter URL <span style="color: red;">*</span></label>
<p style="border-bottom: 1px solid #f1f1f1; padding-bottom: 15px;" class="control has-icon has-addons">
<input autocomplete="off" style="min-width: 90%;" class="input" type="text" required name="url" id="url" placeholder="http://phenomena.nationalgeographic.com/2016/06/28/you-can-help-make-maps-for-science-no-experience-needed/">
<span style="margin-top: -1px;" class="icon">
<i class="fa fa-chain"></i>
</span>
<button style="min-width: 10%;" type="submit" class="button is-info" onclick="init_shorten(this)" value="Shorten">Shorten</button>
</p>
<div style="display: flex;" class="columns">
<div class="sbs">
<div style="width: 325px; flex: none;" class="column SL">
<label title="Optional" class="label">Custom ShortLink</label>
<p class="control has-icon">
<input autocomplete="off" style="max-width: 100%;" class="input" type="text" name="customcode" id="customcode" placeholder="Maps4Science">
<span style="margin-top: -1px;" class="icon">
<i class="fa fa-pencil-square-o"></i>
</span>
<span style="display: block; margin-left: 14px;">
β³
<kbd style="background-color: #444444;color: white;font-size: 90%; padding: 2px 8px; border-radius: 10px; margin-top: 5px; margin-left: 5px;">
a<span style="color: #888888;">-</span>z A<span style="color: #888888;">-</span>Z 0<span style="color: #888888;">-</span>9 -
</kbd>
</span>
</p>
</div>
<?php if(reCAPTCHA_ENABLED): ?>
<div style="width: 325px; flex: none;" class="column">
<label title="Required" class="label">Verify Yourself <span style="color: red;">*</span></label>
<div class="g-recaptcha" data-sitekey="<?=reCAPTCHA_SITEKEY;?>"></div></script>
</div>
<?php endif; ?>
</div>
<div style="border-left: 1px solid #f1f1f1;" class="column">
<p>Are you sick of posting URLs in emails only to have it break
when sent causing the recipient to have to cut and paste it
back together? Then you've come to the right place. By entering
in a URL in the text field above, we will create a ShortLink
that <i><b>will not break in email postings</b></i> and
<i><b>never expires</b></i>.</p>
</div>
</div>
</form>
<?php
include_once('./inc/EM.php');
?>
</div>
</div>
</div>
</section>
</div>
<?php
include_once('./inc/page.footer.php');
?>