Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- html>
- <head>
- <title>Xenop.us</title>
- <meta http-equiv="content-type" content="text/html;charset=utf-8">
- <style type="text/css">
- /* hr {color:sienna;}
- p {margin-left:20px;} */
- </style>
- <?php
- error_reporting(E_ALL);
- function getFiles(){
- if ($handle = opendir('./images/')){
- while (false !== ($file = readdir($handle)) {
- if ($file !="." && $file !="..") {
- echo "you have a file";
- }
- }
- }
- }
- ?>
- <script type="text/javascript">
- <!--
- function getRndImg(){
- var length=5
- var ry=Math.floor(Math.random()*length)
- if(ry == 0)
- ry=1
- return document.write('background:url("images/xenopus.jpg") white center no-repeat fixed;')
- }
- function setElementStyle(id) {
- var el = document.getElementById(id);
- for(var i=0; i<el.attributes.length;i++){
- // document.write('name ='+el.attibutes[i].name+' value ='+el.attributes.[i].value);
- }
- el.setAttribute('style','background-color:red;');
- }
- function setBkgStyle() {
- //document.body.style.backgroundImage='url(/images/xenopus.jpg)';
- document.body.style.background="#f3f3f3 url('/images/xenopus.jpg') no-repeat center fixed";
- document.body.style.backgroundSize="75%";
- }
- function addDropBox(id){
- dropbox = document.getElementById(id);
- //dropbox.addEventListerner("dragenter",dragenter,false);
- //dropbox.addEventListerner("dragover",dragover,false);
- dropbox.addEventListerner("drop",drop,false);
- }
- function drop(id){
- //2nd call to document.getElementByID
- d = document.getElementByID(id);
- e.stopPropagation();
- e.preventDefault();
- var dt = e.dataTransfer();
- var files = dt.files();
- handleFiles(files);
- }
- function handleFiles(files){
- var numFiles=files.length;
- for (var i = 0; i < files.length; i++){
- var file = files[i];
- document.write("you have reached iteration "+ i);
- }
- }
- function launch(){
- setBkgStyle();
- addDropBox(document.body);
- }
- -->
- </script>
- </head>
- <body id="bod" onload=launch();>
- <div id="contentArea">
- <H3>this is a pipe bomb!</H3>
- <?php phpInfo()?>
- <script> setElementStyle('contentArea');
- </script>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment