This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (class_exists ('IP_Geo_Block_API', FALSE)) { | |
/** Class for Nginx with Http GeoIP Module | |
* @see http://nginx.org/en/docs/http/ngx_http_geoip_module.html | |
* @see https://gist.github.com/gjuric/fc418ab81a56b63a633e | |
*/ | |
class IP_Geo_Block_API_NginxGeoIP extends IP_Geo_Block_API { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ReadHttpPage PROCEDURE ( szServer, szAction, szPage, dwSize ) ! Declare Procedure | |
hWininetSession LONG ! | |
hWininetHttpSession LONG ! | |
hWininetHttpRequest LONG ! | |
dwBytesRead LONG ! | |
dwOutSize LONG ! | |
dwResult LONG ! | |
szBuffer CSTRING(1025) ! | |
! Start of "Data Section" | |
! [Priority 3500] |