page.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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="http://www.mozilla.org/firefox/">Firefox</a>,
  43. <a href="http://www.opera.com/">Opera</a>,
  44. <a href="http://www.google.com/chrome">Chrome</a>,
  45. <a href="http://www.apple.com/safari">Safari</a>...
  46. </div>
  47. </header>
  48. <section>
  49. <article>
  50. <div id="status">{$STATUS|htmlspecialchars}</div>
  51. <div id="errormessage" class="hidden">{$ERROR|htmlspecialchars}</div>
  52. <div id="toolbar">
  53. <button id="newbutton" class="reloadlink hidden"><img src="img/icon_new.png" width="11" height="15" alt="" />{function="i18n::_('New')"}</button>
  54. <button id="sendbutton" class="hidden"><img src="img/icon_send.png" width="18" height="15" alt="" />{function="i18n::_('Send')"}</button>{if="$EXPIRECLONE"}
  55. <button id="clonebutton" class="hidden"><img src="img/icon_clone.png" width="15" height="17" alt="" />{function="i18n::_('Clone')"}</button>{/if}
  56. <button id="rawtextbutton" class="hidden"><img src="img/icon_raw.png" width="15" height="15" alt="" />{function="i18n::_('Raw text')"}</button>
  57. <div id="expiration" class="hidden button">{function="i18n::_('Expires')"}:
  58. <select id="pasteExpiration" name="pasteExpiration">
  59. {loop="EXPIRE"}
  60. <option value="{$key}"{if="$key == $EXPIREDEFAULT"} selected="selected"{/if}>{$value}</option>{/loop}
  61. </select>
  62. </div>
  63. <div id="remainingtime" class="hidden"></div>
  64. <div id="burnafterreadingoption" class="button hidden">
  65. <input type="checkbox" id="burnafterreading" name="burnafterreading" {if="$BURNAFTERREADINGSELECTED"} checked="checked"{/if} />
  66. <label for="burnafterreading">{function="i18n::_('Burn after reading')"}</label>
  67. </div>{if="$DISCUSSION"}
  68. <div id="opendisc" class="button hidden">
  69. <input type="checkbox" id="opendiscussion" name="opendiscussion" {if="$OPENDISCUSSION"} checked="checked"{/if} />
  70. <label for="opendiscussion" {if="!$OPENDISCUSSION"} style="color: #BBBBBB;"{/if}>{function="i18n::_('Open discussion')"}</label>
  71. </div>{/if}{if="$PASSWORD"}
  72. <div id="password" class="hidden">
  73. <input type="password" id="passwordinput" placeholder="{function="i18n::_('Password (recommended)')"}" size="32" />
  74. </div>{/if}
  75. <div id="formatter" class="button hidden">{function="i18n::_('Format')"}:
  76. <select id="pasteFormatter" name="pasteFormatter">
  77. {loop="FORMATTER"}
  78. <option value="{$key}"{if="$key == $FORMATTERDEFAULT"} selected="selected"{/if}>{$value}</option>{/loop}
  79. </select>
  80. </div>{if="strlen($LANGUAGESELECTION)"}
  81. <div id="language" class="button">
  82. <select name="lang">
  83. {loop="LANGUAGES"}
  84. <option class="reloadlink" onclick="document.cookie='lang={$key}';" value="{$key}"{if="$key == $LANGUAGESELECTION"} selected="selected"{/if}>{$value[0]} ({$value[1]})</option>{/loop}
  85. </select>
  86. </div>{/if}
  87. </div>
  88. <div id="pasteresult" class="hidden">
  89. <div id="deletelink"></div>
  90. <div id="pastelink">{if="strlen($URLSHORTENER)"}
  91. <button id="shortenbutton" data-shortener="{$URLSHORTENER|htmlspecialchars}"><img src="img/icon_shorten.png" width="13" height="15" />{function="i18n::_('Shorten URL')"}</button>
  92. {/if}</div>
  93. </div>{if="$FILEUPLOAD"}
  94. <div id="attachment" class="hidden"><a>{function="i18n::_('Download attachment')"}</a></div>
  95. <div id="attach" class="hidden">
  96. <span id="clonedfile" class="hidden">{function="i18n::_('Cloned file attached.')"}</span>
  97. <span id="filewrap">{function="i18n::_('Attach a file')"}: <input type="file" id="file" name="file" /></span>
  98. <button id="fileremovebutton">{function="i18n::_('Remove attachment')"}</button>
  99. </div>{/if}
  100. <div id="preview" class="hidden">
  101. <button id="messageedit">{function="i18n::_('Editor')"}</button>
  102. <button id="messagepreview">{function="i18n::_('Preview')"}</button>
  103. </div>
  104. <div id="image" class="hidden"></div>
  105. <div id="prettymessage" class="hidden">
  106. <pre id="prettyprint" class="prettyprint linenums:1"></pre>
  107. </div>
  108. <div id="cleartext" class="hidden"></div>
  109. <textarea id="message" name="message" cols="80" rows="25" class="hidden"></textarea>
  110. </article>
  111. </section>
  112. <section>
  113. <div id="discussion" class="hidden">
  114. <h4 class="title">{function="i18n::_('Discussion')"}</h4>
  115. <div id="comments"></div>
  116. </div>
  117. </section>
  118. <div id="cipherdata" class="hidden">{$CIPHERDATA}</div>
  119. </body>
  120. </html>