Commit ab243ae7f108ce0464c2332a98b744bc05ee575f

Authored by Eugeny Galkovskiy
1 parent c7eb9ecb

utm

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
index.php
1 1 <?php
2 2 $url = $_SERVER['REQUEST_URI'];
3 3 $url = mb_substr( $url, 1);
  4 + $urld = explode("?",$url);
  5 + $url = $urld['0'];
4 6 $url_ar = explode("/",$url);
5 7 $part = $url_ar['0'];
6 8 $partar = explode(".",$part);
  9 +
  10 + /*if(isset($_GET)){
  11 + print_r($_GET);
  12 + }*/
  13 +
7 14 if($partar['0'] == ''){
8 15 $partar['0'] = 'index';
9 16 $partar['1'] = 'html';
... ... @@ -16,5 +23,6 @@
16 23 }
17 24 else{$file = 'parts/error.php';}
18 25 require("blocks/html_start.php");
19   - require("blocks/menu.php");require_once($file);
  26 + require("blocks/menu.php");
  27 + require_once($file);
20 28 ?>
21 29 \ No newline at end of file
... ...