ogs-cs@86
gareth 2007-02-21 18:10:25 +00:00
parent d058f9cbb0
commit 72719bf66f
1 changed files with 10 additions and 3 deletions

View File

@ -13,9 +13,16 @@ function login($args) {
global $dbhost,$dbuser,$dbpasswd,$dbname;
global $grid_owner, $gridserver_sendkey, $gridserver_recvkey, $gridserver_url;
$firstname=add_slashes($args['first']);
$lastname=add_slashes($args['last']);
$passwd=add_slashes($args['passwd']);
if(get_magic_quotes_gpc()) {
$firstname=add_slashes($args['first']);
$lastname=add_slashes($args['last']);
$passwd=add_slashes($args['passwd']);
else {
$firstname=$args['first'];
$lastname=$args['last'];
$passwd=$args['passwd'];
}
$link = mysql_connect($dbhost,$dbuser,$dbpasswd)
OR die("Unable to connect to database");