diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-08 20:31:32 +0000 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-08 20:31:32 +0000 |
commit | 5b892eafafb1f41bab1a20f1524cef144042e3e1 (patch) | |
tree | 69d3c6eb5439d02a44fefa3af3dac6e13901a7d0 /includes/db.php | |
parent | e0eb4e7dd88789432b50260276bfd06242a8ebf6 (diff) | |
download | pillowcase-5b892eafafb1f41bab1a20f1524cef144042e3e1.tar.gz pillowcase-5b892eafafb1f41bab1a20f1524cef144042e3e1.tar.bz2 pillowcase-5b892eafafb1f41bab1a20f1524cef144042e3e1.zip |
sql injection prevention
Diffstat (limited to 'includes/db.php')
-rwxr-xr-x | includes/db.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/db.php b/includes/db.php index a763283..6554b8a 100755 --- a/includes/db.php +++ b/includes/db.php | |||
@@ -1,8 +1,9 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | include($_SERVER['DOCUMENT_ROOT'] . '/../security/pillowcase.php'); | 3 | include_once('fix_mysql.inc.php'); |
4 | include('/srv/www/security/pillowcase.php'); | ||
4 | 5 | ||
5 | mysql_connect($dbhost, $dbuser, $dbpasswd); | 6 | $mysql_conn = mysql_connect($dbhost, $dbuser, $dbpasswd); |
6 | mysql_select_db($dbname); | 7 | mysql_select_db($dbname); |
7 | 8 | ||
8 | ?> | 9 | ?> |