aboutsummaryrefslogtreecommitdiffstats
path: root/php/database.php
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-01-29 15:07:18 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-01-29 15:07:18 +0200
commit9f0a624ea66aa329a78c464f08d99f63c7282ee8 (patch)
treef645f99ac9b9fb503d98df782525b75c7bae45f7 /php/database.php
parentd14f3109973c7d95a15174db1a1346887765988d (diff)
parent8ba2c35a306719932307ec5f99701101637e1fd2 (diff)
downloadfileup-9f0a624ea66aa329a78c464f08d99f63c7282ee8.tar.gz
Merge branch 'live'
Diffstat (limited to 'php/database.php')
-rw-r--r--php/database.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/php/database.php b/php/database.php
index ef2b825..f472cbf 100644
--- a/php/database.php
+++ b/php/database.php
@@ -16,14 +16,8 @@ require_once "misc.php";
global $database_username;
global $database_password;
global $database_location;
- try
- {
+
$this->pdo=new PDO("mysql:dbname={$database_name};host={$database_location}",$database_username,$database_password);
- }catch(PDOException $e)
- {
- error_log("Could not get database {$database_name} from {$database_location}, {$e} ");
- die("The cow bought the farm");
- }
}
/*returns false if this isn't a user, otherwise returns the user*/