bootstrap.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <?php
  2. use PrivateBin\I18n;
  3. if (!isset($tpl)) $tpl = 'bootstrap';
  4. $isCpct = substr($tpl, 9, 8) === '-compact';
  5. $isDark = substr($tpl, 9, 5) === '-dark';
  6. $isPage = substr($tpl, -5) === '-page';
  7. ?><!DOCTYPE html>
  8. <html lang="en">
  9. <head>
  10. <meta charset="utf-8" />
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  12. <meta name="viewport" content="width=device-width, initial-scale=1">
  13. <meta name="robots" content="noindex" />
  14. <meta name="referrer" content="no-referrer">
  15. <title><?php echo I18n::_($NAME); ?></title>
  16. <?php
  17. if (!$isDark):
  18. ?>
  19. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-3.3.5.css" />
  20. <?php
  21. endif;
  22. ?>
  23. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-theme-3.3.5.css" />
  24. <?php
  25. if ($isDark):
  26. ?>
  27. <link type="text/css" rel="stylesheet" href="css/bootstrap/darkstrap-0.9.3.css" />
  28. <?php
  29. endif;
  30. ?>
  31. <link type="text/css" rel="stylesheet" href="css/bootstrap/privatebin.css?<?php echo rawurlencode($VERSION); ?>" />
  32. <?php
  33. if ($SYNTAXHIGHLIGHTING):
  34. ?>
  35. <link type="text/css" rel="stylesheet" href="css/prettify/prettify.css?<?php echo rawurlencode($VERSION); ?>" />
  36. <?php
  37. if (strlen($SYNTAXHIGHLIGHTINGTHEME)):
  38. ?>
  39. <link type="text/css" rel="stylesheet" href="css/prettify/<?php echo rawurlencode($SYNTAXHIGHLIGHTINGTHEME); ?>.css?<?php echo rawurlencode($VERSION); ?>" />
  40. <?php
  41. endif;
  42. endif;
  43. ?>
  44. <noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
  45. <script type="text/javascript" src="js/jquery-3.1.1.js" integrity="sha512-U6K1YLIFUWcvuw5ucmMtT9HH4t0uz3M366qrF5y4vnyH6dgDzndlcGvH/Lz5k8NFh80SN95aJ5rqGZEdaQZ7ZQ==" crossorigin="anonymous"></script>
  46. <script type="text/javascript" src="js/sjcl-1.0.4.js" integrity="sha512-BqVQ8GgWfMCcdsDuP6Ggm1BV7+mmoWH3PC4UqcYpEKSdEq1rthy6NUsa6gu5sydewbi/ilI3E3ohdCxlPPF9ww==" crossorigin="anonymous"></script>
  47. <?php
  48. if ($ZEROBINCOMPATIBILITY):
  49. ?>
  50. <script type="text/javascript" src="js/base64-1.7.js" integrity="sha512-JdwsSP3GyHR+jaCkns9CL9NTt4JUJqm/BsODGmYhBcj5EAPKcHYh+OiMfyHbcDLECe17TL0hjXADFkusAqiYgA==" crossorigin="anonymous"></script>
  51. <?php
  52. else:
  53. ?>
  54. <script type="text/javascript" src="js/base64-2.1.9.js" integrity="sha512-rbqAby7hObftbEoGQzkhUbEh5YkUn2MtekTLs4btvo2oly4CZ3DxhJzEh0u/rNzS54tcJdqi5Ug1ruugEd2U1g==" crossorigin="anonymous"></script>
  55. <?php
  56. endif;
  57. ?>
  58. <script type="text/javascript" src="js/rawdeflate-0.5.js" integrity="sha512-tTdZ7qMr7tt5VQy4iCHu6/aGB12eRwbUy+AEI5rXntfsjcRfBeeqJloMsBU9FrGk1bIYLiuND/FhU42LO1bi0g==" crossorigin="anonymous"></script>
  59. <script type="text/javascript" src="js/rawinflate-0.3.js" integrity="sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==" crossorigin="anonymous"></script>
  60. <script type="text/javascript" src="js/bootstrap-3.3.5.js" integrity="sha512-/W33QnLmSAP1fwINS9iXgB6s/VOIG9GVdIuIYaUtbSvKPMv5S08PtT3PqnT2WjwBgB8DFeDN2nqJroqQYF7SwQ==" crossorigin="anonymous"></script>
  61. <?php
  62. if ($SYNTAXHIGHLIGHTING):
  63. ?>
  64. <script type="text/javascript" src="js/prettify.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-m8iHxoN+Fe12xxFwWNdY/TS4KoFntHp29qY0xUzBnPd0bkKMOR/dFhEdTWydpt0b/fIXyhB+znGYUvgjfJ2RzQ==" crossorigin="anonymous"></script>
  65. <?php
  66. endif;
  67. if ($MARKDOWN):
  68. ?>
  69. <script type="text/javascript" src="js/showdown-1.4.1.js" integrity="sha512-Kbz1FIlDnqUJu/3yW8H8USzURA3JuUqSKRwz13lM4kWt6C0n6s4tjl81PCfnWtE4gBIzyj5uGePcfUyotk/icw==" crossorigin="anonymous"></script>
  70. <?php
  71. endif;
  72. ?>
  73. <script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-7C0R3df9nbM/VHCi2PpuEy14FC3os6JQfEkI6u4fjKn5xMlNJAozHJCwP/4bQiXxeqMy64Xi6VmZgaG6dwjAgg==" crossorigin="anonymous"></script>
  74. <!--[if lt IE 10]>
  75. <style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
  76. <![endif]-->
  77. <link rel="apple-touch-icon" href="apple-touch-icon.png?<?php echo rawurlencode($VERSION); ?>" sizes="180x180" />
  78. <link rel="icon" type="image/png" href="favicon-32x32.png?<?php echo rawurlencode($VERSION); ?>" sizes="32x32" />
  79. <link rel="icon" type="image/png" href="favicon-16x16.png?<?php echo rawurlencode($VERSION); ?>" sizes="16x16" />
  80. <link rel="manifest" href="manifest.json?<?php echo rawurlencode($VERSION); ?>" />
  81. <link rel="mask-icon" href="safari-pinned-tab.svg?<?php echo rawurlencode($VERSION); ?>" color="#ffcc00" />
  82. <link rel="shortcut icon" href="favicon.ico">
  83. <meta name="msapplication-config" content="browserconfig.xml">
  84. <meta name="theme-color" content="#ffe57e" />
  85. </head>
  86. <body role="document"<?php
  87. if ($isCpct):
  88. ?> class="navbar-spacing"<?php
  89. endif;
  90. ?>>
  91. <div id="passwordmodal" class="modal fade" role="dialog">
  92. <div class="modal-dialog">
  93. <div class="modal-content">
  94. <div class="modal-body">
  95. <form id="passwordform" role="form">
  96. <div class="form-group">
  97. <label for="passworddecrypt"><span class="glyphicon glyphicon-eye-open"></span> <?php echo I18n::_('Please enter the password for this paste:') ?></label>
  98. <input id="passworddecrypt" type="password" class="form-control" placeholder="<?php echo I18n::_('Enter password') ?>" autofocus>
  99. </div>
  100. <button type="submit" class="btn btn-success btn-block"><span class="glyphicon glyphicon-off"></span> <?php echo I18n::_('Decrypt') ?></button>
  101. </form>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <nav class="navbar navbar-<?php echo $isDark ? 'inverse' : 'default'; ?> navbar-<?php echo $isCpct ? 'fixed' : 'static'; ?>-top"><?php
  107. if ($isCpct):
  108. ?><div class="container"><?php
  109. endif;
  110. ?>
  111. <div class="navbar-header">
  112. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  113. <span class="sr-only"><?php echo I18n::_('Toggle navigation'); ?></span>
  114. <span class="icon-bar"></span>
  115. <span class="icon-bar"></span>
  116. <span class="icon-bar"></span>
  117. </button>
  118. <a class="reloadlink navbar-brand" href="">
  119. <img alt="<?php echo I18n::_($NAME); ?>" src="img/icon.svg" width="38" />
  120. </a>
  121. </div>
  122. <div id="navbar" class="navbar-collapse collapse">
  123. <ul class="nav navbar-nav">
  124. <li>
  125. <?php
  126. if ($isPage):
  127. ?>
  128. <button id="sendbutton" type="button" class="hidden btn btn-<?php echo $isDark ? 'warning' : 'primary'; ?> navbar-btn">
  129. <span class="glyphicon glyphicon-upload" aria-hidden="true"></span> <?php echo I18n::_('Send'), PHP_EOL;
  130. else:
  131. ?>
  132. <button id="newbutton" type="button" class="reloadlink hidden btn btn-<?php echo $isDark ? 'warning' : 'default'; ?> navbar-btn">
  133. <span class="glyphicon glyphicon-file" aria-hidden="true"></span> <?php echo I18n::_('New'), PHP_EOL;
  134. endif;
  135. ?>
  136. </button>
  137. <?php
  138. if ($EXPIRECLONE):
  139. ?>
  140. <button id="clonebutton" type="button" class="hidden btn btn-<?php echo $isDark ? 'warning' : 'default'; ?> navbar-btn">
  141. <span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span> <?php echo I18n::_('Clone'), PHP_EOL; ?>
  142. </button>
  143. <?php
  144. endif;
  145. ?>
  146. <button id="rawtextbutton" type="button" class="hidden btn btn-<?php echo $isDark ? 'warning' : 'default'; ?> navbar-btn">
  147. <span class="glyphicon glyphicon-text-background" aria-hidden="true"></span> <?php echo I18n::_('Raw text'), PHP_EOL; ?>
  148. </button>
  149. </li>
  150. <li class="dropdown">
  151. <select id="pasteExpiration" name="pasteExpiration" class="hidden">
  152. <?php
  153. foreach ($EXPIRE as $key => $value):
  154. ?>
  155. <option value="<?php echo $key; ?>"<?php
  156. if ($key == $EXPIREDEFAULT):
  157. ?> selected="selected"<?php
  158. endif;
  159. ?>><?php echo $value; ?></option>
  160. <?php
  161. endforeach;
  162. ?>
  163. </select>
  164. <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>
  165. <ul class="dropdown-menu">
  166. <?php
  167. foreach ($EXPIRE as $key => $value):
  168. ?>
  169. <li>
  170. <a href="#" data-expiration="<?php echo $key; ?>">
  171. <?php echo $value, PHP_EOL; ?>
  172. </a>
  173. </li>
  174. <?php
  175. endforeach;
  176. ?>
  177. </ul>
  178. </li>
  179. <?php
  180. if ($isCpct):
  181. ?>
  182. <li id="formatter" class="dropdown">
  183. <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>
  184. <ul class="dropdown-menu">
  185. <li id="burnafterreadingoption" class="checkbox hidden">
  186. <label>
  187. <input type="checkbox" id="burnafterreading" name="burnafterreading"<?php
  188. if ($BURNAFTERREADINGSELECTED):
  189. ?> checked="checked"<?php
  190. endif;
  191. ?> />
  192. <?php echo I18n::_('Burn after reading'), PHP_EOL; ?>
  193. </label>
  194. </li>
  195. <?php
  196. if ($DISCUSSION):
  197. ?>
  198. <li id="opendisc" class="checkbox hidden">
  199. <label>
  200. <input type="checkbox" id="opendiscussion" name="opendiscussion"<?php
  201. if ($OPENDISCUSSION):
  202. ?> checked="checked"<?php
  203. endif;
  204. ?> />
  205. <?php echo I18n::_('Open discussion'), PHP_EOL; ?>
  206. </label>
  207. </li>
  208. <?php
  209. endif;
  210. ?>
  211. <li role="separator" class="divider"></li>
  212. <li>
  213. <div>
  214. <?php echo I18n::_('Format'); ?>: <span id="pasteFormatterDisplay"><?php echo $FORMATTER[$FORMATTERDEFAULT]; ?></span> <span class="caret"></span>
  215. </div>
  216. </li>
  217. <?php
  218. foreach ($FORMATTER as $key => $value):
  219. ?>
  220. <li>
  221. <a href="#" data-format="<?php echo $key; ?>">
  222. <?php echo $value, PHP_EOL; ?>
  223. </a>
  224. </li>
  225. <?php
  226. endforeach;
  227. ?>
  228. </ul>
  229. <select id="pasteFormatter" name="pasteFormatter" class="hidden">
  230. <?php
  231. foreach ($FORMATTER as $key => $value):
  232. ?>
  233. <option value="<?php echo $key; ?>"<?php
  234. if ($key == $FORMATTERDEFAULT):
  235. ?> selected="selected"<?php
  236. endif;
  237. ?>><?php echo $value; ?></option>
  238. <?php
  239. endforeach;
  240. ?>
  241. </select>
  242. </li>
  243. <?php
  244. else:
  245. ?>
  246. <li>
  247. <div id="burnafterreadingoption" class="navbar-text checkbox hidden">
  248. <label>
  249. <input type="checkbox" id="burnafterreading" name="burnafterreading"<?php
  250. if ($BURNAFTERREADINGSELECTED):
  251. ?> checked="checked"<?php
  252. endif;
  253. ?> />
  254. <?php echo I18n::_('Burn after reading'), PHP_EOL; ?>
  255. </label>
  256. </div>
  257. </li>
  258. <?php
  259. if ($DISCUSSION):
  260. ?>
  261. <li>
  262. <div id="opendisc" class="navbar-text checkbox hidden">
  263. <label>
  264. <input type="checkbox" id="opendiscussion" name="opendiscussion"<?php
  265. if ($OPENDISCUSSION):
  266. ?> checked="checked"<?php
  267. endif;
  268. ?> />
  269. <?php echo I18n::_('Open discussion'), PHP_EOL; ?>
  270. </label>
  271. </div>
  272. </li>
  273. <?php
  274. endif;
  275. endif;
  276. if ($PASSWORD):
  277. ?>
  278. <li>
  279. <div id="password" class="navbar-form hidden">
  280. <input type="password" id="passwordinput" placeholder="<?php echo I18n::_('Password (recommended)'); ?>" class="form-control" size="19" />
  281. </div>
  282. </li>
  283. <?php
  284. endif;
  285. if ($FILEUPLOAD):
  286. ?>
  287. <li id="attach" class="hidden dropdown">
  288. <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>
  289. <ul class="dropdown-menu">
  290. <li id="filewrap">
  291. <div>
  292. <input type="file" id="file" name="file" />
  293. </div>
  294. </li>
  295. <li>
  296. <a id="fileremovebutton" href="#">
  297. <?php echo I18n::_('Remove attachment'), PHP_EOL; ?>
  298. </a>
  299. </li>
  300. </ul>
  301. </li>
  302. <?php
  303. endif;
  304. if (!$isCpct):
  305. ?>
  306. <li class="dropdown">
  307. <select id="pasteFormatter" name="pasteFormatter" class="hidden">
  308. <?php
  309. foreach ($FORMATTER as $key => $value):
  310. ?>
  311. <option value="<?php echo $key; ?>"<?php
  312. if ($key == $FORMATTERDEFAULT):
  313. ?> selected="selected"<?php
  314. endif;
  315. ?>><?php echo $value; ?></option>
  316. <?php
  317. endforeach;
  318. ?>
  319. </select>
  320. <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>
  321. <ul class="dropdown-menu">
  322. <?php
  323. foreach ($FORMATTER as $key => $value):
  324. ?>
  325. <li>
  326. <a href="#" data-format="<?php echo $key; ?>">
  327. <?php echo $value, PHP_EOL; ?>
  328. </a>
  329. </li>
  330. <?php
  331. endforeach;
  332. ?>
  333. </ul>
  334. </li>
  335. <?php
  336. endif;
  337. ?>
  338. </ul>
  339. <ul class="nav navbar-nav pull-right">
  340. <?php
  341. if (strlen($LANGUAGESELECTION)):
  342. ?>
  343. <li id="language" class="dropdown">
  344. <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>
  345. <ul class="dropdown-menu">
  346. <?php
  347. foreach ($LANGUAGES as $key => $value):
  348. ?>
  349. <li>
  350. <a href="#" data-lang="<?php echo $key; ?>">
  351. <?php echo $value[0]; ?> (<?php echo $value[1]; ?>)
  352. </a>
  353. </li>
  354. <?php
  355. endforeach;
  356. ?>
  357. </ul>
  358. </li>
  359. <?php
  360. endif;
  361. ?>
  362. <li>
  363. <?php
  364. if ($isPage):
  365. ?>
  366. <button id="newbutton" type="button" class="reloadlink hidden btn btn-<?php echo $isDark ? 'warning' : 'default'; ?> navbar-btn">
  367. <span class="glyphicon glyphicon-file" aria-hidden="true"></span> <?php echo I18n::_('New'), PHP_EOL;
  368. else:
  369. ?>
  370. <button id="sendbutton" type="button" class="hidden btn btn-<?php echo $isDark ? 'warning' : 'primary'; ?> navbar-btn">
  371. <span class="glyphicon glyphicon-upload" aria-hidden="true"></span> <?php echo I18n::_('Send'), PHP_EOL;
  372. endif;
  373. ?>
  374. </button>
  375. </li>
  376. </ul>
  377. </div>
  378. <?php
  379. if ($isCpct):
  380. ?></div><?php
  381. endif;
  382. ?></nav>
  383. <header class="container">
  384. <?php
  385. if (strlen($NOTICE)):
  386. ?>
  387. <div role="alert" class="alert alert-info">
  388. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> <?php echo htmlspecialchars($NOTICE), PHP_EOL; ?>
  389. </div>
  390. <?php
  391. endif;
  392. ?>
  393. <div id="remainingtime" role="alert" class="hidden alert alert-info">
  394. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
  395. </div>
  396. <?php
  397. if ($FILEUPLOAD):
  398. ?>
  399. <div id="attachment" role="alert" class="hidden alert alert-info">
  400. <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>
  401. </div>
  402. <?php
  403. endif;
  404. if (strlen($STATUS)):
  405. ?>
  406. <div id="status" role="alert" class="alert alert-success">
  407. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> <?php echo htmlspecialchars($STATUS), PHP_EOL; ?>
  408. </div>
  409. <?php
  410. endif;
  411. ?>
  412. <div id="errormessage" role="alert" class="<?php
  413. if (!strlen($ERROR)):
  414. ?>hidden <?php
  415. endif;
  416. ?>alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> <?php echo htmlspecialchars($ERROR); ?></div>
  417. <noscript><div id="noscript" role="alert" class="nonworking alert alert-<?php echo $isDark ? 'error' : 'warning'; ?>"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <?php echo I18n::_('JavaScript is required for %s to work.<br />Sorry for the inconvenience.', I18n::_($NAME)); ?></div></noscript>
  418. <div id="oldienotice" role="alert" class="hidden nonworking alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> <?php echo I18n::_('%s requires a modern browser to work.', I18n::_($NAME)); ?></div>
  419. <div id="ienotice" role="alert" class="hidden alert alert-<?php echo $isDark ? 'error' : '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:'), PHP_EOL; ?>
  420. <a href="https://www.mozilla.org/firefox/">Firefox</a>,
  421. <a href="https://www.opera.com/">Opera</a>,
  422. <a href="https://www.google.com/chrome">Chrome</a>,
  423. <a href="https://www.apple.com/safari">Safari</a>...
  424. </div>
  425. <div id="pasteresult" role="alert" class="hidden alert alert-success">
  426. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
  427. <div id="deletelink"></div>
  428. <div id="pastelink">
  429. <?php
  430. if (strlen($URLSHORTENER)):
  431. ?>
  432. <button id="shortenbutton" data-shortener="<?php echo htmlspecialchars($URLSHORTENER); ?>" type="button" class="btn btn-<?php echo $isDark ? 'warning' : 'primary'; ?>">
  433. <span class="glyphicon glyphicon-send" aria-hidden="true"></span> <?php echo I18n::_('Shorten URL'), PHP_EOL; ?>
  434. </button>
  435. <?php
  436. endif;
  437. ?>
  438. </div>
  439. </div>
  440. <ul id="preview" class="nav nav-tabs hidden">
  441. <li role="presentation" class="active"><a id="messageedit" href="#"><?php echo I18n::_('Editor'); ?></a></li>
  442. <li role="presentation"><a id="messagepreview" href="#"><?php echo I18n::_('Preview'); ?></a></li>
  443. </ul>
  444. </header>
  445. <section class="container">
  446. <article class="row">
  447. <div id="image" class="col-md-12 text-center hidden"></div>
  448. <div id="prettymessage" class="col-md-12 hidden">
  449. <pre id="prettyprint" class="col-md-12 prettyprint linenums:1"></pre>
  450. </div>
  451. <div id="cleartext" class="col-md-12 hidden"></div>
  452. <p class="col-md-12"><textarea id="message" name="message" cols="80" rows="25" class="form-control hidden"></textarea></p>
  453. </article>
  454. </section>
  455. <section class="container">
  456. <div id="discussion" class="hidden">
  457. <h4><?php echo I18n::_('Discussion'); ?></h4>
  458. <div id="comments"></div>
  459. </div>
  460. </section>
  461. <section class="container">
  462. <div id="noscript" role="alert" class="nonworking alert alert-info noscript-hide"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true">
  463. <span> <?php echo I18n::_('Loading…'); ?></span><br>
  464. <span class="small"><?php echo I18n::_('In case this message never disappears please have a look at <a href="https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away">this FAQ for information to troubleshoot</a>.'); ?></span>
  465. </div>
  466. </section>
  467. <footer class="container">
  468. <div class="row">
  469. <h4 class="col-md-5 col-xs-8"><?php echo I18n::_($NAME); ?> <small>- <?php echo I18n::_('Because ignorance is bliss'); ?></small></h4>
  470. <p class="col-md-1 col-xs-4 text-center"><?php echo $VERSION; ?></p>
  471. <p id="aboutbox" class="col-md-6 col-xs-12">
  472. <?php echo I18n::_('%s 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>.', I18n::_($NAME)), PHP_EOL; ?>
  473. </p>
  474. </div>
  475. </footer>
  476. <div id="cipherdata" class="hidden"><?php echo htmlspecialchars($CIPHERDATA, ENT_NOQUOTES); ?></div>
  477. </body>
  478. </html>