4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 24, 2014, 06:21:49 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support)
| | |-+  [MOD] Language select (Moderators: mawenzi, Rembrandt)
| | | |-+  Message #74088
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 ... 4 5 6 7 [8] 9 10 11 12 ... 16 » »» Print
Current Topic Rating: *****
Author Topic: [MOD] Language select  (Read 173808 times)
ivan
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2279

Thank You
-Given: 4
-Receive: 30


View Profile WWW
« Reply #105 on: July 20, 2006, 08:38:55 PM »

englisch:
hello, i use this mod (version A with dropdown menü).

UPDATE / FIX global.php 1.7.1 - 1.7.4
http://www.4homepages.de/forum/index.php?topic=4743.msg31555#msg31555


FIND
1
2
3
4
5
6
7
if (isset($HTTP_GET_VARS['l']) || isset($HTTP_POST_VARS['l'])) {
  $requested_l = (isset($HTTP_GET_VARS['l'])) ? trim($HTTP_GET_VARS['l']) : trim($HTTP_POST_VARS['l']);
  if ($requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
    $l = $requested_l;
    $config['language_dir'] = $l;
  }
}


REPLACE WITH

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (isset($HTTP_GET_VARS['l']) || isset($HTTP_POST_VARS['l'])) {
  $requested_l = (isset($HTTP_GET_VARS['l'])) ? trim($HTTP_GET_VARS['l']) : trim($HTTP_POST_VARS['l']);
  if (file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
    $l = $requested_l;
    $config['language_dir'] = $l;
    setcookie('4images_lang', $l, (time()+ 60 * 60 * 24 * 365), "/", "", 0);
  }
}
else
{
  if (isset($HTTP_COOKIE_VARS['4images_lang']) && file_exists(ROOT_PATH.'lang/'.$HTTP_COOKIE_VARS['4images_lang'].'/main.php'))
  {
    $l = $config['language_dir'] = $HTTP_COOKIE_VARS['4images_lang'];
  }
}


GREETS IVAN

« Last Edit: November 02, 2006, 12:46:12 PM by ivan » Logged

greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery
Pages: «« « 1 ... 4 5 6 7 [8] 9 10 11 12 ... 16 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.208 seconds with 20 queries.