Guest User

Untitled

a guest
Feb 17th, 2026
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  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. global $VIEWERS;
  39. $dbcon = new MyConnection();
  40. $database = $dbcon->database;
  41. $username = $dbcon->username;
  42. $limitResults = $dbcon->query('SELECT easywebdisplay FROM config')->fetch_row()[0];
  43. $limitSearch = false;
  44. $selViewer = getDefaultViewer($username);
  45. $selViewer = $VIEWERS[$selViewer]['show'];
  46. $CookieEntriesPerPageIsSet = isset($_COOKIE['iQWEB_filter_resultLimit']);
  47. $SettingCookiesIsInduced = isset($_GET['settingCookies']) && ($_GET['settingCookies'] == 1);
  48. if (($limitResults != -1) && !$SettingCookiesIsInduced && (strlen($_GET['pageNumber']) == 0) && !$CookieEntriesPerPageIsSet) {
  49. $limitSearch = true;
  50. }
  51.  
  52. $internalUser = $dbcon->getInternalUser();
  53. $hostname = $dbcon->getHostname();
  54. if (isset($internalUser) && $dbcon->isAdministrator($username)) {
  55. $dbcon->query('GRANT SELECT ON mysql.user TO \'' . $internalUser . '\'@\'' . $hostname . '\';');
  56. }
  57.  
  58. function calculation($checkNumber, $checkFunction)
  59. {
  60. settype($checkNumber, 'string');
  61.  
  62. if ($checkFunction == 0) {
  63. $checkRes = 1;
  64.  
  65. for ($i = 0; $i < strlen($checkNumber); $i++) {
  66. $checkRes = $checkRes * $checkNumber[$i];
  67. }
  68.  
  69. $checkRes = $checkRes / $i;
  70. }
  71. else if ($checkFunction == 1) {
  72. $checkRes = 0;
  73.  
  74. for ($i = 0; $i < strlen($checkNumber); $i++) {
  75. $checkRes = $checkRes + $checkNumber[$i];
  76. }
  77. }
  78. else {
  79. return false;
  80. }
  81.  
  82. return $checkRes;
  83. }
  84.  
  85. function getPatientsAge($birthdate)
  86. {
  87. list($year, $month, $day) = explode('-', $birthdate);
  88. $year_diff = date('Y') - $year;
  89. $month_diff = date('m') - $month;
  90. $day_diff = date('d') - $day;
  91. if ((($day_diff < 0) && ($month_diff == 0)) || ($month_diff < 0)) {
  92. $year_diff--;
  93. }
  94.  
  95. return $year_diff;
  96. }
  97.  
  98. function sortItems($array, $order = 'ASC')
  99. {
  100. if (is_array($array) && (0 < count($array))) {
  101. foreach (array_keys($array) as $key) {
  102. $temp[$key] = $array[$key];
  103. }
  104.  
  105. natcasesort($temp);
  106.  
  107. if ($order != 'ASC') {
  108. $temp = array_reverse($temp, true);
  109. ..............................................................
  110. ..................................
  111. .................
Advertisement
Add Comment
Please, Sign In to add comment