[grisbi-cvs] grisbi-web/newsportal index.php.en, NONE, 1.1 index.php.fr, NONE, 1.1 config.inc.php, 1.10, 1.11 index.php, 1.6, NONE

NIEL GĂ©rald gegeweb at users.sourceforge.net
Thu May 27 07:51:30 CEST 2010


Update of /cvsroot/grisbi/grisbi-web/newsportal
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21478

Modified Files:
	config.inc.php 
Added Files:
	index.php.en index.php.fr 
Removed Files:
	index.php 
Log Message:

selection automatique de la langue

--- NEW FILE: index.php.fr ---
<? header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");

   $default_lang="fr";
   include "config.inc.php";
   include "auth.inc";
   include "head.inc"; ?>

<h2><? echo htmlspecialchars($title); ?></h2>

<?
include("$file_newsportal");
flush();
$newsgroups=groups_read($server,$port);
echo '<div class="np_index_groups">';
groups_show($newsgroups);
echo '</div>';
?>

<? include "tail.inc"; ?>

--- NEW FILE: index.php.en ---
<? header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");

   include "config.inc.php";
   include "auth.inc";
   include "head.inc"; ?>

<h2><? echo htmlspecialchars($title); ?></h2>

<?
include("$file_newsportal");
flush();
$newsgroups=groups_read($server,$port);
echo '<div class="np_index_groups">';
groups_show($newsgroups);
echo '</div>';
?>

<? include "tail.inc"; ?>

Index: config.inc.php
===================================================================
RCS file: /cvsroot/grisbi/grisbi-web/newsportal/config.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- config.inc.php	26 May 2010 21:59:24 -0000	1.10
+++ config.inc.php	27 May 2010 05:51:27 -0000	1.11
@@ -2,7 +2,7 @@
 /*
  * i18n
  */
-$default_lang="en";
+if (!isset ($default_lang)) $default_lang="en";
 if (isset ($_GET["lang"])) $lang=$_GET["lang"];
 else if (isset ($_POST["lang"])) $lang=$_POST["lang"];
 else $lang=$default_lang;

--- index.php DELETED ---



More information about the cvs mailing list