Exemplo n.º 1
0
<?php 
    }
    ?>






<?php 
    if ($__is_viewing_self || !IsHiddenObject('bits')) {
        ?>
	<div class="full-bits">
<?php 
        MakeHideToggleButton('bits');
        $bits_quest = Quest::GetQuest($internal_id, CURRENT_LOCALE, 7022, true);
        $bits_info = null;
        // c=0;e=1;l=3;s=12
        // c = Type of case (3090000)
        // e = Equipped. Is removed when unequipped
        // l = Lines
        // s = Slots
        if ($bits_quest !== null && !$bits_quest->IsCompleted() && isset($bits_quest->data['e']) && $bits_quest->data['e'] == 1) {
            $bits_info = $bits_quest->data;
            $bits_rows = (int) $bits_info['l'];
            $bits_cols = (int) $bits_info['s'] / $bits_rows;
            // Get size
            $url = "http://" . $domain . "/ui/bits/" . $bits_rows . "/" . $bits_cols . "/";
            $width_height_array = json_decode(file_get_contents($url . '?onlysize'), true);
        }
        ?>