echo "done ({$wurflfile}: {$size})<br />Downloaded in {$download_time} sec @ {$download_rate} <br/><br/>"; usleep(50000); flush(); } $loader = new TeraWurflLoader($base); //$ok = $base->db->initializeDB(); $ok = $loader->load(); if ($ok) { echo "<strong>Database Update OK</strong><hr />"; echo "Total Time: " . $loader->totalLoadTime() . "<br/>"; echo "Parse Time: " . $loader->parseTime() . " (" . $loader->getParserName() . ")<br/>"; echo "Validate Time: " . $loader->validateTime() . "<br/>"; echo "Sort Time: " . $loader->sortTime() . "<br/>"; echo "Patch Time: " . $loader->patchTime() . "<br/>"; echo "Database Time: " . $loader->databaseTime() . "<br/>"; echo "Cache Rebuild Time: " . $loader->cacheRebuildTime() . "<br/>"; echo "Number of Queries: " . $base->db->numQueries . "<br/>"; if (version_compare(PHP_VERSION, '5.2.0') === 1) { echo "PHP Memory Usage: " . WurflSupport::formatBytes(memory_get_usage()) . "<br/>"; } echo "--------------------------------<br/>"; echo "WURFL Version: " . $loader->version . " (" . $loader->last_updated . ")<br />"; echo "WURFL Devices: " . $loader->mainDevices . "<br/>"; echo "PATCH New Devices: " . $loader->patchAddedDevices . "<br/>"; echo "PATCH Merged Devices: " . $loader->patchMergedDevices . "<br/>"; } else { echo "ERROR LOADING DATA!<br/>"; echo "Errors: <br/>\n"; echo "<pre>" . htmlspecialchars(var_export($loader->errors, true)) . "</pre>"; } echo "<hr/><a href=\"index.php\">Return to administration tool.</a>";
echo "done ({$wurflfile}: {$size})\nDownloaded in {$download_time} sec @ {$download_rate} \n\n"; usleep(50000); flush(); } $loader = new TeraWurflLoader($base); //$ok = $base->db->initializeDB(); $ok = $loader->load(); if ($ok) { echo "Database Update OK\n"; echo "Total Time: " . $loader->totalLoadTime() . "\n"; echo "Parse Time: " . $loader->parseTime() . " (" . $loader->getParserName() . ")\n"; echo "Validate Time: " . $loader->validateTime() . "\n"; echo "Sort Time: " . $loader->sortTime() . "\n"; echo "Patch Time: " . $loader->patchTime() . "\n"; echo "Database Time: " . $loader->databaseTime() . "\n"; echo "Cache Rebuild Time: " . $loader->cacheRebuildTime() . "\n"; echo "Number of Queries: " . $base->db->numQueries . "\n"; if (version_compare(PHP_VERSION, '5.2.0') === 1) { echo "PHP Memory Usage: " . WurflSupport::formatBytes(memory_get_usage()) . "\n"; } echo "--------------------------------\n"; echo "WURFL Version: " . $loader->version . " (" . $loader->last_updated . ")\n"; echo "WURFL Devices: " . $loader->mainDevices . "\n"; echo "PATCH New Devices: " . $loader->patchAddedDevices . "\n"; echo "PATCH Merged Devices: " . $loader->patchMergedDevices . "\n"; } else { echo "ERROR LOADING DATA!\n"; echo "Errors: \n\n"; echo htmlspecialchars(var_export($loader->errors, true)); } /**