Guest User

Untitled

a guest
Apr 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.66 KB | None | 0 0
  1. html>
  2.         <head>
  3.                 <title>Xenop.us</title>
  4.                 <meta http-equiv="content-type" content="text/html;charset=utf-8">              
  5.                 <style type="text/css">
  6.                         /* hr {color:sienna;}
  7.                         p {margin-left:20px;} */
  8.                 </style>
  9.                        
  10.                 <?php  
  11.                        error_reporting(E_ALL);
  12.  
  13.                            function getFiles(){
  14.                                if ($handle = opendir('./images/')){
  15.                                        while (false !== ($file = readdir($handle)) {
  16.                                                if ($file !="." && $file !="..") {
  17.                                                        echo "you have a file";
  18.                                                }
  19.                                                }
  20.                                                }
  21.                                }
  22.  
  23.                        ?>
  24.                         <script type="text/javascript">
  25.                 <!--    
  26.                        function getRndImg(){
  27.                                var length=5
  28.                                var ry=Math.floor(Math.random()*length)
  29.                                        if(ry == 0)
  30.                                                ry=1
  31.                                        return document.write('background:url("images/xenopus.jpg") white center no-repeat fixed;')
  32.                        }      
  33.        
  34.                                
  35.                                
  36.                        
  37.                        function setElementStyle(id) {
  38.                                var el = document.getElementById(id);
  39.                                for(var i=0; i<el.attributes.length;i++){
  40.                                //      document.write('name ='+el.attibutes[i].name+' value ='+el.attributes.[i].value);
  41.                                }
  42.  
  43.                                el.setAttribute('style','background-color:red;');
  44.                                
  45.                        }
  46.  
  47.                        function setBkgStyle() {
  48.                                //document.body.style.backgroundImage='url(/images/xenopus.jpg)';
  49.                                document.body.style.background="#f3f3f3 url('/images/xenopus.jpg') no-repeat center fixed";    
  50.                                document.body.style.backgroundSize="75%";
  51.                        }
  52.                        
  53.                      
  54.                        function addDropBox(id){
  55.                                dropbox = document.getElementById(id);
  56.                                        //dropbox.addEventListerner("dragenter",dragenter,false);
  57.                                        //dropbox.addEventListerner("dragover",dragover,false);
  58.                                        dropbox.addEventListerner("drop",drop,false);
  59.                                        }
  60.  
  61.                        function drop(id){
  62.                                //2nd call to document.getElementByID
  63.                                d = document.getElementByID(id);
  64.                                e.stopPropagation();
  65.                                e.preventDefault();
  66.  
  67.                                var dt = e.dataTransfer();
  68.                                var files = dt.files();
  69.  
  70.                                handleFiles(files);
  71.                                }
  72.  
  73.                        function handleFiles(files){
  74.                                var numFiles=files.length;
  75.                                for (var i = 0; i < files.length; i++){
  76.                                        var file = files[i];
  77.                                        document.write("you have reached iteration "+ i);
  78.                                        }
  79.                                }
  80.        
  81.                        function launch(){
  82.                                setBkgStyle();
  83.                                addDropBox(document.body);
  84.                                }
  85.                -->
  86.                 </script>
  87.  
  88.         </head>
  89.  
  90.         <body id="bod" onload=launch();>
  91.         <div id="contentArea">
  92.                         <H3>this is a pipe bomb!</H3>
  93.                                                                                                                            <?php phpInfo()?>
  94.                         <script> setElementStyle('contentArea');
  95.                         </script>
  96.                 </div>
  97.         </body>
  98. </html>
Add Comment
Please, Sign In to add comment