blob: bf3fab83293a3f5dcede8089e3f25e7ec04ee7a8 [file] [log] [blame]
Andreuabbcb7e2019-09-21 18:22:14 +02001<?php
Andreufd98b5d2019-09-22 13:15:10 +02002 require '../credentials.php';
Andreuabbcb7e2019-09-21 18:22:14 +02003 require '../php/utils.php';
Andreu04f79ef2019-09-22 18:52:19 +02004
Andreuabbcb7e2019-09-21 18:22:14 +02005 $user = get_users($_GET['userid']);
Andreu04f79ef2019-09-22 18:52:19 +02006 if ($user->mort) die();
Andreuabbcb7e2019-09-21 18:22:14 +02007 $victim = get_users($user->quimata);
Andreu779c3b72019-09-24 03:14:35 +02008
9 $bits = dec2bits($user->bits);
10 $bit_counter = 0;
Andreuabbcb7e2019-09-21 18:22:14 +020011?>
12
Andreu04f79ef2019-09-22 18:52:19 +020013<table id="victim_info">
Andreufd98b5d2019-09-22 13:15:10 +020014 <tr>
Andreu779c3b72019-09-24 03:14:35 +020015 <td class="table_img">
16 <div id="victim_img">
17 <table cellspacing="0" cellpadding="0">
18 <tr>
19 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_01_01.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
20 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_01_02.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
21 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_01_03.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
22 </tr>
23 <tr>
24 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_02_01.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
25 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_02_02.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
26 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_02_03.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
27 </tr>
28 <tr>
29 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_03_01.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
30 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_03_02.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
31 <td><img src="./bin/images/imgs/<?=$victim->id?>/slice_03_03.png" width="33" class="<?=(int)$bits[$bit_counter++] ? 'black' : ''?>" /></td>
32 </tr>
33 </table>
34 </div>
35 </td>
Andreu0d0f9fd2019-09-23 03:56:08 +020036 <td class="table_text">
Andreufd98b5d2019-09-22 13:15:10 +020037 <div id="victim_name"><?=$victim->nomcomplet?></div>
Andreu4b2fbd92019-09-22 22:30:25 +020038 <div id="victim_curs_i_grau">
39 <span id="victim_curs"><?=$victim->nomcurs()?></span>
40 -
41 <span id="victim_grau"><?=$victim->nomgrau()?></span>
42 </div>
Andreufd98b5d2019-09-22 13:15:10 +020043 <div id="butons" class="options">
44 <button id="win" onclick="js: send_request(user, 'REQ KILL');">L'he matat</button>
45 </div>
46 </td>
47 </tr>
48</table>