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

Diff for phpPlatonLib/Platon/Platon.php between version 1.38 and 1.39

version 1.38, 2007/04/29 13:19:15 version 1.39, 2016/10/10 05:48:34
Line 24 
Line 24 
  * @access      public   * @access      public
  */   */
   
 /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.37 2007-02-01 18:11:23 nepto Exp $ */  /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.38 2007/04/29 13:19:15 nepto Exp $ */
   
 class Platon  class Platon
 {  {
Line 234  class Platon
Line 234  class Platon
             return true;              return true;
         }          }
         if (! isset($_SERVER['PHP_SELF'])          if (! isset($_SERVER['PHP_SELF'])
                 || ! eregi($file, $_SERVER['PHP_SELF'])) {                  || strpos($_SERVER['PHP_SELF'], $file) !== false) {
             return true;              return true;
         }          }
         if (strlen($url) <= 0) {          if (strlen($url) <= 0) {
Line 781  class Platon
Line 781  class Platon
         $accept_lang == null && $accept_lang = (string) @$_SERVER['HTTP_ACCEPT_LANGUAGE'];          $accept_lang == null && $accept_lang = (string) @$_SERVER['HTTP_ACCEPT_LANGUAGE'];
         $accept_lang = strtolower($accept_lang);          $accept_lang = strtolower($accept_lang);
         $accept_lang = str_replace(array("'", '"'), '', $accept_lang);          $accept_lang = str_replace(array("'", '"'), '', $accept_lang);
         $accepted    = split(',[[:space:]]*', $accept_lang);          $accepted    = preg_split('/,[[:space:]]*/', $accept_lang);
         $candidates  = array();          $candidates  = array();
         for ($i = 0; $i < count($accepted); $i++) {          for ($i = 0; $i < count($accepted); $i++) {
             if (eregi('^([a-z0-9_-]+);[[:space:]]*q=([0-9\.]+)', $accepted[$i], $arr)) {              if (preg_match('^/([a-z0-9_-]+);[[:space:]]*q=([0-9\.]+)/i', $accepted[$i], $arr)) {
                 $q = (double)$arr[2];                  $q = (double)$arr[2];
                 $l = $arr[1];                  $l = $arr[1];
             } else {              } else {

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

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