Advertisement
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
- *
- */
- function is_connected()
- {
- $connected = @fsockopen('119.59.125.10', 80);
- if ($connected) {
- $is_conn = true;
- fclose($connected);
- }
- else {
- $is_conn = false;
- }
- return $is_conn;
- }
- function check_version($app, $ver, $rev)
- {
- if (is_connected()) {
- $current_json = file_get_contents('http://www.thaisarabun.com/smart_lt4_version.php');
- $c = (array) json_decode($current_json);
- if (!empty($c['app'])) {
- if (($c['app'] != $app) || ($c['ver'] != $ver) || ($c['rev'] != $rev)) {
- return $c;
- }
- }
- return ['app' => $app, 'ver' => $ver, 'rev' => $rev, 'url' => 'http://www.thaisarabun.com/dla/', 'detail' => ''];
- }
- else {
- return ['app' => $app, 'ver' => $ver, 'rev' => $rev, 'url' => 'http://www.thaisarabun.com/dla/', 'detail' => ''];
- }
- }
- function check_land_decrypt()
- {
- global $mysql;
- $sql = 'CREATE DATABASE IF NOT EXISTS system CHARACTER SET utf8 COLLATE utf8_general_ci;';
- $mysql->query($sql) || exit($mysql->error . ("\n" . $sql));
- $sql = 'SELECT * FROM information_schema.COLUMNS WHERE COLUMN_NAME=\'parcel_old\' AND TABLE_NAME=\'land\' AND TABLE_SCHEMA=\'ltax\' LIMIT 1';
- ($rs = $mysql->query($sql)) || exit($mysql->error . ("\n" . $sql));
- $nums = $rs->num_rows;
- if ($nums < 1) {
- $sql = 'ALTER TABLE `ltax`.`land` ADD COLUMN `parcel_old` VARCHAR (255) NULL';
- $mysql->query($sql);
- }
- $sql = 'SELECT * FROM information_schema.COLUMNS WHERE COLUMN_NAME=\'dno\' AND TABLE_NAME=\'land\' AND TABLE_SCHEMA=\'ltax\' LIMIT 1';
- ($rs = $mysql->query($sql)) || exit($mysql->error . ("\n" . $sql));
- $nums = $rs->num_rows;
- if ($nums < 1) {
- $sql = 'ALTER TABLE `ltax`.`land` ADD COLUMN `dno` VARCHAR (255) NULL';
- $mysql->query($sql);
- }
- }
- function chk_license()
- {
- global $m_name;
- global $m_tambon_id;
- global $smart_ltax;
- global $smart_lt4f;
- global $smart_lt4a;
- $ltax_lic = show2(md5(explode('=', trim(shell_exec('wmic cpu get ProcessorId /value')))[1]));
- if (file_exists('ltmap.lic')) {
- $smart_lic = file_get_contents('ltmap.lic');
- }
- else {
- $smart_lic = '';
- }
- $abt = $m_name . '(' . $m_tambon_id . ')';
- if ($smart_lic == show2(md5('LTMAP@0854885780|AttgornZrinarong' . $ltax_lic . 'LT40Full'))) {
- $smart_ltax = 1;
- $smart_lt4f = 1;
- $smart_lt4a = 0;
- }
- else if ($smart_lic == show2(md5('LTMAP@0854885780|AttgornZrinarong' . $abt . 'LT40ABT'))) {
- $smart_lt4a = 1;
- $smart_lt4f = 0;
- $smart_ltax = 1;
- }
- else {
- $smart_lt4f = 0;
- $smart_lt4a = 0;
- $smart_ltax = 0;
- }
- return $smart_ltax;
- }
- function chk_soffice()
- {
- if (!file_exists('C:\\Program Files\\LibreOffice\\program\\soffice.exe')) {
- return false;
- }
- else {
- return true;
- }
- }
- function get_admin_token()
- {
- global $mysql;
- $sql = 'SELECT * from user_table where role=\'100\' and u_status=\'0\' LIMIT 1';
- $rs = $mysql->query($sql);
- if ($r = $rs->fetch_array()) {
- $_SESSION['username'] = $r['username'];
- $_SESSION['pass_word'] = $r['pass_word'];
- $_SESSION['first_name'] = $r['first_name'];
- $_SESSION['last_name'] = $r['last_name'];
- $_SESSION['token'] = get_token($r['username'], $r['pass_word']);
- $_SESSION['admin_token'] = $_SESSION['token'];
- }
- return $_SESSION['token'];
- }
- function usage_time()
- {
- global $time_prev;
- $time_now = microtime(true);
- $utime = $time_now - $time_prev;
- $time_prev = $time_now;
- return round($utime, 4);
- }
- session_start();
- ini_set('display_errors', false);
- ini_set('display_startup_errors', false);
- ini_set('error_report', 'E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR');
- ini_set('max_execution_time', 7200);
- date_default_timezone_set('Asia/Bangkok');
- $smart_ltax = $smart_lt4f = $smart_lt4a = 0;
- $ltax_url = 'http://' . $_SERVER['SERVER_NAME'] . ':85';
- $GLOBALS['mysql'] = '';
- $app = 'SmartLTax4';
- $ver = '0.2';
- $rev = '1';
- $rev = '2';
- $rev = '3';
- $rev = '4';
- $rev = '5';
- $rev = '6';
- $rev = '7';
- $rev = '8';
- $rev = '9';
- $rev = '10';
- $rev = '11';
- $rev = '12';
- $rev = '13';
- $rev = '14';
- $rev = '15';
- $rev = '16';
- $rev = '17';
- $rev = '18';
- $rev = '19';
- $rev = '20';
- $rev = '21';
- $rev = '22';
- $rev = '23';
- $rev = '24';
- $nv = check_version($app, $ver, $rev);
- .............................................................................
- ................................................
- .....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement