Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for phpPlatonLib/Platon/Platon.php between version 1.21 and 1.22

version 1.21, 2004/01/02 11:31:39 version 1.22, 2004/01/26 13:53:55
Line 24 
Line 24 
  * @access      public   * @access      public
  */   */
   
 /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.20 2003/07/19 11:52:04 nepto Exp $ */  /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.21 2004/01/02 11:31:39 nepto Exp $ */
   
 class Platon  class Platon
 {  {
Line 167  class Platon
Line 167  class Platon
             return true;              return true;
         }          }
         if (strlen($url) <= 0) {          if (strlen($url) <= 0) {
             die('empty $url in redirect_test()');              trigger_error('empty input parameter $url'
                       .' in Platon::redirect_test()'.$method, E_USER_ERROR);
               return;
         }          }
         $schema = '';          $schema = '';
         if (strncmp($url, "http://", 7)) {          if (strncmp($url, "http://", 7)) {
Line 713  class Platon
Line 715  class Platon
         $l_user_ar = Platon::parse_HTTP_accept_language($accept_lang);          $l_user_ar = Platon::parse_HTTP_accept_language($accept_lang);
         $l_tld     = Platon::get_top_level_domain($remote_host);          $l_tld     = Platon::get_top_level_domain($remote_host);
         $l_tld != false && $l_user_ar += array($l_tld);          $l_tld != false && $l_user_ar += array($l_tld);
         //var_dump($l_user_ar);  
         for ($i = 0; $i < count($l_user_ar); $i++) {          for ($i = 0; $i < count($l_user_ar); $i++) {
             $lang = $l_user_ar[$i];              $lang = $l_user_ar[$i];
             if (in_array($lang, $l_core_ar)) {              if (in_array($lang, $l_core_ar)) {

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top