1
0

bootstrap-compact.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="robots" content="noindex" />
  8. <title><?php echo i18n::_('PrivateBin'); ?></title>
  9. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-3.3.5.css" />
  10. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-theme-3.3.5.css" />
  11. <link type="text/css" rel="stylesheet" href="css/bootstrap/privatebin.css?<?php echo rawurlencode($VERSION); ?>" /><?php
  12. if ($SYNTAXHIGHLIGHTING): ?>
  13. <link type="text/css" rel="stylesheet" href="css/prettify/prettify.css?<?php echo rawurlencode($VERSION); ?>" /><?php
  14. if (strlen($SYNTAXHIGHLIGHTINGTHEME)): ?>
  15. <link type="text/css" rel="stylesheet" href="css/prettify/<?php echo rawurlencode($SYNTAXHIGHLIGHTINGTHEME); ?>.css?<?php echo rawurlencode($VERSION); ?>" /><?php
  16. endif;
  17. endif; ?>
  18. <script type="text/javascript" src="js/jquery-1.11.3.js"></script>
  19. <script type="text/javascript" src="js/sjcl-1.0.4.js"></script>
  20. <script type="text/javascript" src="js/base64-<?php echo rawurlencode($BASE64JSVERSION); ?>.js"></script>
  21. <script type="text/javascript" src="js/rawdeflate-0.5.js"></script>
  22. <script type="text/javascript" src="js/rawinflate-0.3.js"></script>
  23. <script type="text/javascript" src="js/bootstrap-3.3.5.js"></script><?php
  24. if ($SYNTAXHIGHLIGHTING): ?>
  25. <script type="text/javascript" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>"></script><?php
  26. endif;
  27. if ($MARKDOWN): ?>
  28. <script type="text/javascript" src="js/showdown-1.4.1.js"></script><?php
  29. endif; ?>
  30. <script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>"></script>
  31. <!--[if lt IE 10]>
  32. <style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
  33. <![endif]-->
  34. <link rel="apple-touch-icon" href="apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
  35. <link rel="icon" type="image/png" href="favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
  36. <link rel="icon" type="image/png" href="favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
  37. <link rel="manifest" href="manifest.json?<?php echo rawurlencode($VERSION); ?>" />
  38. <link rel="mask-icon" href="safari-pinned-tab.svg?<?php echo rawurlencode($VERSION); ?>" color="#ffcc00" />
  39. <link rel="shortcut icon" href="favicon.ico">
  40. <meta name="msapplication-config" content="browserconfig.xml">
  41. <meta name="theme-color" content="#ffe57e" />
  42. </head>
  43. <body role="document" class="navbar-spacing">
  44. <nav class="navbar navbar-default navbar-fixed-top">
  45. <div class="container">
  46. <div class="navbar-header">
  47. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  48. <span class="sr-only"><?php echo i18n::_('Toggle navigation'); ?></span>
  49. <span class="icon-bar"></span>
  50. <span class="icon-bar"></span>
  51. <span class="icon-bar"></span>
  52. </button>
  53. <a class="reloadlink navbar-brand" href="/">
  54. <img alt="<?php echo i18n::_('PrivateBin'); ?>" src="img/icon.svg" width="20" />
  55. </a>
  56. </div>
  57. <div id="navbar" class="navbar-collapse collapse">
  58. <ul class="nav navbar-nav">
  59. <li>
  60. <button id="sendbutton" type="button" class="hidden btn btn-default navbar-btn">
  61. <span class="glyphicon glyphicon-upload" aria-hidden="true"></span> <?php echo i18n::_('Send'); ?>
  62. </button><?php
  63. if ($EXPIRECLONE): ?>
  64. <button id="clonebutton" type="button" class="hidden btn btn-default navbar-btn">
  65. <span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span> <?php echo i18n::_('Clone'); ?>
  66. </button><?php
  67. endif; ?>
  68. <button id="rawtextbutton" type="button" class="hidden btn btn-default navbar-btn">
  69. <span class="glyphicon glyphicon-text-background" aria-hidden="true"></span> <?php echo i18n::_('Raw text'); ?>
  70. </button>
  71. </li>
  72. <li class="dropdown">
  73. <select id="pasteExpiration" name="pasteExpiration" class="hidden"><?php
  74. foreach ($EXPIRE as $key => $value): ?>
  75. <option value="<?php echo $key; ?>"<?php
  76. if ($key == $EXPIREDEFAULT): ?> selected="selected"<?php
  77. endif; ?>><?php echo $value; ?></option><?php
  78. endforeach; ?>
  79. </select>
  80. <a id="expiration" href="#" class="hidden dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo i18n::_('Expires'); ?>: <span id="pasteExpirationDisplay"><?php echo $EXPIRE[$EXPIREDEFAULT]; ?></span> <span class="caret"></span></a>
  81. <ul class="dropdown-menu"><?php
  82. foreach ($EXPIRE as $key => $value): ?>
  83. <li>
  84. <a href="#" onclick="$('#pasteExpiration').val('<?php echo $key; ?>');$('#pasteExpirationDisplay').text('<?php echo $value; ?>');return false;">
  85. <?php echo $value; ?>
  86. </a>
  87. </li><?php
  88. endforeach; ?>
  89. </ul>
  90. </li>
  91. <li id="formatter" class="dropdown">
  92. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo i18n::_('Options'); ?> <span class="caret"></span></a>
  93. <ul class="dropdown-menu">
  94. <li id="burnafterreadingoption" class="checkbox hidden">
  95. <label>
  96. <input type="checkbox" id="burnafterreading" name="burnafterreading" <?php
  97. if ($BURNAFTERREADINGSELECTED): ?> checked="checked"<?php
  98. endif; ?> />
  99. <?php echo i18n::_('Burn after reading'); ?>
  100. </label>
  101. </li><?php
  102. if ($DISCUSSION): ?>
  103. <li id="opendisc" class="checkbox hidden">
  104. <label>
  105. <input type="checkbox" id="opendiscussion" name="opendiscussion" <?php
  106. if ($OPENDISCUSSION): ?> checked="checked"<?php
  107. endif; ?> />
  108. <?php echo i18n::_('Open discussion'); ?>
  109. </label>
  110. </li><?php
  111. endif; ?>
  112. <li role="separator" class="divider"></li>
  113. <li>
  114. <div>
  115. <?php echo i18n::_('Format'); ?>: <span id="pasteFormatterDisplay"><?php echo $FORMATTER[$FORMATTERDEFAULT]; ?></span> <span class="caret"></span>
  116. </div>
  117. </li><?php
  118. foreach ($FORMATTER as $key => $value): ?>
  119. <li>
  120. <a href="#" onclick="$('#pasteFormatter').val('<?php echo $key; ?>');$('#pasteFormatterDisplay').text('<?php echo $value; ?>');return false;">
  121. <?php echo $value; ?>
  122. </a>
  123. </li><?php
  124. endforeach; ?>
  125. </ul>
  126. <select id="pasteFormatter" name="pasteFormatter" class="hidden"><?php
  127. foreach ($FORMATTER as $key => $value): ?>
  128. <option value="<?php echo $key; ?>"<?php
  129. if ($key == $FORMATTERDEFAULT): ?> selected="selected"<?php
  130. endif; ?>><?php echo $value; ?></option><?php
  131. endforeach; ?>
  132. </select>
  133. </li><?php
  134. if ($PASSWORD): ?>
  135. <li>
  136. <div id="password" class="navbar-form hidden">
  137. <input type="password" id="passwordinput" placeholder="<?php echo i18n::_('Password (recommended)'); ?>" class="form-control" size="19"/>
  138. </div>
  139. </li><?php
  140. endif;
  141. if ($FILEUPLOAD): ?>
  142. <li id="attach" class="hidden dropdown">
  143. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo i18n::_('Attach a file'); ?> <span class="caret"></span></a>
  144. <ul class="dropdown-menu">
  145. <li id="filewrap">
  146. <div>
  147. <input type="file" id="file" name="file" />
  148. </div>
  149. </li>
  150. <li>
  151. <a id="fileremovebutton" href="#">
  152. <?php echo i18n::_('Remove attachment'); ?>
  153. </a>
  154. </li>
  155. </ul>
  156. </li><?php
  157. endif; ?>
  158. </ul>
  159. <ul class="nav navbar-nav pull-right"><?php
  160. if (strlen($LANGUAGESELECTION)): ?>
  161. <li id="language" class="dropdown">
  162. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-flag" aria-hidden="true"></span> <?php echo $LANGUAGES[$LANGUAGESELECTION][0]; ?> <span class="caret"></span></a>
  163. <ul class="dropdown-menu"><?php
  164. foreach ($LANGUAGES as $key => $value): ?>
  165. <li>
  166. <a href="#" class="reloadlink" onclick="document.cookie='lang={$key}';">
  167. <?php echo $value[0]; ?> (<?php echo $value[1]; ?>)
  168. </a>
  169. </li><?php
  170. endforeach; ?>
  171. </ul>
  172. </li><?php
  173. endif; ?>
  174. <li>
  175. <button id="newbutton" type="button" class="reloadlink hidden btn btn-default navbar-btn">
  176. <span class="glyphicon glyphicon-file" aria-hidden="true"></span> <?php echo i18n::_('New'); ?>
  177. </button>
  178. </li>
  179. </ul>
  180. </div>
  181. </div>
  182. </nav>
  183. <header class="container"><?php
  184. if (strlen($NOTICE)): ?>
  185. <div role="alert" class="alert alert-info">
  186. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> <?php echo htmlspecialchars($NOTICE); ?>
  187. </div><?php
  188. endif; ?>
  189. <div id="remainingtime" role="alert" class="hidden alert alert-info">
  190. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
  191. </div><?php
  192. if ($FILEUPLOAD): ?>
  193. <div id="attachment" role="alert" class="hidden alert alert-info">
  194. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> <a><?php echo i18n::_('Download attachment'); ?></a> <span id="clonedfile" class="hidden"><?php echo i18n::_('Cloned file attached.'); ?></span>
  195. </div><?php
  196. endif;
  197. if (strlen($STATUS)): ?>
  198. <div id="status" role="alert" class="alert alert-success">
  199. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> <?php echo htmlspecialchars($STATUS); ?>
  200. </div><?php
  201. endif; ?>
  202. <div id="errormessage" role="alert" class="<?php
  203. if (!strlen($ERROR)): ?>hidden <?php
  204. endif; ?>alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> <?php echo htmlspecialchars($ERROR); ?></div>
  205. <noscript><div id="noscript" role="alert" class="nonworking alert alert-warning"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <?php echo i18n::_('Javascript is required for PrivateBin to work.<br />Sorry for the inconvenience.'); ?></div></noscript>
  206. <div id="oldienotice" role="alert" class="hidden nonworking alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> <?php echo i18n::_('PrivateBin requires a modern browser to work.'); ?></div>
  207. <div id="ienotice" role="alert" class="hidden alert alert-warning"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> <?php echo i18n::_('Still using Internet Explorer? Do yourself a favor, switch to a modern browser:'); ?>
  208. <a href="https://www.mozilla.org/firefox/">Firefox</a>,
  209. <a href="https://www.opera.com/">Opera</a>,
  210. <a href="https://www.google.com/chrome">Chrome</a>,
  211. <a href="https://www.apple.com/safari">Safari</a>...
  212. </div>
  213. <div id="pasteresult" role="alert" class="hidden alert alert-success">
  214. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
  215. <div id="deletelink"></div>
  216. <div id="pastelink"><?php
  217. if (strlen($URLSHORTENER)): ?>
  218. <button id="shortenbutton" data-shortener="<?php echo htmlspecialchars($URLSHORTENER); ?>" type="button" class="btn btn-primary">
  219. <span class="glyphicon glyphicon-send" aria-hidden="true"></span> <?php echo i18n::_('Shorten URL'); ?>
  220. </button><?php
  221. endif; ?>
  222. </div>
  223. </div>
  224. <ul id="preview" class="nav nav-tabs hidden">
  225. <li role="presentation" class="active"><a id="messageedit" href="#"><?php echo i18n::_('Editor'); ?></a></li>
  226. <li role="presentation"><a id="messagepreview" href="#"><?php echo i18n::_('Preview'); ?></a></li>
  227. </ul>
  228. </header>
  229. <section class="container">
  230. <article class="row">
  231. <div id="image" class="col-md-12 text-center hidden"></div>
  232. <div id="prettymessage" class="col-md-12 hidden">
  233. <pre id="prettyprint" class="col-md-12 prettyprint linenums:1"></pre>
  234. </div>
  235. <div id="cleartext" class="col-md-12 hidden"></div>
  236. <p class="col-md-12"><textarea id="message" name="message" cols="80" rows="25" class="form-control hidden"></textarea></p>
  237. </article>
  238. </section>
  239. <section class="container">
  240. <div id="discussion" class="hidden">
  241. <h4><?php echo i18n::_('Discussion'); ?></h4>
  242. <div id="comments"></div>
  243. </div>
  244. </section>
  245. <footer class="container">
  246. <div class="row">
  247. <h4 class="col-md-5 col-xs-8"><?php echo i18n::_('PrivateBin'); ?> <small>- <?php echo i18n::_('Because ignorance is bliss'); ?></small></h4>
  248. <p class="col-md-1 col-xs-4 text-center"><?php echo $VERSION; ?></p>
  249. <p id="aboutbox" class="col-md-6 col-xs-12">
  250. <?php echo i18n::_('PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href="https://github.com/PrivateBin/PrivateBin/wiki">project page</a>.'); ?>
  251. </p>
  252. </div>
  253. </footer>
  254. <div id="cipherdata" class="hidden"><?php echo htmlspecialchars($CIPHERDATA, ENT_NOQUOTES); ?></div>
  255. </body>
  256. </html>