MINI Sh3ll
<?
$breadcrumb = [];
$breadcrumb[] = ['Home', SITE_ROOT_URL.'home/'];
if($urlparts[0] == 'home')
{
$page_title = 'Home';
$include_page_path = SITE_PAGE_PATH."home/cadmin-home.php";
// echo $include_page_path; die();
}
else if($urlparts[0] == 'plants' && isset($urlparts[1]) && $urlparts[1] != '')
{
$page_title = ($urlparts[1] == 'add-plant' ? 'Add ': 'Edit ').'Plant';
$include_page_path = SITE_PAGE_PATH."plants/plant-details.php";
}
else if($urlparts[0] == 'plants')
{
$page_title = 'Plants';
$include_page_path = SITE_PAGE_PATH."plants/plant-listing.php";
}
else if($urlparts[0] == 'users' && isset($urlparts[1]) && $urlparts[1] != '')
{
$page_title = ($urlparts[1] == 'add-user' ? 'Add ': 'Edit ').'User';
$include_page_path = SITE_PAGE_PATH."users/user-details.php";
}
else if($urlparts[0] == 'users')
{
$page_title = 'Users';
$include_page_path = SITE_PAGE_PATH."users/users-listing.php";
}
?>
OHA YOOOO