@ 2014-08-02T02:13:50Z <?php
if (isset($_POST['add']))
{
if (isset($_GET['news']) && $_GET['news'] == 'add')
{
$savePost = TRUE;
$emptyStory = FALSE;
$emptyHeadLine = FALSE;
$cutoffheadlineNotNumeric = FALSE;
$cutoffNotNumeric = FALSE;
$story = mysqli_real_escape_string($sqli, $_POST['story']);
$headline = mysqli_real_escape_string($sqli, $_POST['headline']);
$thumbnail = mysqli_real_escape_string($sqli, $_POST['thumbnail']);
$cutoffheadline = mysqli_real_escape_string($sqli, $_POST['cutoffheadline']);
$cutoff = mysqli_real_escape_string($sqli, $_POST['cutoff']);
$timestamp = date('Y-m-d H:i:s');
$userid = $_SESSION['id'];
if (empty($story))
{
$emptyStory = TRUE;
$savePost = FALSE;
}
elseif (empty($headline))
{
$emptyHeadLine = TRUE;
$savePost = FALSE;
}
elseif (!is_numeric($cutoffheadline))
{
$cutoffheadlineNotNumeric = TRUE;
$savePost = FALSE;
}
elseif (!is_numeric($cutoff))
{
$cutoffNotNumeric = TRUE;
$savePost = FALSE;
}
if ($savePost == TRUE)
{
$query = mysqli_query($sqli,"INSERT INTO news (`headline`, `story`, `thumbnail`, `userid`, `timestamp`, `cutoffpointheadline`, `cutoffpoint`) VALUES ('$headline', '$story', '$thumbnail', '$userid', '$timestamp', '$cutoffheadline', '$cutoff')");
header("location:admin.php?news=added");
}
}
elseif (isset($_GET['blog']) && $_GET['blog'] == 'add')
{
$savePost = TRUE;
$emptyStory = FALSE;
$emptyHeadLine = FALSE;
$cutoffheadlineNotNumeric = FALSE;
$cutoffNotNumeric = FALSE;
$story = mysqli_real_escape_string($sqli, $_POST['story']);
$headline = mysqli_real_escape_string($sqli, $_POST['headline']);
$cutoffheadline = mysqli_real_escape_string($sqli, $_POST['cutoffheadline']);
$cutoff = mysqli_real_escape_string($sqli, $_POST['cutoff']);
$timestamp = date('Y-m-d H:i:s');
$userid = $_SESSION['id'];
if (empty($story))
{
$emptyStory = TRUE;
$savePost = FALSE;
}
elseif (empty($headline))
{
$emptyHeadLine = TRUE;
$savePost = FALSE;
}
elseif (!is_numeric($cutoffheadline))
{
$cutoffheadlineNotNumeric = TRUE;
$savePost = FALSE;
}
elseif (!is_numeric($cutoff))
{
$cutoffNotNumeric = TRUE;
$savePost = FALSE;
}
if ($savePost == TRUE)
{
$query = mysqli_query($sqli,"INSERT INTO blog (`headline`, `story`, `thumbnail`, `userid`, `timestamp`, `cutoffpointheadline`, `cutoffpoint`) VALUES ('$headline', '$story', '$userid', '$timestamp', '$cutoffheadline', '$cutoff')");
header("location:admin.php?blog=added");
}
}
elseif (isset($_GET['events']) && $_GET['events'] == 'add')
{
$savePost = TRUE;
$emptyFullName = FALSE;
$emptyShortName = FALSE;
$emptyDescription = FALSE;
$emptyPicture = FALSE;
$fullname = mysqli_real_escape_string($sqli, $_POST['fullname']);
$shortname = mysqli_real_escape_string($sqli, $_POST['shortname']);
$description = mysqli_real_escape_string($sqli, $_POST['description']);
$game = mysqli_real_escape_string($sqli, $_POST['game']);
$picture = mysqli_real_escape_string($sqli, $_POST['picture']);
$giveaway = mysqli_real_escape_string($sqli, $_POST['giveaway']);
$giveawaytype = mysqli_real_escape_string($sqli, $_POST['giveawaytype']); //Can be empty?
$facebooklink = '';
$timestamp = '0000-00-00 00:00:00';
$userid = $_SESSION['id'];
if (empty($fullname))
{
$emptyFullName = TRUE;
$savePost = FALSE;
}
elseif (empty($shortname))
{
$emptyShortName = TRUE;
$savePost = FALSE;
}
elseif (empty($description))
{
$emptyDescription = TRUE;
$savePost = FALSE;
}
elseif (empty($game))
{
$game = 'Not set';
}
elseif (empty($picture))
{
$picture = ''; //Standard picture
}
if ($savePost == TRUE)
{
$query = mysqli_query($sqli,"INSERT INTO blog (`userid`, `name`, `calendarname`, `text`, `game`, `giveaway`, `giveawaytype`, `timestamp`, `picturethumbnail`, `picturecalendar`, `facebooklink`) VALUES ('$userid', '$fullname', '$shortname', '$text', '$game', '$giveaway', '$giveawaytype', '$timestamp', '$picture', '$picture', '$facebooklink')");
header("location:admin.php?events=added");
}
}
}
if (isset($_POST['update'])
{
if (isset($_GET['news']) && $_GET['news'] == 'edit' && isset($_GET['id']) && is_numeric($_GET['id']))
{
$id = mysqli_real_escape_string($sqli, $_POST['id']);
}
else if (isset($_GET['blog']) && $_GET['blog'] == 'edit' && isset($_GET['id']) && is_numeric($_GET['id']))
{
$id = mysqli_real_escape_string($sqli, $_POST['id']);
}
else if (isset($_GET['events']) && $_GET['events'] == 'edit' && isset($_GET['id']) && is_numeric($_GET['id']))
{
$id = mysqli_real_escape_string($sqli, $_POST['id']);
}
else if (isset($_GET['members']) && $_GET['members'] == 'edit' && isset($_GET['id']) && is_numeric($_GET['id']))
{
$id = mysqli_real_escape_string($sqli, $_POST['id']);
}
}
?>
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.31 0.006 0.039 12.54 5.4.30 0.010 0.037 12.55 5.4.29 0.009 0.036 12.55 5.4.28 0.005 0.036 12.44 5.4.27 0.007 0.036 12.45 5.4.26 0.009 0.035 12.45 5.4.25 0.008 0.036 12.44 5.4.24 0.005 0.038 12.45 5.4.23 0.004 0.055 12.44 5.4.22 0.007 0.035 12.43 5.4.21 0.006 0.035 12.44 5.4.20 0.006 0.041 12.44 5.4.19 0.005 0.040 12.43 5.4.18 0.004 0.039 12.43 5.4.17 0.006 0.037 12.44 5.4.16 0.008 0.034 12.43 5.4.15 0.009 0.034 12.43 5.4.14 0.008 0.036 12.12 5.4.13 0.009 0.033 12.11 5.4.12 0.006 0.035 12.07 5.4.11 0.005 0.036 12.06 5.4.10 0.006 0.035 12.06 5.4.9 0.007 0.037 12.06 5.4.8 0.008 0.038 12.07 5.4.7 0.006 0.035 12.06 5.4.6 0.006 0.034 12.06 5.4.5 0.009 0.032 12.06 5.4.4 0.002 0.038 12.05 5.4.3 0.006 0.035 12.05 5.4.2 0.007 0.033 12.04 5.4.1 0.008 0.032 12.05 5.4.0 0.005 0.037 11.54 5.3.28 0.005 0.045 12.71 5.3.27 0.006 0.039 12.72 5.3.26 0.006 0.040 12.72 5.3.25 0.007 0.036 12.72 5.3.24 0.005 0.038 12.72 5.3.23 0.008 0.036 12.71 5.3.22 0.009 0.038 12.68 5.3.21 0.006 0.040 12.68 5.3.20 0.006 0.038 12.68 5.3.19 0.007 0.038 12.68 5.3.18 0.007 0.036 12.67 5.3.17 0.006 0.037 12.67 5.3.16 0.005 0.038 12.67 5.3.15 0.006 0.038 12.68 5.3.14 0.004 0.038 12.66 5.3.13 0.004 0.041 12.66 5.3.12 0.008 0.038 12.66 5.3.11 0.005 0.040 12.65 5.3.10 0.009 0.035 12.13 5.3.9 0.007 0.037 12.11 5.3.8 0.012 0.032 12.11 5.3.7 0.013 0.046 12.11 5.3.6 0.008 0.048 12.09 5.3.5 0.009 0.036 12.03 5.3.4 0.006 0.037 12.03 5.3.3 0.005 0.036 12.00 5.3.2 0.006 0.036 11.77 5.3.1 0.011 0.032 11.74 5.3.0 0.005 0.037 11.73 5.2.17 0.007 0.030 9.23 5.2.16 0.004 0.030 9.23 5.2.15 0.004 0.035 9.23 5.2.14 0.005 0.031 9.22 5.2.13 0.007 0.027 9.19 5.2.12 0.005 0.029 9.19 5.2.11 0.005 0.029 9.20 5.2.10 0.009 0.026 9.19 5.2.9 0.003 0.034 9.19 5.2.8 0.004 0.040 9.19 5.2.7 0.007 0.031 9.19 5.2.6 0.009 0.039 9.13 5.2.5 0.006 0.033 9.11 5.2.4 0.006 0.037 9.08 5.2.3 0.005 0.042 9.06 5.2.2 0.003 0.033 9.06 5.2.1 0.008 0.030 8.99 5.2.0 0.006 0.033 8.85 5.1.6 0.004 0.025 8.14 5.1.5 0.007 0.024 8.14 5.1.4 0.007 0.027 8.13 5.1.3 0.007 0.029 8.48 5.1.2 0.005 0.026 8.50 5.1.1 0.001 0.029 8.22 5.1.0 0.006 0.024 8.22 5.0.5 0.003 0.021 6.72 5.0.4 0.009 0.019 6.58 5.0.3 0.005 0.030 6.38 5.0.2 0.003 0.020 6.36 5.0.1 0.005 0.019 6.34 5.0.0 0.002 0.034 6.34 4.4.9 0.002 0.017 4.78 4.4.8 0.004 0.015 4.75 4.4.7 0.002 0.016 4.75 4.4.6 0.006 0.013 4.75 4.4.5 0.003 0.015 4.77 4.4.4 0.002 0.033 4.71 4.4.3 0.004 0.015 4.75 4.4.2 0.002 0.016 4.84 4.4.1 0.001 0.018 4.85 4.4.0 0.002 0.027 4.76 4.3.11 0.002 0.020 4.67 4.3.10 0.003 0.016 4.66 4.3.9 0.005 0.013 4.63 4.3.8 0.005 0.030 4.61 4.3.7 0.002 0.016 4.63 4.3.6 0.008 0.012 4.63 4.3.5 0.001 0.018 4.63 4.3.4 0.000 0.028 4.56 4.3.3 0.002 0.017 3.37 4.3.2 0.003 0.018 3.35 4.3.1 0.001 0.018 3.31 4.3.0 0.033 0.013 15.25
preferences:dark mode live preview
142.2 ms | 1394 KiB | 7 Q