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.10 and 1.11

version 1.10, 2003/01/13 13:24:11 version 1.11, 2003/01/13 13:34:00
Line 149  class Platon
Line 149  class Platon
         return true;          return true;
     } /* }}} */      } /* }}} */
   
     /** common/cgi/fnc.get_cgi_var.php - return value of CGI variable      /**
        * Returns value of CGI variable.
        *
        * @param   string  $name           CGI variable name
        * @param   mixed   $default_value  what to return if variable not present
        * @return                          stripslashed value of CGI variable
      */       */
     function get_cgi_var($name, $default_value = null) /* {{{ */      function get_cgi_var($name, $default_value = null) /* {{{ */
     {      {
         global $HTTP_GET_VARS;          global $HTTP_GET_VARS;
         $var = $HTTP_GET_VARS[$name];          $var = @$HTTP_GET_VARS[$name];
         if (! isset($var)) {          if (! isset($var)) {
             global $HTTP_POST_VARS;              global $HTTP_POST_VARS;
             $var = $HTTP_POST_VARS[$name];              $var = @$HTTP_POST_VARS[$name];
         }          }
         if (isset($var)) {          if (isset($var)) {
             if (is_array($var)) {              if (is_array($var)) {
Line 173  class Platon
Line 178  class Platon
         return $var;          return $var;
     } /* }}} */      } /* }}} */
   
     /** common/misc/fnc.chdir_back.php - changes directory back of $dir     /**
        * Changes directory back of $dir.
        *
        * @param   string  $dir    directory path
        * @return                  none
      */       */
     //require_once dirname(__FILE__) . '/fnc.dir_back.php';  
   
     function chdir_back($dir) /* {{{ */      function chdir_back($dir) /* {{{ */
     {      {
         $dir_back = Platon::dir_back($dir);          $dir_back = Platon::dir_back($dir);
Line 185  class Platon
Line 192  class Platon
         return false;          return false;
     } /* }}} */      } /* }}} */
   
     /** common/misc/fnc.dir_back.php - creates back directory of $dir      /**
        * Creates back directory of $dir.
        *
        * @param   string  $dir    directory path
        * @return                  back directory of $dir (contains several '../')
      */       */
     //require_once dirname(__FILE__) . '/../str/fnc.append_slash.php';  
   
     function dir_back($dir) /* {{{ */      function dir_back($dir) /* {{{ */
     {      {
         $dir_back = '';          $dir_back = '';
Line 198  class Platon
Line 207  class Platon
         return $dir_back;          return $dir_back;
     } /* }}} */      } /* }}} */
   
     /** common/misc/fnc.get_mtime.php - returns microtime      /**
        * Returns current microtime.
        *
        * @return  int     current microtime
      */       */
     function get_mtime() /* {{{ */      function get_mtime() /* {{{ */
     {      {
Line 208  class Platon
Line 220  class Platon
         return $mtime;          return $mtime;
     } /* }}} */      } /* }}} */
   
     /** common/misc/fnc.redirect_test.php - tests if redirect is neccessary      /**
        * Redirects if it is neccessary for particular file.
        *
        * @param   string  $file   filename
        * @param   string  $url    url where to redirect
        * @return                  allways true
      */       */
     function redirect_test($file, $url) /* {{{ */      function redirect_test($file, $url) /* {{{ */
     {      {
Line 247  class Platon
Line 264  class Platon
         exit;          exit;
     } /* }}} */      } /* }}} */
   
     /** common/misc/fnc.write_origvars_html.php - creates HTML hidden      /**
      * form fields for passed GET variables       * Creates HTML hidden form fields for passed GET variables.
        *
        * @param   mixed   $origvars   string or array fo original varaibles
        * @param   mixed   $default_value  default value
        * @return          TODO
      */       */
     function write_origvars_html($origvars, $default_value = null, $method = 'POST') /* {{{ */      function write_origvars_html($origvars, $default_value = null, $method = 'POST') /* {{{ */
     {      {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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