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); }
function get_current_player() { set_if_exists($current_player, $_SESSION["current_player"]); set_if_not_set($current_player, select_players()[0]["id"]); return $current_player; }