// Turn off output buffering ini_set('output_buffering', 'off'); // Turn off PHP output compression ini_set('zlib.output_compression', false); //Flush (send) the output buffer and turn off output buffering //ob_end_flush(); while (@ob_end_flush()) { } // Implicitly flush the buffer(s) ini_set('implicit_flush', true); ob_implicit_flush(true); if ($id == null || H::csrf() == false) { exit; } if ($type == "app") { $app = \Lobby\Server::Store(array("get" => "app", "id" => $id)); if ($app == "false") { echo "Error - App '<b>{$id}</b>' does not exist in Lobby."; exit; } $name = $app['name']; } else { $name = "Lobby {$id}"; } $GLOBALS['name'] = $name; ?> <p> Do NOT close this window. </p> <p> Downloading <b><?php
echo \Lobby::u("/admin/lobby-store.php"); ?> "> <input type="text" placeholder="Type an app name" name="q" style="width:450px;"/> <button>Search</button> </form> <?php if (isset($_GET['q'])) { $request_data = array("q" => $_GET['q']); } else { $request_data = array("get" => "newApps"); } if (isset($_GET['p'])) { $request_data['p'] = $_GET['p']; } $server_response = \Lobby\Server::Store($request_data); if ($server_response == false) { ser("Nothing Found", "Nothing was found that matches your criteria. Sorry..."); } else { foreach ($server_response['apps'] as $app) { $appImage = $app['image'] != "" ? $app['image'] : L_URL . "/includes/lib/core/Img/blank.png"; $url = \Lobby::u("/admin/lobby-store.php?id={$app['id']}"); ?> <div class="app"> <a href="<?php echo $url; ?> "> <div class="outer"> <img class="image" src="<?php echo $appImage;