cli) { die("access denied"); } HTML_FlexyFramework::ensureSingle(__FILE__, $this); return true; } function post() { $this->get(); } function get() { PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError')); $location = '/tmp/GeoLite2-City-Locations.csv'; $block = '/tmp/GeoLite2-City-Blocks.csv'; if(!file_exists($location) || !file_exists($block)){ $this->jerr('GeoLite2-City-Locations.csv OR GeoLite2-City-Blocks.csv does not exists?!'); } static $id_mapping = array(); $this->insertLocation($location); $this->insertBlock($block); } function insertLocation($location) { } function log($str) { echo "$str \n"; } }