Add a checkbox to don't show the paste on the main page

This commit is contained in:
Némunaire 2012-11-05 20:04:26 +01:00
commit 8bb7bbb519
4 changed files with 21 additions and 16 deletions

View file

@ -3,6 +3,15 @@ require_once("../common.php");
if (!empty($_POST["content"]))
{
if (!isset($_POST["title"]))
$_POST["title"] = "";
if (!isset($_POST["author"]))
$_POST["author"] = "";
if (!isset($_POST["lang"]))
$_POST["lang"] = "";
if (!isset($_POST["hide"]))
$_POST["hide"] = 0;
$paste = new Paste();
$paste->create($_POST);