Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 19. apríl 2024

Rozdiely pre Metafox/lib/Platon.php medzi verziami 1.4 a 1.5

verzia 1.4, 2005/11/07 23:32:32 verzia 1.5, 2006/07/08 20:05:34
Riadok 227  class Platon
Riadok 227  class Platon
      */       */
     function redirect_test($file, $url) /* {{{ */      function redirect_test($file, $url) /* {{{ */
     {      {
           if (is_array($file)) {
               foreach ($file as $one_file) {
                   Platon::redirect_test($one_file, $url);
               }
               return true;
           }
         if (! isset($_SERVER['PHP_SELF'])          if (! isset($_SERVER['PHP_SELF'])
                 || ! eregi($file, $_SERVER['PHP_SELF'])) {                  || ! eregi($file, $_SERVER['PHP_SELF'])) {
             return true;              return true;
Riadok 258  class Platon
Riadok 264  class Platon
                 $url = "$schema://$server_name$delim$url";                  $url = "$schema://$server_name$delim$url";
             }              }
         }          }
         header("Location: $url");          Platon::redirect($url);
         exit;  
     } /* }}} */      } /* }}} */
   
     /**      /**
Riadok 688  class Platon
Riadok 693  class Platon
     } /* }}} */      } /* }}} */
   
     /**      /**
        * Removes parameter with value from the query string
        *
        * @param   string  $query_string       query string
        * @param   string  $param              parameter name
        * @param   char    $sep                separator (default: &)
        * @return  string                      modified query string
        */
       function query_string_remove_param($query_string, $param, $sep = '&') /* {{{ */
       {
           $regexp = $sep.$param.'=[^'.$sep.']*';
           $array  = preg_split("/$regexp/", $sep.$query_string);
           $string = join('', $array);
           $string = preg_replace('/^&*/', '',$string);
           return $string;
       } /* }}} */
   
       /**
      * Returns passed path without scriptname; method also accepts array       * Returns passed path without scriptname; method also accepts array
      * returned from Platon::glue_url() method.       * returned from Platon::glue_url() method.
      *       *

Legend:
Odstranené z verzie1.4  
zmenené riadky
  Pridané vo verzii1.5

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok