PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

Banjo's Recent Pastes

"Untitled" (PHP) view

  1. <?php
  2.   // Configuration - Your Options
  3.       $allowed_filetypes = array('.jpg','.gif','.bmp','.png'); // These will be the types of file that will pass the validation.
  4.       $max_filesize = 524288; // Maximum filesize in BYTES (currently 0.5MB).
  5.       $upload_path = './files/'; // The place the files will be uploaded to (currently a 'files' directory).
  6.  
  7.   $filename = $_FILES['userfile']['name']; // Get the name of the file (including file extension).
  8.   $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); // Get the extension from the filename.
  9.  
  10.   // Check if the filetype is allowed, if not DIE and inform the user.

"Untitled" (VBScript) view

  1.         Dim st As FileStream = File.OpenRead("C:\Users\Ben\Desktop\4.png")
  2.  
  3.         Dim streamLength As Integer = st.Length
  4.  
  5.         Dim fileData As Byte() = New Byte(streamLength) {}
  6.  
  7.         ' Read the file into a byte array
  8.         st.Read(fileData, 0, streamLength)
  9.         st.Close()

"Untitled" (Plain Text) view

  1. 0xKhTmLbOuNdArY
  2. --0xKhTmLbOuNdArY
  3. Content-Disposition: form-data; name=""user"""
  4.  
  5. Ben_thomson15@hotmail.co.uk
  6. --0xKhTmLbOuNdArY
  7. Content-Disposition: form-data; name=""contentshash""
  8.  
  9. (Contents hash)
  10. --0xKhTmLbOuNdArY

"Untitled" (HTML) view

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2.   "http://www.w3.org/TR/html4/strict.dtd">
  3. <html>
  4. <head>
  5. <title>QuixDraw - The better way to con</title>
  6.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7.   <style type="text/css">
  8.   body {
  9.       background-color: #f1f1f1;
  10.   }

"Untitled" (VBScript) view

  1.     Public Sub runOnStartup(ByVal run As Boolean)
  2.         ' Creates the key
  3.         Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
  4.  
  5.         If run = True Then
  6.             key.SetValue(Application.ProductName.ToString(), Application.ExecutablePath)
  7.             key.Close()
  8.         Else
  9.             key.DeleteValue(Application.ProductName.ToString())
  10.             key.Close()

"Untitled" (Plain Text) view

  1. At the house right nearby, a young man will give you a Silk Scarf. You can visit the Pokemon Center if you want. The Dewford Hall is too worried about the latest trends to be helpful. Near the Pokemon Center, a man in red will give you an Old Rod for fishing.
  2. You won't find Steven right away, so instead, visit the local Gym. The Gym leader, Brawly, uses Fighting-type Pokemon. Flying types are powerful against them. In addition, the gym is very dark and it can be difficult to see, but the more trainers you defeat, the more of the gym you can see.
  3. Brawly L17 Machop - Bulk Up, Karate Chop, Seismic Toss L18 Makuhita - Bulk Up
  4. After you defeat Brawly, he will give you the Knuckle Badge, which forces Pokemon up to level 30 to obey you and allows you to use Flash outside of battle. You also receive TM08 (Bulk Up), which raises the Attack and Defense of a Pokemon.
  5. Now go north and west to the hole leading to Granite Cave.
  6. Talk to the first man you see to get HM05 (Flash), which allows you to light up dark caves when taught to a Pokemon. The second part of the cave is quite dark. If you can, teach Flash to a Pokemon and use it to help you. Simply make your way, in which you can find an Everstone if you inspect the rock by a set of stairs leading to it.
  7. At the end, you will find Steven, in an enclosure. Talk to him, and you hand him the letter. In return, you receive TM47 (Steel Wing). He leaves the cave. Leave the cave the way you came, and go back to Dewford Town.
  8. Having delivered the letter, talk to Mr. Briney and tell him to take you to Slateport next. Setting sail once again, you and Mr. Briney go through routes 107 to 109 before reaching Slateport. You land on a beach with many trainers on inner tubes.
  9. On the west side is the "Seashore House". Its owner, Mr. Sea, likes to see great Pokemon battles. Battle the three trainers you see there, and you'll receive six bottles of Soda Pop as a reward. You'll also be able to buy more Soda Pops from him (for P$300).
  10. Continue north to reach Slateport City.

"Untitled" (PHP) view

  1. <?php
  2.  
  3. $uploaddir = 'upload/'; // Relative Upload Location of data file
  4.  
  5. if (is_uploaded_file($_FILES['file']['tmp_name'])) {
  6.  
  7. $uploadfile = $uploaddir . basename($_FILES['file']['name']);
  8.  
  9. echo "File ". $_FILES['file']['name'] ." uploaded successfully. ";
  10.  

"Re: #8806" (PHP) view

  1. <?php
  2.  
  3.   $url = "http://myurl.com/";
  4.   $newUrl = $url . "email" . $_POST['email'] . "&street_team=" . $_POST['join'] . "&posted_by=" . $_POST['another1'];
  5.  
  6. ?>

"Re: Re: #8738" (Javascript) view

  1. var tlItems = new Array("btnBold","brnUnderline","btnItalic");
  2. var trItems = new Array("btnBold","brnUnderline","btnItalic");
  3. var blItems = new Array("btnBold","brnUnderline","btnItalic");
  4. var brItems = new Array("btnAlign","btnPoint");
  5.  
  6. function WriteButtons (arrItems,side)
  7. {
  8.     for ( var i = 0; i < arrItems.length; i++)
  9.     {
  10.         var elm = document.createElement('img');

"Re: #8738" (Javascript) view

  1. var tlItems = new Array("btnBold","brnUnderline","btnItalic");
  2. var trItems = new Array("btnBold","brnUnderline","btnItalic");
  3. var blItems = new Array("btnBold","brnUnderline","btnItalic");
  4. var brItems = new Array("btnAlign","btnPoint");
  5.  
  6. function WriteButtons (arrItems,side)
  7. {
  8.     for ( var i = 0; i < arrItems.length; i++)
  9.     {
  10.         var elm = document.createElement('img');

« Page: 3, 4, 5, 6, 7.. »