-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathprompt.php
More file actions
68 lines (62 loc) · 1.42 KB
/
prompt.php
File metadata and controls
68 lines (62 loc) · 1.42 KB
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
<?php
session_start();
include("includes/connect.php");
include("includes/html_codes.php");
$x = $_GET['x'];
function createMessage($x){
if(is_numeric($x)){
switch ($x) {
case 0:
$message = "Your account is now active. You may now <a href=\"login.php\">Log In!</a>";
break;
case 1:
$message = "Thank you for registering! A confirmation email has been sent to your email. Please click on the activation link to activate your account.";
break;
case 2:
$message = "That email address or username has already been registered.";
break;
case 3:
$message = "Sorry, but that item has already been traded!";
break;
case 4:
$message = "Item successfully updated!";
break;
case 5:
$message = "Item successfully deleted!";
break;
case 6:
$message = "Message has been sent!";
break;
case 7:
$message = "Thank you for leaving feedback!";
break;
case 8:
$message = "Item added successfully!";
break;
case 9:
$message = "That is not your item.";
break;
}
echo $message;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Prompt</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/prompt.css">
</head>
<body>
<div id="wrapper">
<?php headerAndSearchCode(); ?>
<div id="outer">
<div id="inner">
<?php createMessage($x); ?>
</div>
</div>
<?php footerCode(); ?>
</div>
</body>
</html>