You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
6.9 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <?php
  2. //~ Include RSS Fusion
  3. require_once 'vendor/RSS-Fusion/index.php';
  4. //~ Generate token
  5. session_start();
  6. if(empty($_SESSION['csrf_token'])) {
  7. $_SESSION['csrf_token'] = uniqid(rand(), true);
  8. }
  9. ?>
  10. <!DOCTYPE html>
  11. <html lang="<?php echo \Config::get('language');?>" dir="ltr">
  12. <head>
  13. <title>RSS-Fusion - Démo</title>
  14. <!--[if IE]><meta http-equiv="X-UA-Compatible" content="chrome=1"><![endif]-->
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <meta name="format-detection" content="telephone=no"/>
  17. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
  18. <meta name="csrf-token" content="<?= $_SESSION['csrf_token'] ?>">
  19. <link rel="dns-prefetch" href="http://fonts.googleapis.com/">
  20. <link rel="dns-prefetch" href="http://ajax.googleapis.com/">
  21. <link rel="dns-prefetch" href="http://html5shim.googlecode.com/">
  22. <link rel="shortcut icon" href="img/favicon.ico">
  23. <link rel="apple-touch-icon" href="img/apple-touch-icon-57x57-precomposed.png">
  24. <link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72-ipad.png">
  25. <link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114-retina.png">
  26. <link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon-144x144-retina.png">
  27. <link rel="stylesheet" type="text/css" href="vendor/goofi-bronco/goofi.php?family=Source+Sans+Pro:200,400,700,400italic">
  28. <link rel="stylesheet" type="text/css" href="styles/reset.css">
  29. <link rel="stylesheet" type="text/css" href="styles/styles.css">
  30. <link rel="stylesheet" type="text/css" href="styles/font-awesome.css">
  31. <!--[if IE]><link href="http://www.3818.com.ar/styles/fix-old-ie.css" media="all" type="text/css" rel="stylesheet">
  32. <![endif]-->
  33. <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  34. </head>
  35. <body>
  36. <!--[if IE]>
  37. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
  38. <style>.chromeFrameInstallDefaultStyle { width: 100%; border: 5px solid #ffa700; }</style><div id="prompt"></div>
  39. <script>window.attachEvent("onload", function() {CFInstall.check({mode: "overlay", node: "prompt"});});</script>
  40. <![endif]-->
  41. <header>
  42. <div class="wrapper">
  43. <div class="content">
  44. <hgroup>
  45. <h1>RSS-Fusion</h1>
  46. <h2 data-lng>Fusion et filtre de flux RSS</h2>
  47. </hgroup>
  48. <div class="clear"></div>
  49. </div>
  50. </div>
  51. </header>
  52. <div class="sectionorange">
  53. <section id="xmlœ">
  54. <div class="separator">
  55. <div class="line"></div>
  56. <h2 data-lng>Créer un flux personnalisé</h2>
  57. <div class="line"></div>
  58. </div>
  59. <div class="clear"></div>
  60. <div class="xml-form shadow" id="form">
  61. <form id="xml_form" method="POST" action="" accept-charset="UTF-8">
  62. <div style="background-color:#ddd;">
  63. <fieldset class="full-form">
  64. <div class="container-feeds">
  65. <div class="bloc mcw-bloc">
  66. <span data-lng>Pour le flux :</span>
  67. <input class="mcw mcw-text" type="text" name="flux[]" placeholder="URL">
  68. <br><br>
  69. <span data-lng class="small">je désire :</span>
  70. <select class="mcw mcw-select" name="filter[]">
  71. <option value="show" data-lng>afficher</option>
  72. <option value="hide" data-lng>masquer</option>
  73. </select>
  74. <span data-lng class="small">en effectuant ma recherche sur</span>
  75. <select class="mcw mcw-select" name="where[]">
  76. <option value="title" data-lng>le titre</option>
  77. <option value="description" data-lng>la description</option>
  78. <option value="link" data-lng>le lien</option>
  79. <option value="title|description" data-lng>le titre et la description</option>
  80. <option value="title|link" data-lng>le titre et le lien</option>
  81. <option value="link|description" data-lng>le lien et la description</option>
  82. <option value="all" data-lng>tous les éléments</option>
  83. </select>
  84. <br><br>
  85. <span data-lng>les items contenant le(s) mot(s) clés (séparer chaque mot clé par une virgule) :</span>
  86. <br><input class="mcw mcw-text" type="text" name="words[]" value="">
  87. <span class="mcw mcw-buttons buttons">
  88. <a class="mcw mcw-a add_field" href="#">Add</a>
  89. </span>
  90. <div class="clear"></div>
  91. <div class="bottom-shadow"></div>
  92. <div class="no-shadow hidden"></div>
  93. <div class="clear"></div>
  94. </div>
  95. </div>
  96. </fieldset>
  97. </div>
  98. <h3 data-lng>Options du flux généré</h3>
  99. <fieldset>
  100. <label for="titre" data-lng>Titre du flux général</label>
  101. <input data-lng="value" type="text" name="titre" value="Flux personnalisé RSS Fusion" id="titre">
  102. </fieldset>
  103. <fieldset>
  104. <label for="desc" data-lng>Description du flux général</label>
  105. <input data-lng="value" type="text" name="desc" value="Flux généré avec RSS Fusion" id="desc">
  106. </fieldset>
  107. <fieldset class="full-form">
  108. <label for="link" data-lng>Base URL du flux général</label>
  109. <input type="text" name="link" value="<?php echo ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] === 1)) || $_SERVER['SSL'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);?>" id="link">
  110. </fieldset>
  111. <div class="clear"></div>
  112. <fieldset class="fsubmit full-form">
  113. <div id="ajax-message"></div>
  114. <div class="clear"></div>
  115. <input data-lng="value" id="submit" type="button" class="btn btn-success btn-submit" value="Générer !">
  116. <div class="clear"></div>
  117. <div id="rss-lk"></div>
  118. </fieldset>
  119. </form>
  120. </div>
  121. </section>
  122. </div>
  123. <div class="sectionblue">
  124. <footer id="footer">
  125. <div class="wrapper">
  126. <span data-lng>Outil réalisé à partir de</span> <a href="https://framagit.org/Erase/RSS-Fusion" target="_blank" title="RSS-Fusion sur Framagit">RSS-Fusion</a>
  127. &nbsp; &nbsp;| &nbsp; &nbsp; 
  128. <span data-lng>Réalisé par</span> <a href="http://www.green-effect.Fr" target="_blank" title="Green Effect" data-lng>un développeur paysagiste</a> <span data-lng>sous licence BY-NC-SA 4.0</span>
  129. &nbsp; &nbsp;| &nbsp; &nbsp; 
  130. <span data-lng>Sources disponibles sur</span> <a href="https://framagit.org/Erase/RSS-Fusion-Demo" target="_blank" title="RSS-Fusion-Démo sur Framagit">Framagit</a>
  131. &nbsp; &nbsp;| &nbsp; &nbsp; 
  132. <span class="small">version 0.7.0b</span>
  133. </div>
  134. </footer>
  135. </div>
  136. <script src="js/jquery.min.js" type="text/javascript"></script>
  137. <script src="js/modernizr.custom.js" type="text/javascript"></script>
  138. <script src="js/jquery.scrollTo-1.4.3.1.js" type="text/javascript"></script>
  139. <?php if(\Config::get('displayErrors')) : ?>
  140. <script>
  141. var debugShow = true;
  142. </script>
  143. <?php endif;?>
  144. <script src="js/custom.js" type="text/javascript"></script>
  145. <script src="js/multicolumns.js" type="text/javascript"></script>
  146. </body>
  147. </html>