<?php
- set_include_path(get_include_path() . PATH_SEPARATOR . "include");
+ set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
+ get_include_path());
require_once "functions.php";
require_once "sessions.php";
}
</script>
-<div class="floatingLogo"><img src="images/logo_wide.png"></div>
+<div class="floatingLogo"><img src="images/logo_small.png"></div>
<h1><?php echo __("Database Updater") ?></h1>
+<div class="content">
+
<?php
function getline($fp, $delim) {
$result = "";
foreach (array_keys($update_versions) as $v) {
if ($v == $version + 1) {
print "<p>".T_sprintf("Updating to version %d...", $v)."</p>";
+ db_query($link, "BEGIN");
$fp = fopen($update_versions[$v], "r");
if ($fp) {
while (!feof($fp)) {
}
}
fclose($fp);
+ db_query($link, "COMMIT");
print "<p>".__("Checking version... ");
}
}
- print "<p>".T_sprintf("Finished. Performed <b>%d</b> update(s) up to schema
- version <b>%d</b>.", $num_updates, $version)."</p>";
+ print "<p>".sprintf(ngettext("Finished. Performed <b>%d</b> update up to schema version <b>%d</b>.",
+ "Finished. Performed <b>%d</b> updates up to schema version <b>%d</b>.", $num_updates), $num_updates, $version)."</p>";
print "<form method=\"GET\" action=\"backend.php\">
<input type=\"hidden\" name=\"op\" value=\"logout\">
?>
+</div>
+
</body>
</html>