forked from GNUsocial/gnu-social
67a347bafb
darcs-hash:20080514145436-84dde-d0994cb35d3fe8545d3f08abeec3cdfe7559c67d.gz
19 lines
391 B
PHP
19 lines
391 B
PHP
<?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_class = ucfirst($action) . "Action";
|
|
if (function_exists($action_function)) {
|
|
call_user_func($action_function);
|
|
} else {
|
|
// redirect to main
|
|
}
|
|
|
|
?>
|