Guest User

Untitled

a guest
Feb 26th, 2026
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP8 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 8.1.0.9
  8. * @ Author : DeZender
  9. * @ Release on : 27.10.2023
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!session_id()) {
  15. session_start();
  16. }
  17.  
  18. require_once 'csrf.php';
  19. csrf::init();
  20. require_once 'locale.php';
  21. include_once 'security.php';
  22. include_once 'display.php';
  23. require_once 'utils.php';
  24. include_once 'sharedUserAdmin.php';
  25. include_once 'constants.php';
  26. global $isMobile;
  27.  
  28. if ($isMobile) {
  29. include_once 'web2goerrorhandler.php';
  30. error_reporting(E_ERROR);
  31. set_error_handler('WEB2GOSiteErrorHandler');
  32. include_once 'iPhoneLicenseUtils.php';
  33. error_reporting(E_ALL & ~E_NOTICE);
  34. restore_error_handler();
  35. header('Location: iPhone.php');
  36. }
  37. else {
  38. function calculation($checkNumber, $checkFunction)
  39. {
  40. settype($checkNumber, 'string');
  41.  
  42. if ($checkFunction == 0) {
  43. $checkRes = 1;
  44.  
  45. for ($i = 0; $i < strlen($checkNumber); ++$i) {
  46. $checkRes = $checkRes * $checkNumber[$i];
  47. }
  48.  
  49. $checkRes = $checkRes / $i;
  50. }
  51. else if ($checkFunction == 1) {
  52. $checkRes = 0;
  53.  
  54. for ($i = 0; $i < strlen($checkNumber); ++$i) {
  55. $checkRes = $checkRes + $checkNumber[$i];
  56. }
  57. }
  58. else {
  59. return false;
  60. }
  61.  
  62. return $checkRes;
  63. }
  64.  
  65. function getPatientsAge($birthdate)
  66. {
  67. list($year, $month, $day) = explode('-', $birthdate);
  68. $year_diff = date('Y') - $year;
  69. $month_diff = date('m') - $month;
  70. $day_diff = date('d') - $day;
  71. if ((($day_diff < 0) && $month_diff == 0) || $month_diff < 0) {
  72. --$year_diff;
  73. }
  74.  
  75. return $year_diff;
  76. }
  77.  
  78. function sortItems($array, $order = 'ASC')
  79. {
  80. if (is_array($array) && 0 < count($array)) {
  81. foreach (array_keys($array) as $key) {
  82. $temp[$key] = $array[$key];
  83. }
  84.  
  85. natcasesort($temp);
  86.  
  87. if ($order != 'ASC') {
  88. $temp = array_reverse($temp, true);
  89. ..................................................
  90. ............................
  91. .............
Advertisement
Add Comment
Please, Sign In to add comment