#!/usr/bin/php -q
<?php

// Read the dhcpd.leases file. synchronize this with the leases table in the database.
// update any ip addresses in the host and phone tables.

include "/usr/local/astium/web/php/cms/db.php";
include "/usr/local/astium/web/php/config.php";
include "/usr/local/astium/web/php/cms/functions.php";

  $cms = new DB_CMS;
  $tmp = new DB_CMS;

  $debug = 0;
  if (isset($argv[1]) && $argv[1] == '-d') {
    $debug = 1;
  }

  sync_lease_table($debug);

?>
