bootstrap-dark.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?php
  2. use PrivateBin\I18n;
  3. ?><!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <meta name="robots" content="noindex" />
  10. <meta name="referrer" content="no-referrer">
  11. <title><?php echo I18n::_('PrivateBin'); ?></title>
  12. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-theme-3.3.5.css" />
  13. <link type="text/css" rel="stylesheet" href="css/bootstrap/darkstrap-0.9.3.css" />
  14. <link type="text/css" rel="stylesheet" href="css/bootstrap/privatebin.css?<?php echo rawurlencode($VERSION); ?>" />
  15. <?php
  16. if ($SYNTAXHIGHLIGHTING):
  17. ?>
  18. <link type="text/css" rel="stylesheet" href="css/prettify/prettify.css?<?php echo rawurlencode($VERSION); ?>" />
  19. <?php
  20. if (strlen($SYNTAXHIGHLIGHTINGTHEME)):
  21. ?>
  22. <link type="text/css" rel="stylesheet" href="css/prettify/<?php echo rawurlencode($SYNTAXHIGHLIGHTINGTHEME); ?>.css?<?php echo rawurlencode($VERSION); ?>" />
  23. <?php
  24. endif;
  25. endif;
  26. ?>
  27. <script type="text/javascript" src="js/jquery-3.1.1.js" integrity="sha512-U6K1YLIFUWcvuw5ucmMtT9HH4t0uz3M366qrF5y4vnyH6dgDzndlcGvH/Lz5k8NFh80SN95aJ5rqGZEdaQZ7ZQ==" crossorigin="anonymous"></script>
  28. <script type="text/javascript" src="js/sjcl-1.0.4.js" integrity="sha512-BqVQ8GgWfMCcdsDuP6Ggm1BV7+mmoWH3PC4UqcYpEKSdEq1rthy6NUsa6gu5sydewbi/ilI3E3ohdCxlPPF9ww==" crossorigin="anonymous"></script>
  29. <?php
  30. if ($ZEROBINCOMPATIBILITY):
  31. ?>
  32. <script type="text/javascript" src="js/base64-1.7.js" integrity="sha512-JdwsSP3GyHR+jaCkns9CL9NTt4JUJqm/BsODGmYhBcj5EAPKcHYh+OiMfyHbcDLECe17TL0hjXADFkusAqiYgA==" crossorigin="anonymous"></script>
  33. <?php
  34. else:
  35. ?>
  36. <script type="text/javascript" src="js/base64-2.1.9.js" integrity="sha512-rbqAby7hObftbEoGQzkhUbEh5YkUn2MtekTLs4btvo2oly4CZ3DxhJzEh0u/rNzS54tcJdqi5Ug1ruugEd2U1g==" crossorigin="anonymous"></script>
  37. <?php
  38. endif;
  39. ?>
  40. <script type="text/javascript" src="js/rawdeflate-0.5.js" integrity="sha512-tTdZ7qMr7tt5VQy4iCHu6/aGB12eRwbUy+AEI5rXntfsjcRfBeeqJloMsBU9FrGk1bIYLiuND/FhU42LO1bi0g==" crossorigin="anonymous"></script>
  41. <script type="text/javascript" src="js/rawinflate-0.3.js" integrity="sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==" crossorigin="anonymous"></script>
  42. <script type="text/javascript" src="js/bootstrap-3.3.5.js" integrity="sha512-/W33QnLmSAP1fwINS9iXgB6s/VOIG9GVdIuIYaUtbSvKPMv5S08PtT3PqnT2WjwBgB8DFeDN2nqJroqQYF7SwQ==" crossorigin="anonymous"></script>
  43. <?php
  44. if ($SYNTAXHIGHLIGHTING):
  45. ?>
  46. <script type="text/javascript" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-m8iHxoN+Fe12xxFwWNdY/TS4KoFntHp29qY0xUzBnPd0bkKMOR/dFhEdTWydpt0b/fIXyhB+znGYUvgjfJ2RzQ==" crossorigin="anonymous"></script>
  47. <?php
  48. endif;
  49. if ($MARKDOWN):
  50. ?>
  51. <script type="text/javascript" src="js/showdown-1.4.1.js" integrity="sha512-Kbz1FIlDnqUJu/3yW8H8USzURA3JuUqSKRwz13lM4kWt6C0n6s4tjl81PCfnWtE4gBIzyj5uGePcfUyotk/icw==" crossorigin="anonymous"></script>
  52. <?php
  53. endif;
  54. ?>
  55. <script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-h/cw2lgocVvgjmYWShhbnz5nSzyUv4rVY1JgN7vmkZq8VJX9KVXPoC7oYX+YGFk+0FYw+c/uofVW9yyU5TJv+w==" crossorigin="anonymous"></script>
  56. <!--[if lt IE 10]>
  57. <style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
  58. <![endif]-->
  59. <link rel="apple-touch-icon" href="apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
  60. <link rel="icon" type="image/png" href="favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
  61. <link rel="icon" type="image/png" href="favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
  62. <link rel="manifest" href="manifest.json?<?php echo rawurlencode($VERSION); ?>" />
  63. <link rel="mask-icon" href="safari-pinned-tab.svg?<?php echo rawurlencode($VERSION); ?>" color="#ffcc00" />
  64. <link rel="shortcut icon" href="favicon.ico">
  65. <meta name="msapplication-config" content="browserconfig.xml">
  66. <meta name="theme-color" content="#ffe57e" />
  67. </head>
  68. <body role="document">
  69. <nav class="navbar navbar-inverse navbar-static-top">
  70. <div class="navbar-header">
  71. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  72. <span class="sr-only"><?php echo I18n::_('Toggle navigation'); ?></span>
  73. <span class="icon-bar"></span>
  74. <span class="icon-bar"></span>
  75. <span class="icon-bar"></span>
  76. </button>
  77. <a class="reloadlink navbar-brand" href="">
  78. <img alt="<?php echo I18n::_('PrivateBin'); ?>" src="img/icon.svg" width="38" />
  79. </a>
  80. </div>
  81. <div id="navbar" class="navbar-collapse collapse">
  82. <ul class="nav navbar-nav">
  83. <li>
  84. <button id="newbutton" type="button" class="reloadlink hidden btn btn-warning navbar-btn">
  85. <span class="glyphicon glyphicon-file" aria-hidden="true"></span> <?php echo I18n::_('New'), PHP_EOL; ?>
  86. </button>
  87. <?php
  88. if ($EXPIRECLONE):
  89. ?>
  90. <button id="clonebutton" type="button" class="hidden btn btn-warning navbar-btn">
  91. <span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span> <?php echo I18n::_('Clone'), PHP_EOL; ?>
  92. </button>
  93. <?php
  94. endif;
  95. ?>
  96. <button id="rawtextbutton" type="button" class="hidden btn btn-warning navbar-btn">
  97. <span class="glyphicon glyphicon-text-background" aria-hidden="true"></span> <?php echo I18n::_('Raw text'), PHP_EOL; ?>
  98. </button>
  99. </li>
  100. <li class="dropdown">
  101. <select id="pasteExpiration" name="pasteExpiration" class="hidden">
  102. <?php
  103. foreach ($EXPIRE as $key => $value):
  104. ?>
  105. <option value="<?php echo $key; ?>"<?php
  106. if ($key == $EXPIREDEFAULT):
  107. ?> selected="selected"<?php
  108. endif;
  109. ?>><?php echo $value; ?></option>
  110. <?php
  111. endforeach;
  112. ?>
  113. </select>
  114. <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>
  115. <ul class="dropdown-menu">
  116. <?php
  117. foreach ($EXPIRE as $key => $value):
  118. ?>
  119. <li>
  120. <a href="#" data-expiration="<?php echo $key; ?>">
  121. <?php echo $value, PHP_EOL; ?>
  122. </a>
  123. </li>
  124. <?php
  125. endforeach;
  126. ?>
  127. </ul>
  128. </li>
  129. <li>
  130. <div id="burnafterreadingoption" class="navbar-text checkbox hidden">
  131. <label>
  132. <input type="checkbox" id="burnafterreading" name="burnafterreading"<?php
  133. if ($BURNAFTERREADINGSELECTED):
  134. ?> checked<?php
  135. endif;
  136. ?> />
  137. <?php echo I18n::_('Burn after reading'), PHP_EOL; ?>
  138. </label>
  139. </div>
  140. </li>
  141. <?php
  142. if ($DISCUSSION):
  143. ?>
  144. <li>
  145. <div id="opendisc" class="navbar-text checkbox hidden">
  146. <label>
  147. <input type="checkbox" id="opendiscussion" name="opendiscussion"<?php
  148. if ($OPENDISCUSSION):
  149. ?> checked<?php
  150. endif;
  151. ?> />
  152. <?php echo I18n::_('Open discussion'), PHP_EOL; ?>
  153. </label>
  154. </div>
  155. </li>
  156. <?php
  157. endif;
  158. if ($PASSWORD):
  159. ?>
  160. <li>
  161. <div id="password" class="navbar-form hidden">
  162. <input type="password" id="passwordinput" placeholder="<?php echo I18n::_('Password (recommended)'); ?>" class="form-control" size="19" />
  163. </div>
  164. </li>
  165. <?php
  166. endif;
  167. if ($FILEUPLOAD):
  168. ?>
  169. <li id="attach" class="hidden dropdown">
  170. <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>
  171. <ul class="dropdown-menu">
  172. <li id="filewrap">
  173. <div>
  174. <input type="file" id="file" name="file" />
  175. </div>
  176. </li>
  177. <li>
  178. <a id="fileremovebutton" href="#">
  179. <?php echo I18n::_('Remove attachment'), PHP_EOL; ?>
  180. </a>
  181. </li>
  182. </ul>
  183. </li>
  184. <?php
  185. endif;
  186. ?>
  187. <li class="dropdown">
  188. <select id="pasteFormatter" name="pasteFormatter" class="hidden">
  189. <?php
  190. foreach ($FORMATTER as $key => $value):
  191. ?>
  192. <option value="<?php echo $key; ?>"<?php
  193. if ($key == $FORMATTERDEFAULT):
  194. ?> selected="selected"<?php
  195. endif;
  196. ?>><?php echo $value; ?></option>
  197. <?php
  198. endforeach;
  199. ?>
  200. </select>
  201. <a id="formatter" href="#" class="hidden dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo I18n::_('Format'); ?>: <span id="pasteFormatterDisplay"><?php echo $FORMATTER[$FORMATTERDEFAULT]; ?></span> <span class="caret"></span></a>
  202. <ul class="dropdown-menu">
  203. <?php
  204. foreach ($FORMATTER as $key => $value):
  205. ?>
  206. <li>
  207. <a href="#" data-format="<?php echo $key; ?>">
  208. <?php echo $value, PHP_EOL; ?>
  209. </a>
  210. </li>
  211. <?php
  212. endforeach;
  213. ?>
  214. </ul>
  215. </li>
  216. </ul>
  217. <ul class="nav navbar-nav pull-right">
  218. <?php
  219. if (strlen($LANGUAGESELECTION)):
  220. ?>
  221. <li id="language" class="dropdown">
  222. <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>
  223. <ul class="dropdown-menu">
  224. <?php
  225. foreach ($LANGUAGES as $key => $value):
  226. ?>
  227. <li>
  228. <a href="#" data-lang="<?php echo $key; ?>">
  229. <?php echo $value[0]; ?> (<?php echo $value[1]; ?>)
  230. </a>
  231. </li>
  232. <?php
  233. endforeach;
  234. ?>
  235. </ul>
  236. </li>
  237. <?php
  238. endif;
  239. ?>
  240. <li>
  241. <button id="sendbutton" type="button" class="hidden btn btn-warning navbar-btn">
  242. <span class="glyphicon glyphicon-upload" aria-hidden="true"></span> <?php echo I18n::_('Send'), PHP_EOL; ?>
  243. </button>
  244. </li>
  245. </ul>
  246. </div>
  247. </nav>
  248. <header class="container">
  249. <?php
  250. if (strlen($NOTICE)):
  251. ?>
  252. <div role="alert" class="alert alert-info">
  253. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> <?php echo htmlspecialchars($NOTICE), PHP_EOL; ?>
  254. </div>
  255. <?php
  256. endif;
  257. ?>
  258. <div id="remainingtime" role="alert" class="hidden alert alert-info">
  259. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
  260. </div>
  261. <?php
  262. if ($FILEUPLOAD):
  263. ?>
  264. <div id="attachment" role="alert" class="hidden alert alert-info">
  265. <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>
  266. </div>
  267. <?php
  268. endif;
  269. if (strlen($STATUS)):
  270. ?>
  271. <div id="status" role="alert" class="alert alert-success">
  272. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> <?php echo htmlspecialchars($STATUS), PHP_EOL; ?>
  273. </div>
  274. <?php
  275. endif;
  276. ?>
  277. <div id="errormessage" role="alert" class="<?php
  278. if (!strlen($ERROR)):
  279. ?>hidden <?php
  280. endif;
  281. ?>alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> <?php echo htmlspecialchars($ERROR); ?></div>
  282. <noscript><div id="noscript" role="alert" class="nonworking alert alert-error"><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>
  283. <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>
  284. <div id="ienotice" role="alert" class="hidden alert alert-error"><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:'), PHP_EOL; ?>
  285. <a href="https://www.mozilla.org/firefox/">Firefox</a>,
  286. <a href="https://www.opera.com/">Opera</a>,
  287. <a href="https://www.google.com/chrome">Chrome</a>,
  288. <a href="https://www.apple.com/safari">Safari</a>...
  289. </div>
  290. <div id="pasteresult" role="alert" class="hidden alert alert-success">
  291. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
  292. <div id="deletelink"></div>
  293. <div id="pastelink">
  294. <?php
  295. if (strlen($URLSHORTENER)):
  296. ?>
  297. <button id="shortenbutton" data-shortener="<?php echo htmlspecialchars($URLSHORTENER); ?>" type="button" class="btn btn-warning">
  298. <span class="glyphicon glyphicon-send" aria-hidden="true"></span> <?php echo I18n::_('Shorten URL'), PHP_EOL; ?>
  299. </button>
  300. <?php
  301. endif;
  302. ?>
  303. </div>
  304. </div>
  305. <ul id="preview" class="nav nav-tabs hidden">
  306. <li role="presentation" class="active"><a id="messageedit" href="#"><?php echo I18n::_('Editor'); ?></a></li>
  307. <li role="presentation"><a id="messagepreview" href="#"><?php echo I18n::_('Preview'); ?></a></li>
  308. </ul>
  309. </header>
  310. <section class="container">
  311. <article class="row">
  312. <div id="image" class="col-md-12 text-center hidden"></div>
  313. <div id="prettymessage" class="col-md-12 hidden">
  314. <pre id="prettyprint" class="col-md-12 prettyprint linenums:1"></pre>
  315. </div>
  316. <div id="cleartext" class="col-md-12 hidden"></div>
  317. <p class="col-md-12"><textarea id="message" name="message" cols="80" rows="25" class="form-control hidden"></textarea></p>
  318. </article>
  319. </section>
  320. <section class="container">
  321. <div id="discussion" class="hidden">
  322. <h4><?php echo I18n::_('Discussion'); ?></h4>
  323. <div id="comments"></div>
  324. </div>
  325. </section>
  326. <footer class="container">
  327. <div class="row">
  328. <h4 class="col-md-5 col-xs-8"><?php echo I18n::_('PrivateBin'); ?> <small>- <?php echo I18n::_('Because ignorance is bliss'); ?></small></h4>
  329. <p class="col-md-1 col-xs-4 text-center"><?php echo $VERSION; ?></p>
  330. <p id="aboutbox" class="col-md-6 col-xs-12">
  331. <?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://privatebin.info/">project page</a>.'), PHP_EOL; ?>
  332. </p>
  333. </div>
  334. </footer>
  335. <div id="cipherdata" class="hidden"><?php echo htmlspecialchars($CIPHERDATA, ENT_NOQUOTES); ?></div>
  336. </body>
  337. </html>