diff --git a/servers/dotNet/README.md b/servers/dotNet/README.md new file mode 100755 index 0000000..38787af --- /dev/null +++ b/servers/dotNet/README.md @@ -0,0 +1,14 @@ +The .net version of GpsTracker is now updated to v3 of google maps, jquery and leaflet. The database file is in the sqlserver directory and this needs to be restored to sql server, please read the quick start guide to see how to do that: + +https://www.websmithing.com/2014/01/20/quick-start-guide-for-gpstracker-3/#aspnetserver + +If you want to turn on the adsense advertisement in the map, then change line 8 of google.js to enabled: + + var adsense_status = 'enabled'; + +and add your adsense channel number and publisher id to line 206 and 207: + + user_adsense.channelNumber = "YOUR_CHANNEL_NUMBER"; + user_adsense.publisherID = "YOUR_PUBLISHER_ID"; + +https://github.com/nickfox/GpsTracker/tree/master/servers/dotNet/javascript/leaflet-plugins/google.js \ No newline at end of file diff --git a/servers/dotNet/javascript/leaflet-plugins/google.js b/servers/dotNet/javascript/leaflet-plugins/google.js index 3072beb..397d37e 100644 --- a/servers/dotNet/javascript/leaflet-plugins/google.js +++ b/servers/dotNet/javascript/leaflet-plugins/google.js @@ -5,7 +5,7 @@ License in same folder as this file */ -var adsense_status = 'enabled'; +var adsense_status = 'disabled'; L.Google = L.Class.extend( { includes: L.Mixin.Events, @@ -203,8 +203,8 @@ user_adsense.titleColor = "#0000cc"; user_adsense.textColor = "#000000"; user_adsense.urlColor = "#009900"; - user_adsense.channelNumber = "6961715451"; - user_adsense.publisherID = "pub-7095775186404141"; + user_adsense.channelNumber = "YOUR_CHANNEL_NUMBER"; + user_adsense.publisherID = "YOUR_PUBLISHER_ID"; var adUnitOptions = { format: user_adsense.format, diff --git a/servers/php/README.md b/servers/php/README.md index 3e58e79..9d7391d 100644 --- a/servers/php/README.md +++ b/servers/php/README.md @@ -1,11 +1,16 @@ -The php version of GpsTracker is now updated to v3 of google maps and jquery. The database file is in the mysql directory and this needs to be installed from the command line, please read the quick start guide to see how to do that: +The php version of GpsTracker is now updated to v3 of google maps, jquery and leaflet. The database file is in the mysql directory and this needs to be installed from the command line, please read the quick start guide to see how to do that: https://www.websmithing.com/2014/01/20/quick-start-guide-for-gpstracker-3/#phpserver -If you want to turn off the advertisement in the map, then change line 8 of google.js to disabled: +If you want to turn on the adsense advertisement in the map, then change line 8 of google.js to enabled: - var adsense_status = 'disabled'; + var adsense_status = 'enabled'; + +and add your adsense channel number and publisher id to line 206 and 207: + + user_adsense.channelNumber = "YOUR_CHANNEL_NUMBER"; + user_adsense.publisherID = "YOUR_PUBLISHER_ID"; https://github.com/nickfox/GpsTracker/blob/master/servers/php/javascript/leaflet-plugins/google.js -If you want continue using adverstising, then change the channelNumber and publisherID on lines 186 and 187 to your own adsense information. + diff --git a/servers/php/javascript/leaflet-plugins/google.js b/servers/php/javascript/leaflet-plugins/google.js index 3072beb..cbbf19a 100644 --- a/servers/php/javascript/leaflet-plugins/google.js +++ b/servers/php/javascript/leaflet-plugins/google.js @@ -5,7 +5,7 @@ License in same folder as this file */ -var adsense_status = 'enabled'; +var adsense_status = 'disabled'; L.Google = L.Class.extend( { includes: L.Mixin.Events, @@ -203,8 +203,8 @@ user_adsense.titleColor = "#0000cc"; user_adsense.textColor = "#000000"; user_adsense.urlColor = "#009900"; - user_adsense.channelNumber = "6961715451"; - user_adsense.publisherID = "pub-7095775186404141"; + user_adsense.channelNumber = "YOUR_CHANNEL_NUMBER"; + user_adsense.publisherID = "YOUR_PUBLISHER_ID"; var adUnitOptions = { format: user_adsense.format,