Старт
This commit is contained in:
22
site/main.php
Normal file
22
site/main.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$url=getURL();
|
||||
$lng=cutBeforeFirst($url, '/');
|
||||
|
||||
|
||||
if(getURL()=="" || getURL()=="/") {
|
||||
include 'index_en.html'; //Основной зык английский и он будет на главной странице
|
||||
}elseif (getURL()=='ru' || getURL()=='ru/'){
|
||||
include 'about_ru.html';
|
||||
}elseif (getURL()=='en/about.html'){
|
||||
include 'about_en.html';
|
||||
}elseif (getURL()=='ru/about.html'){
|
||||
include 'about_ru.html';
|
||||
}elseif(getURL()=="/ru/connecting-and-configuring-a-gps-tracker.html" || getURL()=="/en/connecting-and-configuring-a-gps-tracker.html"){
|
||||
|
||||
}else{
|
||||
//echo 'Error URL: "'.getURL().'" not found in database!';
|
||||
include '404.html';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user