14 lines
211 B
PHP
14 lines
211 B
PHP
<?php
|
|
require_once("../common.php");
|
|
|
|
if (!empty($_POST["content"]))
|
|
{
|
|
$paste = new Paste();
|
|
$paste->create($_POST);
|
|
|
|
header("Location: /?".$paste->save());
|
|
exit;
|
|
}
|
|
|
|
header("Location: /");
|
|
?>
|