Error: your access level is insufficient to run this script.
"; exit; } define('SCHEMA_VERSION', 13); ?>Warning: Please backup your database before proceeding.
"; print "Your Tiny Tiny RSS database needs update to the latest version ($version —> $latest_version).
"; /* print "Available incremental updates:"; foreach (array_keys($update_versions) as $v) { if ($v > $version) { print " $v"; } } */ print "
"; print ""; } else if ($op == "do") { print "Performing updates (from version $version)...
"; $num_updates = 0; foreach (array_keys($update_versions) as $v) { if ($v == $version + 1) { print "Updating to version $v...
"; $fp = fopen($update_versions[$v], "r"); if ($fp) { while (!feof($fp)) { $query = trim(getline($fp, ";")); if ($query != "") { print "QUERY: $query
"; db_query($link, $query); } } } fclose($fp); print "Checking version... "; $result = db_query($link, "SELECT schema_version FROM ttrss_version"); $version = db_fetch_result($result, 0, "schema_version"); if ($version == $v) { print "OK! ($version)"; } else { print "ERROR!"; return; } $num_updates++; } } print "
Finished. Performed $num_updates updates up to schema version $version.
"; print ""; } ?>