Example #1
0
/**
 * Admin Action
 *
 * @param array $entity
 *
 * @return void
 */
function action_admin(array $entity) : void
{
    action_index($entity);
}
Example #2
0
if ($action == 'view') {
    action_view();
} elseif ($action == "categories") {
    action_categories();
} elseif ($action == "category") {
    action_category();
} elseif ($action == "user") {
    action_user();
} elseif ($action == "register") {
    action_register();
} elseif ($action == "activate") {
    action_activate();
} elseif ($action == "login") {
    action_login();
} elseif ($action == "postcomment") {
    action_postcomment();
} elseif ($action == "subscribe") {
    action_subscribe();
} elseif ($action == "unsubscribe") {
    action_unsubscribe();
} else {
    $action = "index";
    $template = $action;
    action_index();
}
HTML::startHTML();
HTML::head($smarty->get_template_vars('page_title'));
HTML::startBODY();
$smarty->display($templates[$template]);
HTML::endBODY();
HTML::endHTML();