Skip to content

Instantly share code, notes, and snippets.

@ddur
ddur / class-znginx-geoip.php
Last active July 26, 2018 13:55
IP Geo API provider class for ip-geo-block
<?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 {
@ddur
ddur / ReadHttpPage
Created November 29, 2014 18:03
Read internet page/file from Clarion 6.3 using wininet
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]