-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
48 lines (47 loc) · 1.55 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="includes/css/bootstrap.min.css">
<title>PomfBoards - /everythinggoes/</title>
</head>
<body>
<div class="container-fluid">
<center><h1>/everythinggoes/</h1></center>
<center><p>Alpha V.0.0.0.0.0.1 @ <a href="https://github.com/nokonoko/Pomf-Board">Github</a></p></center>
<form action="api.php" method="POST">
<form class="form-inline">
<div class="form-group">
<input type="name" class="form-control" id="name" name="name" placeholder="Anon">
</div>
<div class="form-group">
<input disabled maxlength="1000" size="3" value="10" id="counter">
<textarea class="form-control" rows="5" id="text" onkeyup="textCounter(this,'counter',1000);" name="text" placeholder="Max 1000 chars" maxlength="1000"></textarea>
<script>
function textCounter(field, field2, maxlimit) {;
var countfield = document.getElementById(field2);
if (field.value.length > maxlimit) {
field.value = field.value.substring(0, maxlimit);
return false;
} else {
countfield.value = maxlimit - field.value.length;
}
}
</script>
</div>
<button type="submit" class="btn btn-default">Post!</button>
</form><br>
<?php
if(PHP_ERRORS == 'true'){
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
}
require_once('includes/php/core.php');
GetPost();
?>
</div>
</body>
</html>