Diff for phpWebLogAnalyzer/utils/raw-convert.php between version 1.2 and 1.3
| version 1.2, 2002/03/19 23:20:40 |
version 1.3, 2002/04/26 16:59:07 |
|
|
| #!/usr/bin/php -q |
#!/usr/bin/php -q |
| <?php |
<?php |
| |
|
| include_once("config.php"); |
include_once 'config.php'; |
| include_once("../phpWebLogAnalyzer.inc.php"); |
|
| |
|
| $weblog = new Web_Log($dsn, $timeout); |
$weblog = new Web_Log($dsn); |
| if (! empty($raw_log)) |
|
| $weblog->enableRawLog(); |
|
| |
|
| echo "Active sessions: [" . implode($weblog->getActiveSessions(), '][') . "]\n"; |
if (! is_object($weblog)) { |
| |
die("No object.\n"); |
| |
} |
| |
|
| |
$res = $weblog->convert(); |
| |
|
| |
if (DB::isError($res)) { |
| |
die($res->getMessage() . "\n" . $res->getDebugInfo() . "\n"); |
| |
} |
| |
|
| |
$weblog->destroy(); |
| |
|
| ?> |
?> |
Platon Group <platon@platon.org> http://platon.org/
|
|