Skip to content

Commit a70a8c6

Browse files
committed
remove submodules
1 parent 9257578 commit a70a8c6

File tree

14 files changed

+2542
-4
lines changed

14 files changed

+2542
-4
lines changed

.gitmodules

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
[submodule "libraries/ip2location-php-module"]
2-
path = libraries/ip2location-php-module
3-
url = https://github.com/chrislim2888/IP2Location-PHP-Module
1+

libraries/ip2location-php-module

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
bin/
9+
tmp/
10+
*.tmp
11+
*.bak
12+
*.swp
13+
*~.nib
14+
local.properties
15+
.classpath
16+
.settings/
17+
.loadpath
18+
19+
# External tool builders
20+
.externalToolBuilders/
21+
22+
# Locally stored "Eclipse launch configurations"
23+
*.launch
24+
25+
# CDT-specific
26+
.cproject
27+
28+
# PDT-specific
29+
.buildpath
30+
31+
32+
#################
33+
## Visual Studio
34+
#################
35+
36+
## Ignore Visual Studio temporary files, build results, and
37+
## files generated by popular Visual Studio add-ons.
38+
39+
# User-specific files
40+
*.suo
41+
*.user
42+
*.sln.docstates
43+
44+
# Build results
45+
[Dd]ebug/
46+
[Rr]elease/
47+
*_i.c
48+
*_p.c
49+
*.ilk
50+
*.meta
51+
*.obj
52+
*.pch
53+
*.pdb
54+
*.pgc
55+
*.pgd
56+
*.rsp
57+
*.sbr
58+
*.tlb
59+
*.tli
60+
*.tlh
61+
*.tmp
62+
*.vspscc
63+
.builds
64+
*.dotCover
65+
66+
## TODO: If you have NuGet Package Restore enabled, uncomment this
67+
#packages/
68+
69+
# Visual C++ cache files
70+
ipch/
71+
*.aps
72+
*.ncb
73+
*.opensdf
74+
*.sdf
75+
76+
# Visual Studio profiler
77+
*.psess
78+
*.vsp
79+
80+
# ReSharper is a .NET coding add-in
81+
_ReSharper*
82+
83+
# Installshield output folder
84+
[Ee]xpress
85+
86+
# DocProject is a documentation generator add-in
87+
DocProject/buildhelp/
88+
DocProject/Help/*.HxT
89+
DocProject/Help/*.HxC
90+
DocProject/Help/*.hhc
91+
DocProject/Help/*.hhk
92+
DocProject/Help/*.hhp
93+
DocProject/Help/Html2
94+
DocProject/Help/html
95+
96+
# Click-Once directory
97+
publish
98+
99+
# Others
100+
[Bb]in
101+
[Oo]bj
102+
sql
103+
TestResults
104+
*.Cache
105+
ClientBin
106+
stylecop.*
107+
~$*
108+
*.dbmdl
109+
Generated_Code #added for RIA/Silverlight projects
110+
111+
# Backup & report files from converting an old project file to a newer
112+
# Visual Studio version. Backup files are not needed, because we have git ;-)
113+
_UpgradeReport_Files/
114+
Backup*/
115+
UpgradeLog*.XML
116+
117+
118+
119+
############
120+
## Windows
121+
############
122+
123+
# Windows image file caches
124+
Thumbs.db
125+
126+
# Folder config file
127+
Desktop.ini
128+
129+
130+
#############
131+
## Python
132+
#############
133+
134+
*.py[co]
135+
136+
# Packages
137+
*.egg
138+
*.egg-info
139+
dist
140+
build
141+
eggs
142+
parts
143+
bin
144+
var
145+
sdist
146+
develop-eggs
147+
.installed.cfg
148+
149+
# Installer logs
150+
pip-log.txt
151+
152+
# Unit test / coverage reports
153+
.coverage
154+
.tox
155+
156+
#Translations
157+
*.mo
158+
159+
#Mr Developer
160+
.mr.developer.cfg
161+
162+
# Mac crap
163+
.DS_Store
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
Revision History for PHP Module for IP2Location
2+
8.0.2 Sun Oct 1 10:01:00 2016
3+
* Fixes
4+
5+
- Issue of shift operator for big number in php
6+
7+
8.0.1 Tue Aug 1 11:00:00 2016
8+
* Fixes
9+
10+
- Support 2 new interfaces: getDatabaseVersion and getModuleVersion
11+
12+
8.0.0 Tue Jul 5 10:00:00 2016
13+
* Fixes
14+
15+
- Add code to lookup for index section which available in new BIN format
16+
17+
7.2.5 Fri Jun 10 15:40:23 2016
18+
* Fixes:
19+
20+
- Fix the IP lookup issue for DB24
21+
22+
7.2.4 Wed Jan 06 14:44:23 2016
23+
* Fixes:
24+
25+
- Fixed IPv6 lookup issue.
26+
27+
7.2.3 Wed Aug 12 10:29:37 2015
28+
* Fixes:
29+
30+
- Fix IPv4 lookup issue.
31+
32+
7.2.2 Thu Jul 30 10:27:55 2015
33+
* Fixes:
34+
35+
- Defended against 32 bit overflow in a couple more places.
36+
- Added checks for default / unset / infinite memory limits.
37+
- Fixed lookup function, in order for it to consistently return the correct datatype.
38+
39+
40+
* Enhancements:
41+
42+
- Cached the result of the memory limit calculation in order not to recheck it for each instantiation.
43+
44+
45+
* Additions:
46+
47+
- Added exception code constants to ease the handling of exceptional conditions in the client.
48+
- Added the ability to set default returned fields on construction, in order not to have to pass them around constantly.
49+
50+
51+
7.2.0 Wed Jul 29 14:07:23 2015
52+
**Special thanks to Mariano (mariano.perez.rodriguez [at] gmail.com) for working on this release**
53+
54+
* Removals:
55+
56+
- Removed IP2LocationRecord class, it served little purpose and an array response would be much more flexible (see below).
57+
- Removed everything to do with endianness (there was some leftover code and constants).
58+
- Removed IP version constants, they were unused.
59+
- Removed the SHM_KEY constant in favor of a dynamic shared memory key calculation.
60+
- Removed "$database" property in favor of a set of IP-version-directed metadata properties.
61+
- Removed useless caching of lookup results in "$result" property.
62+
- Removed closing PHP tag.
63+
64+
65+
* Fixes:
66+
67+
- Fixed possible overruns of the binary file by only reading as much as needed and not more.
68+
- Fixed IPv6 lookup (it was never going to work: you were trying to compare a number to a BCMath string).
69+
- Fixed binary search midpoint calculation.
70+
- Fixed shared memory permissions so as not to leak information to other users / groups.
71+
- Gave a unique number to each numeric class constant to prevent accidental misuse.
72+
73+
74+
* Enhancements:
75+
76+
- Automatically determine float size (this is not optimal, but as good as we're going to get).
77+
- Removed "magic numbers" as much as possible and factored them out to class constants.
78+
- IP address, version, and number are now selectable fields.
79+
- The "$columns" array has been made static, no need for a copy for each possible instance.
80+
- The "$columns" array has been reindexed with integer keys to avoid double lookup during binary search.
81+
- The "$columns" array has had its entries multiplied by 4, in order to avoid repeatedly multiplying by 4 every time its values were going to be used.
82+
- The memory buffer has been made static (this way, if two instances are created they can share the buffer instead of using up twice as much memory for the same data).
83+
- Internal variable handling has been simplified with a single "$resource" property whose meaning changes as the caching method changes.
84+
- The class constructor will now accept an empty filename, in this case, it will look for the most general database BIN in the file's directory and load that.
85+
- Quadwords and IPv6 addresses are now parsed by a simple and highly portable routine.
86+
- Low level reading abstracting away from the caching method has been implemented as a private method (this simplifies the low-level reading functions tremendously).
87+
- Strings are now read by providing just a pointer to the word value describing its start: the length is automatically retrieved and only the necessary bytes are read (preventing overrun errors).
88+
- Low level read routines have been greatly simplified.
89+
- High level read routines have been added, specifically, those providing related fields have been grouped together.
90+
- Binary search has been decoupled from field lookup (cleaning up the implementation).
91+
- Binary search will now work correctly with IPv6 addresses.
92+
93+
94+
* Additions:
95+
96+
- Added "FIELD_NOT_KNOWN" to manage unknown field requests.
97+
- Added "multiple" fields (eg. "COORDINATES" in order to get latitude and longitude at the same time).
98+
- Added the "Ip2Location" namespace, and changed the class' name to "Database", so we now have "Ip2Location\Database", accordingly, the filename has been changed to "Database.php", this should be put in a directory named "Ip2Location" in order to comply with PSR-0 / PSR-4.
99+
- A destructor has been added to properly detach from shared memory / close opened files.
100+
- A static method has been added to tear down the shared memory segments created by the class (otherwise, it's a pain to delete them).
101+
- Added a "getDate()" method, this will provide the database's compilation date as YYYY-MM-DD.
102+
- Added a "getType()" method, returning the database type (1--24).
103+
- Added a "getFields()" method, returning the supported fields.
104+
- Rewrote the "lookup()" method: it now accepts either a field name (which could be a MULTIPLE field), or an array of field names, and it will return either a single field value (if a single field given), or an array (possibly named) of values found.
105+
106+
107+
7.1.0 Thu Jul 23 15:15:36 2015
108+
Removed dependency php_gmp
109+
Fixed shared memory issues
110+
Fixed binary read functions
111+
Restructure lookup algorithm
112+
113+
7.0.0 Wed Aug 13 12:41:16 2014
114+
Added support to IP2Location IPv6 DB2-DB24
115+
116+
6.00 Wed May 08 08:43:22 2013
117+
Added support to IP2Location DB21-24
118+
Added new lookup method MEMORY_CACHE, and SHARED_MEMORY
119+
New structure to use IP2Location class
120+
121+
5.00 Fri Jan 14 09:59:15 2011
122+
Added support to IP2Location DB19-20
123+
Added new public function "getMcc"
124+
Added new public function "getMnc"
125+
Added new public function "getMobileBrand"
126+
127+
4.00 Thu Oct 01 13:09:43 2009
128+
Merged all functions into one class
129+
Changed functions name
130+
131+
3.00 Wed Aug 13 10:00:00 2008
132+
Added support to IP2Location DB15-18
133+
Added new public function "IP2Location_get_idd_code"
134+
Added new public function "IP2Location_get_area_code"
135+
Added new public function "IP2Location_get_weather_code"
136+
Added new public function "IP2Location_get_weather_name"
137+
138+
2.20 Tue Sep 25 00:00:00 2007
139+
Support PHP4 and PHP5
140+
141+
2.10 Fri Oct 20 00:00:00 2006
142+
Support IP2Location DB11, DB12, DB13 & DB14
143+
144+
2.00 Fri Oct 20 00:00:00 2006
145+
Support IP2Location IPv6
146+
147+
1.30 Wed Nov 23 16:59:58 2005
148+
Minor Bug Fix
149+
150+
1.20 Thu Nov 17 16:59:58 2005
151+
Minor Bug Fix
152+
153+
1.10 Thu Oct 27 16:59:58 2005
154+
Support Big Endian Machines
155+
156+
1.00 Thu Oct 13 16:59:58 2005
157+
First release for PHP 4.0 and above
158+
Added new public function "IP2Location_open"
159+
Added new public function "IP2Location_close"
160+
Added new public function "IP2Location_get_all"
161+
Added new public structure "IP2Location"
162+
Added new public structure "IP2LocationRecord"

0 commit comments

Comments
 (0)