Example #1
0
function search_by_tag_path($tag)
{
    $binet_prefix = isset($_GET["prefix"]) && $_GET["prefix"] == "binet" ? binet_prefix(binet, term) : "";
    $query_array = is_selected_tag($tag, $GLOBALS["query_array"]) ? query_array_unselecting_tag($tag, $GLOBALS["query_array"]) : query_array_selecting_tag($tag, $GLOBALS["query_array"]);
    set_if_exists($id, $_GET[$_GET["controller"]]);
    set_if_not_set($id, "");
    return path($_GET["action"], $_GET["controller"], $id, $binet_prefix, $query_array);
}
Example #2
0
function redirect_to_action($action)
{
    $path = path($action, $_GET["controller"], isset($GLOBALS[$_GET["controller"]]["id"]) && $_GET["action"] != "delete" && !in_array($action, array("new", "create", "index")) ? $GLOBALS[$_GET["controller"]]["id"] : "", isset($_GET["prefix"]) && $_GET["prefix"] == "binet" ? binet_prefix(binet, term) : "");
    redirect_to_path($path);
}