-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
68 lines (59 loc) · 3.01 KB
/
index.php
File metadata and controls
68 lines (59 loc) · 3.01 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 require_once '_bootstrap.php'; ?>
<!DOCTYPE html>
<html>
<?php Template::renderHeader(); ?>
<body>
<?php Menu::renderNavV2(); ?>
<?php Menu::renderNavV3(); ?>
<style type="text/css">
.featured-table td { height: 24px; }
.featured-table td.value { padding-left: 1rem; }
</style>
<div class="row">
<div class="col col-12">
<div class="col-body content">
<h4>System support</h4>
<table class='featured-table'>
<tr>
<td class="key">PHP Version</td>
<td class="value">: <?= phpversion(); ?></td>
</tr>
<tr>
<td class="key">cURL enabled</td>
<td class="value">: <?= function_exists('curl_version') ? 'yes' : '<span class="color-red">no</span>'; ?></td>
</tr>
<tr>
<td class="key">OMISE_PUBLIC_KEY defined</td>
<td class="value">: <?= defined('OMISE_PUBLIC_KEY') ? 'yes' : '<span class="color-red">no</span> (see, <code>_config.php</code>)'; ?></td>
</tr>
<tr>
<td class="key">OMISE_SECRET_KEY defined</td>
<td class="value">: <?= defined('OMISE_SECRET_KEY') ? 'yes' : '<span class="color-red">no</span> (see, <code>_config.php</code>)'; ?></td>
</tr>
<tr>
<td class="key">OMISE_API_VERSION defined</td>
<td class="value">: <?= defined('OMISE_API_VERSION') ? 'yes' : '<span class="color-red">no</span> (see, <code>_config.php</code>)'; ?></td>
</tr>
<tr>
<td class="key">OMISE_USER_AGENT_SUFFIX defined</td>
<td class="value">: <?= defined('OMISE_USER_AGENT_SUFFIX') ? 'yes' : '<span class="color-red">no</span> (see, <code>_config.php</code>)'; ?></td>
</tr>
<tr>
<td class="key">Omise Account connected</td>
<td class="value">:
<?php
try {
$account = OmiseAccount::retrieve();
echo $account['email'];
} catch (Exception $e) {
echo '<span class="color-red">' . $e->getMessage() . '</span> <em>(make sure the public key and secret key are correct, see: <code>_config.php</code>)</em>';
}
?>
</td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>