示例#1
0
                 // òèï
                 get_type($line);
                 $errors .= '<font size="3">' . $gtype . '</font><hr>';
             }
             $first_line = false;
             find_me('<body>', $line);
             //åñëè ðåçóëüòàò, òî äàííûå èç ñëåäóþùåé ëèíèè
             $first_line = $find_res == false ? false : true;
             // àòòðèáóòû
             //--------
         }
         //get_region_id($geo_region);
         $geo_region = $region_Grab['oblast'] != '' ? $region_Grab['oblast'] : $region_Grab['strana'];
         get_region_id($geo_region);
         $data_geo = array('geo_meeting_id' => $id, 'geo_marshrut_id' => $meeting_marshrut, 'geo_name' => htmlspecialchars($nameg), 'geo_country' => $region_id[1], 'geo_region' => $region_id[0], 'geo_link' => $datageo[$i]['geolink'], 'geo_save' => $datageo[$i]['chk'], 'geo_poster_id' => $user->data['user_id'], 'geo_last_edit_user' => time(), 'geo_coord' => $wgsfull, 'geo_google' => $lat . ',' . $lon, 'geo_type' => $gtype, 'geo_author' => $author, 'geo_date' => $geo_date);
         $meeting->proverka_geo($data_geo, $i);
         $geocashing[] = $geo_old['geo_id'];
     }
 }
 $field_g = 'mode=conf';
 $field_g .= $id == 0 ? '' : '&amp;id=' . $data_geo['geo_meeting_id'];
 $field_g .= !$meeting_marshrut ? '' : '&amp;m=' . $meeting_marshrut;
 $field_g .= !$id || $id == 0 ? '&amp;n=' . $next_id : '';
 $count_geocashing = count($geocashing);
 for ($i = 0; $i < $count_geocashing; $i++) {
     $field_g .= '&amp;t[' . $i . ']=' . $geocashing[$i] . '&amp;s[' . $i . ']=' . $datageo[$i]['chk'];
 }
 //Ïðîâåðêà, åñòü ëè óæå â Ïîêàòóøêå?
 for ($i = 0; $i < $count_geocashing; $i++) {
     if ($geocashing[$i]) {
         $sql = "SELECT * FROM " . GEO_DATA_TABLE . " \n\t\t\t\tWHERE geo_meeting_id=" . (int) $data_geo['geo_meeting_id'] . "\n\t\t\t\tAND geo_id=" . $geocashing[$i];