#!/usr/bin/env php . require_once("../inc/util_ops.inc"); $db_revision = 0; if (file_exists("../../db_revision")) { $db_revision = (int) file_get_contents("../../db_revision"); } require_once("db_update.php"); $updates = array(); foreach ($db_updates as $db_update) { if ($db_update[0] > $db_revision) { $db_revision = $db_update[0]; } } echo "$db_revision\n"; ?>