import of Diogenes 0.9.18
[diogenes.git] / htdocs / index.php
diff --git a/htdocs/index.php b/htdocs/index.php
new file mode 100644 (file)
index 0000000..bc0a8fe
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+// include common definitions
+require_once 'diogenes.common.inc.php';
+require_once 'diogenes.toplevel.inc.php';
+require_once 'Barrel/Editor.php';
+
+$page = new $globals->toplevel;
+
+$editor = new Diogenes_Barrel_Editor();
+$editor->readonly = 1;
+$editor->run($page, 'viewer_content');
+
+$page->assign('greeting', __("Welcome to Diogenes")."!");
+$page->assign('about',
+  $globals->urlise(__("Welcome to the Diogenes content management system.")." ".
+  __("Diogenes was developed by the webmasters of the Polytechnique.org web site.")));
+$page->assign('available',__("The following barrels are currently available"));
+
+$page->display("index.tpl");
+?>