|
|
@ -13,29 +13,20 @@ function angeltypes_title() {
|
|
|
|
function angeltypes_controller() {
|
|
|
|
function angeltypes_controller() {
|
|
|
|
if (! isset($_REQUEST['action']))
|
|
|
|
if (! isset($_REQUEST['action']))
|
|
|
|
$_REQUEST['action'] = 'list';
|
|
|
|
$_REQUEST['action'] = 'list';
|
|
|
|
|
|
|
|
|
|
|
|
switch ($_REQUEST['action']) {
|
|
|
|
switch ($_REQUEST['action']) {
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
case 'list':
|
|
|
|
case 'list':
|
|
|
|
list($title, $content) = angeltypes_list_controller();
|
|
|
|
return angeltypes_list_controller();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'view':
|
|
|
|
case 'view':
|
|
|
|
list($title, $content) = angeltype_controller();
|
|
|
|
return angeltype_controller();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'edit':
|
|
|
|
case 'edit':
|
|
|
|
list($title, $content) = angeltype_edit_controller();
|
|
|
|
return angeltype_edit_controller();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'delete':
|
|
|
|
case 'delete':
|
|
|
|
list($title, $content) = angeltype_delete_controller();
|
|
|
|
return angeltype_delete_controller();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'about':
|
|
|
|
case 'about':
|
|
|
|
list($title, $content) = angeltypes_about_controller();
|
|
|
|
return angeltypes_about_controller();
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return array(
|
|
|
|
|
|
|
|
$title,
|
|
|
|
|
|
|
|
$content
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|