Add a checkbox to don't show the paste on the main page
This commit is contained in:
parent
ca8b5a0c3e
commit
8bb7bbb519
4 changed files with 21 additions and 16 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Reference in a new issue