Answer the question
In order to leave comments, you need to log in
How to get variable from php file from browser string?
If you go to vinescope.com/architecture/, there is a connect.php file that contains data for connecting to the database. In general, the contents of the file looks like this:
<?php
$DB_username = "scriptbu_dlol";
$DB_password = "newpassword1";
$DB_name = "scriptbu_dlol";
$DB_hostname = "localhost";
$DBobject = mysql_connect($DB_hostname, $DB_username, $DB_password) or Die("There was a problem connecting to your Database Server");
mysql_select_db($DB_name, $DBobject) or Die("No such Database exist on your server.");
if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
include("settings.php");
?>
Answer the question
In order to leave comments, you need to log in
Free means nothing. No. But you can work on protection against injections
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question