PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Alexander Eist   PHP Multilanguage Site   index.php   Download  
File: index.php
Role: Application script
Content type: text/plain
Description: Application script
Class: PHP Multilanguage Site
Display texts translated into several languages
Author: By
Last change:
Date: 1 year ago
Size: 981 bytes
 

Contents

Class file image Download
<?php
//$lng = DEFAULT_LANGUEAGE;


//------------- connect the libraries
include_once("lang_panel.php");
check_available_lang(PATH_TO_LANGUAGES . DIRECTORY_SEPARATOR . $lng . DB_FILES_EXTENSION);
$labels = file(PATH_TO_LANGUAGES . DIRECTORY_SEPARATOR . $lng . DB_FILES_EXTENSION);
array_unshift($labels, "[". $lang_titile[$lng] . "]");

?>


<!DOCTYPE HTML">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="generator" content="PSPad editor, www.pspad.com">
    <title><?php print($title)?></title>
  <link rel="stylesheet" href="assets/style/style.css" type="text/css" media="screen" />
  </head>
  <body>
<?php
  
include_once("menu_up.php");
?>
<div class="container">
<div class="row">
<!-- TO DO -->
<center>
<h2><?php echo($labels[8])?></h4>
<p><?php echo($labels[9])?></p>
<p><?php echo($labels[10])?></p>
 </center>

</div></div>
</body>
</html>