next problem:
$rs = PMA_DBI_try_query($local_query, $GLOBALS['controllink']); if ($rs && @PMA_DBI_num_rows($rs)) {
this does not work with mysqli ... it took me some time to find it out, DAMN @!!!
call to PMA_DBI_try_query() requires PMA_DBI_QUERY_STORE for PMA_DBI_num_rows() to work.
i am working on this ...