Image hiding with bits
diff --git a/ajax/victiminfo.php b/ajax/victiminfo.php
index e17a649..bf3fab8 100644
--- a/ajax/victiminfo.php
+++ b/ajax/victiminfo.php
@@ -5,11 +5,34 @@
$user = get_users($_GET['userid']);
if ($user->mort) die();
$victim = get_users($user->quimata);
+
+ $bits = dec2bits($user->bits);
+ $bit_counter = 0;
?>
<table id="victim_info">
<tr>
- <td class="table_img"><img id="victim_img" src="https://picsum.photos/id/<?=$victim->id?>/200/200" /></td>
+ <td class="table_img">
+ <div id="victim_img">
+ <table cellspacing="0" cellpadding="0">
+ <tr>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_01_01.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_01_02.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_01_03.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ </tr>
+ <tr>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_02_01.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_02_02.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_02_03.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ </tr>
+ <tr>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_03_01.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_03_02.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_03_03.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
+ </tr>
+ </table>
+ </div>
+ </td>
<td class="table_text">
<div id="victim_name"><?=$victim->nomcomplet?></div>
<div id="victim_curs_i_grau">