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