-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdisplay.php
51 lines (48 loc) Β· 1.37 KB
/
display.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
<?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', '/');
}
if(!isset($EM) && $EM != '00') {
setcookie('EM', '09', '0', '/');
header('Location: /');
//echo "Access Denied";
exit;
}
if(!isset($BL)) {
setcookie('EM', '10', '0', '/');
header('Location: /');
//echo "Actions N/A";
exit;
}
$SLComplete = SHORTLINK_PREFIX.$BL;
include_once('./inc/page.header.php');
?>
<section class="section main">
<div class="container">
<div class="column">
<div class="box">
<h2 class="title">ShortLink Created</h2>
<label class="label">ShortLink URL</label>
<p class="control has-icon has-addons">
<input readonly class="url-code-block" id="Rlink" value="<?=htmlspecialchars($SLComplete);?>">
<button class="button is-info copy" data-copytarget="#Rlink">copy</button>
<a href="<?=htmlspecialchars($SLComplete);?>"><button class="button is-primary copy">open</button></a>
</p>
<?php
include_once('./inc/EM.php');
?>
</div>
</div>
</div>
</section>
</div>
<?php
include_once('./inc/page.footer.php');
?>