page.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="robots" content="noindex" />
  6. <title>{function="i18n::_('PrivateBin')"}</title>
  7. <link type="text/css" rel="stylesheet" href="css/privatebin.css?{$VERSION|rawurlencode}" />{if="$SYNTAXHIGHLIGHTING"}
  8. <link type="text/css" rel="stylesheet" href="css/prettify/prettify.css?{$VERSION|rawurlencode}" />{if="strlen($SYNTAXHIGHLIGHTINGTHEME)"}
  9. <link type="text/css" rel="stylesheet" href="css/prettify/{$SYNTAXHIGHLIGHTINGTHEME}.css?{$VERSION|rawurlencode}" />{/if}{/if}
  10. <script type="text/javascript" src="js/jquery-1.11.3.js"></script>
  11. <script type="text/javascript" src="js/sjcl-1.0.4.js"></script>
  12. <script type="text/javascript" src="js/base64-{$BASE64JSVERSION}.js"></script>
  13. <script type="text/javascript" src="js/rawdeflate-0.5.js"></script>
  14. <script type="text/javascript" src="js/rawinflate-0.3.js"></script>{if="$SYNTAXHIGHLIGHTING"}
  15. <script type="text/javascript" src="js/prettify.js?{$VERSION|rawurlencode}"></script>{/if}{if="$MARKDOWN"}
  16. <script type="text/javascript" src="js/showdown-1.4.1.js"></script>{/if}
  17. <script type="text/javascript" src="js/privatebin.js?{$VERSION|rawurlencode}"></script>
  18. <!--[if lt IE 10]>
  19. <style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
  20. <![endif]-->
  21. <link rel="apple-touch-icon" href="apple-touch-icon.png?{$VERSION|rawurlencode}" sizes="180x180" />
  22. <link rel="icon" type="image/png" href="favicon-32x32.png?{$VERSION|rawurlencode}" sizes="32x32" />
  23. <link rel="icon" type="image/png" href="favicon-16x16.png?{$VERSION|rawurlencode}" sizes="16x16" />
  24. <link rel="manifest" href="manifest.json?{$VERSION|rawurlencode}" />
  25. <link rel="mask-icon" href="safari-pinned-tab.svg?{$VERSION|rawurlencode}" color="#ffcc00" />
  26. <link rel="shortcut icon" href="favicon.ico">
  27. <meta name="msapplication-config" content="browserconfig.xml">
  28. <meta name="theme-color" content="#ffe57e" />
  29. </head>
  30. <body>
  31. <header>
  32. <div id="aboutbox">
  33. {function="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>.')"}<br />{if="strlen($NOTICE)"}
  34. <span class="blink">▶</span> {$NOTICE}{/if}
  35. </div>
  36. <h1 class="title reloadlink">{function="i18n::_('PrivateBin')"}</h1><br />
  37. <h2 class="title">{function="i18n::_('Because ignorance is bliss')"}</h2><br />
  38. <h3 class="title">{$VERSION}</h3>
  39. <noscript><div id="noscript" class="nonworking">{function="i18n::_('Javascript is required for PrivateBin to work.<br />Sorry for the inconvenience.')"}</div></noscript>
  40. <div id="oldienotice" class="nonworking">{function="i18n::_('PrivateBin requires a modern browser to work.')"}</div>
  41. <div id="ienotice">{function="i18n::_('Still using Internet Explorer? Do yourself a favor, switch to a modern browser:')"}
  42. <a href="https://www.mozilla.org/firefox/">Firefox</a>,
  43. <a href="https://www.opera.com/">Opera</a>,
  44. <a href="https://www.google.com/chrome">Chrome</a>,
  45. <a href="https://www.apple.com/safari">Safari</a>,
  46. <a href="https://www.microsoft.com/edge">Edge</a>...
  47. </div>
  48. </header>
  49. <section>
  50. <article>
  51. <div id="status">{$STATUS|htmlspecialchars}</div>
  52. <div id="errormessage" class="hidden">{$ERROR|htmlspecialchars}</div>
  53. <div id="toolbar">
  54. <button id="newbutton" class="reloadlink hidden"><img src="img/icon_new.png" width="11" height="15" alt="" />{function="i18n::_('New')"}</button>
  55. <button id="sendbutton" class="hidden"><img src="img/icon_send.png" width="18" height="15" alt="" />{function="i18n::_('Send')"}</button>{if="$EXPIRECLONE"}
  56. <button id="clonebutton" class="hidden"><img src="img/icon_clone.png" width="15" height="17" alt="" />{function="i18n::_('Clone')"}</button>{/if}
  57. <button id="rawtextbutton" class="hidden"><img src="img/icon_raw.png" width="15" height="15" alt="" />{function="i18n::_('Raw text')"}</button>
  58. <div id="expiration" class="hidden button">{function="i18n::_('Expires')"}:
  59. <select id="pasteExpiration" name="pasteExpiration">
  60. {loop="EXPIRE"}
  61. <option value="{$key}"{if="$key == $EXPIREDEFAULT"} selected="selected"{/if}>{$value}</option>{/loop}
  62. </select>
  63. </div>
  64. <div id="remainingtime" class="hidden"></div>
  65. <div id="burnafterreadingoption" class="button hidden">
  66. <input type="checkbox" id="burnafterreading" name="burnafterreading" {if="$BURNAFTERREADINGSELECTED"} checked="checked"{/if} />
  67. <label for="burnafterreading">{function="i18n::_('Burn after reading')"}</label>
  68. </div>{if="$DISCUSSION"}
  69. <div id="opendisc" class="button hidden">
  70. <input type="checkbox" id="opendiscussion" name="opendiscussion" {if="$OPENDISCUSSION"} checked="checked"{/if} />
  71. <label for="opendiscussion" {if="!$OPENDISCUSSION"} style="color: #BBBBBB;"{/if}>{function="i18n::_('Open discussion')"}</label>
  72. </div>{/if}{if="$PASSWORD"}
  73. <div id="password" class="hidden">
  74. <input type="password" id="passwordinput" placeholder="{function="i18n::_('Password (recommended)')"}" size="32" />
  75. </div>{/if}
  76. <div id="formatter" class="button hidden">{function="i18n::_('Format')"}:
  77. <select id="pasteFormatter" name="pasteFormatter">
  78. {loop="FORMATTER"}
  79. <option value="{$key}"{if="$key == $FORMATTERDEFAULT"} selected="selected"{/if}>{$value}</option>{/loop}
  80. </select>
  81. </div>{if="strlen($LANGUAGESELECTION)"}
  82. <div id="language" class="button">
  83. <select name="lang">
  84. {loop="LANGUAGES"}
  85. <option class="reloadlink" onclick="document.cookie='lang={$key}';" value="{$key}"{if="$key == $LANGUAGESELECTION"} selected="selected"{/if}>{$value[0]} ({$value[1]})</option>{/loop}
  86. </select>
  87. </div>{/if}
  88. </div>
  89. <div id="pasteresult" class="hidden">
  90. <div id="deletelink"></div>
  91. <div id="pastelink">{if="strlen($URLSHORTENER)"}
  92. <button id="shortenbutton" data-shortener="{$URLSHORTENER|htmlspecialchars}"><img src="img/icon_shorten.png" width="13" height="15" />{function="i18n::_('Shorten URL')"}</button>
  93. {/if}</div>
  94. </div>{if="$FILEUPLOAD"}
  95. <div id="attachment" class="hidden"><a>{function="i18n::_('Download attachment')"}</a></div>
  96. <div id="attach" class="hidden">
  97. <span id="clonedfile" class="hidden">{function="i18n::_('Cloned file attached.')"}</span>
  98. <span id="filewrap">{function="i18n::_('Attach a file')"}: <input type="file" id="file" name="file" /></span>
  99. <button id="fileremovebutton">{function="i18n::_('Remove attachment')"}</button>
  100. </div>{/if}
  101. <div id="preview" class="hidden">
  102. <button id="messageedit">{function="i18n::_('Editor')"}</button>
  103. <button id="messagepreview">{function="i18n::_('Preview')"}</button>
  104. </div>
  105. <div id="image" class="hidden"></div>
  106. <div id="prettymessage" class="hidden">
  107. <pre id="prettyprint" class="prettyprint linenums:1"></pre>
  108. </div>
  109. <div id="cleartext" class="hidden"></div>
  110. <textarea id="message" name="message" cols="80" rows="25" class="hidden"></textarea>
  111. </article>
  112. </section>
  113. <section>
  114. <div id="discussion" class="hidden">
  115. <h4 class="title">{function="i18n::_('Discussion')"}</h4>
  116. <div id="comments"></div>
  117. </div>
  118. </section>
  119. <div id="cipherdata" class="hidden">{$CIPHERDATA}</div>
  120. </body>
  121. </html>