We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

index.php 418 Bytes
Newer Older
Evan Prodromou's avatar
Evan Prodromou committed
1 2 3
<?php

define('INSTALLDIR', dirname(__FILE__));
Evan Prodromou's avatar
Evan Prodromou committed
4
define('MICROBLOG', true);
Evan Prodromou's avatar
Evan Prodromou committed
5 6 7 8 9 10 11 12

require_once(INSTALLDIR . "/common.php");

$action = $_REQUEST['action'];
$actionfile = INSTALLDIR."/actions/$action.php";

if (file_exists($actionfile)) {
	require_once($actionfile);
Evan Prodromou's avatar
Evan Prodromou committed
13
	$action_class = ucfirst($action) . "Action";
Evan Prodromou's avatar
Evan Prodromou committed
14 15 16 17 18 19 20
	if (function_exists($action_function)) {
	call_user_func($action_function);
} else {
	// redirect to main
}

?>