static $cli_opts = array();
+
function getAuth()
{
$ff = HTML_FlexyFramework::get();
return true;
}
+ function post()
+ {
+ $this->get();
+ }
+
function get()
{
$this->jerr('GeoLite2-City-Locations.csv OR GeoLite2-City-Blocks.csv does not exists?!');
}
- $this->jerr('exists');
-// $fc = new File_Convert($cp, 'application/vnd.ms-excel');
-// //var_Dump($img->getStoreName());
-// $csv = $fc->convert('text/csv');
-// unlink($cp);
-// //var_dump($csv);
-// $this->importCsv($csv);
- }
-
- function post()
- {
-// $this->transObj = DB_DataObject::Factory('custinfo');
-//
-// $this->transObj->query('BEGIN');
-//
-// PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
-//
-// $img = DB_DataObject::Factory('images');
-// $img->setFrom(array(
-// 'onid' => 0,
-// 'ontable' => 'ipshead'
-// ));
-// $img->onUpload(false);
-//
-// require_once 'File/Convert.php';
-// $fc = new File_Convert($img->getStoreName(), $img->mimetype );
-// $csv = $fc->convert('text/csv');
-// $this->importCsv($csv);
- }
-
- function importCsv($csv)
- {
+ $this->insertLocation($location);
- exit;
+ $this->insertBlock($block);
}
+
function log($str)
{
echo "$str \n";