@ 2014-08-02T02:13:05Z <?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.008 0.036 12.49 5.4.30 0.007 0.035 12.50 5.4.29 0.005 0.039 12.49 5.4.28 0.008 0.033 12.39 5.4.27 0.004 0.037 12.39 5.4.26 0.006 0.037 12.39 5.4.25 0.007 0.036 12.39 5.4.24 0.009 0.032 12.39 5.4.23 0.007 0.037 12.38 5.4.22 0.005 0.036 12.38 5.4.21 0.002 0.039 12.38 5.4.20 0.006 0.037 12.38 5.4.19 0.011 0.036 12.38 5.4.18 0.005 0.038 12.38 5.4.17 0.005 0.038 12.38 5.4.16 0.006 0.036 12.38 5.4.15 0.014 0.041 12.38 5.4.14 0.012 0.046 12.07 5.4.13 0.008 0.036 12.05 5.4.12 0.005 0.037 12.01 5.4.11 0.004 0.040 12.01 5.4.10 0.007 0.036 12.01 5.4.9 0.005 0.038 12.02 5.4.8 0.007 0.035 12.01 5.4.7 0.009 0.031 12.01 5.4.6 0.006 0.034 12.01 5.4.5 0.006 0.041 12.01 5.4.4 0.007 0.040 12.00 5.4.3 0.006 0.041 11.99 5.4.2 0.007 0.034 11.98 5.4.1 0.007 0.033 11.99 5.4.0 0.006 0.037 11.48 5.3.28 0.006 0.039 12.71 5.3.27 0.007 0.040 12.72 5.3.26 0.007 0.039 12.72 5.3.25 0.005 0.038 12.72 5.3.24 0.005 0.039 12.72 5.3.23 0.006 0.038 12.71 5.3.22 0.004 0.039 12.68 5.3.21 0.006 0.038 12.68 5.3.20 0.006 0.036 12.68 5.3.19 0.004 0.039 12.68 5.3.18 0.004 0.038 12.67 5.3.17 0.006 0.043 12.67 5.3.16 0.004 0.038 12.67 5.3.15 0.008 0.035 12.68 5.3.14 0.009 0.035 12.66 5.3.13 0.005 0.040 12.66 5.3.12 0.005 0.040 12.66 5.3.11 0.005 0.039 12.66 5.3.10 0.005 0.037 12.12 5.3.9 0.003 0.039 12.09 5.3.8 0.008 0.033 12.07 5.3.7 0.009 0.040 12.07 5.3.6 0.007 0.036 12.06 5.3.5 0.008 0.035 12.00 5.3.4 0.005 0.037 12.00 5.3.3 0.008 0.038 11.95 5.3.2 0.010 0.031 11.73 5.3.1 0.004 0.038 11.70 5.3.0 0.007 0.035 11.68 5.2.17 0.003 0.032 9.19 5.2.16 0.004 0.030 9.18 5.2.15 0.007 0.028 9.19 5.2.14 0.003 0.033 9.18 5.2.13 0.002 0.032 9.15 5.2.12 0.004 0.029 9.15 5.2.11 0.002 0.032 9.15 5.2.10 0.005 0.028 9.14 5.2.9 0.005 0.029 9.15 5.2.8 0.006 0.029 9.14 5.2.7 0.003 0.031 9.14 5.2.6 0.004 0.030 9.10 5.2.5 0.004 0.030 9.06 5.2.4 0.003 0.030 9.04 5.2.3 0.006 0.028 9.02 5.2.2 0.007 0.026 9.01 5.2.1 0.004 0.029 8.94 5.2.0 0.002 0.035 8.79 5.1.6 0.002 0.027 8.07 5.1.5 0.002 0.027 8.07 5.1.4 0.004 0.024 8.05 5.1.3 0.003 0.027 8.40 5.1.2 0.002 0.030 8.43 5.1.1 0.006 0.024 8.14 5.1.0 0.002 0.028 8.14 5.0.5 0.004 0.020 6.63 5.0.4 0.005 0.018 6.48 5.0.3 0.003 0.032 6.29 5.0.2 0.003 0.020 6.27 5.0.1 0.003 0.020 6.25 5.0.0 0.003 0.031 6.24 4.4.9 0.005 0.013 4.78 4.4.8 0.002 0.015 4.75 4.4.7 0.004 0.018 4.75 4.4.6 0.005 0.018 4.75 4.4.5 0.004 0.016 4.77 4.4.4 0.003 0.025 4.71 4.4.3 0.003 0.015 4.76 4.4.2 0.005 0.014 4.84 4.4.1 0.001 0.018 4.85 4.4.0 0.004 0.024 4.76 4.3.11 0.002 0.016 4.67 4.3.10 0.002 0.016 4.66 4.3.9 0.002 0.015 4.63 4.3.8 0.004 0.023 4.58 4.3.7 0.001 0.016 4.63 4.3.6 0.001 0.016 4.63 4.3.5 0.002 0.016 4.63 4.3.4 0.002 0.024 4.54 4.3.3 0.001 0.017 3.29 4.3.2 0.002 0.016 3.26 4.3.1 0.002 0.017 3.22 4.3.0 0.000 0.023 7.21
preferences:dark mode live preview
142.32 ms | 1398 KiB | 7 Q