예제 #1
0
 function _prepare_post_body($formvars, $formfiles)
 {
     if (is_string($formvars)) {
         return $formvars;
     }
     return parent::_prepare_post_body($formvars, $formfiles);
 }
예제 #2
0
 function _prepare_post_body($formvars, $formfiles)
 {
     switch ($this->_submit_type) {
         case "application/x-www-form-urlencoded":
         case "multipart/form-data":
             return parent::_prepare_post_body($formvars, $formfiles);
             // Added on March 4, 2003 by onokazu@xoops.org
         // Added on March 4, 2003 by onokazu@xoops.org
         case "text/xml":
         default:
             settype($formvars, "array");
             settype($formfiles, "array");
             if (count($formvars) == 0 && count($formfiles) == 0) {
                 return;
             }
             $postdata = $formvars[0];
             break;
     }
     return $postdata;
 }