cvs: phpweb / my.php

From: Date: Fri, 26 Oct 2007 16:51:34 +0000
Subject: cvs: phpweb / my.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-369@lists.php.net to get a copy of this message
bjori Fri Oct 26 16:51:34 2007 UTC Modified files: /phpweb my.php Log: Show only active languages as "my preferred alnguage" options http://cvs.php.net/viewvc.cgi/phpweb/my.php?r1=1.33&r2=1.34&diff_format=u Index: phpweb/my.php diff -u phpweb/my.php:1.33 phpweb/my.php:1.34 --- phpweb/my.php:1.33 Thu Oct 18 16:41:29 2007 +++ phpweb/my.php Fri Oct 26 16:51:34 2007 @@ -1,5 +1,5 @@ <?php -// $Id: my.php,v 1.33 2007/10/18 16:41:29 bjori Exp $ +// $Id: my.php,v 1.34 2007/10/26 16:51:34 bjori Exp $ $_SERVER['BASE_PAGE'] = 'my.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; @@ -7,7 +7,8 @@ header_nocache(); // Languages array copy and options to list -$langs = $LANGUAGES; $options = array(); +$langs = array_diff($LANGUAGES, $INACTIVE_ONLINE_LANGUAGES); +$options = array(); // We have post data, and it is an available language if (isset($_POST['my_lang']) && isset($langs[$_POST['my_lang']])) {

« previous php.webmaster (#369) next »