Advertisement
Guest User

HFS template

a guest
Sep 19th, 2011
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.66 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <html>
  3.  <head>
  4.   <title>Index of /test</title>
  5.  </head>
  6.  <body>
  7. <h1>Index of /test</h1>
  8. %files%
  9. </body></html>
  10. [up]
  11. <img src="/~img14" alt="[DIR]"> <a href="..">Parent Directory</a>               -
  12. [files]
  13. <pre><img src="/~img_file" alt="Icon "> <a href="?C=N;O=D">Name</a>                    <a href="?C=M;O=A">Last modified</a>      <a href="?C=S;O=A">Size</a>  <hr>
  14. %up%
  15. %list%
  16. <hr>
  17. </pre>
  18. [file]
  19. <img src="/~img_file" alt="[VID]"> <a href="%item-url%">%item-name%</a>     %item-modified%     %item-size-kb%K
  20. [folder]
  21. <img src="/~img_folder" alt="[DIR]"> <a href="%item-url%">%item-name%</a>                   %item-modified%    -  
  22. [style]
  23. body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
  24. body { margin:0; background-color:#DDF; padding:10px; }
  25. p { margin:0 }
  26. a { text-decoration:none;  background-color:Transparent; color:#05F; }
  27. a:visited { color:#55F; }
  28. a:hover { background-color:#EEF; }
  29. img { border-style:none }
  30. td { font-size:10pt; background:#FFF; border:1px solid #BBF }
  31. td img { vertical-align:top }
  32. th, th a, th a:visited { color:#555; font-size:13pt; font-weight:bold; padding-bottom:0; }
  33. #foldercomment { font-size:10pt; color:#888; background:#EEE; padding:3px; border:1px solid #DDD; border-bottom:3px solid #DDD; margin-top:2px; }
  34. #tools { text-align:right; font-size: 8pt; }
  35. #folder, .big { font-size:14pt; font-weight:bold;  }
  36. #folderlabel, #folderstats, #footer { font-size: 8pt; }
  37. #body {
  38.   border-bottom: 4px solid #BBF;
  39.      border-top: 4px solid #BBF;
  40.     border-left: 1px dotted #BBF;
  41.    border-right: 1px dotted #BBF;
  42.   background:#F3F3FF;
  43.   padding:15px;
  44.   margin:15px;
  45. }
  46. .comment { font-size:7pt; color:#888; background:#EEE; padding:3px; border:1px solid #DDD; margin-top:2px; }
  47. .button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
  48. .button img { vertical-align:text-bottom; }
  49. .flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }
  50.  
  51. [login-link]
  52. <a href="~login" class=button><img src="/~img27" /> LOGIN</a>
  53.  
  54. [loggedin]
  55. <span class=button><img src="/~img27" /> user: %user%</span>
  56.  
  57. [upload-link]
  58. <a href="~upload" class=button><img src="/~img32" /> UPLOAD</a>
  59.  
  60. [nofiles]
  61. <div class=big>No file</div>
  62.  
  63. [archive]
  64. <br><a href="~folder.tar?recursive">Folder archive</a>
  65.  
  66. [protected]
  67. <img src='/~img_lock'>
  68.  
  69. [link]
  70. <tr><td>%new% <a href="%item-url%"><img src="/~img_link" /> <b>%item-name%</b></a>%comment%<td colspan=3 align=center><i>link</i>
  71.  
  72. [comment]
  73. <div class=comment>%item-comment%</div>
  74.  
  75. [folder-comment]
  76. <div id=foldercomment>%item-comment%</div>
  77.  
  78. [error-page]
  79. <html>
  80.   <head>
  81.   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  82.     <style>
  83.     %style%
  84.     </style>
  85.   </head>
  86. <body>
  87. %content%
  88. <hr>
  89. <div style="font-family:tahoma, verdana, arial, helvetica, sans; font-size:8pt;">
  90. <a href="http://www.rejetto.com/hfs/">HttpFileServer %version%</a>
  91. <br />%timestamp%
  92. </div>
  93. </body>
  94. </html>
  95.  
  96. [not found]
  97. <h1>404 -  Not found</h1>
  98. <a href="/">go to root</a>
  99.  
  100. [overload]
  101. <h1>Server busy</h1>
  102. Please, retry later.
  103.  
  104. [max contemp downloads]
  105. <h1>Download limit</h1>
  106. On this server there is a limit on the number of <b>simultaneous</b> downloads.
  107. <br />This limit has been reached. Retry later.
  108.  
  109. [unauthorized]
  110. <h1>Unauthorized</h1>
  111. This is a protected resource.
  112. <br />Your username/password doesn't match.
  113.  
  114. [deny]
  115. <h1>Unallowed</h1>
  116. This resource is not accessible.
  117.  
  118. [ban]
  119. <h1>You are banned.</h1>
  120. %reason%
  121.  
  122. [upload]
  123. <html>
  124. <head>
  125.   <title>HFS %folder%</title>
  126.   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  127.   <style type="text/css">
  128.   %style%
  129.   </style>
  130. </head>
  131. <body>
  132. %login-link%
  133. %loggedin%
  134. <script language="javascript">
  135. var s1, s2;
  136. if (window.parent.progress) s1 = '" target=_parent', s2 = 'CLOSE';
  137. else s1 = '+progress"', s2= 'ADD';
  138. document.write('<a href="~upload'+s1+' class=button onClick="if (frm.upbtn.disabled) return false;"><img src="/~img10" /> '+s2+' PROGRESS FRAME</a>');
  139. </script>
  140. <a href="." target=_parent class=button><img src="/~img21" /> CANCEL UPLOAD</a>
  141. <div style="margin-top:60px" id=folderlabel>folder</div>
  142. <div id=folder>%folder%</div>
  143. <div id=body>
  144. <form name=frm action="." target=_parent method=post enctype="multipart/form-data" onSubmit="frm.upbtn.disabled=true; return true;">
  145. %upload-files%
  146. <input name=upbtn type=submit value="Upload files">
  147. </form>
  148. <br />Before uploading you may want to open a <a target=_blank href="/~progress">progress status window</a>.
  149. </div>
  150. <div id=footer>
  151. <a href="http://www.rejetto.com/hfs/">HttpFileServer %version%</a>
  152. <br />Servertime: %timestamp%
  153. <br />Uptime: %uptime%
  154. <br />Disk space: %diskfree%
  155. </div>
  156. </body>
  157. </html>
  158.  
  159. [upload-file]
  160. <input name=fileupload%idx% size=70 type=file><br />
  161.  
  162. [upload-results]
  163. <html>
  164. <head>
  165.   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  166.   <style type="text/css">
  167.   %style%
  168.   </style>
  169.   <title>HFS %folder%</title>
  170. </head>
  171. <body>
  172. %loggedin%
  173. <div style="margin-top:60px" id=folderlabel>folder</div>
  174. <div id=folder>%folder%</div>
  175. <div id=body>
  176. %uploaded-files%
  177. <br /><br />
  178. <a href="." target=_parent class=big><img src="/~img14" /> Back to the folder</a>
  179. </div>
  180. <div class=footer>
  181. <a href="http://www.rejetto.com/hfs/">HttpFileServer %version%</a>
  182. <br />Servertime: %timestamp%
  183. <br />Uptime: %uptime%
  184. <br />Disk space: %diskfree%
  185. </div>
  186. </body>
  187. </html>
  188.  
  189. [upload-success]
  190. <li><a href='%item-url%'>%item-name%</a>: <b>OK</b> --- %item-size%  (Speed %speed% KB/s)
  191.  
  192. [upload-failed]
  193. <li>%item-name%: <b>FAILED</b> ---  %reason%
  194.  
  195. [upload+progress]
  196. <html>
  197. <head>
  198. <frameset cols=200,*>
  199.   <frame name=progress src="/~progress" scrolling=auto marginwidth=0>
  200.   <frame src="~upload-no-progress" scrolling=auto>
  201. </frameset>
  202. </head>
  203. <body>
  204. </body>
  205. </html>
  206.  
  207. [progress]
  208. <html>
  209. <head>
  210.   <meta http-equiv="Refresh" content="7;URL=/~progress">
  211.   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  212.   <title>HFS - Progress status</title>
  213.   <style>
  214.   %style%
  215.   .filename { font-weight:bold; font-size:8pt; }
  216.   .bytes { font-size:7pt; }
  217.   .perc { font-size:14px; vertical-align:middle; }
  218.   .out_bar { width:100px; font-size:15px; background:black; border:black 1px solid; margin-right:5px; float:left; }
  219.   .in_bar { height:16px; background:white; color:white;  }
  220.   #body { margin-left:0; margin-right:0; }
  221.   body { padding:2px; }
  222.   #graph { border:white outset 2px; }
  223.   </style>
  224. </head>
  225. <body>
  226. <div class=big>Progress status</div>
  227. Auto-refresh: 7 seconds
  228. <br /><br /><img src="/~img_graph190x40" id="graph" />
  229. <div id=body>
  230. %progress-files%
  231. </div>
  232. <div id=footer>Uptime: %uptime%</div>
  233. </body>
  234. </html>
  235.  
  236. [progress-nofiles]
  237. <div class=big>No file exchange in progress.</div>
  238.  
  239. [progress-upload-file]
  240. <span class=flag>&nbsp;up&nbsp;</span>
  241. <span class=filename>%filename%</span>
  242. <div class=bytes>
  243. %done-bytes% / %total-bytes% bytes
  244. <br />Speed: %speed-kb% KB/s
  245. </div>
  246. <div style="margin-top:5px; margin-bottom:20px;">
  247.   <div class=out_bar><div class=in_bar style="width:%perc%px"></div></div> <span class=perc>%perc%%</span>
  248. </div>
  249.  
  250. [progress-download-file]
  251. <span class=flag>&nbsp;down&nbsp;</span>
  252. <span class=filename>%filename%</span>
  253. <div class=bytes>
  254. %done-bytes% / %total-bytes% bytes
  255. <br />Speed: %speed-kb% KB/s
  256. </div>
  257. <div style="margin-top:5px; margin-bottom:20px;">
  258.   <div class=out_bar><div class=in_bar style="width:%perc%px"></div></div> <span class=perc>%perc%%</span>
  259. </div>
  260.  
  261. [newfile]
  262. <span class=flag>&nbsp;NEW&nbsp;</span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement