Files
GEOVizor_PHP/site/main.php
2023-11-07 19:51:49 +06:00

23 lines
666 B
PHP

<?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';
}