summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-07 12:48:07 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-07 12:48:07 -0400
commitc47de27c114c9998acc01fd2c6df185cd271ec2f (patch)
treea3d42ce54a069bdd364ec34be22b7f8f39f33f4d /index.php
parentd0e8a3b9ab2442d812ec897d90612d9833beee26 (diff)
beginnings of PHP
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
Diffstat (limited to 'index.php')
-rw-r--r--index.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 000000000..d63d09edf
--- /dev/null
+++ b/index.php
@@ -0,0 +1,19 @@
+<?php
+
+define('INSTALLDIR', dirname(__FILE__));
+
+require_once(INSTALLDIR . "/common.php");
+
+$action = $_REQUEST['action'];
+$actionfile = INSTALLDIR."/actions/$action.php";
+
+if (file_exists($actionfile)) {
+ require_once($actionfile);
+ $action_function = 'handle_' . $action;
+ if (function_exists($action_function)) {
+ call_user_func($action_function);
+} else {
+ // redirect to main
+}
+
+?> \ No newline at end of file