index.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!--
  2. This file is part of centurio.work/commands.
  3. centurio.work/commands is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or (at your
  6. option) any later version.
  7. centurio.work/commands is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. more details.
  11. You should have received a copy of the GNU General Public License along with
  12. centurio.work/commands (file COPYING in the main directory). If not, see
  13. <http://www.gnu.org/licenses/>.
  14. -->
  15. <!DOCTYPE html>
  16. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  19. <title>Design</title>
  20. <!-- libs, do not modify. When local than load local libs. -->
  21. <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
  22. <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
  23. <link rel="icon" href="favicon.ico">
  24. <link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
  25. <style>
  26. .linkwrap { position:relative; display:inline-block; height: 200px; width: 100% }
  27. .blocker { position:absolute; height:100%; width:100%; z-index:1;}
  28. .linkwrap iframe { z-index: 2; }
  29. </style>
  30. </head>
  31. <script>
  32. $(document).ready(function() {
  33. });
  34. </script>
  35. <body >
  36. <?php
  37. $scan = scandir('./');
  38. foreach($scan as $file) {
  39. if (is_dir("./$file") && $file != '.' && $file != '..' && $file != 'styles' && $file != '.git') {
  40. ?>
  41. <a href="https://centurio.evva.com/services/frames_support/<?php echo $file;?>/config.html">
  42. <h1><?php echo ucfirst($file);?>:</h1>
  43. </a>
  44. <a href="https://centurio.evva.com/services/frames_support/<?php echo $file;?>/config.html" class="linkwrap">
  45. <div class="blocker"></div>
  46. <iframe width="100%" height="200" id="previewframe" src="./<?php echo $file;?>/preview.html" title="<?php echo $file;?>" frameborder="0"></iframe>
  47. </a>
  48. <?php
  49. }
  50. }
  51. ?>
  52. </body>
  53. </html>