2017 © Pedro PelĂĄez
 

contao-module maxmind

MaxMind GeoIP cronjob and integration for Contao

image

menatwork/maxmind

MaxMind GeoIP cronjob and integration for Contao

  • Monday, August 8, 2016
  • by Chibineko
  • Repository
  • 5 Watchers
  • 3 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

MaxMind Extension

Die MaxMind Extension ist als genereller Cronjob fĂŒr die Übertragung von GeoIP Daten gedacht. Mit Hilfe der Backendkonfiguration kann eine ZIP-Datei automatisiert heruntergeladen und verarbeitet werden. Auch kostenpflichtige ZIP-Dateien können mit einem optionalen Lizenzkey verarbeitet werden., (*1)

The MaxMind extension is intended as a general cronjob for the transmission of GeoIP data. Using the backend configuration, a zip file will be downloaded automatically and processed. Also paid ZIP files can be processed with an optional license key., (*2)

Konsole / Console

cd /var/www/contao/system/modules/maxmind
php MaxMindCaller.php

Parameter, (*3)

--verbose  // Print log msg on screen
--dry-run  // Don't import into database, just download it.
--no-mail  // Send no mail notification
--force  // Always import into database. Don't work with dry run.
--language "de"  // Contains the language for the backend.

HTTP Aufruf / HTTP Request

Da Contao 3.x sĂ€mtliche Ordner in system/modules schĂŒtzt, ist ein direkter Aufruf ohne Anpassungen (wie z.B. Änderung der .htaccess im Root oder dem Ablegen einer .htaccess in system/modules) nur in Contao 2.11 möglich., (*4)

As Contao 3+ protects all subfolders within system/modules, direct requests into there are possible only in Contao 2.11 without adjustments (such as a change in the .htaccess of the root or adding an own .htaccess within a designated folder to be whitelisted)., (*5)

http://www.example.com/system/modules/cleanup/MaxMindCaller.php, (*6)

Contao Cronjob

Contao bietet die Möglichkeit sich in die systemeigenen Cronjobs zu integrieren. DafĂŒr muss man nur eins der 5 möglichen Beispiele aus der config.example.php in die dcaconfig.php oder in die config.php der eigenen Extension ĂŒbernehmen und einkommentieren. Der stĂŒndliche und minĂŒtige Aufruf ist in Contao 2.11 nicht vorhanden., (*7)

Contao provides the ability to integrate own requests into the native system cron jobs. Therefore you have to take over one of the following 5 examples from the config.example.php and paste them into the dcaconfig.php or config.php of your own extension. The hourly and minute request is not available in Contao 2.11., (*8)

$GLOBALS['TL_CRON']['monthly'][]    = array('MaxMind\MaxMind', 'run');
$GLOBALS['TL_CRON']['weekly'][]     = array('MaxMind\MaxMind', 'run');
$GLOBALS['TL_CRON']['daily'][]      = array('MaxMind\MaxMind', 'run');

// Contao 3 only
$GLOBALS['TL_CRON']['hourly'][]     = array('MaxMind\MaxMind', 'run');
$GLOBALS['TL_CRON']['minutely'][]   = array('MaxMind\MaxMind', 'run');

The Versions

08/08 2016

dev-master

9999999-dev http://www.men-at-work.de

MaxMind GeoIP cronjob and integration for Contao

  Sources   Download

LGPL-3.0+

The Requires

 

geoip cronjob maxmind

08/08 2016

1.1.2

1.1.2.0 http://www.men-at-work.de

MaxMind GeoIP cronjob and integration for Contao

  Sources   Download

LGPL-3.0+

The Requires

 

geoip cronjob maxmind

13/05 2014

dev-dev

dev-dev http://www.men-at-work.de

MaxMind GeoIP cronjob and integration for Contao

  Sources   Download

LGPL-3.0+

The Requires

 

geoip cronjob maxmind

24/04 2014

1.1.1

1.1.1.0 http://www.men-at-work.de

MaxMind GeoIP cronjob and integration for Contao

  Sources   Download

LGPL-3.0+

The Requires

 

geoip cronjob maxmind

11/04 2014

1.1.0

1.1.0.0 http://www.men-at-work.de

MaxMind GeoIP cronjob and integration for Contao

  Sources   Download

LGPL-3.0+

The Requires

 

geoip cronjob maxmind

26/03 2014

1.0.0

1.0.0.0 http://www.men-at-work.de

MaxMind GeoIP cronjob and integration for Contao

  Sources   Download

LGPL-3.0+

The Requires

 

geoip cronjob maxmind