gnu-social/index.php
Evan Prodromou 0036795582 deny access to include files
darcs-hash:20080514190009-84dde-30f0f1b5955d71cd85563e12078ab02bf8645524.gz
2008-05-14 15:00:09 -04:00

20 lines
418 B
PHP

<?php
define('INSTALLDIR', dirname(__FILE__));
define('MICROBLOG', true);
require_once(INSTALLDIR . "/common.php");
$action = $_REQUEST['action'];
$actionfile = INSTALLDIR."/actions/$action.php";
if (file_exists($actionfile)) {
require_once($actionfile);
$action_class = ucfirst($action) . "Action";
if (function_exists($action_function)) {
call_user_func($action_function);
} else {
// redirect to main
}
?>