-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
75 lines (73 loc) · 1.91 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
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Require Composer's autoloader.
require 'vendor/autoload.php';
// namespace.
use Medoo\Medoo;
use \BinanceApi\Binance;
require_once "src/config.php";
if (isset($_POST["order_number"]))
{
require "src/createinvoice.php";
} elseif (isset($_GET["in"])){
require "src/currencytemplate.php";
} elseif (isset($_POST["invoice_id"]))
{
require "src/updateinvoice.php";
if (!isset($error) && $invoice_id) {
require "src/address.php";
require "src/paytemplate.php";
}
} elseif (isset($_GET['checkpayment'])){
require "src/checkpayment.php";
} elseif (isset($_GET["pay_id"])){
require "src/paycheck.php";
} else {
$error = "No Information Available or Authentication Error. ";
}
if (isset($error)){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css"/>
<title>Error 404</title>
</head>
<body>
<div class="container">
<div class="warning-notification-bar">
<div class="icon">
<img src="assets/img/warning.png" alt="Warning Icon"/>
</div>
<div class="notification">
<?php echo $error; ?>
</div>
</div>
</div>
<?php } elseif (isset($success)){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css"/>
<title>Success Information</title>
</head>
<body>
<div class="container">
<div class="notification-bar">
<div class="icon">
<img src="assets/img/success.png" alt="Success Icon"/>
</div>
<div class="notification">
<?php echo $success; ?>
</div>
</div>
</div>
<?php
}
?>