cvs: phpweb /include langchooser.inc

From: Date: Fri, 14 Mar 2003 09:39:15 +0000
Subject: cvs: phpweb /include langchooser.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-16343@lists.php.net to get a copy of this message
derick Fri Mar 14 04:39:15 2003 EDT Modified files: /phpweb/include langchooser.inc Log: - Remember the last selected language from the langchooser on every manual page. Index: phpweb/include/langchooser.inc diff -u phpweb/include/langchooser.inc:1.16 phpweb/include/langchooser.inc:1.17 --- phpweb/include/langchooser.inc:1.16 Thu Mar 13 12:43:14 2003 +++ phpweb/include/langchooser.inc Fri Mar 14 04:39:15 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: langchooser.inc,v 1.16 2003/03/13 17:43:14 goba Exp $ +// $Id: langchooser.inc,v 1.17 2003/03/14 09:39:15 derick Exp $ /* @@ -54,6 +54,9 @@ // Specified for the request (GET/POST parameter) if (isset($_REQUEST['lang'])) { $explicitly_specified = language_add($_REQUEST['lang'], $languages); + + // Set the language in a cookie for a year and for all *.php.net servers + setcookie("MYPHPNET", $_REQUEST['lang'], time() + 60*60*24*365, '/', '.php.net'); } // Specified in a shortcut URL (eg. /en/echo or /pt_br/echo)

« previous php.mirrors (#16343) next »