<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
define("DB_HOST","mysql117.loopia.se");
define("DB_USER","normal@i103189");
define("DB_PASS","KungMicke87");
define("DB_NAME","indiehjaerta_com");
if (isset($_POST['add']))
{
//forumreplies
if (isset($_POST['forumid']) && (!empty($_POST['forumid'])))
{
// Connect to MySQLi
$sqli = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME) or die("Error: ".mysqli_error($sqli));
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$saveThread = TRUE;
$emptyStory = FALSE;
$emptyText = FALSE;
$subject = mysqli_real_escape_string($sqli, $_POST['subject']);
$text = mysqli_real_escape_string($sqli, $_POST['text']);
$fid = mysqli_real_escape_string($sqli, $_POST['forumid']);
$query = mysqli_query($sqli,"SELECT * FROM forumcat WHERE id='$fid'") or die("Error: ".mysqli_error($sqli));
$results = mysqli_num_rows($query);
if ($results == 0)
{
$error = "No such CategoryID.";
}
else
{
$timestamp = date('Y-m-d H:i:s');
$userid = $_SESSION['id'];
if (empty($subject))
{
$emptySubject = TRUE;
$saveThread = FALSE;
}
elseif (empty($text))
{
$emptyText = TRUE;
$saveThread = FALSE;
}
if ($saveThread == TRUE)
{
$addquery = mysqli_query($sqli,"INSERT INTO forumtopics (`threadname`, `text`, `categoryid`, `userid`, `timestamp`) VALUES ('$subject', '$text', '$fid', '$userid', '$timestamp')");
$tid = mysqli_insert_id($addquery);
header("location:forummessage.php?added=thread&fid=$fid&tid=$tid");
}
}
}
else
{
echo "No ForumID set.";
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>indiehjaerta.com - Forum</title>
<link href="style_test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="login.php">Login<a/> -
<a href="admin.php">Admin<a/> -
<a href="members.php">Members<a/> -
<a href="register.php">Register<a/> -
<a href="blog.php">Blog<a/> -
<a href="news.php">News<a/> -
<a href="event.php">Event<a/> -
<a href="forum.php">Forum<a/> -
<a href="logout.php">Logout<a/>
<br />
<hr />
<br />
<?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$total_time = round(($finish - $start), 4);
echo '<span class="text">Page generated in '.$total_time.' seconds.</span><br />';
?>
</body>
</html>
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.44, 5.5.0 - 5.5.21, 5.5.23 - 5.5.37, 5.6.0 - 5.6.20, 5.6.22 - 5.6.28, 7.0.0 - 7.0.14, 7.1.0, 7.1.7, 7.2.0, 7.2.2 - 7.2.3, 7.2.5 - 7.2.6, 7.2.8 - 7.2.9, 7.2.12 - 7.2.13, 7.3.0 - 7.3.1
- <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>indiehjaerta.com - Forum</title>
<link href="style_test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="login.php">Login<a/> -
<a href="admin.php">Admin<a/> -
<a href="members.php">Members<a/> -
<a href="register.php">Register<a/> -
<a href="blog.php">Blog<a/> -
<a href="news.php">News<a/> -
<a href="event.php">Event<a/> -
<a href="forum.php">Forum<a/> -
<a href="logout.php">Logout<a/>
<br />
<hr />
<br />
<span class="text">Page generated in 0 seconds.</span><br />
</body>
</html>
- Output for 5.4.45, 5.5.22, 5.5.38, 5.6.21, 7.0.20, 7.1.5 - 7.1.6, 7.2.4, 7.2.7, 7.2.10 - 7.2.11
- <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>indiehjaerta.com - Forum</title>
<link href="style_test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="login.php">Login<a/> -
<a href="admin.php">Admin<a/> -
<a href="members.php">Members<a/> -
<a href="register.php">Register<a/> -
<a href="blog.php">Blog<a/> -
<a href="news.php">News<a/> -
<a href="event.php">Event<a/> -
<a href="forum.php">Forum<a/> -
<a href="logout.php">Logout<a/>
<br />
<hr />
<br />
<span class="text">Page generated in 0.0001 seconds.</span><br />
</body>
</html>
- Output for 7.2.1
- <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>indiehjaerta.com - Forum</title>
<link href="style_test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="login.php">Login<a/> -
<a href="admin.php">Admin<a/> -
<a href="members.php">Members<a/> -
<a href="register.php">Register<a/> -
<a href="blog.php">Blog<a/> -
<a href="news.php">News<a/> -
<a href="event.php">Event<a/> -
<a href="forum.php">Forum<a/> -
<a href="logout.php">Logout<a/>
<br />
<hr />
<br />
<span class="text">Page generated in 0.0578 seconds.</span><br />
</body>
</html>
- Output for 7.1.25
- <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>indiehjaerta.com - Forum</title>
<link href="style_test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="login.php">Login<a/> -
<a href="admin.php">Admin<a/> -
<a href="members.php">Members<a/> -
<a href="register.php">Register<a/> -
<a href="blog.php">Blog<a/> -
<a href="news.php">News<a/> -
<a href="event.php">Event<a/> -
<a href="forum.php">Forum<a/> -
<a href="logout.php">Logout<a/>
<br />
<hr />
<br />
<span class="text">Page generated in 0.0422 seconds.</span><br />
</body>
</html>
preferences:
201.78 ms | 402 KiB | 233 Q