09-04-2022
-localization work fine -prepare for $_SESSION
This commit is contained in:
36
index.php
36
index.php
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr-FR">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
@@ -43,28 +43,6 @@ $pv_URIprotocol = isset($_SERVER["HTTPS"]) ? (($_SERVER["HTTPS"]==="on" || $_SER
|
||||
$host = $pv_URIprotocol . $_SERVER['HTTP_HOST'];
|
||||
|
||||
$wp = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
|
||||
|
||||
/*
|
||||
//if ($_SERVER['SERVER_NAME'] == 'airbook.local')
|
||||
$root = $_SERVER['DOCUMENT_ROOT'];
|
||||
//$root = dirname($_SERVER['SCRIPT_FILENAME']); // /Users/bruno/Sites/sls
|
||||
include($root.'/lib2/localize.php');
|
||||
$dir_locales = $root . '/Locale';
|
||||
|
||||
$liste_locale = list_dir($dir_locales);
|
||||
if ((!isset($_POST['lang'])) and (!isset($_GET['lang']))) $langue = locale_language_from_browser($myLanguages);
|
||||
else $langue = $_REQUEST['lang'];
|
||||
|
||||
$domain = 'sentier';
|
||||
putenv('LC_ALL=' . $langue);
|
||||
$loc = setlocale(LC_ALL, $langue);
|
||||
|
||||
bindtextdomain($domain, $root . '/Locale/');
|
||||
bind_textdomain_codeset($domain, 'UTF-8');
|
||||
textdomain($domain);
|
||||
|
||||
$nation = array('fr_FR' => gettext('French'), 'en_US' => gettext('English') , 'de_DE' => gettext('German'), 'es_ES' => gettext('Spanish') );
|
||||
*/
|
||||
?>
|
||||
|
||||
</head>
|
||||
@@ -72,14 +50,14 @@ $nation = array('fr_FR' => gettext('French'), 'en_US' => gettext('English') , 'd
|
||||
<body>
|
||||
|
||||
<script>
|
||||
|
||||
$("#exemple, body").vegas({
|
||||
slides: [
|
||||
<?php
|
||||
foreach($fileList as $filename){
|
||||
echo '{ src: "' . $filename . '" },' . "\r\n";
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
foreach($fileList as $filename){
|
||||
echo '{ src: "' . $filename . '" },' . "\r\n";
|
||||
}
|
||||
?>
|
||||
],
|
||||
animation: 'random',
|
||||
animationDuration: '20000',
|
||||
|
||||
Reference in New Issue
Block a user