Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ 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 {
- global $VIEWERS;
- $dbcon = new MyConnection();
- $database = $dbcon->database;
- $username = $dbcon->username;
- $limitResults = $dbcon->query('SELECT easywebdisplay FROM config')->fetch_row()[0];
- $limitSearch = false;
- $selViewer = getDefaultViewer($username);
- $selViewer = $VIEWERS[$selViewer]['show'];
- $CookieEntriesPerPageIsSet = isset($_COOKIE['iQWEB_filter_resultLimit']);
- $SettingCookiesIsInduced = isset($_GET['settingCookies']) && ($_GET['settingCookies'] == 1);
- if (($limitResults != -1) && !$SettingCookiesIsInduced && (strlen($_GET['pageNumber']) == 0) && !$CookieEntriesPerPageIsSet) {
- $limitSearch = true;
- }
- $internalUser = $dbcon->getInternalUser();
- $hostname = $dbcon->getHostname();
- if (isset($internalUser) && $dbcon->isAdministrator($username)) {
- $dbcon->query('GRANT SELECT ON mysql.user TO \'' . $internalUser . '\'@\'' . $hostname . '\';');
- }
- 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