improved patch #495360

This commit is contained in:
Loïc Chapeaux
2002-02-09 18:04:03 +00:00
parent aaded59105
commit e0c6efdc48
3 changed files with 16 additions and 12 deletions

View File

@@ -8,8 +8,10 @@
require('./libraries/grab_globals.lib.php3');
require('./libraries/common.lib.php3');
// Puts the language to use in a cookie that will expire in 30 days
setcookie('lang', $lang, time() + 60*60*24*30,
substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, '/')) );
if (!isset($cookiePath)) {
$cookiePath = substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, '/'));
}
setcookie('lang', $lang, time() + 60*60*24*30, $cookiePath);
// Defines the "item" image depending on text direction
$item_img = 'images/item_' . $text_dir . '.gif';
// Handles some variables that may have been sent by the calling script