- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 - 51
 - 52
 - 53
 - 54
 - 55
 - 56
 - 57
 - 58
 - 59
 - 60
 - 61
 - 62
 - 63
 - 64
 - 65
 - 66
 - 67
 - 68
 - 69
 - 70
 - 71
 - 72
 - 73
 - 74
 
                        function viewMap ($battleid, $userplace, $oppo) {
    $map = Base("sel", "*", "battlemap", $battleid, 'battleid');
    $x=0;
    $stringcount=1;
    $string2=0;
    while ((isset($map[$x]['battlemap_id']))) {
        if((fmod($stringcount,15)==1)&&(fmod($stringcount,2)==1)) {
            $content.='<div style="position:relative;float:left; border:none; width:750px;">';//начало нечётной строки
            $string2++;
        }
        if((fmod($stringcount,15)==1)&&(fmod($stringcount,2)==0)) {
            $content.='<div style="position:relative;float:left; border:none;margin-left:25px; width:750px;margin-top:0px;">';//начало чётной строки
            $string2++;
        }
        $content.='<div style="position:relative;float:left;width:50px;height:50px;border:none;">';
        if (($map[$x]['battlemap_patterntype']==0)&&($oppo['user_battlemap']!=$map[$x]['battlemap_cellnumber'])&&($userplace!= $map[$x]['battlemap_cellnumber'])) {/*а теперь брутальная анальная дефлорация ослиц от графа(не пытайтесь повторить)*/
            $xuy=$x+1;
            if((fmod($string2,2)==0)and(!isset($shotflag)))//ежели мы не стреляем и пляшем в чётной строке, а перс в нечётной
            {
                if(($x==($userplace-17))or($x==($userplace-16))or($x==($userplace+14))or($x==($userplace+13))) {
                    $content .='<a href="javascript:gogo('.$xuy.')">';
                }
            }
            if((fmod($string2,2)==1)and(!isset($shotflag)))//ежели мы не стреляем и пляшем в нечётной строке, а перс в чётной
            {
                if(($x==($userplace-16))or($x==($userplace-15))or($x==($userplace+15))or($x==($userplace+14))) {
                    $content .='<a href="javascript:gogo('.$xuy.')">';
                }
            }
            if(($map[$x]['battlemap_cellnumber']==($userplace-1))or($map[$x]['battlemap_cellnumber']==($userplace+1))) {
                $content .='<a href="javascript:gogo('.$xuy.')">';
            }
            $content .='<div style="position:relative;float:left;background-image:url(/img/patterns/'.$map[$x]['battlemap_patterntype'].$map[$x]['battlemap_patternstr'].'.png);height: 50px; width: 50px;"><br/> '.$map[$x]['battlemap_cellnumber'].'</div>';
            /*всё та же дефлорация*/
            if(($map[$x]['battlemap_cellnumber']==($userplace-1))or($map[$x]['battlemap_cellnumber']==($userplace+1))) {
                $content .='</a>';
            }
            if(fmod($string2,2)==0)//ежели господа пляшем в чётной строке, а перс в нечётной
            {
                if(($x==($userplace-17))or($x==($userplace-16))or($x==($userplace+14))or($x==($userplace+13))) {
                    $content .='</a>';
                }
            }
            if(fmod($string2,2)==1)//ежели господа пляшем в нечётной строке, а перс в чётной
            {
                if(($x==($userplace-16))or($x==($userplace-15))or($x==($userplace+15))or($x==($userplace+14))) {
                    $content .='</a>';
                }
            }
        }
        if($userplace == $map[$x]['battlemap_cellnumber']) {
            $content .='<a target="_top" href="spell.php?login='.$oppo['user_login'].'" target="_parent" title="Заклинания\Способности" rel="gb_page_center[660, 180]"><div style="position:relative;float:left;background-image:url(/img/patterns/hero.png);height: 50px; width: 50px;"><br/> hero<br/>'.$stringcount2.'</div></a>';
        }
        if($oppo['user_battlemap'] ==$map[$x]['battlemap_cellnumber']) {
            $content .='<a href="spell.php?bgo_id='.$map[$x]['battlemap_cellnumber'].'&action=cast">Скастовать</a><br/>
<a href="index.php?bgo_id='.$map[$x]['battlemap_cellnumber'].'&action=shoot">Выстрелить</a><br/>
    <a target="_top" href="info.php?login='.$oppo['user_login'].'" target="_parent" title="Информация о пользователе" rel="gb_page_center[460, 480]">
    <div style="position:relative;float:left;background-image:url(/img/patterns/hero.png);height: 50px; width: 50px;"><br/> oppo</div></a>';
        }
        $content .= '</div>';//конец ячейки
        if(fmod($stringcount,15)==0) {
            $content.='</div>';//конец строки
        }
        $x++;
        $stringcount++;
    }
    echo '<div style="margin-top:80px; margin-left:65px; owerflow:hidden;position:relative;width:777px; height:500px; float:left; border:none; background-image:url(http://steambox.ru/img/battlebackgrounds/'.$map[0]['battlemap_landtype'].'.png);background-repeat:no-repeat;">'
            .$content.
            '</div>'
    ;
}
                                     
        
            Кусок браузерки. Весь остальной код в том же духе (http://govnokod.ru/9458, http://govnokod.ru/3103, http://govnokod.ru/3101 ).
Около 110000 строк отборного говнокода. И как то умудрялось все работать. Недолго правда)))