anonīms Posted February 18, 2009 Report Share Posted February 18, 2009 http://paste.php.lv/5d47bded3e98aa960c8cd8...c35296?lang=php Kapēc nenotiek refresh pēc valodas maiņas? :\ Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 18, 2009 Report Share Posted February 18, 2009 $BASE - tiek kaut kur inicializets? Quote Link to comment Share on other sites More sharing options...
anonīms Posted February 18, 2009 Author Report Share Posted February 18, 2009 (edited) Jā, bet mainiju arī BASE pret prastu adresi. Nekā Hmm dīviani echo "<meta http-equiv=\"Refresh\" content=\"0;url=/index.php\">"; die('abc'); viss iet. Edited February 18, 2009 by anonīms Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 18, 2009 Report Share Posted February 18, 2009 shim ifam jegas nav, pietikshu ar sho te $_LANG = $_REQUEST['lang']; if($_REQUEST['lang'] == "lv" OR $_REQUEST['lang'] == "en" OR $_REQUEST['lang'] == "ru" OR $_REQUEST['lang'] == "ee" OR $_REQUEST['lang'] == "lt"){ $_LANG = $_REQUEST['lang']; } else { $_LANG = "en"; } echo "<meta http-equiv=\"Refresh\" content=\"0;url=".$BASE."\">"; aizvieto ar header("location: $url"); Quote Link to comment Share on other sites More sharing options...
anonīms Posted February 18, 2009 Author Report Share Posted February 18, 2009 (edited) header jau arī mēģināju. Pārlabošu kodu... ieliekot header valodu maiņa vispār nestrādā. header('location: index.php'); šādi iet header('location: /index.php'); šādi nē. Edited February 18, 2009 by anonīms Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 18, 2009 Report Share Posted February 18, 2009 header('location: ./index.php');//vai shadi ies? Quote Link to comment Share on other sites More sharing options...
anonīms Posted February 18, 2009 Author Report Share Posted February 18, 2009 Met tā /lang/en/index.php un vēl. kā ierakstu header tā valodas nestrādā (ru tikai ir, bet nesaprotu kapēc, jo kā def taču ir en) aizkomentēju ciet header (//) un viss iet. Quote Link to comment Share on other sites More sharing options...
anonīms Posted February 18, 2009 Author Report Share Posted February 18, 2009 sry, par dubulto, bet atradu kļūdu. Tātad nomainu valodu un man nerefreshojas un paliek uz /lang/ee/, tad viss ir ok. Tikko kā aizej uz / vai jebkuru citu lapu, tā atkal ir defaultā valoda (en). Aizgāju paskatīties cepumus, man tur viņi ir daudz. Vai tā tam ir jābūt vai arī tikai vienam cepumam? Katrs cepums ar savu saturu (en, lv, lt, u.t.t..) un ceļš ir /lang/lt/ /lv/ u.c.. Vai tā ir jābūt, ka ir vairāki cepumi ar vienādu nosaukumu? Quote Link to comment Share on other sites More sharing options...
marcis Posted February 18, 2009 Report Share Posted February 18, 2009 Jā, tā var būt. Tev cepums ir uz konkrēto ceļu mājaslapā. Palasi setcookie() manuāli. setcookie("gf_league_lang",$_LANG,0,"/"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.