| version 1.139, 2016/07/11 13:28:12 |
version 1.140, 2017/06/09 15:12:59 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.138 2016/03/08 13:56:50 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.139 2016/07/11 13:28:12 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 2646 function ezin_admin_db_check_run() { |
|
| Line 2646 function ezin_admin_db_check_run() { |
|
| } |
} |
| $ret = array(); |
$ret = array(); |
| foreach ($_ezin_admin['db_check'] as $check) { |
foreach ($_ezin_admin['db_check'] as $check) { |
| $result = @mysql_query($check['test'], $ezin_db_handle) |
$result = mysqli_query($ezin_db_handle, $check['test']) |
| or ezin_db_error('ezin_admin_db_check_run() [1]'); |
or ezin_db_error('ezin_admin_db_check_run() [1]'); |
| $row = mysql_fetch_array($result, MYSQL_NUM); |
$row = mysqli_fetch_array($result, MYSQLI_NUM); |
| @mysql_free_result($result); |
mysqli_free_result($result); |
| if ($row === false |
if ($row == null |
| || (is_array($row) |
|| (is_array($row) |
| && $row[0] != $check['test_output'])) |
&& $row[0] != $check['test_output'])) |
| { |
{ |
| @mysql_query($check['fix'], $ezin_db_handle) |
mysqli_query($ezin_db_handle, $check['fix']) |
| or ezin_db_error('ezin_admin_db_check_run() [2]'); |
or ezin_db_error('ezin_admin_db_check_run() [2]'); |
| // TEST again |
// TEST again |
| $result = @mysql_query($check['test'], $ezin_db_handle) |
$result = mysqli_query($ezin_db_handle, $check['test']) |
| or ezin_db_error('ezin_admin_db_check_run() [1]'); |
or ezin_db_error('ezin_admin_db_check_run() [1]'); |
| $row = mysql_fetch_array($result, MYSQL_NUM); |
$row = mysqli_fetch_array($result, MYSQLI_NUM); |
| @mysql_free_result($result); |
mysqli_free_result($result); |
| if ($row === false |
if ($row == null |
| || (is_array($row) |
|| (is_array($row) |
| && $row[0] != $check['test_output'])) |
&& $row[0] != $check['test_output'])) |
| { |
{ |