remove filename label
[phorkie.git] / www / index.php
1 <?php
2 namespace phorkie;
3 /**
4  * Show paste creation form
5  *
6  * Elements:
7  * - description
8  * - file name (default: default.php)
9  * - content
10  *
11  * Creates and redirects to display page
12  */
13 require_once 'www-header.php';
14
15 $repopo = new Repository_Post();
16 if ($repopo->process($_POST)) {
17     redirect($repopo->repo->getLink('display'));
18 }
19
20 $phork = array(
21     '1' => new File(null, null)
22 );
23 render(
24     'index',
25     array(
26         'files' => $phork,
27         'description' => '',
28         'htmlhelper' => new HtmlHelper(),
29     )
30 );
31 ?>