Advertisement
Guest User

my php code

a guest
Dec 22nd, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="utf-8" />
  5. <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  6. <title></title>
  7. <meta name="keywords" content="" />
  8. <meta name="description" content="" />
  9. <link rel="stylesheet" href="style.css" type="text/css" media="screen, projection" />
  10. </head>
  11.  
  12. <body>
  13. <header id="header">
  14. <ul id = "navigation" align="right">
  15. <li><a href="#page1">Page 1</a></li>
  16. <li><a href="#page2">Page 2</a></li>
  17. <li><a href="#page3">Page 3</a></li>
  18. <li><a href="#page4">Page 4</a></li>
  19. <img id="loading" src="img/ajax_load.gif" alt="loading" />
  20. </ul>
  21. </header><!-- #header-->
  22.  
  23. <section id="middle">
  24. <div id="container">
  25. <div id="pageContent">
  26. <h1>Некий текст<br class="aloha-end-br"></h1>
  27. <h2>Некий заголовок</h2><p>Что-то здесь написано.<br></p>
  28. <p>
  29. The word <a href="http://en.wikipedia.org/wiki/Aloha" target="_blank" class="external">aloha</a> derives from the Proto-Polynesian root <i>*qalofa</i>. It has cognates in other Polynesian languages, such as Samoan alofa and Māori aroha, also meaning "love."
  30. </p>
  31. <p>
  32. <a href="http://aloha-editor.com/">Aloha Editor</a> is the word's most advanced browser based Editor made with aloha passion.
  33. </p>
  34. <ul>
  35. <li>Arguably the most famous historical Hawaiian song, "Aloha ʻOe" was written by the last queen of Hawaii, Liliʻuokalani.
  36. </li>
  37. <li>The term inspired the name of the ALOHA Protocol introduced in the 1970s by the University of Hawaii.
  38. </li>
  39. <li>In Hawaii someone can be said to have or show aloha in the way they treat others; whether family, friend, neighbor or stranger.
  40. </li>
  41. </ul>
  42. <img src="img/IMG_1952.JPG" width="100%" height: "100%"; align="static">
  43. </div><!-- #pageContent-->
  44. </div><!-- #container-->
  45.  
  46. <aside id="sideLeft">
  47. <strong>Left Sidebar:</strong>
  48. <?php
  49. $addr = './articles';
  50. echo '<ul id="browser" class="filetree">';
  51. fstree($addr);
  52. echo '</ul>';
  53.  
  54. function fstree($dir) {
  55. // если мы сюда попали, значит уже в папке
  56. echo '<li><span class="folder">'.end(split('/', $dir)).'</span><ul>';
  57. if ($dh = opendir($dir)) {
  58. while (($file = readdir($dh)) !== false) {
  59. if ($file=='..' || $file=='.') continue;
  60. // Если папка, входим в рекурсию
  61. if (is_dir($dir."/".$file)) {
  62. fstree($dir."/".$file);
  63. }
  64. // Если нет - рисуем файл
  65. else {
  66. $file2 = iconv('windows-1251','utf-8', $file);
  67. echo '<li><span class="file"><a href = http://localhost:81/'.$dir.'/'.$file2.'>'.$file.'<a> [size: '.filesize($dir.'/'.$file).' bytes]</span></li>',PHP_EOL;
  68. # echo $path_to_file_on_the_server;
  69. }
  70. }
  71. closedir($dh);
  72. }
  73. echo "</ul></li>";
  74. }
  75. ?>
  76. </aside><!-- #sideLeft -->
  77.  
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement