r($_SERVER['REQUEST_METHOD']) === 'post') { foreach($_POST AS $pk => $pv) { if(!is_numeric($pv)) { $_GET[$pk] = $_POST[$pk] = $this->mobile_iconv_recurrence($pv); if(!empty($this->var['config']['input']['compatible'])) { $this->var['gp_'.$pk] = daddslashes($_GET[$pk]); } } } } } if(!$this->var['setting']['mobile']['mobilesimpletype']) { $this->var['setting']['imagemaxwidth'] = 224; } $this->var['setting']['regstatus'] = $this->var['setting']['mobile']['mobileregister'] ? $this->var['setting']['regstatus'] : 0 ; $this->var['setting']['avatarmethod'] = 0; ob_start(); } public function timezone_set($timeoffset = 0) { if(function_exists('date_default_timezone_set')) { @date_default_timezone_set('Etc/GMT'.($timeoffset > 0 ? '-' : '+').(abs($timeoffset))); } } public function mobile_iconv_recurrence($value) { if(is_array($value)) { foreach($value AS $key => $val) { $value[$key] = $this->mobile_iconv_recurrence($val); } } else { $value = diconv($value, 'utf-8', CHARSET); } return $value; } } ?>