sharing.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * ownCloud - gallery application
  4. *
  5. * @author Bartek Przybylski
  6. * @copyright 2012 Bartek Przybylski bartek@alefzero.eu
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  10. * License as published by the Free Software Foundation; either
  11. * version 3 of the License, or any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. if (!isset($_GET['token']) || empty($_GET['token'])) {
  23. exit;
  24. }
  25. OCP\App::checkAppEnabled('gallery');
  26. ?>
  27. <!doctype html>
  28. <html>
  29. <head>
  30. <link rel="stylesheet" href="css/sharing.css" type="text/css"/>
  31. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
  32. <script src="js/sharing.js" type="text/javascript"></script>
  33. <script>
  34. var TOKEN = '<?php echo $_GET['token']; ?>';
  35. </script>
  36. </head>
  37. <body>
  38. <div id="breadcrumb"><span class="breadcrumbelement" onclick="javascript:returnTo(0);return false;">Shared gallery</span></div>
  39. <div id="gallery_list"></div>
  40. </body>
  41. </html>