Advertisement
Guest User

Access to the drobox system

a guest
Dec 19th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.90 KB | None | 0 0
  1.  
  2. <html>
  3.  
  4. <head>
  5.   <title>Alvertos Ioannis Mourikis</title>
  6.   <meta name="description" content="website description" />
  7.   <meta name="keywords" content="website keywords, website keywords" />
  8.   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  9.   <link rel="stylesheet" type="text/css" href="css/style.css" />
  10.    <script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
  11.   <style type="text/css">
  12. .auto-style1 {
  13.     text-align: center;
  14. }
  15. .auto-style2 {
  16.     font-size: 300%;
  17. }
  18. .auto-style3 {
  19.     font-size: xx-large;
  20. }
  21. .auto-style4 {
  22.     font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  23.     font-size: medium;
  24.     text-decoration: underline;
  25. }
  26. </style>
  27. </head>
  28.  
  29. <body>
  30. <right><a href='logout.php'> Logout </a></right>
  31.   <div id="main">
  32.     <header>
  33.       <div id="logo">
  34.           <h1 class="auto-style2" style="width: 734px; height: 240px">
  35.           <table style="width: 100%">
  36.               <tr>
  37.                   <td class="auto-style3">Upload&nbsp; your files fast and safe</td>
  38.               </tr>
  39.           </table>
  40. &nbsp;</h1>
  41.       </div>
  42.       <nav>
  43.         <ul class="lavaLampWithImage" id="lava_menu">
  44.           <li class="current"><a href="index.html">home</a></li>
  45.           <li style="width: 82px"><a href="about.html">about </a></li>
  46.           <li></li>
  47.           <li><a href="blog.html">blog</a></li>
  48.           <li><a href="contact.php">contact</a></li>
  49.         </ul>
  50.       </nav>
  51.     </header>
  52.     <div id="site_content" style="height: 972px">
  53.       <div id="sidebar_container">
  54.         <div class="gallery">
  55.           <ul class="images">
  56.             <li class="show"><img width="450" height="450" src="images/1.jpg" alt="photo_one" /></li>
  57.             <li><img width="450" height="450" src="images/2.jpg" alt="photo_two" /></li>
  58.           </ul>
  59.         </div>
  60.       </div>
  61.       <div id="content" style="width: 464px; height: 431px">
  62.         <h1>Welcome to world</h1>
  63.           <p>Welcome to my dropbox my name is Alvertos Ioannis Mourikis. </p>
  64.           <p>My Here you can upload and safe your file fast and safe.</p>
  65.           <p>Enjoy!</p>
  66.           <p>&nbsp;<form action="index.php" method="POST" enctype="multipart/form-data">
  67.               File:
  68.          <input type="file" name="image">         <input type="submit" value="Upload">
  69.          </form>
  70.    
  71.     <?php
  72.  $new_subdomain = 'm.albertmourikistorage.bugs3.com';
  73.   echo $new_submdomain.'.'.$_SERVER['http://albertmourikistorage.bugs3.com/'];
  74.  
  75.     mysql_connect("mysql.serversfree.com","u636383883_datab","4A1W8QAS2") or die (mysql_error());
  76.     mysql_select_db("u636383883_image")or die (mysql_error());
  77.    
  78.      $file = $_FILES['image']['tmp_name'];
  79.         if(!isset($file))
  80.              echo "Please select a file for upload";
  81.              else
  82.              {
  83.              $image  = addslashes (file_get_contents($_FILES['image']['tmp_name']));
  84.              $image_name = addslashes ($_FILES['image']['name']);
  85.              $image_size = getimagesize($_FILES['image']['tmp_name']);
  86.              
  87.              if ($image_size==FALSE)
  88.                  echo "This is not an image file.";
  89.                  else
  90.                  {
  91.                       if (!$insert = mysql_query("INSERT INTO store VALUES('','$image_name','$image')"))
  92.                           echo "Problem with the upload";
  93.                      
  94.                       else
  95.                       {
  96.                          $lastid = mysql_insert_id();
  97.                          echo "Image uploaded .<p/> Your image : <p/><img src=take.php?id=$lastid>";
  98.                       }
  99.                  }
  100.              }
  101.    
  102.     ?>&nbsp;<br><br><br><a href="setup-owncloud.php">Here you can make your
  103.           own dropbox </a></p>
  104.           <p>&nbsp;</p>
  105.           <p>&nbsp;</p>
  106.           <p>Transmission in the other direction is downloading -- from one,
  107.           usually larger computer to another, usually smaller computer. From an
  108.           Internet user&#39;s point-of-view, downloading is receiving a file from
  109.           another computer.<br><br>The File Transfer Protocol ( FTP ) is the
  110.           Internet facility for downloading and uploading files. (If you are
  111.           uploading a file to another site, you must usually have permission in
  112.           advance to access the site and the directory where the file is to be
  113.           placed.)<br><br>When you send or receive an attached file with an
  114.           e-mail note, this is just an attachment, not a download or an upload.
  115.           However, in practice, many people use &quot;upload&quot; to mean &quot;send&quot; and
  116.           &quot;download&quot; to mean receive. The term is used loosely in practice and
  117.           if someone says to you &quot;Download (or upload) such--and-such a file to
  118.           me&quot; via e-mail, they simply mean &quot;Send it to me.&quot;<br><br>In short,
  119.           from the ordinary workstation or small computer user&#39;s point-of-view,
  120.           to upload is to send a file and to download is to receive a file.</p>
  121.           <p>&nbsp;</p>
  122.           <p class="auto-style4">
  123.           <a href="http://m.albertmourikistorage.bugs3.com/">View the mobile
  124.           version</a></p>
  125.       </div>
  126.     </div>
  127.     <footer>
  128.       <p>&nbsp;</p>
  129.       <p class="auto-style1">Alvertos Ioannis Mourikis Term1 for Web
  130.       Clients/Servers</p>
  131.     </footer>
  132.   </div>
  133. </body>
  134. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement