-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathconnect_i.php
37 lines (23 loc) · 1 KB
/
connect_i.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
bWAPP, or a buggy web application, is a free and open source deliberately insecure web application.
It helps security enthusiasts, developers and students to discover and to prevent web vulnerabilities.
bWAPP covers all major known web vulnerabilities, including all risks from the OWASP Top 10 project!
It is for security-testing and educational purposes only.
Enjoy!
Malik Mesellem
Twitter: @MME_IT
bWAPP is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (http://creativecommons.org/licenses/by-nc-nd/4.0/). Copyright © 2014 MME BVBA. All rights reserved.
*/
// Connection settings
include("config.inc.php");
// Connects to the server
$link = new mysqli($server, $username, $password, $database);
// Checks the connection
if($link->connect_error)
{
// @mail($recipient, "Connection failed: ", $link->connect_error);
die("Connection failed: " . $link->connect_error);
}
// $link->close();
?>