summaryrefslogtreecommitdiff
path: root/index.php
blob: d63d09edf537c2c5e0f8b2a498251fb0ec8d489c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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
}

?>