Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 8.1.0.9
- * @ Author : DeZender
- * @ Release on : 27.10.2023
- * @ Official site : http://DeZender.Net
- *
- */
- if (!session_id()) {
- session_start();
- }
- require_once 'csrf.php';
- csrf::init();
- require_once 'locale.php';
- include_once 'security.php';
- include_once 'display.php';
- require_once 'utils.php';
- include_once 'sharedUserAdmin.php';
- include_once 'constants.php';
- global $isMobile;
- if ($isMobile) {
- include_once 'web2goerrorhandler.php';
- error_reporting(E_ERROR);
- set_error_handler('WEB2GOSiteErrorHandler');
- include_once 'iPhoneLicenseUtils.php';
- error_reporting(E_ALL & ~E_NOTICE);
- restore_error_handler();
- header('Location: iPhone.php');
- }
- else {
- function calculation($checkNumber, $checkFunction)
- {
- settype($checkNumber, 'string');
- if ($checkFunction == 0) {
- $checkRes = 1;
- for ($i = 0; $i < strlen($checkNumber); ++$i) {
- $checkRes = $checkRes * $checkNumber[$i];
- }
- $checkRes = $checkRes / $i;
- }
- else if ($checkFunction == 1) {
- $checkRes = 0;
- for ($i = 0; $i < strlen($checkNumber); ++$i) {
- $checkRes = $checkRes + $checkNumber[$i];
- }
- }
- else {
- return false;
- }
- return $checkRes;
- }
- function getPatientsAge($birthdate)
- {
- list($year, $month, $day) = explode('-', $birthdate);
- $year_diff = date('Y') - $year;
- $month_diff = date('m') - $month;
- $day_diff = date('d') - $day;
- if ((($day_diff < 0) && $month_diff == 0) || $month_diff < 0) {
- --$year_diff;
- }
- return $year_diff;
- }
- function sortItems($array, $order = 'ASC')
- {
- if (is_array($array) && 0 < count($array)) {
- foreach (array_keys($array) as $key) {
- $temp[$key] = $array[$key];
- }
- natcasesort($temp);
- if ($order != 'ASC') {
- $temp = array_reverse($temp, true);
- ..................................................
- ............................
- .............
Advertisement
Add Comment
Please, Sign In to add comment