-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshield.php
More file actions
30 lines (26 loc) · 996 Bytes
/
shield.php
File metadata and controls
30 lines (26 loc) · 996 Bytes
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
<?php session_start();
require_once('activate.php');
if(isset($_POST['submit']))
{
$username = $_POST['username'];
$password = $_POST['password'];
$active = $_POST['active'];
if(empty($username)){
$_SESSION['msg'] = "<div class=\"alert alert-danger\" role=\"alert\"><strong>Error!</strong> Please Check Your Username Or Password And Try Again.</div>";
header("Location: index.php");
}else{
if (empty($password)) {
$_SESSION['msg'] = "<div class=\"alert alert-danger\" role=\"alert\"><strong>Error!</strong> Please Check Your Username Or Password And Try Again.</div>";
header("Location: index.php");
}else{
try {
$activateSheild = new FbShield($username, $password, $active);
$activateSheild->request();
header("Location: index.php");
}catch(Exception $e){
$_SESSION['msg'] = "<div class=\"alert alert-danger\" role=\"alert\"><strong>Error!</strong> {$e->getMessage()} </div>";
header("Location: index.php");
}
}
}
}