2008-05-07 17:48:07 +01:00
|
|
|
<?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);
|
2008-05-14 15:54:36 +01:00
|
|
|
$action_class = ucfirst($action) . "Action";
|
2008-05-07 17:48:07 +01:00
|
|
|
if (function_exists($action_function)) {
|
|
|
|
call_user_func($action_function);
|
|
|
|
} else {
|
|
|
|
// redirect to main
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|