REVERT: variable name change
[phorkie.git] / www / index.php
index d926a1dff8b73045e0dc17ae7bdc95fe09acb412..7ff1814767cb6a619d3ad939d52714c4b19dac42 100644 (file)
@@ -1,31 +1,13 @@
 <?php
 <?php
-namespace phorkie;
 /**
 /**
- * Show paste creation form
- *
- * Elements:
- * - description
- * - file name (default: default.php)
- * - content
- *
- * Creates and redirects to display page
+ * Jump to the index as per the configuration
  */
  */
+namespace phorkie;
+$secureAtLevel = false;
 require_once 'www-header.php';
 
 require_once 'www-header.php';
 
-$repopo = new Repository_Post();
-if ($repopo->process($_POST)) {
-    redirect($repopo->repo->getLink('display'));
-}
-
-$phork = array(
-    '1' => new File(null, null)
-);
-render(
-    'index',
-    array(
-        'files' => $phork,
-        'description' => '',
-        'htmlhelper' => new HtmlHelper(),
-    )
+header(
+    'Location: '
+    . Tools::fullUrl('/' . $GLOBALS['phorkie']['cfg']['index'])
 );
 ?>
 );
 ?>