Bootswatch, Summernote, and Captcheck mods for Mods for HESK (mods-for-hesk.com). In use at support.netsyms.com.
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.

admin_main.php 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. /**
  3. *
  4. * This file is part of HESK - PHP Help Desk Software.
  5. *
  6. * (c) Copyright Klemen Stirn. All rights reserved.
  7. * https://www.hesk.com
  8. *
  9. * For the full copyright and license agreement information visit
  10. * https://www.hesk.com/eula.php
  11. *
  12. */
  13. define('IN_SCRIPT', 1);
  14. define('HESK_PATH', '../');
  15. /* Make sure the install folder is deleted */
  16. if (is_dir(HESK_PATH . 'install')) {
  17. die('Please delete the <b>install</b> folder from your server for security reasons then refresh this page!');
  18. }
  19. /* Get all the required files and functions */
  20. require(HESK_PATH . 'hesk_settings.inc.php');
  21. require(HESK_PATH . 'inc/common.inc.php');
  22. require(HESK_PATH . 'inc/admin_functions.inc.php');
  23. require(HESK_PATH . 'inc/status_functions.inc.php');
  24. require(HESK_PATH . 'inc/mail_functions.inc.php');
  25. hesk_load_database_functions();
  26. hesk_session_start();
  27. hesk_dbConnect();
  28. hesk_isLoggedIn();
  29. define('CALENDAR', 1);
  30. define('MAIN_PAGE', 1);
  31. define('PAGE_TITLE', 'ADMIN_HOME');
  32. define('MFH_PAGE_LAYOUT', 'TOP_ONLY');
  33. define('AUTO_RELOAD', 1);
  34. /* Print header */
  35. require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
  36. require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
  37. /* Reset default settings? */
  38. if (isset($_GET['reset']) && hesk_token_check()) {
  39. $res = hesk_dbQuery("UPDATE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` SET `default_list`='' WHERE `id` = '" . intval($_SESSION['id']) . "'");
  40. $_SESSION['default_list'] = '';
  41. } /* Get default settings */
  42. else {
  43. parse_str($_SESSION['default_list'], $defaults);
  44. $_GET = isset($_GET) && is_array($_GET) ? array_merge($_GET, $defaults) : $defaults;
  45. }
  46. ?>
  47. <div class="content-wrapper">
  48. <section class="content">
  49. <?php hesk_handle_messages(); ?>
  50. <div class="box">
  51. <div class="box-header with-border">
  52. <h1 class="box-title">
  53. <?php echo $hesklang['tickets']; ?>
  54. </h1>
  55. <div class="box-tools pull-right">
  56. <button type="button" class="btn btn-box-tool" data-widget="collapse">
  57. <i class="fa fa-minus"></i>
  58. </button>
  59. </div>
  60. </div>
  61. <div class="box-body">
  62. <div class="row">
  63. <div class="col-xs-6 text-left">
  64. <div class="checkbox">
  65. <label>
  66. <input type="checkbox" onclick="toggleAutoRefresh(this);" id="reloadCB">
  67. <?php echo $hesklang['arp']; ?>
  68. <span id="timer"></span>
  69. </label>
  70. </div>
  71. <script type="text/javascript">heskCheckReloading();</script>
  72. </div>
  73. <div class="col-xs-6 text-right">
  74. <a href="new_ticket.php" class="btn btn-success">
  75. <span class="glyphicon glyphicon-plus-sign"></span>
  76. <?php echo $hesklang['nti']; ?>
  77. </a>
  78. </div>
  79. </div>
  80. <?php
  81. /* Print tickets? */
  82. if (hesk_checkPermission('can_view_tickets', 0)) {
  83. /* Print the list of tickets */
  84. require(HESK_PATH . 'inc/print_tickets.inc.php');
  85. echo '<br>';
  86. /* Print forms for listing and searching tickets */
  87. require(HESK_PATH . 'inc/show_search_form.inc.php');
  88. } else {
  89. echo '<p><i>' . $hesklang['na_view_tickets'] . '</i></p>';
  90. }
  91. ?>
  92. </div>
  93. </div>
  94. <?php
  95. $hesk_settings['hesk_license']('HMgPSAxOw0KaWYgKGZpbGVfZXhpc3RzKEhFU0tfUEFUSCAuI
  96. CdoZXNrX2xpY2Vuc2UucGhwJykpDQp7DQokaCA9ICghZW1wdHkoJF9TRVJWRVJbJ0hUVFBfSE9TVCddK
  97. SkgPyAkX1NFUlZFUlsnSFRUUF9IT1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eS5waHAiIHRhcmdldD0iX2JsYW5rIj4nLiRoZXNrbGFuZ1snY2xpY2tfaW5mbyddLic8L2E+P
  111. C9wPjxociAvPic7DQp9DQo=', "\112");
  112. /* Clean unneeded session variables */
  113. hesk_cleanSessionVars('hide');
  114. ?>
  115. </section>
  116. </div>
  117. <?php
  118. require_once(HESK_PATH . 'inc/footer.inc.php');
  119. exit();
  120. ?>