-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalias_delete.php
executable file
·42 lines (42 loc) · 1.57 KB
/
alias_delete.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
<?php
require_once 'inc/functions.php';
require_once 'inc/common_header.php';
require_once 'api/api.php';
securePage();
require 'inc/bind.php';
?>
<html>
<head>
<?php
require 'inc/header.php';
$alias = filter_var( $_GET['alias'] , FILTER_SANITIZE_STRING );
if( isset( $_GET['confirm'] ) ) {
plugins_process( "alias_delete" , "submit" );
alias_delete( $alias );
go( "alias.php?deleted" );
}
?>
</head>
<body>
<?php require 'inc/topbar.php'; ?>
<div class="container">
<div class="row">
<div class="col">
<h1>Delete Aliases</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="alias.php">Alias</a></li>
<li class="breadcrumb-item active" aria-current="page">Delete</li>
</ol>
</nav>
<?php plugins_process( "alias_delete" , "submit" ); ?>
<div class="alert alert-warning">Are you sure you want to delete `<?php echo $alias; ?>`?</div>
<p>
<a href="alias_delete.php?alias=<?php echo $alias; ?>&confirm" class="btn btn-danger"><i class="fas fa-check"></i> Yes</a>
<a href="alias.php" class="btn btn-success"><i class="fas fa-times"></i> No</a>
</p>
</div>
</div>
</div>
</body>
</html>