#!/usr/bin/php connect()) { $myLog->log(LOG_WARNING, "Could not connect to database"); exit(1); } $everything = ""; $result=$db->customQuery("SELECT id, active, secret ". "FROM clients ". "ORDER BY id"); while($row = $result->fetch(PDO::FETCH_ASSOC)) { $everything = $everything . $row['id'] . "\t" . $row['active'] . "\t" . $row['secret'] . "\n"; } $hash = sha1 ($everything); if ($verbose) { print $everything; } print substr ($hash, 0, 10) . "\n"; $result=null; $db=null; ?>