/upgrade/index.php

https://github.com/samlev/MICO · PHP · 81 lines · 48 code · 8 blank · 25 comment · 0 complexity · 3be11acdd5ffafe781a100518e27f622 MD5 · raw file

  1. <?php
  2. /*******************************************************************************
  3. *******************************************************************************
  4. ** Author: Samuel Levy <sam@samuellevy.com>
  5. **
  6. ** File: upgrade/index.php
  7. **
  8. ** Description: Simple landing page for running upgrades
  9. **
  10. ** Copyright (c) 2012 Samuel Levy
  11. **
  12. ** Mico is free software: you can redistribute it and/or
  13. ** modify it under the terms of the GNU Lesser General Public License as
  14. ** published by the Free Software Foundation, either version 3 of the License,
  15. ** or (at your option) any later version.
  16. **
  17. ** This program is distributed in the hope that it will be useful, but WITHOUT
  18. ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19. ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
  20. ** for more details.
  21. **
  22. ** You should have received a copy of the GNU Lesser General Public License
  23. *******************************************************************************
  24. ******************************************************************************/
  25. // include the configuration file
  26. @include_once ('../inc/config.php');
  27. // Connects to the database, and brings in the standard library
  28. include_once(FS_ROOT.'/inc/connect.php');
  29. ?>
  30. <!DOCTYPE html>
  31. <html>
  32. <head>
  33. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  34. <meta http-equiv="pragma" content="no-cache" />
  35. <title>Mico</title>
  36. <link rel="SHORTCUT ICON" href="favicon.ico" />
  37. <!-- Link to the CSS files -->
  38. <link type="text/css" rel="stylesheet" href="../js/ext/resources/css/ext-all.css" />
  39. <link type="text/css" rel="stylesheet" href="../js/ext/resources/css/xtheme-gray.css" />
  40. <link type="text/css" rel="stylesheet" href="../skin/static/main.css" />
  41. <link type="text/css" rel="stylesheet" href="../skin/custom/skin.css" />
  42. <!-- Set up some basic variables -->
  43. <script type="text/javascript">
  44. <!--
  45. var FS_ROOT = '<?php echo (defined('FS_ROOT')?addslashes(FS_ROOT):'') ?>';
  46. var WEB_DOMAIN = '<?php echo (defined('WEB_DOMAIN')?addslashes(WEB_DOMAIN):'') ?>';
  47. var WEB_ROOT = '<?php echo (defined('WEB_ROOT')?addslashes(WEB_ROOT):'') ?>';
  48. var APP_ROOT = '<?php echo (defined('APP_ROOT')?addslashes(APP_ROOT):'') ?>';
  49. var LANGUAGE = '<?php echo Settings::get_default('LANGUAGE','EN') ?>';
  50. -->
  51. </script>
  52. <!-- Link to the Javascript library files -->
  53. <script type="text/javascript" src="../js/ext/adapter/ext/ext-base.js"></script>
  54. <script type="text/javascript" src="../js/ext/ext-all.js"></script>
  55. <script type="text/javascript" src="../js/ext/src/locale/ext-lang-<?php echo strtolower(Settings::get_default('LANGUAGE','EN')); ?>.js"></script>
  56. <script type="text/javascript" src="../js/Mico.Application.js"></script>
  57. <script type="text/javascript" src="../js/lang/Mico.Lang.<?php echo Settings::get_default('LANGUAGE','EN'); ?>.js"></script>
  58. <script type="text/javascript" src="../js/Mico.Utils.js"></script>
  59. <script type="text/javascript" src="js/Mico.Upgrader.js"></script>
  60. <script type="text/javascript" defer="defer">
  61. <!--
  62. var OLD_VERSION = '<?php echo addslashes(Settings::get_default('MICO_VERSION','unknown'))?>';
  63. var NEW_VERSION = '<?php echo addslashes(MICO_VERSION)?>';
  64. setTimeout("Mico.Upgrader.show();",200);
  65. -->
  66. </script>
  67. </head>
  68. <body>
  69. <div id="pageHeader">
  70. <img src="../skin/static/mico.png" alt="Mico" id="micoLogo" />
  71. </div>
  72. </body>
  73. </html>