Jelajahi Sumber

Update user.php

Cerothen 9 tahun lalu
induk
melakukan
5cecaa02c7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      user.php

+ 2 - 2
user.php

@@ -74,7 +74,7 @@
 		// 	You can modify the following values, but they're not security related
 		// =======================================================================
 			// rename this to whatever you like
-			const DATABASE_NAME = "users";
+			const DATABASE_NAME = "users";  // Obsolete
 			// this is the session timeout. If someone hasn't performed any page requests
 			// in [timeout] seconds, they're considered logged out.
 			const time_out = 604800;
@@ -155,7 +155,7 @@
                 $_SESSION["username"] = $_COOKIE['OrganizrU'];
             }
 			// file location for the user database
-			$dbfile = DATABASE_LOCATION  . User::DATABASE_NAME . ".db";
+			$dbfile = DATABASE_LOCATION.'users.db';
 			// do we need to build a new database?
 			$rebuild = false;
 			if(!file_exists($dbfile)) { $rebuild = true;}