|
|
|
@ -54,23 +54,9 @@
|
|
|
|
|
* );
|
|
|
|
|
*/
|
|
|
|
|
require_once('vars.php');
|
|
|
|
|
?>
|
|
|
|
|
<!DOCTYPE html
|
|
|
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
|
|
|
|
|
<title>BBS | ピケ.コム</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<p>
|
|
|
|
|
[<a href="#bottom">bottom</a>]
|
|
|
|
|
</p>
|
|
|
|
|
//// Functions: ////
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
// Adds a post to the database
|
|
|
|
|
function post($name, $comment, $img, $save_cookie) {
|
|
|
|
|
$extensions = [
|
|
|
|
@ -238,7 +224,23 @@
|
|
|
|
|
if($status != 204)
|
|
|
|
|
die("Error: Sending webhook failed with status $status.");
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<!DOCTYPE html
|
|
|
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
|
|
|
|
|
<title>BBS | ピケ.コム</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<p>
|
|
|
|
|
[<a href="#bottom">bottom</a>]
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
// Connect to the database
|
|
|
|
|
$dbc = pg_connect("host=$DB_HOST dbname=$DB_NAME user=$DB_USER password=$DB_PASSWORD")
|
|
|
|
|
or die('Could not connect: ' . pg_last_error());
|
|
|
|
|