These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /*************************************************************************** |
||
3 | * for license information see LICENSE.md |
||
4 | ***************************************************************************/ |
||
5 | |||
6 | header('Content-type: text/html; charset=utf-8'); |
||
7 | |||
8 | $opt['rootpath'] = __DIR__ . '/../../'; |
||
9 | require __DIR__ . '/../../lib2/web.inc.php'; |
||
10 | |||
11 | $bFirstRow = true; |
||
12 | |||
13 | $rs = sql( |
||
0 ignored issues
–
show
|
|||
14 | 'SELECT SQL_BUFFER_RESULT `caches`.`wp_oc` , `caches`.`name` , `user`.`user_id` , `user`.`username` |
||
15 | FROM `caches` |
||
16 | INNER JOIN `user` ON `caches`.`user_id` = `user`.`user_id` |
||
17 | INNER JOIN `cache_status` ON `caches`.`status` = `cache_status`.`id` |
||
18 | WHERE `cache_status`.`allow_user_view` = 1 |
||
19 | ORDER BY `caches`.`date_created` |
||
20 | DESC LIMIT 3' |
||
21 | ); |
||
22 | while ($r = sql_fetch_assoc($rs)) { |
||
0 ignored issues
–
show
The function
sql_fetch_assoc() has been deprecated with message: use DBAL Conenction instead. See adminreports.php for an example implementation
This function has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.
Loading history...
|
|||
23 | if ($bFirstRow === true) { |
||
24 | $bFirstCol = true; |
||
25 | View Code Duplication | foreach ($r as $k => $v) { |
|
26 | if ($bFirstCol === false) { |
||
27 | echo ';'; |
||
28 | } |
||
29 | echo strGetCsv($k); |
||
30 | $bFirstCol = false; |
||
31 | } |
||
32 | echo "\n"; |
||
33 | |||
34 | $bFirstRow = false; |
||
35 | } |
||
36 | |||
37 | $bFirstCol = true; |
||
38 | View Code Duplication | foreach ($r as $k => $v) { |
|
39 | if ($bFirstCol === false) { |
||
40 | echo ';'; |
||
41 | } |
||
42 | echo strGetCsv($v); |
||
43 | $bFirstCol = false; |
||
44 | } |
||
45 | |||
46 | echo "\n"; |
||
47 | } |
||
48 | sql_free_result($rs); |
||
0 ignored issues
–
show
The function
sql_free_result() has been deprecated with message: use DBAL Conenction instead. See adminreports.php for an example implementation
This function has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.
Loading history...
|
|||
49 | |||
50 | // renamed function from "str_getcsv" to avoid collision with PHP 5.3 str_getcsv() |
||
51 | function strGetCsv($str) |
||
52 | { |
||
53 | return '"' . mb_ereg_replace('"', '\"', $str) . '"'; |
||
54 | } |
||
55 |
This function has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.