gnu-social/index.php
Evan Prodromou c47de27c11 beginnings of PHP
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
2008-05-07 12:48:07 -04:00

19 lines
386 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_function = 'handle_' . $action;
if (function_exists($action_function)) {
call_user_func($action_function);
} else {
// redirect to main
}
?>