made changes
This commit is contained in:
18
other/search.php
Normal file
18
other/search.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
$q = strtolower($_GET["q"]);
|
||||
if (!$q) return;
|
||||
require_once('config.php');
|
||||
$dbuserlist=$mysqlcon->query("SELECT * FROM user ORDER BY online DESC");
|
||||
$items=array();
|
||||
while($userlist=$dbuserlist->fetch_assoc())
|
||||
{
|
||||
$items[$userlist['name']]=$userlist['uuid'];
|
||||
}
|
||||
|
||||
foreach ($items as $key=>$value) {
|
||||
if (strpos(strtolower($key), $q) !== false) {
|
||||
echo "$key|$value\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user