@ 2014-06-03T15:10:35Z <?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
if (isset($_POST['request']))
{
define("DB_HOST","mysql117.loopia.se");
define("DB_USER","normal@i103189");
define("DB_PASS","KungMicke87");
define("DB_NAME","indiehjaerta_com");
// 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();
}
$email = mysqli_real_escape_string($sqli, $_POST['email']);
$timestamp = date('Y-m-d H:i:s');
$token = sha1(uniqid($email, true));
$url = "http://www.indiehjaerta.com/getpassword.php?token=$token";
//$message = "Press think link $url to reset your password.\n\n If you didn't request a password change please discard this e-mail.";
$message = "This function is currently not working :("
$headers = 'From: [indiehjaerta.com] Admin <no-reply@indiehjaerta.com>' . "\r\n";
mail($email, "[indiehjaerta.com] Password Reset", $message, $headers);
$ip = ip2long($_SERVER['REMOTE_ADDR']);
$query = mysqli_query($sqli,"INSERT INTO passwordrequest (`ipaddress`, `email`, `timestamp`, `token`) VALUES ('$ip', '$email', '$timestamp', '$token')");
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>indiehjaerta.com - Request Password</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/>
<br /> <br />
<?php
if (isset($_POST['request']))
{
?>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>E-mail sent to <?php echo $email ?> with details on how to change password.</strong></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
else
{
?>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form method="post" action="">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Password request.</strong></td>
</tr>
<tr>
<td width="78"><strong>E-mail</strong></td>
<td width="6">:</td>
<td width="294"><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="request" value="Request"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<?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.007 0.057 12.49 5.4.28 0.008 0.053 12.39 5.4.27 0.005 0.049 12.39 5.4.26 0.008 0.038 12.39 5.4.25 0.016 0.043 12.39 5.4.24 0.007 0.040 12.39 5.4.23 0.005 0.040 12.38 5.4.22 0.007 0.037 12.38 5.4.21 0.008 0.034 12.38 5.4.20 0.006 0.042 12.38 5.4.19 0.007 0.037 12.38 5.4.18 0.007 0.040 12.38 5.4.17 0.007 0.036 12.38 5.4.16 0.007 0.036 12.38 5.4.15 0.006 0.037 12.38 5.4.14 0.008 0.036 12.07 5.4.13 0.007 0.037 12.05 5.4.12 0.005 0.037 12.01 5.4.11 0.006 0.036 12.01 5.4.10 0.003 0.038 12.01 5.4.9 0.006 0.046 12.01 5.4.8 0.007 0.038 12.01 5.4.7 0.010 0.032 12.01 5.4.6 0.006 0.037 12.00 5.4.5 0.005 0.037 12.00 5.4.4 0.004 0.038 12.00 5.4.3 0.008 0.043 12.00 5.4.2 0.011 0.045 11.99 5.4.1 0.012 0.049 11.99 5.4.0 0.010 0.045 11.48 5.3.28 0.008 0.049 12.71 5.3.27 0.006 0.054 12.72 5.3.26 0.010 0.038 12.72 5.3.25 0.011 0.032 12.72 5.3.24 0.002 0.044 12.72 5.3.23 0.007 0.043 12.71 5.3.22 0.009 0.040 12.68 5.3.21 0.012 0.037 12.68 5.3.20 0.011 0.052 12.68 5.3.19 0.012 0.039 12.68 5.3.18 0.007 0.040 12.68 5.3.17 0.005 0.040 12.67 5.3.16 0.006 0.039 12.68 5.3.15 0.009 0.037 12.67 5.3.14 0.006 0.040 12.66 5.3.13 0.011 0.052 12.66 5.3.12 0.015 0.054 12.66 5.3.11 0.007 0.043 12.66 5.3.10 0.004 0.039 12.12 5.3.9 0.006 0.037 12.09 5.3.8 0.009 0.049 12.07 5.3.7 0.010 0.045 12.07 5.3.6 0.008 0.043 12.06 5.3.5 0.009 0.035 12.00 5.3.4 0.005 0.045 12.00 5.3.3 0.007 0.039 11.96 5.3.2 0.007 0.050 11.74 5.3.1 0.011 0.047 11.71 5.3.0 0.008 0.048 11.70
preferences:dark mode live preview
140.71 ms | 1386 KiB | 7 Q