$this->next_record(); return $this->f('rights'); } return 0; } } // Create the database object. $db = new dbaccess(); echo '<HTML> <HEAD> <TITLE>' . $site_title . ' Database Setup</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> </HEAD> <BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0> <CENTER>'; $db->SetupDB(); $nr = $db->CheckSetup(); if (isset($nr) && $nr >= 1) { echo 'The Calendar Database Has Been Created<br><br> Administrative Userid created for Calender(no password)<br> Userid: admin<br> Password: <br><br> The userid is case sensitive.<br> You may change the admin password within the Calender Administration tool<br> <br> You may remove this file (setupdb.php) from your website now.<br><br>'; } else { echo 'Error creating the calendar database tables!<br><br> Ensure that the database: "' . $config_databasename . '" exists on the MySQL server,<br> correct permissions to the account: "' . $config_databaseuser . '" have been assigned<br> and then reload this webpage.<br><br>';