JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
generic editable site
[wfpl-cms.git] / admin.php
diff --git a/admin.php b/admin.php
new file mode 100644 (file)
index 0000000..8c115ce
--- /dev/null
+++ b/admin.php
@@ -0,0 +1,11 @@
+<?php
+
+require_once('code/wfpl/session.php');
+
+function admin_main() {
+       if(!logged_in_as_admin()) {
+               $_REQUEST['url'] = this_url();
+               return 'admin_login';
+       }
+       tem_set('this_host', this_host());
+}