Bootswatch, Summernote, and Captcheck mods for Mods for HESK (mods-for-hesk.com). In use at support.netsyms.com.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

anonymize_ticket.php 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. /* Get all the required files and functions */
  16. require(HESK_PATH . 'hesk_settings.inc.php');
  17. require(HESK_PATH . 'inc/common.inc.php');
  18. require(HESK_PATH . 'inc/admin_functions.inc.php');
  19. require(HESK_PATH . 'inc/privacy_functions.inc.php');
  20. hesk_load_database_functions();
  21. hesk_session_start();
  22. hesk_dbConnect();
  23. hesk_isLoggedIn();
  24. // Check permissions for this feature
  25. hesk_checkPermission('can_privacy');
  26. // A security check
  27. hesk_token_check();
  28. // Tracking ID
  29. $trackingID = hesk_cleanID() or die($hesklang['int_error'].': '.$hesklang['no_trackID']);
  30. // Anonymize the ticket and redirect back
  31. if (hesk_anonymizeTicket(0, $trackingID))
  32. {
  33. hesk_process_messages($hesklang['success_anon'],'admin_ticket.php?track='.$trackingID.'&Refresh='.mt_rand(10000,99999),'SUCCESS');
  34. }
  35. hesk_error($hesklang['no_permission']);