index.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. /*$keyring = "res/file/.gnupg";
  3. putenv("GNUPGHOME=$keyring");
  4. $gpg = new gnupg();
  5. $gpg->seterrormode(gnupg::ERROR_EXCEPTION);
  6. try {
  7. $pubkey=file_get_contents('res/file/key.pub');
  8. $pubkey_info = $gpg->import($pubkey);
  9. var_dump($pubkey_info);
  10. } catch (Exception $e) {
  11. echo 'ERROR: ' . $e->getMessage();
  12. }*/
  13. $resource_path="res/";
  14. $js_path=$resource_path."js/";
  15. $css_path=$resource_path."css/";
  16. $img=$resource_path."images/";
  17. ?>
  18. <!DOCTYPE html>
  19. <!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
  20. <!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]-->
  21. <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
  22. <!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
  23. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
  24. <head>
  25. <meta charset="utf-8" />
  26. <meta name="viewport"
  27. content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=2">
  28. <title>Share Your "GPG" Fingerprint</title>
  29. <meta name="description" content="" />
  30. <link rel="stylesheet" href="<?php echo $css_path?>jquery.idealforms.css" media="screen" />
  31. <link rel="stylesheet" href="<?php echo $css_path?>normalize.css">
  32. <link rel="stylesheet" href="<?php echo $css_path?>form.css">
  33. <link rel="stylesheet" href="<?php echo $css_path?>tabs.css">
  34. </head>
  35. <body>
  36. <div id="tabs" class="tabs">
  37. <nav>
  38. <ul>
  39. <li><a href="#section-it"><span>IT</span></a></li>
  40. <li><a href="#section-en"><span>EN</span></a></li>
  41. </ul>
  42. </nav>
  43. <div class="content">
  44. <section id="section-it">
  45. <h1>ShareYourFingerprint</h1>
  46. <p>Hai sempre guardato con malcelata invidia chi si presenta ai <a href="http://www.wikiwand.com/en/Key_signing_party" target="_blank">keysigning party</a> con tanti fogliettini da distribuire agli astanti con scritto fingerprint e ID? Non hai assolutamente idea di cosa stiamo parlando, ma vuoi imparare a usare GnuPG per crittare le tue mail e contribuire a costruire una rete di fiducia con i tuoi amici/compagni?<br />
  47. Questo piccolo tool, debitamente compilato, ti permette di ottenere un .pdf pronto per la stampa con tanti piccoli “biglietti da visita” da distribuire ai tuoi contatti.<br />
  48. Vuoi saperne di più su come organizzare un keysigning party? leggi <a href="http://herrons.com/keysigning-party-guide/" target="_blank">qui</a><br />
  49. Vuoi imparare qualcosa sulle buone pratiche di openPGP? leggi <a href="https://we.riseup.net/riseuplabs+paow/openpgp-best-practices" target="_blank">qui</a></p>
  50. </section>
  51. <section id="section-en">
  52. <h1>ShareYourFingerprint</h1>
  53. <p>Do you ever watched with barely concealed envy the ones who present themselves at <a href="http://www.wikiwand.com/en/Key_signing_party" target="_blank">keysigning parties</a> with many slips of paper to distribute to bystanders which report their fingerprint and ID? Do you have absolutely no idea of what we're talking about, but you want to learn GnuPG to crypt your emails and contribute in the construction of a web of trust between your friends/comrades?<br />
  54. This tiny little form, properly filled, gives you a print-ready .pdf with many little "visiting cards" that you can distribute to your contacts.<br />
  55. Do you want to know more about organizing a keysigning party? Read <a href="http://herrons.com/keysigning-party-guide/" target="_blank">here</a><br />
  56. Do you want to learn something on openPGP good practices? Read <a href="https://we.riseup.net/riseuplabs+paow/openpgp-best-practices" target="_blank">here</a></p>
  57. </section>
  58. </div>
  59. </div>
  60. <div class="content">
  61. <div class="idealsteps-container">
  62. <nav class="idealsteps-nav"></nav>
  63. <form action="print.php" method="post" novalidate autocomplete="off" class="idealforms">
  64. <div class="idealsteps-wrap">
  65. <section class="idealsteps-step">
  66. <div class="field">
  67. <label class="main">Nickname:</label>
  68. <input name="nickname" type="text" data-idealforms-ajax="ajax.php">
  69. <span class="error"></span>
  70. </div>
  71. <div class="field">
  72. <label class="main">User ID(s):</label>
  73. <input name="user_ids" type="email">
  74. <span class="error"></span>
  75. </div>
  76. <div class="field">
  77. <label class="main">Fingerprint:</label>
  78. <input name="fingerprint" type="text">
  79. <span class="error"></span>
  80. </div>
  81. <div class="field">
  82. <label class="main">Key Size:</label>
  83. <input name="key_size" type="text">
  84. <span class="error"></span>
  85. </div>
  86. <div class="field">
  87. <label class="main">Key server:</label>
  88. <input name="key_server" type="text">
  89. <span class="error"></span>
  90. </div>
  91. <div class="field">
  92. <label class="main">Expire Date:</label>
  93. <input name="expire_date" type="text" placeholder="yyyy-mm-dd" class="datepicker">
  94. <span class="error"></span>
  95. </div>
  96. <!-- <div class="field">
  97. <label class="main">Public Key:</label>
  98. <input id="public_key" name="public_key" type="file">
  99. <span class="error"></span>
  100. </div>-->
  101. </section>
  102. <div class="field buttons">
  103. <label class="main">&nbsp;</label>
  104. <button type="submit" class="submit">Submit</button>
  105. </div>
  106. </div>
  107. <span id="invalid"></span>
  108. </form>
  109. </div>
  110. </div>
  111. <script src="<?php echo $js_path?>lib/jquery.min.js"></script>
  112. <script src="<?php echo $js_path?>lib/jquery-ui.min.js"></script>
  113. <script src="<?php echo $js_path?>lib/jquery.idealforms.js"></script>
  114. <script src="<?php echo $js_path?>jq-idealforms-extend-validate.js"></script>
  115. <script src="<?php echo $js_path?>form.js"></script>
  116. <script src="<?php echo $js_path?>cbpFWTabs.js"></script>
  117. <script>
  118. new CBPFWTabs( document.getElementById( 'tabs' ) );
  119. </script>
  120. </body>
  121. </html>