Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/views/tools/minecraft.php

149 lines
8.4 KiB
PHP
Raw Normal View History

2018-10-16 16:28:42 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if($type == 'player') { ?>
<section class="container">
<div class="row">
<h1 class="center"><?= lang('players_title'); ?></h1>
<p class="lead center"><?= lang('players_description'); ?></p>
</div>
<div class="row">
<form class="form-inline">
<div class="input-group input-group-lg">
<label class="sr-only" for="username"><?= lang('player_name'); ?></label>
<input type="text" class="form-control" id="username" name="username" maxlength="16" placeholder="<?= lang('player_name'); ?>">
<span class="input-group-btn">
<button type="submit" class="btn btn-sm btn-primary"><?= lang('players_search'); ?></button>
</span>
</div>
</form>
</div>
<div class="row">
<div class="well well-lg">
<div class="row">
<div class="col-sm-1">
<img class="rounded" src="<?= $this->minecraftModel->getIcon($username); ?>">
</div>
<div class="col-sm-4">
<h1><?= $username; ?> <small><?= $cracked; ?></small></h1>
</div>
<?php if($crackedBool == false): ?>
<div class="col-sm-7">
<div class="col-sm-2">
<h3>UUID:</h3>
</div>
<div class="col-sm-10">
<h3><?= $uuid; ?></h3>
<h3><?= $uuid_formatted; ?></h3>
</div>
</div>
<?php endif; ?>
</div>
<hr>
<div class="row">
<div class="col-sm-2">
<img class="float-right" src="<?= $this->minecraftModel->getRender($username); ?>">
</div>
<div class="col-sm-6">
<a href="?username=<?= $username; ?>&download=skin" class="btn btn-sm btn-primary"><?= lang('player_skin'); ?></a>
<a href="?username=<?= $username; ?>&download=render" class="btn btn-sm btn-default"><?= lang('player_head_render'); ?></a>
<a href="?username=<?= $username; ?>&download=head" class="btn btn-sm btn-default"><?= lang('player_skin_render'); ?></a>
<div class="gap"></div>
<p><?= lang('player_avatar'); ?></p>
<div class="btn-group">
<a href="?username=<?= $username; ?>&download=avatar&size=16" class="btn btn-sm btn-default">16px</a>
<a href="?username=<?= $username; ?>&download=avatar&size=32" class="btn btn-sm btn-default">32px</a>
<a href="?username=<?= $username; ?>&download=avatar&size=64" class="btn btn-sm btn-default">64px</a>
<a href="?username=<?= $username; ?>&download=avatar&size=128" class="btn btn-sm btn-default">128px</a>
<a href="?username=<?= $username; ?>&download=avatar&size=256" class="btn btn-sm btn-default">256px</a>
<a href="?username=<?= $username; ?>&download=avatar&size=512" class="btn btn-sm btn-default">512px</a>
</div>
</div>
<?php if($crackedBool == false): ?>
<div class="col-sm-4 servers">
<p class="lead"><?= $username ?> <?= lang('player_on_server'); ?></p>
<a href="https://www.gommehd.net/player?playerName=<?= $username; ?>" target="_blank">
<img src="https://www.gommehd.net/images/brandmark@3x.png" width=100px>
</a>
<a href="https://rewinside.tv/playerstats/?player=<?= $username; ?>" target="_blank">
<img src="https://rewinside.tv/wcf/images/dreamily/forumBanner.png" width=100px>
</a>
<a href="https://hypixel.net/player/<?= $username; ?>" target="_blank">
<img src="https://yt3.ggpht.com/-G0UwZhD1hRI/AAAAAAAAAAI/AAAAAAAAAAA/Q5bg4hzv6C0/s900-c-k-no/photo.jpg" width=100px>
</a>
<a href="http://hivemc.com/player/<?= $username; ?>" target="_blank">
<img src="http://static.hivemc.com/images/logo.png" width=100px>
</a>
<a href="http://www.playminity.com/player/<?= $username; ?>" target="_blank">
<img src="https://pbs.twimg.com/profile_images/579952275432566784/4TSVnTs3_400x400.png" width=100px>
</a>
<a href="https://www.dustmc.de/player/<?= $username; ?>" target="_blank">
<img src="https://www.dustmc.de/files/dustmc/img/dustmc_logo_large_glow.png" width=100px>
</a>
</div>
<?php endif; ?>
</div>
<?php if($crackedBool == false): ?>
<div class="row">
<div class="col-sm-6">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<td><?= lang('player_history_name'); ?></td>
<td><?= lang('player_history_change'); ?></td>
</tr>
</thead>
<tbody>
<?= $this->minecraftModel->getHistory($uuid); ?>
</tbody>
</table>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</section>
<?php } else { ?>
<section class="container">
<div id="server"></div>
<div class="row">
<h1 class="center"><?= lang('servers_title'); ?></h1>
<p class="lead center"><?= lang('servers_description'); ?></p>
</div>
<div class="row">
<form class="form-inline">
<div class="input-group input-group-lg">
<label class="sr-only" for="serverip"><?= lang('servers_ip'); ?></label>
<input type="search" class="form-control" id="serverip" name="serverip" maxlength="16" placeholder="<?= lang('servers_ip'); ?>">
<span class="input-group-btn">
<button type="submit" class="btn btn-sm btn-primary"><?= lang('servers_search'); ?></button>
</span>
</div>
</form>
</div>
<div class="row">
<div class="well well-lg">
<div class="row">
<?php if($error == false) { ?>
<div class="col-sm-1">
<img class="rounded" src="<?= $this->minecraftModel->serverIcon($serverip); ?>">
</div>
<?php } ?>
<div class="col-sm-8">
<h1><?= $this->minecraftModel->getServerName($serverip); ?> <small><?= $this->minecraftModel->getMOTD($serverip); ?></small></h1>
</div>
<?php if($error == false) { ?>
<div class="col-sm-3">
<h3 class="float-right"><?= lang('servers_player'); ?>: <span style="color:<?= $this->minecraftModel->getPlayers($serverip)[2]; ?>;"><?= $this->minecraftModel->getPlayers($serverip)[0]; ?></span> / <?= $this->minecraftModel->getPlayers($serverip)[1]; ?></h3>
<h4 class="float-right"><?= lang('servers_ping'); ?>: <?= $this->minecraftModel->getPlayers($serverip)[3]; ?>ms</h4>
<h4 class="float-right"><?= lang('servers_version'); ?>: <?= $this->minecraftModel->getPlayers($serverip)[4]; ?></h4>
</div>
<?php } ?>
</div>
</div>
</div>
</section>
<?php } ?>