2
0
mirror of https://github.com/Znote/ZnoteAAC.git synced 2025-05-12 00:49:20 +02:00

Fix Players Online Page (OTHire Compatibility) ()

- Now you can see players outfits in page.
This commit is contained in:
Rodrigo Paixão 2018-12-21 13:39:35 -02:00 committed by Stefan A. Brannfjell
parent 7146a77bff
commit ab4c9bed4f

@ -7,7 +7,10 @@
$array = false; $array = false;
$loadFlags = ($config['country_flags']['enabled'] && $config['country_flags']['onlinelist']) ? true : false; $loadFlags = ($config['country_flags']['enabled'] && $config['country_flags']['onlinelist']) ? true : false;
$loadOutfits = ($config['show_outfits']['onlinelist']) ? true : false; $loadOutfits = ($config['show_outfits']['onlinelist']) ? true : false;
$outfitQuery = ($loadOutfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`, `p`.`lookaddons` AS `addons`" : ""; if ($config['ServerEngine'] != 'OTHIRE')
$outfitQuery = ($loadOutfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`, `p`.`lookaddons` AS `addons`" : "";
else
$outfitQuery = ($loadOutfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`" : "";
// Small 30 seconds players_online cache. // Small 30 seconds players_online cache.
$cache = new Cache('engine/cache/onlinelist'); $cache = new Cache('engine/cache/onlinelist');
@ -63,4 +66,4 @@ if (!empty($array) && $array !== false) {
echo 'Nobody is online.'; echo 'Nobody is online.';
} }
?> ?>
<?php include 'layout/overall/footer.php'; ?> <?php include 'layout/overall/footer.php'; ?>