Lines 129-135
Link Here
|
129 |
if (get_magic_quotes_gpc () == 0) |
129 |
if (get_magic_quotes_gpc () == 0) |
130 |
{ |
130 |
{ |
131 |
if ($CONF['database_type'] == "mysql") $escaped_string = mysql_real_escape_string ($string); |
131 |
if ($CONF['database_type'] == "mysql") $escaped_string = mysql_real_escape_string ($string); |
132 |
if ($CONF['database_type'] == "mysqli") $escaped_string = mysqli_real_escape_string ($string); |
132 |
if ($CONF['database_type'] == "mysqli") |
|
|
133 |
{ |
134 |
$link = db_connect (); |
135 |
$escaped_string = mysqli_real_escape_string ($link, $string); |
136 |
mysqli_close ($link); |
137 |
} |
133 |
if ($CONF['database_type'] == "pgsql") $escaped_string = pg_escape_string ($string); |
138 |
if ($CONF['database_type'] == "pgsql") $escaped_string = pg_escape_string ($string); |
134 |
} |
139 |
} |
135 |
else |
140 |
else |