Update log and admin to work with PHP v 7.2

Mostly changing mysql_ to mysqli_ but also some OOP fixes it classes,
especially the bbcode parser which doesn't have a new version working
with PHP 7.
This commit is contained in:
Jeena 2020-04-05 17:42:46 +02:00
parent 7af86452ff
commit 23c3d3b65b
7 changed files with 22 additions and 22 deletions

View file

@ -88,10 +88,11 @@ function strip($_data) {
}
// escape input for mysql
function escape_for_mysql($_data) {
global $mysql;
if (is_array($_data))
foreach($_data as $key => $val) $_data[$key] = escape_for_mysql($val);
else
$_data = mysql_real_escape_string($_data);
$_data = mysqli_real_escape_string($mysql, $_data);
// uses last opened MySQL link implicitly
// assumption is valid because this function is never called
// before mysql_connect