<head>
<title>Retrospect-GDS - Installation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="install.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Retrospect-GDS Installer</h1>
<h2>Step 4 - Drop Existing Tables</h2>
<?php
# Drop existing Retrospect-GDS tables
$schema = new adoSchema($db);
$schema->setPrefix($g_db_prefix);
$sql = $schema->ParseSchema('drop.xml');
$result = $schema->ExecuteSchema($sql);
$schema->Destroy();
if ($result != true) {
die('The existing tables could not be dropped. Please remove all Retrospect-GDS tables and try again.');
} else {
echo 'No error were encountered.';
}
?>
<h2>Step 5 - Creating Tables</h2>
<?php
# create new tables and indexes
$schema = new adoSchema($db);
$schema->setPrefix($g_db_prefix);
$sql = $schema->ParseSchema('create.xml');
$result = $schema->ExecuteSchema($sql);