MINI Sh3ll
<?
header("Content-Type:text/plain");
//ini_set("display_errors", 1);
require_once "functions.php";
$tokenId = $_GET['tid'];
$history = getTokenHistory($tokenId);
//x($history);
$table = '<div class="table-responsive"><table class="table" id="dataTable">
<thead>
<tr>
<th>Token #</th>
<th>Token URI</th>
<th class="text-center">Owner</th>
<th class="text-center">Datetime</th>
</tr>
</thead>
<tbody>';
if(isset($history['history']) && count($history['history']) > 0){
foreach ($history['history'] as $token) {
$table .= '<tr>
<td>'.$token['token_id'].'</td>
<td>'.$token['token_uri'].'</td>
<td class="text-center"><label class="badge badge-'.$token['owner'].'">'.$token['owner_name'].'</label></td>
<td class="text-center">'.date("d-M-Y H:i:s", $token['qila_timestamp']).'</td>
</tr>';
/*$table = '<tr>
<td>'.$token['tokenId'].'</td>
<td>'.$token['tokenURI'].'</td>
<td class="text-center"><label class="badge badge-'.$tokenColors[$token['tokenOwner']].'">'.$token['tokenOwner'].'</label></td>
<td class="text-center">'.$token['timestamp'].'</td>
</tr>';
} */
}
}
$table .= '</tbody></table></div>';
print $table;
?>
OHA YOOOO