if($db_name==""){
include "includes/config.inc.php";
}
$url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$keys = parse_url($url); // parse the url
$path = explode("/", $keys['path']); // splitting the path
$pagina = end($path); // get the value of the last element
?>