forked from jmueller17/Aixada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaixada_check.php
51 lines (51 loc) · 1.49 KB
/
aixada_check.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="lang" content="en">
<script type="text/javascript" src="js/jquery/jquery.js"></script>
<title>Aixada Check</title>
<style type="text/css">
#controlToggle {padding-left: 1em;}
#controlToggle li {list-style: none;}
.inline li {display: inline};
</style>
<script>
$(function(){
$('#post_form').submit(function() {
$.ajax({
type: "POST",
url: "aixada_check-ctrl.php",
data: $(this).serialize(),
});
return false;
});
});
</script>
</head>
<body>
<ul>
<li>mysqli: <?php
if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
echo 'no mysqli :(';
} else {
echo 'we gots it';
} ?></li>
<li>PHP datetime: <?php echo date("Y-m-d H:i:s"); ?></li>
<li>JavaScript datetime: <script>document.write(Date());</script></li>
<li>JavaScript TimezoneOffset(hours): <script>
var d = new Date;
document.write(d.getTimezoneOffset()/60 + 'h');</script></li>
<li>JSON datetime: <script>
var d = new Date;
document.write(d.toJSON());</script></li>
<!--
select date_add('2015-04-10', interval 1 day);
-->
<form id="post_form" method="post">
<input type="submit" name="post_submit" value="post_submit">
<input type="text" name="post_text">
</form>
</ul>
</body>
</html>