logOutput(KLOG_INFO, 'GET情報をURLデコード'); $get = decodeVariables($_GET); $LogIO->logOutput(KLOG_INFO, 'GET情報をEntityにエンコード'); $get = encodeForEntities($get); $param = array( array( 'name' => 'action', 'value' => isset($get['action']) ? ($get['action']) : null, 'check' => array( 'type' => 'string', 'max' => 50, //'required' => true, ) ), array( 'name' => 'a_key', 'value' => isset($get['a_key']) ? ($get['a_key']) : null, 'check' => array( 'type' => 'string', 'max' => 50, ) ), array( 'name' => 'account', 'value' => isset($get['account']) ? ($get['account']) : null, 'check' => array( 'type' => 'string', 'max' => 128, ) ), array( 'name' => 'account_country', 'value' => isset($get['account_country']) ? ($get['account_country']) : null, 'check' => array( 'type' => 'string', 'max' => 2, ) ), array( 'name' => 'source_url', 'value' => isset($get['source_url']) ? ($get['source_url']) : null, 'check' => array( 'type' => 'string', 'max' => 50, 'regexp' => '/google/', ) ), array( 'name' => 'hl', 'value' => isset($get['hl']) ? ($get['hl']) : null, 'check' => array( 'type' => 'string', 'max' => 2, //'required' => true, ) ), array( 'name' => 'name', 'value' => isset($get['name']) ? ($get['name']) : null, 'check' => array( 'type' => 'string', 'max' => 128, //'required' => true, ) ), array( 'name' => 'street', 'value' => isset($get['street']) ? ($get['street']) : null, 'check' => array( 'type' => 'string', 'max' => 128, //'required' => true, ) ), array( 'name' => 'streetnum', 'value' => isset($get['streetnum']) ? ($get['streetnum']) : null, 'check' => array( 'type' => 'string', 'max' => 20, ) ), array( 'name' => 'postalcode', 'value' => isset($get['postalcode']) ? ($get['postalcode']) : null, 'check' => array( 'type' => 'string', 'max' => 15, ) ), array( 'name' => 'province', 'value' => isset($get['province']) ? ($get['province']) : null, 'check' => array( 'type' => 'string', 'max' => 128, ) ), array( 'name' => 'city', 'value' => isset($get['city']) ? ($get['city']) : null, 'check' => array( 'type' => 'string', 'max' => 128, //'required' => true, ) ), array( 'name' => 'country', 'value' => isset($get['country']) ? ($get['country']) : null, 'check' => array( 'type' => 'string', 'max' => 2, //'required' => true, ) ), array( 'name' => 'phone', 'value' => isset($get['phone']) ? ($get['phone']) : null, 'check' => array( 'type' => 'string', 'max' => 20, ) ), array( 'name' => 'notes', 'value' => isset($get['notes']) ? ($get['notes']) : null, 'check' => array( 'type' => 'string', 'max' => 70, ) ), array( 'name' => 'attribution', 'value' => isset($get['attribution']) ? $get['attribution'] : null, 'check' => array( 'type' => 'string', //'max' => 35, //'required' => true, ) ), array( 'name' => 'lat', 'value' => isset($get['lat']) ? (float)($get['lat']) : null, 'check' => array( 'type' => 'float', ) ), array( 'name' => 'long', 'value' => isset($get['long']) ? (float)($get['long']) : null, 'check' => array( 'type' => 'float', ) ), array( 'name' => 'ts', 'value' => isset($get['ts']) ? (int)($get['ts']) : null, 'check' => array( 'type' => 'integer', ) ), array( 'name' => 'sig', 'value' => isset($get['sig']) ? $get['sig'] : null, 'check' => array( 'type' => 'string', 'max' => 25, ) ), ); $validate = new Validater; $LogIO->logOutput(KLOG_INFO, 'GET情報のバリデート'); $non_valid = $validate->check($param); $install_flag = false; if($non_valid['count'] == 0){ if(isset($_COOKIE['feeds_installed']) && strtolower($_COOKIE['feeds_installed']) == 'true'){ // $install_flag = true; } $get_url = getParamToUrl($_GET); $return_url = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : $get['source_url']; } ?> <?php echo $str_lang[0]; ?>
0){ //アクセスが不正な場合 ?>




'); print('GET'); if(!empty($_GET)){ foreach($_GET as $key => $value){ print(''); print(''.$key.''.$value.''); print(''); } }else{ print('no data'); } print(''); print('
'); print(''); print(''); if(!empty($_POST)){ foreach($_POST as $key => $value){ print(''); print(''); print(''); } }else{ print(''); } print('
POST
'.$key.''.$value.'
no data
'); print('
'); if($non_valid['count'] > 0){ print('
    '); foreach($non_valid['errmsg'] as $value){ print('
  1. '.$value.'
  2. '); } print('
'); } } ?>