Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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());
+}