File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
header ("Cache-Control: no-cache, no-stire, must-revalidate, max-age=0 " );
3
3
if (isset ($ _GET ["user " ]) && $ _GET ["user " ] === "Рейму " )
4
- header ("Content-type: text/plain; charset=utf-8 " );
4
+ header ("Content-type: text/plain; charset=utf-8 " ); // quick option special for MBH
5
5
else
6
6
header ("Content-type: application/json; charset=utf-8 " );
7
7
session_name ('SWViewer ' );
31
31
getCommonsUsers ();
32
32
33
33
if (isset ($ _GET ["user " ]) && $ _GET ["user " ] === "Рейму " ) {
34
- echo implode ("| " , $ usersList ); // quick option special for MBH; sic, plain text while json content type
34
+ echo implode ("| " , $ usersList ); // quick option special for MBH
35
35
} else {
36
36
$ explain = "commons-sysop|commons-filemover|commons-image-reviewer|global-ipblock-exempt|oathauth-tester|apihighlimits-requestor|captcha-exempt|wmf-researcher|wmf-ops-monitoring|sysadmin|recursive-export|vrt-permissions|new-wikis-importer|global-interface-editor|global-flow-create|global-deleter|global-bot|staff|steward|global-sysop|global-rollbacker|abusefilter-helper|founder|ombuds " ;
37
37
echo json_encode (['meta ' => ['count ' => count ($ usersList ), 'explain ' => $ explain ], 'users ' => $ usersList ]);
You can’t perform that action at this time.
0 commit comments