Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!(defined( 'WHMCS' ))) {
  15. exit( 'This file cannot be accessed directly' );
  16. }
  17.  
  18. if (!(function_exists( 'saveCustomFields' ))) {
  19. require ROOTDIR . '/includes/customfieldfunctions.php';
  20. }
  21.  
  22. if (!(function_exists( 'openNewTicket' ))) {
  23. require ROOTDIR . '/includes/ticketfunctions.php';
  24. }
  25.  
  26. $useMarkdown = (bool) (int) App::get_req_var( 'markdown' );
  27. $from = '';
  28.  
  29. if ($clientid) {
  30. $result = select_query( 'tblclients', 'id', array( 'id' => $clientid ) );
  31. $data = mysql_fetch_array( $result );
  32.  
  33. if (!($data['id'])) {
  34. $apiresults = array(
  35. 'result' => 'error',
  36. 'message' => 'Client ID Not Found'
  37. );
  38. return;
  39. }
  40. if ($contactid) {
  41. $result = select_query( 'tblcontacts', 'id', array(
  42. 'id' => $contactid,
  43. 'userid' => $clientid
  44. ) );
  45. $data = mysql_fetch_array( $result );
  46.  
  47. if (!($data['id'])) {
  48. $apiresults = array(
  49. 'result' => 'error',
  50. .....................................................................
  51. ..........................................
  52. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement