index.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. error_reporting(0);
  3. header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
  4. header('Cache-Control: no-store, no-cache, must-revalidate');
  5. header('Cache-Control: post-check=0, pre-check=0', FALSE);
  6. header('Pragma: no-cache');
  7. include "include/init.php";
  8. date_default_timezone_set($settings['timezone']);
  9. include "include/sqlcon.php";
  10. include "include/functions.php";
  11. ?>
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15. <meta charset="UTF-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17. <title>Notebubble</title>
  18. <link rel="stylesheet" href="css/style.css">
  19. <link rel="stylesheet" media='screen and (min-width: 801px)' href='css/sidebar.css' />
  20. <link rel="stylesheet" media='screen and (max-width: 800px)' href='css/sidebar_min.css' />
  21. </head>
  22. <body>
  23. <div class="sidebar">
  24. <?php include "./system/sidebar.php"; ?>
  25. </div>
  26. <div class="chat">
  27. <?php
  28. if (isset($_GET['loadpage'])) {
  29. include "./pages/" . $_GET['loadpage'] . ".php";
  30. } else {
  31. include "./pages/main.php";
  32. }
  33. ?>
  34. </div>
  35. <script src="./js/jquery.min.js"></script>
  36. <script src="./js/scripts.js"></script>
  37. <iframe id='loader'></iframe>
  38. </body>
  39. </html>