Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 1 | <?php |
Andreu | fd98b5d | 2019-09-22 13:15:10 +0200 | [diff] [blame] | 2 | require '../credentials.php'; |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 3 | require '../php/utils.php'; |
Andreu | 04f79ef | 2019-09-22 18:52:19 +0200 | [diff] [blame] | 4 | |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 5 | $user = get_users($_GET['userid']); |
Andreu | 04f79ef | 2019-09-22 18:52:19 +0200 | [diff] [blame] | 6 | if ($user->mort) die(); |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 7 | $victim = get_users($user->quimata); |
Andreu | 779c3b7 | 2019-09-24 03:14:35 +0200 | [diff] [blame^] | 8 | |
| 9 | $bits = dec2bits($user->bits); |
| 10 | $bit_counter = 0; |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 11 | ?> |
| 12 | |
Andreu | 04f79ef | 2019-09-22 18:52:19 +0200 | [diff] [blame] | 13 | <table id="victim_info"> |
Andreu | fd98b5d | 2019-09-22 13:15:10 +0200 | [diff] [blame] | 14 | <tr> |
Andreu | 779c3b7 | 2019-09-24 03:14:35 +0200 | [diff] [blame^] | 15 | <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> |
Andreu | 0d0f9fd | 2019-09-23 03:56:08 +0200 | [diff] [blame] | 36 | <td class="table_text"> |
Andreu | fd98b5d | 2019-09-22 13:15:10 +0200 | [diff] [blame] | 37 | <div id="victim_name"><?=$victim->nomcomplet?></div> |
Andreu | 4b2fbd9 | 2019-09-22 22:30:25 +0200 | [diff] [blame] | 38 | <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> |
Andreu | fd98b5d | 2019-09-22 13:15:10 +0200 | [diff] [blame] | 43 | <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> |