17 lines
624 B
PHP
17 lines
624 B
PHP
<?php
|
|
require_once('/var/www/html/.htac_header.php');
|
|
require_once('/var/www/html/.htac_nav.php');
|
|
if(isset($url[2])){
|
|
$slug2="";
|
|
if (strpos($url[2], "?") !== false) {
|
|
$url2 = explode('?', $url[2]);
|
|
$slug2=$url2[0];
|
|
} else $slug2=$url[2];
|
|
if($slug2=="") require_once('notifications/_home.php');
|
|
elseif(file_exists(__DIR__."/notifications/".$slug2.".php")) include __DIR__."/notifications/".$slug2.".php";
|
|
else require_once('notifications/.htac_404.php');
|
|
}
|
|
else require_once('notifications/_home.php');
|
|
|
|
// uri - slug handler ends
|
|
?>
|