Browse Source

Removing leading /

pull/24/head
Teknikode 8 years ago
parent
commit
28ef4bfa27
  1. 6
      includes/common.php
  2. 3
      templates/default/header.php

6
includes/common.php

@ -57,11 +57,9 @@ function get_subdomain() @@ -57,11 +57,9 @@ function get_subdomain()
function get_page()
{
$url_array = explode("/",$_SERVER["REQUEST_URI"]);
$url_array = explode(explode("/",$_SERVER["REQUEST_URI"])[1]);
$firstPage = strtolower($url_array[1]);
return $firstPage;
return $url_array[1];
}
function get_http($CONF)

3
templates/default/header.php

@ -204,9 +204,6 @@ @@ -204,9 +204,6 @@
<link href="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/css/<?php echo $file; ?>" rel="stylesheet" />
<?php
}
echo $_SERVER["REQUEST_URI"];
echo get_page();
phpinfo();
?>
<!--<link href="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/cache/css/<?php echo $CONF['page']; ?>.teknik.min.css" rel="stylesheet" />-->
<script src="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/cache/js/<?php echo $CONF['page']; ?>.teknik.min.js"></script>

Loading…
Cancel
Save