

<?php
function breadcrumbs($sep = '', $home = 'Dashboard')
{
$site = 'http://'.$_SERVER['HTTP_HOST'];
$crumbs = explode('/', strrev($_SERVER["REQUEST_URI"]), 2);
$homeurl = $site.strrev($crumbs[1]);
$page = strrev($crumbs[0]);
$link = ucfirst(str_replace( array(".php","-","_"), array(""," "," ") ,$page));
$bc = '<ol class="breadcrumb">';
$bc .= '<li class="breadcrumb-item"><a href="'.$homeurl.'/index.php'.'">'.$home.'</a>'.$sep.'</li>';
    if($link == "Index")
    {
        $bc .= '<li class="breadcrumb-item active">Minimalistic</li>';
    }
    elseif($link == "Index2")
    {
        $bc .= '<li class="breadcrumb-item active">Demographical</li>';
    }
    elseif($link == "Index3")
    {
        $bc .= '<li class="breadcrumb-item active">Analitical</li>';
    }
    elseif($link == "Index4")
    {
        $bc .= '<li class="breadcrumb-item active">Simpler</li>';
    }
    else
    {
        $bc .= '<li class="breadcrumb-item active">'.$link.'</li>'; 
    }
$bc .= '</ol>';
return $bc;
}
?>