Update of /cvsroot/phpsqliteadmin/phpsqliteadmin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4765
Modified Files:
dbaction.php
Log Message:
fixed a session bug which didnt change its content when a database was deleted
Index: dbaction.php
===================================================================
RCS file: /cvsroot/phpsqliteadmin/phpsqliteadmin/dbaction.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- dbaction.php 11 May 2004 18:23:21 -0000 1.1.1.1
+++ dbaction.php 21 May 2004 17:28:14 -0000 1.2
@@ -8,8 +8,8 @@
if ($action == 'drop_table') {
- $userdbh->query("drop table '$object'");
- header("Location: index.php");
+ $userdbh->query("drop table '$object'");
+ header("Location: index.php");
exit;
}
@@ -67,7 +67,7 @@
if ($action == 'drop') {
// system db may not be dropped
if ($current_db == 'phpsla.sqlite') {
- header("Location: index.php");
+ header("Location: index.php");
exit;
}
@@ -82,6 +82,7 @@
$sysdbh->query("delete from databases where user = {$alias->user} and alias = '{$alias->alias}'");
unset($userdbh);
unlink($current_db);
+ $_SESSION['phpSQLiteAdmin_currentdb'] = "phpsla.sqlite";
header("Location: index.php");
exit;
}
@@ -93,4 +94,4 @@
}
-?>
\ No newline at end of file
+?>
|