X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpdebug.php;fp=gwvplib%2Fgwvpdebug.php;h=a957a9309fdf97538596fffa2873904228067b38;hp=ee44f400efe7fe5685129cd1fa0c86bc210c4f83;hb=760357457c7b3997bd8a488eb74180463731ddfa;hpb=74399e0d5226d43656c618451b4e6fc06702e5ab diff --git a/gwvplib/gwvpdebug.php b/gwvplib/gwvpdebug.php index ee44f40..a957a93 100644 --- a/gwvplib/gwvpdebug.php +++ b/gwvplib/gwvpdebug.php @@ -88,7 +88,8 @@ function gwvp_DebugCall() break; case "recreatedb": global $db_name; - unlink("$db_name"); + gwvp_forceDisconnect(); + rename("$db_name", "$db_name.tmp"); gwvp_dbCreateSQLiteStructure("$db_name"); //gwvp_createGroup($group_name, $is_admin, $owner_id) //gwvp_createUser($email, $fullname, $password, $username, $desc, $status)