made changes

This commit is contained in:
Newcomer1989
2015-03-27 20:18:21 +01:00
parent 4cff3f3317
commit 309907ab30
13 changed files with 2222 additions and 1710 deletions

View File

@@ -1,18 +1,18 @@
<?php
<?PHP
$q = strtolower($_GET["q"]);
if (!$q) return;
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'];
$dbuserlist = $mysqlcon->query("SELECT * FROM user ORDER BY online DESC");
$items = array();
$dbuserlist = $dbuserlist->fetchAll();
foreach ($dbuserlist as $userlist) {
$items[$userlist['name']] = $userlist['uuid'];
}
foreach ($items as $key=>$value) {
if (strpos(strtolower($key), $q) !== false) {
echo "$key|$value\n";
}
foreach ($items as $key => $value) {
if (strpos(strtolower($key), $q) !== false) {
$key=str_replace('|','&#124;',$key);
echo "$key|$value\n";
}
}
?>