' . $langs[$_POST['my_lang']] . "\n"; // Remove, so it is not listed two times unset($langs[$_POST['lang']]); } // We have recevied a cookie and it is an available language elseif (isset($_COOKIE['MYPHPNET']) && isset($langs[$_COOKIE['MYPHPNET']])) { // Add this as first option, selected $options[] = '\n"; // Remove, so it is not listed two times unset($langs[$_COOKIE['MYPHPNET']]); } // We have no cookie and no form submitted else { // Add this as first option, selected $options[] = "\n"; } // Add all other languages foreach ($langs as $code => $name) { $options[] = '\n"; } // Assemble form from collected data $langpref = "
"; commonHeader("My PHP.net"); ?>This page allows you to customize the PHP.net site to some degree to your own liking. Currently you can only set the language you prefer, thus overriding any other automatic language selection.
These settings will be active on all official PHP.net mirror sites, and are stored using cookies, so you need to have cookies enabled to let your settings work.
If you use a shortcut or search for a function, the language used is determined by checking for the following settings. The list is in priority order, the first is the most important. Normally you don't need to set your preferred language, as your last seen language is always remembered, and is a good estimate on your preferred language most of the time.
| " . $lin . " | \n"; echo "" . $lid . " | \n
These settings are only overriden in case you have passed a language setting URL parameter or POST data to a page or you are viewing a manual page in a particular language. In these cases, the explicit specification overrides the language selected from the above list.
The language setting is honored when you use an URL shortcut, when you start a function list search on a non-manual page, when you visit the manual download or language selection pages, etc.