@ 2014-06-04T18:43:52Z <?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 (true)
/*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 />
<?
elseif (true)
/*elseif /* (isset($_GET['added']) && ($_GET['added'] == 'thread'))*/
{
?>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td>
<strong>Forums</strong>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Thread Created</strong></td>
</tr>
<tr>
<td colspan="3"><a href="forum.php?fid=$_GET['fid']&tid=$_GET['tid']">Link to thread.</a></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
?>
<?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>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.29 0.011 0.047 12.50 5.4.28 0.011 0.051 12.40 5.4.27 0.008 0.056 12.40 5.4.26 0.009 0.056 12.39 5.4.25 0.008 0.050 12.40 5.4.24 0.009 0.052 12.39 5.4.23 0.009 0.042 12.39 5.4.22 0.007 0.038 12.39 5.4.21 0.006 0.038 12.39 5.4.20 0.013 0.105 12.39 5.4.19 0.004 0.040 12.38 5.4.18 0.008 0.041 12.39 5.4.17 0.011 0.038 12.39 5.4.16 0.004 0.048 12.39 5.4.15 0.012 0.057 12.39 5.4.14 0.009 0.062 12.08 5.4.13 0.009 0.038 12.06 5.4.12 0.010 0.083 12.02 5.4.11 0.011 0.042 12.02 5.4.10 0.008 0.040 12.02 5.4.9 0.009 0.038 12.02 5.4.8 0.009 0.036 12.02 5.4.7 0.010 0.042 12.01 5.4.6 0.011 0.070 12.01 5.4.5 0.010 0.039 12.02 5.4.4 0.009 0.057 12.00 5.4.3 0.017 0.036 12.00 5.4.2 0.018 0.057 11.99 5.4.1 0.012 0.047 12.00 5.4.0 0.016 0.086 11.50 5.3.28 0.008 0.054 12.71 5.3.27 0.007 0.047 12.73 5.3.26 0.007 0.055 12.72 5.3.25 0.012 0.042 12.72 5.3.24 0.011 0.042 12.72 5.3.23 0.009 0.055 12.71 5.3.22 0.007 0.093 12.68 5.3.21 0.019 0.075 12.68 5.3.20 0.012 0.073 12.68 5.3.19 0.009 0.056 12.68 5.3.18 0.010 0.051 12.68 5.3.17 0.005 0.041 12.67 5.3.16 0.006 0.043 12.67 5.3.15 0.013 0.046 12.67 5.3.14 0.008 0.047 12.66 5.3.13 0.010 0.072 12.66 5.3.12 0.007 0.069 12.66 5.3.11 0.010 0.061 12.66 5.3.10 0.007 0.049 12.12 5.3.9 0.008 0.041 12.09 5.3.8 0.006 0.052 12.08 5.3.7 0.007 0.056 12.08 5.3.6 0.013 0.045 12.07 5.3.5 0.011 0.038 12.01 5.3.4 0.009 0.045 12.01 5.3.3 0.012 0.046 11.97 5.3.2 0.004 0.046 11.75 5.3.1 0.006 0.048 11.72 5.3.0 0.008 0.038 11.71
preferences:dark mode live preview
137.32 ms | 1394 KiB | 7 Q