]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - index.php
considerable coding
[quix0rs-gnu-social.git] / index.php
1 <?php
2
3 define('INSTALLDIR', dirname(__FILE__));
4
5 require_once(INSTALLDIR . "/common.php");
6
7 $action = $_REQUEST['action'];
8 $actionfile = INSTALLDIR."/actions/$action.php";
9
10 if (file_exists($actionfile)) {
11         require_once($actionfile);
12         $action_class = ucfirst($action) . "Action";
13         if (function_exists($action_function)) {
14         call_user_func($action_function);
15 } else {
16         // redirect to main
17 }
18
19 ?>