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

Diff for phpMyEdit/phpMyEdit.class.php between version 1.169 and 1.170

version 1.169, 2006/01/24 16:19:43 version 1.170, 2006/01/24 16:32:09
Line 1527  function '.$this->js['prefix'].'filter_h
Line 1527  function '.$this->js['prefix'].'filter_h
                 return phpMyEdit::get_cgi_var(phpMyEdit::get_default_cgi_prefix('data').$name, $default_value);                  return phpMyEdit::get_cgi_var(phpMyEdit::get_default_cgi_prefix('data').$name, $default_value);
         } /* }}} */          } /* }}} */
   
         function get_cgi_var($name, $default_value = null) /* {{{ */      function get_cgi_var($name, $default_value = null) /* {{{ */
         {      {
                 if (isset($this) && isset($this->cgi['overwrite'][$name])) {                  if (isset($this) && isset($this->cgi['overwrite'][$name])) {
                         return $this->cgi['overwrite'][$name];                          return $this->cgi['overwrite'][$name];
                 }                  }
   
                 static $magic_quotes_gpc = null;          static $magic_quotes_gpc = null;
                 if ($magic_quotes_gpc === null) {          if ($magic_quotes_gpc === null) {
                         $magic_quotes_gpc = get_magic_quotes_gpc();              $magic_quotes_gpc = get_magic_quotes_gpc();
                 }          }
                 global $HTTP_GET_VARS;          $var = @$_GET[$name];
                 $var = @$HTTP_GET_VARS[$name];          if (! isset($var)) {
                 if (! isset($var)) {              $var = @$_POST[$name];
                         global $HTTP_POST_VARS;          }
                         $var = @$HTTP_POST_VARS[$name];          if (isset($var)) {
                 }              if ($magic_quotes_gpc) {
                 if (isset($var)) {                  if (is_array($var)) {
                         if ($magic_quotes_gpc) {                      foreach (array_keys($var) as $key) {
                                 if (is_array($var)) {                          $var[$key] = stripslashes($var[$key]);
                                         foreach (array_keys($var) as $key) {                      }
                                                 $var[$key] = stripslashes($var[$key]);                  } else {
                                         }                      $var = stripslashes($var);
                                 } else {                  }
                                         $var = stripslashes($var);              }
                                 }          } else {
                         }              $var = @$default_value;
                 } else {          }
                         $var = @$default_value;  
                 }  
   
                 if (isset($this) && $var === null && isset($this->cgi['append'][$name])) {                  if (isset($this) && $var === null && isset($this->cgi['append'][$name])) {
                         return $this->cgi['append'][$name];                          return $this->cgi['append'][$name];
                 }                  }
                 return $var;          return $var;
         } /* }}} */      } /* }}} */
   
         function get_server_var($name) /* {{{ */          function get_server_var($name) /* {{{ */
         {          {
Line 1585  function '.$this->js['prefix'].'filter_h
Line 1582  function '.$this->js['prefix'].'filter_h
   
         function print_get_vars ($miss = 'No GET variables found') // debug only /* {{{ */          function print_get_vars ($miss = 'No GET variables found') // debug only /* {{{ */
         {          {
                 global $HTTP_GET_VARS;  
   
                 // we parse form GET variables                  // we parse form GET variables
                 if (is_array($HTTP_GET_VARS)) {                  if (is_array($_GET)) {
                         echo "<p> Variables per GET ";                          echo "<p> Variables per GET ";
                         foreach ($HTTP_GET_VARS as $k => $v) {                          foreach ($_GET as $k => $v) {
                                 if (is_array($v)) {                                  if (is_array($v)) {
                                         foreach ($v as $akey => $aval) {                                          foreach ($v as $akey => $aval) {
                                                 // $HTTP_GET_VARS[$k][$akey] = strip_tags($aval);                                                  // $_GET[$k][$akey] = strip_tags($aval);
                                                 // $$k[$akey] = strip_tags($aval);                                                  // $$k[$akey] = strip_tags($aval);
                                                 echo "$k\[$akey\]=$aval   ";                                                  echo "$k\[$akey\]=$aval   ";
                                         }                                          }
                                 } else {                                  } else {
                                         // $HTTP_GET_VARS[$k] = strip_tags($val);                                          // $_GET[$k] = strip_tags($val);
                                         // $$k = strip_tags($val);                                          // $$k = strip_tags($val);
                                         echo "$k=$v   ";                                          echo "$k=$v   ";
                                 }                                  }
Line 1613  function '.$this->js['prefix'].'filter_h
Line 1608  function '.$this->js['prefix'].'filter_h
   
         function print_post_vars($miss = 'No POST variables found')  // debug only /* {{{ */          function print_post_vars($miss = 'No POST variables found')  // debug only /* {{{ */
         {          {
                 global $HTTP_POST_VARS;                  global $_POST;
                 // we parse form POST variables                  // we parse form POST variables
                 if (is_array($HTTP_POST_VARS)) {                  if (is_array($_POST)) {
                         echo "<p>Variables per POST ";                          echo "<p>Variables per POST ";
                         foreach ($HTTP_POST_VARS as $k => $v) {                          foreach ($_POST as $k => $v) {
                                 if (is_array($v)) {                                  if (is_array($v)) {
                                         foreach ($v as $akey => $aval) {                                          foreach ($v as $akey => $aval) {
                                                 // $HTTP_POST_VARS[$k][$akey] = strip_tags($aval);                                                  // $_POST[$k][$akey] = strip_tags($aval);
                                                 // $$k[$akey] = strip_tags($aval);                                                  // $$k[$akey] = strip_tags($aval);
                                                 echo "$k\[$akey\]=$aval   ";                                                  echo "$k\[$akey\]=$aval   ";
                                         }                                          }
                                 } else {                                  } else {
                                         // $HTTP_POST_VARS[$k] = strip_tags($val);                                          // $_POST[$k] = strip_tags($val);
                                         // $$k = strip_tags($val);                                          // $$k = strip_tags($val);
                                         echo "$k=$v   ";                                          echo "$k=$v   ";
                                 }                                  }

Legend:
Removed from v.1.169  
changed lines
  Added in v.1.170

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