summaryrefslogtreecommitdiff
path: root/index.php
blob: 7237c08bc00f0527baba544d45e188fd8b9e36a4 (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_class = ucfirst($action) . "Action";
	if (function_exists($action_function)) {
	call_user_func($action_function);
} else {
	// redirect to main
}

?>