Location: PHPKode > projects > Statiqz, website statistics > statiqz/ext/upgrade.php
<?php
    require '../inc/constants.inc.php';
    require '../xdbx/IpcountryXdbx.class.php';

    $xx = new IpcountryXdbx();

    $fp = fopen('ip-to-country.csv', 'r');

    while (!feof($fp)) {
        $buffer = explode(',', str_replace('"', '', fgets($fp)));

        $xx->addCountry($buffer[0], $buffer[1], $buffer[2], $buffer[3], $buffer[4]);
    }

    fclose($fp);
?>
Return current item: Statiqz, website statistics