cvs: phpweb / my.php
| From: | Gabor Hojtsy | Date: | Sat, 17 May 2003 12:52:21 +0000 |
| Subject: | cvs: phpweb / my.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17760@lists.php.net to get a copy of this message | ||
goba Sat May 17 08:52:21 2003 EDT
Modified files:
/phpweb my.php
Log:
Store the cookie, using the new
mirror_setcookie() function
Index: phpweb/my.php
diff -u phpweb/my.php:1.14 phpweb/my.php:1.15
--- phpweb/my.php:1.14 Tue May 13 20:50:53 2003
+++ phpweb/my.php Sat May 17 08:52:21 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: my.php,v 1.14 2003/05/14 00:50:53 jacques Exp $ */
+/* $Id: my.php,v 1.15 2003/05/17 12:52:21 goba Exp $ */
include_once "prepend.inc";
@@ -12,8 +12,8 @@
// We have post data, and it is an available language
if (isset($_POST['my_lang']) && isset($langs[$_POST['my_lang']])) {
- // Set the language in a cookie for a year and for all *.php.net servers
- setcookie("MYPHPNET", $_POST['my_lang'], time() + 60*60*24*365,
'/', '.php.net');
+ // Set the language in a cookie for a year
+ mirror_setcookie("MYPHPNET", $_POST['my_lang'], 60*60*24*365);
// Add this as first option, selected
$options[] = '<option value="' . $_POST['my_lang'] . '"
selected>' .