echo "><span>" . $lang['db_del'] . "</span></a>"; } echo "<div style='clear:both;'></div>"; echo "<div id='main'>"; //- Switch on $view (actually a series of if-else) if ($view == "structure") { //- Database structure, shows all the tables (=structure) $query = "SELECT sqlite_version() AS sqlite_version"; $queryVersion = $db->select($query); $realVersion = $queryVersion['sqlite_version']; if (isset($dbexists)) { echo "<div class='confirm' style='margin:10px 20px;'>"; echo $lang['err'] . ': ' . sprintf($lang['db_exists'], htmlencode($dbname)); echo "</div><br/>"; } if ($db->isWritable() && !$db->isDirWritable()) { echo "<div class='confirm' style='margin:10px 20px;'>"; echo $lang['attention'] . ': ' . $lang['directory_not_writable']; echo "</div><br/>"; } if (isset($extension_not_allowed)) { echo "<div class='confirm' style='margin:10px 20px;'>"; echo $lang['extension_not_allowed'] . ': '; echo implode(', ', array_map('htmlencode', $allowed_extensions)); echo '<br />' . $lang['add_allowed_extension']; echo "</div><br/>"; } if ($auth->isPasswordDefault()) { echo "<div class='confirm' style='margin:20px 0px;'>"; echo sprintf($lang['warn_passwd'], is_readable('phpliteadmin.config.php') ? 'phpliteadmin.config.php' : PAGE) . "<br />" . $lang['warn0']; echo "</div>";