Changeset 404

Show
Ignore:
Timestamp:
08/15/08 07:28:40 (5 months ago)
Author:
082net
Message:

## wp-slimstat-ex ##

Updated Pins for last trunk updates

Location:
wp-slimstat-ex/branches/pins
Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • wp-slimstat-ex/branches/pins/BBSpamStats/pin.php

    r377 r404  
    1818                'url' => 'http://082net.com', 
    1919                'text' => 'Show Bad Behavior Stats(http://www.homelandstupidity.us/software/bad-behavior/).', 
    20                 'version' => '0.7', 
     20                'version' => '0.8', 
    2121                'type' => 0, 
    2222        ); 
     
    5151        function pin_compatible() { 
    5252                global $SlimCfg; 
    53                 if($SlimCfg->version < '1.6') { 
    54                         return array    ('compatible' => false, 'message' => 'BBSpamStats is only compatible with SlimStat-Ex 1.6 and above.'); 
     53                if($SlimCfg->version < '2.001') { 
     54                        return array    ('compatible' => false, 'message' => 'BBSpamStats is only compatible with SlimStat-Ex 2.001 and above.'); 
    5555                } else { 
    5656                        return array('compatible' => true); 
     
    7171                        return $this->table_error; 
    7272                $filter_clause = $this->_replaceFilterClause($filter_clause); 
    73                 $offset = $_GET['offset']; 
    74                 $offset = (isset($offset) && !empty($offset))?$offset:0; 
    75                 $offset = ($offset * $this->rows); 
     73                $offset = $SlimCfg->get_db_offset($this->rows); 
     74                $pinid =& $this->getPinID(); 
     75                $moid =& $this->getMoID(0); 
    7676 
    7777                $str = ""; 
     
    7979                $query = "SELECT ts.id, ts.ip, UNIX_TIMESTAMP(ts.date) AS dt, ts.request_uri AS uri, "; 
    8080                $query .= " ts.server_protocol AS ptc, ts.request_method AS method, ts.user_agent AS ua, ts.key "; 
    81                 $query .= " FROM ".$table_prefix."bad_behavior ts"; 
    82                 $query .= " WHERE ".$filter_clause." "; 
    83                 $query .= ($this->show_unblocked)?"":" AND ts.key <> '00000000' "; 
     81                $query .= " FROM {$table_prefix}bad_behavior ts"; 
     82                $query .= " WHERE {$filter_clause} "; 
     83                $query .= $this->show_unblocked ? "" : " AND ts.key <> '00000000' "; 
    8484                $query .= " ORDER BY dt DESC, ts.ip"; 
    85                 $query .= " LIMIT ".$offset.",".$this->rows.""; 
    86  
    87                 if ( $result = mysql_query( $query ) ) { 
     85                $query .= " LIMIT {$offset},{$this->rows}"; 
     86                $result = mysql_query( $query ); 
     87                if ( $result && 0 < mysql_num_rows($result) ) { 
    8888                        $prev_visit = 0; 
    8989                        $visits = array(); 
     
    101101                                $visits[] = $visit; 
    102102                        } 
    103                         $pinid =& $this->getPinID(); 
    104                         $moid =& $this->getMoID(0); 
    105103                        $str .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"; 
    106104                        $str .= "<tr><th class=\"first\">".__('Visitor', 'wp-slimstat-ex').($use_ajax?" &mdash; <a href=\"#\" onclick=\"SlimStat.toggleAllSubs($moid, this, ".count($visits).");return false;\">expand</a> (all)":"")."</th>"; 
     
    164162                        } 
    165163                        $str .= "</table>\n"; 
    166                         return SSFunction::get_module_custom($moid, $str, 'full'); 
    167                 } 
     164                } else { 
     165                        $str = '<div class="noresults-msg">&nbsp;&nbsp;'.__('No results found', 'wp-slimstat-ex').'</div>'; 
     166                } 
     167                return SSFunction::get_module_custom($moid, $str, 'full', '', array(), true); 
    168168        } 
    169169 
     
    228228                        // If a filter by keyword was set, add it to the SQL WHERE clause 
    229229                        $_filter = SSFunction::filter_switch(); 
    230                         $filter_new = $this->_replaceFilterClause($_filter); 
    231  
    232                         $query = "SELECT COUNT(*) AS counts FROM ".$table_prefix."bad_behavior ts WHERE $filter_new"; 
     230                        /*$filter_new = $this->_replaceFilterClause($_filter); 
     231 
     232                        $query = "SELECT COUNT(*) AS counts FROM {$table_prefix}bad_behavior ts WHERE $filter_new"; 
    233233                        $query .= ($this->show_unblocked)?"":" AND `key` <> '00000000' "; 
    234                         $_html .= SSFunction::print_pages($query, $this->rows, $this->getPinID()); 
     234                        $_html .= SSFunction::print_pages($query, $this->rows, $this->getPinID());*/ 
    235235 
    236236                        $pinid =& $this->getPinID(); 
  • wp-slimstat-ex/branches/pins/GeoSlimStat/pin.php

    r386 r404  
    5252                'wheelZoom' => 0, 
    5353                'purge_interval' => 120, // about 4 month 
    54                 'pre_connection' => 50 // limit per connection (curl_mulit) 
     54                'pre_connection' => 50 // limit per connection (curl_multi) 
    5555                ); 
    5656 
     
    101101                } 
    102102                $cur_opt = $this->get_option('geo_slimstat'); 
    103                 if($cur_opt) { 
     103                if ($cur_opt) { 
    104104                        $this->prefs = array_merge($this->prefs, $cur_opt); 
    105105                } 
    106                 if(!empty($this->prefs['googleAPI'])) { 
     106                if (!empty($this->prefs['googleAPI'])) { 
    107107                        $this->api_defined = true; 
    108108                }  
    109109                $this->last_purge = get_option('geo_slimstat_lastpurge'); 
    110                 if(!$this->last_purge) { 
     110                if (!$this->last_purge) { 
    111111                        $this->last_purge = time(); 
    112112                        update_option('geo_slimstat_lastpurge', $this->last_purge); 
     
    117117        function pin_compatible() { 
    118118                global $SlimCfg; 
    119                 if($SlimCfg->version < '1.61') { 
     119                if ($SlimCfg->version < '1.61') { 
    120120                        return array    ('compatible' => false, 'message' => 'GeoSlimStat 0.3 is only compatible with SlimStat-Ex 1.61 and above.'); 
    121121                } else { 
     
    141141 
    142142        function pin_update_options() { 
    143                 if(!isset($_POST['geo_slimstat'])) 
     143                if (!isset($_POST['geo_slimstat'])) 
    144144                        return; 
    145145                $int = array('plotNum', 'plotZoom', 'daysDisplay', 'mapCenter',  'purge_interval'); 
    146146                $ops = $_POST['geo_slimstat']; 
    147147                foreach($ops as $k=>$v) { 
    148                         if(in_array($k, $int)) 
     148                        if (in_array($k, $int)) 
    149149                                $ops[$k] = (int)$v; 
    150150                        else 
     
    157157        function pin_options() { 
    158158                $op = $this->get_option('geo_slimstat'); 
    159                 if(!$op) 
     159                if (!$op) 
    160160                        $op = $this->prefs; 
    161161?> 
    162 <table width="100%" cellspacing="2" cellpadding="5" class="editform">  
     162<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">  
    163163<tr valign="top">  
    164164        <th width="20%" scope="row"><?php _e('Google Map API Key:', 'wp-slimstat-ex') ?></th>  
     
    183183        <td><?php _e('Use mouse wheel to zoom map. You can use double click zoom without wheel zoom.', 'wp-slimstat-ex'); ?><br /> 
    184184                <select name="geo_slimstat[wheelZoom]"> 
    185                         <option value="0"<?php if(!$op['wheelZoom']) { ?> selected="selected"<?php } ?>>NO</option> 
    186                         <option value="1"<?php if($op['wheelZoom']) { ?> selected="selected"<?php } ?>>YES</option> 
     185                        <option value="0"<?php if (!$op['wheelZoom']) { ?> selected="selected"<?php } ?>>NO</option> 
     186                        <option value="1"<?php if ($op['wheelZoom']) { ?> selected="selected"<?php } ?>>YES</option> 
    187187                </select></td> 
    188188</tr> 
     
    190190        <th width="20%" scope="row"><?php _e('Center Type:', 'wp-slimstat-ex') ?></th>  
    191191        <td><?php _e('Average point of visitors or custom point you set below (Latitude and Longitude).', 'wp-slimstat-ex'); ?><br /> 
    192                 <select name="geo_slimstat[mapCenter]"> 
    193                         <option value="0"<?php if(!$op['mapCenter']) { ?> selected="selected"<?php } ?>><?php _e('Average point of visitors', 'wp-slimstat-ex') ?></option> 
    194                         <option value="1"<?php if($op['mapCenter']) { ?> selected="selected"<?php } ?>><?php _e('Point I set below', 'wp-slimstat-ex') ?></option> 
    195                 </select> &mdash; 
     192        <select name="geo_slimstat[mapCenter]"> 
     193                <option value="0"<?php if (!$op['mapCenter']) { ?> selected="selected"<?php } ?>><?php _e('Average point of visitors', 'wp-slimstat-ex') ?></option> 
     194                <option value="1"<?php if ($op['mapCenter']) { ?> selected="selected"<?php } ?>><?php _e('Point I set below', 'wp-slimstat-ex') ?></option> 
     195        </select> &mdash; 
    196196        <?php _e('Zoom:', 'wp-slimstat-ex') ?> <input type="text" name="geo_slimstat[plotZoom]" value="<?php echo $op['plotZoom']; ?>" size="2" /></td> 
    197197</tr> 
    198198<tr valign="top"> 
    199199        <th width="20%" scope="row"><?php _e('Starting Center:', 'wp-slimstat-ex') ?></th>  
    200         <td><?php _e('Select a type for define starting center.', 'wp-slimstat-ex'); ?><br /> 
     200        <td> 
    201201        <?php _e('Latitude:', 'wp-slimstat-ex') ?> <input type="text" name="geo_slimstat[plotLatitude]" value="<?php echo $op['plotLatitude']; ?>" size="6" /> &mdash; 
    202202        <?php _e('Longitude:', 'wp-slimstat-ex') ?> <input type="text" name="geo_slimstat[plotLongitude]" value="<?php echo $op['plotLongitude']; ?>" size="6" /> 
     
    261261                $city = $country = $lat = $long = null; 
    262262                $result = explode("if (GBrowserIsCompatible()) {", $result); 
    263                 if(!$result[1]) 
     263                if (!$result[1]) 
    264264                        return array(); 
    265265 
     
    267267                $geo = $result[1]; 
    268268 
    269                 if(!empty($geo) && preg_match('#map\.setCenter\(new\s+GLatLng\(([^\)]*)\)#i', $geo, $m)) { 
     269                if (!empty($geo) && preg_match('#map\.setCenter\(new\s+GLatLng\(([^\)]*)\)#i', $geo, $m)) { 
    270270                        $geocode = explode(',', $m[1]); 
    271271                        $lat = trim($geocode[0]); 
    272272                        $long = trim($geocode[1]); 
    273                         if(!empty($location)) { 
     273                        if (!empty($location)) { 
    274274                                $location = explode("\n", trim($location)); 
    275                                 if(count($location) <= 2) { 
     275                                if (count($location) <= 2) { 
    276276                                        $location[0] = trim($location[0]); 
    277                                         if($location[0] != '-' && !preg_match('#^-,#', $location[0])) { 
     277                                        if ($location[0] != '-' && !preg_match('#^-,#', $location[0])) { 
    278278                                                $_city = explode(',', $location[0]); 
    279279                                                $_city[0] = trim($_city[0]); $_city[1] = trim($_city[1]); 
    280                                                 if(!empty($_city[1]) && $_city[0] == $_city[1]) { 
     280                                                if (!empty($_city[1]) && $_city[0] == $_city[1]) { 
    281281                                                        $location[0] = $_city[0]; 
    282282                                                } 
     
    307307                        $city = $country = $lat = $long = null; 
    308308                        $result = explode("if (GBrowserIsCompatible()) {", $result); 
    309                         if(!$result[1]) { 
     309                        if (!$result[1]) { 
    310310                                continue; 
    311311                        } 
     
    314314                        $geo = $result[1]; 
    315315 
    316                         if(!empty($geo) && preg_match('#map\.setCenter\(new\s+GLatLng\(([^,]*),([^\)]*)\)#isU', $geo, $m)) { 
     316                        if (!empty($geo) && preg_match('#map\.setCenter\(new\s+GLatLng\(([^,]*),([^\)]*)\)#isU', $geo, $m)) { 
    317317                                $lat = trim($m[1]); 
    318318                                $long = trim($m[2]); 
    319                                 if(!empty($location)) { 
     319                                if (!empty($location)) { 
    320320                                        $location = explode("\n", trim($location)); 
    321                                         if(count($location) <= 2) { 
     321                                        if (count($location) <= 2) { 
    322322                                                $location[0] = trim($location[0]); 
    323                                                 if($location[0] != '-' && !preg_match('#^-,#', $location[0])) { 
     323                                                if ($location[0] != '-' && !preg_match('#^-,#', $location[0])) { 
    324324                                                        $_city = explode(',', $location[0]); 
    325325                                                        $_city[0] = trim($_city[0]); $_city[1] = trim($_city[1]); 
    326                                                         if(!empty($_city[1]) && $_city[0] == $_city[1]) { 
     326                                                        if (!empty($_city[1]) && $_city[0] == $_city[1]) { 
    327327                                                                $location[0] = $_city[0]; 
    328328                                                        } 
     
    381381                global $SlimCfg; 
    382382                $now = time(); 
    383                 if($now > $this->last_purge + (60*60*24*$this->purge_interval)) {// Purge neg ip list every "purge_interval" days 
     383                if ($now > $this->last_purge + (60*60*24*$this->purge_interval)) {// Purge neg ip list every "purge_interval" days 
    384384                        update_option('geo_slimstat_negip', array()); 
    385385                        update_option('geo_slimstat_lastpurge', time()); 
    386386                } 
    387387                $_neg = (array)get_option('geo_slimstat_negip'); 
    388                 if(in_array($ip, $_neg)) 
     388                if (in_array($ip, $_neg)) 
    389389                        return; 
    390390                $_ip = long2ip($ip); 
     
    409409                global $wpdb; 
    410410                $now = time(); 
    411                 if($now > $this->last_purge + (60*60*24*$this->purge_interval)) {// Purge neg ip list every "purge_interval" days 
     411                if ($now > $this->last_purge + (60*60*24*$this->purge_interval)) {// Purge neg ip list every "purge_interval" days 
    412412                        update_option('geo_slimstat_negip', array()); 
    413413                        update_option('geo_slimstat_lastpurge', time()); 
     
    433433                                $lat = round(trim($info['lat']), 4); 
    434434                                $long = round(trim($info['long']), 4); 
    435                                 if(!$lat && !$long) { 
     435                                if (!$lat && !$long) { 
    436436                                        $_neg[] = $ip; 
    437437                                        update_option('geo_slimstat_negip', $_neg); 
     
    471471                 
    472472                $now = time(); 
    473                 if($now > $this->last_purge + (60*60*24*$this->purge_interval)) {// Purge neg ip list every "purge_interval" days 
     473                if ($now > $this->last_purge + (60*60*24*$this->purge_interval)) {// Purge neg ip list every "purge_interval" days 
    474474                        update_option('geo_slimstat_negip', array()); 
    475475                        update_option('geo_slimstat_lastpurge', time()); 
    476476                } 
    477477                $_neg = get_option('geo_slimstat_negip'); 
    478                 if(!is_array($_neg)) 
     478                if (!is_array($_neg)) 
    479479                        $_neg = array(); 
    480                 if(in_array($ip_adr, $_neg)) 
     480                if (in_array($ip_adr, $_neg)) 
    481481                        return; 
    482482 
    483483                $ip_adr_ip = long2ip($ip_adr); 
    484484                $ip_info = $this->ip_lookup_extra($ip_adr_ip); 
    485                 if(!empty($ip_info) && !is_null($ip_info['lat']) && !is_null($ip_info['long'])) { 
     485                if (!empty($ip_info) && !is_null($ip_info['lat']) && !is_null($ip_info['long'])) { 
    486486                        $lat = round(trim($ip_info['lat']), 4); 
    487487                        $long = round(trim($ip_info['long']), 4); 
     
    492492                        $ip_lookup_uri = "http://api.hostip.info/get_html.php?ip={$ip_adr_ip}&position=true"; 
    493493                        $data = $SlimCfg->remote_fopen($ip_lookup_uri); 
    494                         if(!$data || '' == $data) 
     494                        if (!$data || '' == $data) 
    495495                                return; 
    496496 
     
    520520                } 
    521521 
    522                 if(!$lat && !$long) { 
     522                if (!$lat && !$long) { 
    523523                        $_neg[] = $ip_adr; 
    524524                        update_option('geo_slimstat_negip', $_neg); 
     
    534534                $zoom = $this->prefs['plotZoom']; 
    535535                // if country filter is set and user defined zoom level is smaller than 5 
    536                 if($zoom < 5 && isset($SlimCfg->get['ff']) && $SlimCfg->get['ff'] == 6) 
     536                if ($zoom < 5 && isset($SlimCfg->get['ff']) && $SlimCfg->get['ff'] == 6) 
    537537                        $zoom = 5; 
    538                 if(empty($positions) || $this->prefs['mapCenter'] == 1) 
     538                if (empty($positions) || $this->prefs['mapCenter'] == 1) 
    539539                        return array($this->prefs['plotLatitude'], $this->prefs['plotLongitude'], $zoom); 
    540540                $lat = $positions['lat']; 
     
    550550        function plotMap($filter_clause) { 
    551551                global $SlimCfg, $wpdb; 
    552                 if(!$this->api_defined) { 
     552                if (!$this->api_defined) { 
    553553                        return $this->api_error; 
    554554                } 
     
    562562         
    563563                $prefs = $this->prefs; 
     564                $offset = $SlimCfg->get_db_offset($prefs['plotNum']); 
    564565                // The most important part, the sql-query. Gets the latest, DISTINCT IPs by date dt. Main Mint db 
    565566                $query = "SELECT ts.remote_ip, ts.dt 
     
    568569                                                        GROUP BY ts.remote_ip 
    569570                                                        ORDER BY ts.dt DESC 
    570                                                         LIMIT 0, {$prefs['plotNum']}"; 
    571  
    572                 if($result = $wpdb->get_results($query, ARRAY_A)) { 
     571                                                        LIMIT {$offset}, {$prefs['plotNum']}"; 
     572 
     573                if ($result = $wpdb->get_results($query, ARRAY_A)) { 
    573574                        if ($this->serverUnavailable == false) { 
    574575                                $ips = array(); 
     
    576577                                foreach($result as $r) { 
    577578                                $_neg = get_option('geo_slimstat_negip'); 
    578                                 if(!is_array($_neg)) 
     579                                if (!is_array($_neg)) 
    579580                                        $_neg = array(); 
    580                                 if(in_array($r['remote_ip'], $_neg)) 
     581                                if (in_array($r['remote_ip'], $_neg)) 
    581582                                        continue; 
    582583                                        $query = "SELECT * FROM {$this->tbGeo} tg 
    583584                                                                                WHERE tg.ip = '{$r['remote_ip']}' 
    584585                                                                                LIMIT 1"; 
    585                                         if(!$wpdb->get_row($query)) { 
     586                                        if (!$wpdb->get_row($query)) { 
    586587//                                              timer_start(); 
    587588                                                if ( $SlimCfg->geoip == 'city' ) { 
     
    623624                                                        {$daysDisplay_query} 
    624625                                                        ORDER BY dt_max DESC 
    625                                                         LIMIT 0 , {$prefs['plotNum']}"; 
     626                                                        LIMIT {$offset}, {$prefs['plotNum']}"; 
    626627 
    627628                $local_q_ip = array(); 
    628                 if($result_geo = $wpdb->get_results($query, ARRAY_A)) { 
     629                if ($result_geo = $wpdb->get_results($query, ARRAY_A)) { 
    629630                        foreach($result_geo as $row) { 
    630631                                $_city = ('' == $row['city']) ? __('Unknown City', 'wp-slimstat-ex') : str_replace("'", "\\'", $row['city']); 
     
    635636                                $_long = $row['longitude']; 
    636637                                $_dtmax = $row['dt_max']; 
    637                                 if($_lat == 0 || $_long == 0) { 
    638                                         if(!isset($this->country2geocode[$_country])) 
     638                                if ($_lat == 0 || $_long == 0) { 
     639                                        if (!isset($this->country2geocode[$_country])) 
    639640                                                continue; 
    640641                                        $c2geo = $this->country2geocode[$_country]; 
     
    675676                                        GROUP BY ts.remote_ip 
    676677                                        ORDER BY dt_max DESC 
    677                                         LIMIT 0, {$local_query_limit}"; 
     678                                        LIMIT {$offset}, {$local_query_limit}"; 
    678679                        $lat_long = array(); 
    679680//                      timer_start(); 
    680                         if($result_stats = $wpdb->get_results($query, ARRAY_A)) { 
     681                        if ($result_stats = $wpdb->get_results($query, ARRAY_A)) { 
    681682                                foreach($result_stats as $row) { 
    682                                         if(in_array($row['remote_ip'], $local_q_ip)) 
     683                                        if (in_array($row['remote_ip'], $local_q_ip)) 
    683684                                                continue; 
    684685                                        $_country = strtolower($row['country']); 
     
    686687                                        $_ip = "<a href=\'http://private.dnsstuff.com/tools/ipall.ch?ip={$_ip}#map\' title=\'Who is?\' target=\'_blank\'>{$_ip}</a>"; 
    687688                                        $_dtmax = $row['dt_max']; 
    688                                         if(!isset($this->country2geocode[$_country])) 
     689                                        if (!isset($this->country2geocode[$_country])) 
    689690                                                continue; 
    690691                                        $c2geo = $this->country2geocode[$_country]; 
     
    736737 
    737738// Disable sweetTitles events. 
    738 if(typeof(sweetTitles) != 'undefined') { 
     739if (typeof(sweetTitles) != 'undefined') { 
    739740        sweetTitles.tipOut = function() {}; 
    740741        sweetTitles.tipOver = function() {}; 
     
    757758JAVASCRIPT; 
    758759 
    759         if($prefs['wheelZoom']) { 
     760        if ($prefs['wheelZoom']) { 
    760761                $html_js_header .= <<<JAVASCRIPT 
    761762 
     
    790791        {$html_js} 
    791792        var _interval = setInterval(function(){ 
    792                 if(document.getElementById('geo_map')){ 
     793                if (document.getElementById('geo_map')){ 
    793794                        clearInterval(_interval); 
    794795                        do_load_map(); 
     
    807808 
    808809                $moid =& $this->getMoID(0); 
    809                 return SSFunction::get_module_custom($moid, $html_geo, 'wide', '', array('height'=>'404px', 'width'=>'98%')); 
     810                return SSFunction::get_module_custom($moid, $html_geo, 'wide', '', array('height'=>'404px', 'width'=>'98%'), true); 
    810811        } 
    811812} 
     
    814815        global $SlimCfg; 
    815816        $op = SSPins::get_option('geo_slimstat'); 
    816         if(!$op || empty($op['googleAPI'])) 
     817        if ( !$op || '' == $op['googleAPI'] ) 
    817818                return; 
    818         if(wp_slimstat_ex::is_slimstat_page()) { 
    819                 $icon_url = $SlimCfg->pluginURL.'/pins/GeoSlimStat/markers/marker'; 
     819        if (wp_slimstat_ex::is_slimstat_page()) { 
     820                $icon_url = $SlimCfg->pluginURL.'/pins/GeoSlimStat/markers'; 
    820821?> 
    821822<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<?php echo $op['googleAPI']; ?>" charset="utf-8"></script> 
    822823<script type='text/javascript' charset='utf-8'>//<![CDATA[ 
    823 //--------------------------------- 
    824824// Global variables 
    825825var map; 
     
    831831var GeoMarker = new Array(); 
    832832var SlimVisitor = new Array(); 
    833  
    834833//--------------------------------- 
    835834 
    836835var baseIcon = new GIcon(); 
    837 baseIcon.shadow = 'http://www.google.com/mapfiles/shadow50.png'; 
    838 baseIcon.image = 'http://www.google.com/mapfiles/marker.png'; 
     836baseIcon.shadow = '<?php echo $icon_url; ?>/shadow50.png'; 
     837baseIcon.image = '<?php echo $icon_url; ?>/marker.png'; 
    839838baseIcon.iconSize = new GSize(20, 34); 
    840839baseIcon.shadowSize = new GSize(37, 34); 
     
    845844function createMarker(point, num, str) { 
    846845        var GeoIcon = new GIcon(baseIcon); 
    847         GeoIcon.image = '<?php echo $icon_url; ?>'+str+'.png'; 
     846        GeoIcon.image = '<?php echo $icon_url; ?>/marker'+str+'.png'; 
    848847        var marker = new GMarker(point, GeoIcon); 
    849848        GEvent.addListener(marker, 'click', function() {