Помогите понять код

Discussion in 'PHP' started by NeOz, 11 Jul 2008.

  1. NeOz

    NeOz Banned

    Joined:
    26 Jul 2006
    Messages:
    27
    Likes Received:
    44
    Reputations:
    -5
    Вообшем вот:

    PHP:
    <html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <
    title>Google</title>
    <
    style>body,td,a,p,.h{font-family:arial,sans-serif}.h{font-size:20px}.h{color:#3366cc}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}.lnc:link,.lnc:visited{color:#00c}.pgtab,.pgtab:hover,.pgtabselected,.pgtabside{text-align:center;text-decoration:none;color:#00c;display:block;height:27px;float:left;overflow:hidden;background:url(/intl/ja/images/productlinktabs.png) no-repeat;padding-top:8px}.pgtab{width:130px;background-position:-274px 0}.pgtab:hover{width:130px;background-position:-144px 0}.pgtabselected{width:144px}.pgtabside{width:3px;background-position:-404px 0}.iconl{overflow:hidden;height:px;width:px;position:relative}#gbar{float:left;height:22px;padding-left:2px}.gbh,.gb2 div{border-top:1px solid #c9d7f1;font-size:0;height:0}.gbh{position:absolute;top:24px;width:100%}.gb2 div{margin:5px}#gbi{background:#fff;border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;top:24px;z-index:1000}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}@media all{.gb1,.gb3{height:22px;margin-right:.73em;vertical-align:top}.gb2 a,.gb2 b{display:block;padding:.2em .5em}}#gbi,.gb2{left:0;position:absolute;visibility:hidden}.gb2{z-index:1001}#gbar a{color:#00c}.gb2 a,.gb3 a{text-decoration:none}#gbar .gb2 a:hover{background:#36c;color:#fff;display:block}</style>
    <script>window.google={kEI:"1mVySNzfEJTMwAGuxc2ZBA",kEXPI:"17259,17735",kHL:"ru"};
    function 
    sf(){document.f.q.focus()}
    window.gbar={};(function()
    {
    var 
    c=window.gbar,e,g,h;c.qs=function(b)
    {
     var 
    d=window.encodeURIComponent&&(document.forms[0].q||"").value;
     if(
    d)b.href=b.href.replace(/([?&])q=[^&]*|$/,function(f,a)
      {
       return(
    a||"&")+"q="+encodeURIComponent(d)
      })
    };
    function 
    n(b,d,f)
     {
      
    b.visibility=h?"hidden":"visible";b.left=d+"px";b.top=f+"px"
     
    }
     
    c.tg=function(b)
     {
     var 
    d=0,f=0,a,i=0,o,l=window.navExtra,m,j=document,k=0;g=g||j.getElementById("gbar").getElementsByTagName("span");(b||window.event).cancelBubble=!i;if(!e){e=j.createElement(Array.every||window.createPopup?"iframe":"DIV");e.frameBorder="0";e.scrolling="no";e.src="#";g[7].parentNode.appendChild(e).id="gbi";if(l&&g[7])for(o in l){m=j.createElement("span");m.appendChild(l[o]);g[7].parentNode.insertBefore(m,g[7]).className="gb2"}j.onclick=c.close}while(a=g[++i]){if(f){n(a.style,f+1,d+25);{d+=9;if(!(a.firstChild.tagName=="DIV")){d+=11;k=Math.max(k,a.offsetWidth)}}}if(a.className=="gb3"){do f+=a.offsetLeft;while(a=a.offsetParent)}}{i=0;while(a=g[++i])if(a.className=="gb2")a.style.width=k+"px";e.style.width=k+"px"}e.style.height=d+"px";n(e.style,f,24);h=!h
     
    };
     
    c.close=function(b)
     {
     
    h&&c.tg(b)
     }
    })();
    </script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin=3 marginheight=3>
    <div id=gbar>
    <nobr>
     <span class=gb1><b>Веб</b></span> 
     <span class=gb1><a href="http://images.google.ru/imghp?hl=ru&tab=wi" onclick=gbar.qs(this)>КаÑ?тинки</a></span> 
     <span class=gb1><a href="http://maps.google.ru/maps?hl=ru&tab=wl" onclick=gbar.qs(this)>КаÑ?ты</a></span> 
     <span class=gb1><a href="http://news.google.ru/nwshp?hl=ru&tab=wn" onclick=gbar.qs(this)>Ð�овоÑ�ти</a></span> 
     <span class=gb1><a href="http://groups.google.ru/grphp?hl=ru&tab=wg" onclick=gbar.qs(this)>ГÑ?уппы</a></span> 
     <span class=gb1><a href="http://mail.google.com/mail/?hl=ru&tab=wm">Gmail</a></span> 
     <span class=gb3><a href="http://www.google.ru/intl/ru/options/" onclick="this.blur();gbar.tg(event);return !1"><u>ещё</u> <small>▼</small></a></span>
     <span class=gb2><a href="http://blogsearch.google.ru/?hl=ru&tab=wb" onclick=gbar.qs(this)>Блоги</a></span> 
     <span class=gb2><a href="/dirhp?hl=ru&tab=wd" onclick=gbar.qs(this)>Каталог</a></span>
     <span class=gb2><div></div></a></span> <span class=gb2><a href="http://ru.youtube.com/?hl=ru&tab=w1" onclick=gbar.qs(this)>YouTube</a></span>
     <span class=gb2><a href="http://www.google.com/calendar/render?hl=ru&tab=wc">КалендаÑ?ÑŒ</a></span>
     <span class=gb2><a href="http://picasaweb.google.ru/home?hl=ru&tab=wq" onclick=gbar.qs(this)>ФотогÑ?афии</a></span>
     <span class=gb2><a href="http://docs.google.com/?hl=ru&tab=wo">Документы</a></span> <span class=gb2><a href="http://www.google.ru/reader/view/?hl=ru&tab=wy">Reader</a></span>
     <span class=gb2><a href="http://otvety.google.ru/otvety/?hl=ru&tab=w2" onclick=gbar.qs(this)>ВопÑ?оÑ�Ñ‹ Ð¸ Ð¾Ñ‚веты</a></span> <span class=gb2><div></div></a></span>
     <span class=gb2><a href="http://www.google.ru/intl/ru/options/">Ð’Ñ�е Ð¿Ñ?одукты &raquo;</a></span>
    </nobr>
    </div>
    <div class=gbh style=left:0></div>
    <div class=gbh style=right:0></div>
    <div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%>
    <nobr>
     <a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.ru/ig%3Fhl%3Dru%26source%3Diglk&usg=AFQjCNGA90yIbM1R8iZtlxuqENUj3kH4hw">МоÑ� Ñ�Ñ‚Ñ?аница iGoogle</a> 
     | 
     <a href="https://www.google.com/accounts/Login?continue=http://www.google.ru/&hl=ru">Войти</a>
    </nobr>
    </div>

    <center>

    <script src="/extern_js/f/CgJydRICcnUrMAo4Ayw/sU0He6l7Lhs.js"></script>

    <br clear=all id=lgpd>
     <a href="/search?q=%D0%9C%D0%B0%D1%80%D0%BA+%D0%A8%D0%B0%D0%B3%D0%B0%D0%BB&hl=ru"><img src=/logos/chagall.gif width=276 height=125 border=0 alt="День Ñ?ождениÑ� ÐœÐ°Ñ?ка Ð¨Ð°Ð³Ð°Ð»Ð°" title="День Ñ?ождениÑ� ÐœÐ°Ñ?ка Ð¨Ð°Ð³Ð°Ð»Ð°"></a>
    <br><br>

    <form action="/search" name=f>
     <table cellpadding=0 cellspacing=0>
      <tr valign=top>
       <td width=25%>&nbsp;</td>
       <td align=center nowrap><input name=hl type=hidden value=ru><input autocomplete="off" maxlength=2048 name=q size=55 title="ПоиÑ�к Ð² Google" value=""><br><input name=btnG type=submit value="ПоиÑ�к Ð² Google"><input name=btnI type=submit value="Мне Ð¿Ð¾Ð²ÐµÐ·Ñ‘Ñ‚!"></td>
       <td nowrap width=25%><font size=-2>&nbsp;&nbsp;<a href=/advanced_search?hl=ru>РаÑ�шиÑ?енный Ð¿Ð¾Ð¸Ñ�к</a><br>&nbsp;&nbsp;<a href=/preferences?hl=ru>Ð�аÑ�Ñ‚Ñ?ойки</a><br>&nbsp;&nbsp;<a href=/language_tools?hl=ru>Языковые Ð¸Ð½Ñ�Ñ‚Ñ?ументы</a></font></td>
      </tr>
      <tr>
       <td align=center colspan=3><font size=-1><span style="text-align:left"><input id=all type=radio name=lr value="" checked><label for=all> ÐŸÐ¾Ð¸Ñ�к Ð² Ð˜Ð½Ñ‚еÑ?нете </label><input id=il type=radio name=lr value="lang_ru"><label for=il> ÐŸÐ¾Ð¸Ñ�к Ñ�Ñ‚Ñ?аниц Ð½Ð° Ñ?уÑ�Ñ�ком </label></span></font></td>
      </tr>
     </table>
    </form>

    <br><br>

    <font size=-1>
     <a href="/intl/ru/ads/">Рекламные Ð¿Ñ?огÑ?аммы</a> - 
     <a href="/services/">РешениÑ� Ð´Ð»Ñ� Ð¿Ñ?едпÑ?иÑ�тий</a> - 
     <a href="/intl/ru/about.html">Ð’Ñ�Ñ‘ Ð¾ Google</a> - 
     <a href="http://www.google.ru/intl/ru/jobs/">Работа Ð² Google</a> - 
     <a href="http://www.google.com/ncr">Google.com in English</a>
    </font>

    <p>
     <font size=-2>
      &copy;2008 - <a href="/intl/ru/privacy.html">КонфиденциальноÑ�ть</a>
     </font>
    </p>
    </center>

    </body>

    <script>window.setTimeout('window.google.ac.install(document.f,document.f.q,"",false,"закÑ?ыть",true,"","")',100);</script>

    </html>
    Что он делает?
     
  2. swt1

    swt1 Elder - Старейшина

    Joined:
    16 Feb 2008
    Messages:
    306
    Likes Received:
    78
    Reputations:
    21
    начальная страница поисковика гугла.
     
    #2 swt1, 11 Jul 2008
    Last edited: 11 Jul 2008
    1 person likes this.
  3. m0nsieur

    m0nsieur Elder - Старейшина

    Joined:
    8 Apr 2008
    Messages:
    223
    Likes Received:
    69
    Reputations:
    10
    C какой целью анализируем? Может вопрос можно решить иначе.
     
    1 person likes this.
  4. Ergoproxy

    Ergoproxy Elder - Старейшина

    Joined:
    18 Jan 2008
    Messages:
    248
    Likes Received:
    155
    Reputations:
    45

    А с какой можно?
     
  5. Ляпик

    Ляпик Banned

    Joined:
    11 Jul 2008
    Messages:
    1
    Likes Received:
    0
    Reputations:
    0
    это html
     
  6. m0nsieur

    m0nsieur Elder - Старейшина

    Joined:
    8 Apr 2008
    Messages:
    223
    Likes Received:
    69
    Reputations:
    10
    Может ему понравилась какая-то фича, он решил посмотреть как реализовано и сделать себе так же, самое первое что приходит на ум.
     
  7. etc

    etc Elder - Старейшина

    Joined:
    16 Feb 2008
    Messages:
    113
    Likes Received:
    175
    Reputations:
    1
    Одна работа со страницей и ничего больше. JavaScript.