Файловый менеджер - Редактировать - /var/www/vhosts/morphe2.dev1.mndrn.cloud/OlD/libs/MySQLgyu.lib.php
Назад
<?php ### GYURAL ### class MySQLgyu extends mysqli { public function Query($query) { ## Caution.. it won't work with UNIONS. if(stristr($query, "SELECT") && !stristr($query, "UNION")) { preg_match("/\s+from\s+`?([a-z\d_]+)`?/i", $query, $match); $tableName = $match[1]; } $GLOBALS["num_query"]++; $this->real_query($query); $a = new MySQLgyu_result($this); isset($tableName) ? $a->{excludeFieldPrefix . 'table'} = $tableName : ''; # Retrive table name from the $query. note up. return($a); } } class MySQLgyu_result extends mysqli_result { public function oggettizza($object) { $a = $this->fetch_object($object); if($a) { isset($this->gyu_table) ? $a->{excludeFieldPrefix . 'table'} = $this->{excludeFieldPrefix . 'table'} : ''; # as above. return($a); } } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка