blob: ee17b73d0a66c4867c60afd9ed3ad7ef39e1f46d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?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
}
?>
|