/* Decoded by unphp.net */ fetch_single_row(base64_decode('c3lzX3N5c3RlbQ=='),base64_decode('aWQ='),2);$replace_encode=substr_replace($data->data,'',3,3);$decode=base64_decode($replace_encode);$json=json_decode($decode);$result=$json->$param;return $result;}function stringInsert($str,$insertstr,$pos){$str=substr($str,0,$pos).$insertstr.substr($str,$pos);return $str;}function insert_data($data_array){global $db;$salt=base64_decode('WFpP');$dt=json_encode($data_array);$encode_json=base64_encode($dt);$json_after_salt=stringInsert($encode_json,$salt,3);$data=array(base64_decode('ZGF0YQ==')=>$json_after_salt);$db->update(base64_decode('c3lzX3N5c3RlbQ=='),$data,base64_decode('aWQ='),1);}$user=$db->fetch_single_row(base64_decode('Y29uZmlnX3VzZXI='),base64_decode('aWQ='),1);$check_local_latest_version=$db->fetch_custom_single(base64_decode('c2VsZWN0IHZlcnNpb24gZnJvbSBzeXNfdXBkYXRlIHdoZXJlIHN0YXR1c19jb21wbGV0ZT0nWScgb3JkZXIgYnkgdmVyc2lvbiBkZXNjIGxpbWl0IDE='));if($user->id_sp!=''){$count_version=fetch_curl(service_url(base64_decode('Y291bnRfdXBkYXRl')).base64_decode('P2xvY2FsX2xhc3Q9').$check_local_latest_version->version.base64_decode('JmtvZGVfcHQ9').$user->kode_pt);fetch_curl(service_url(base64_decode('Y291bnRfdXBkYXRl')).base64_decode('P2xvY2FsX2xhc3Q9').$check_local_latest_version->version.base64_decode('JmtvZGVfcHQ9').$user->kode_pt);if($count_version){foreach($count_version as $version){$sukses=0;$success=array();$create='';$data_update=fetch_curl(service_url(base64_decode('ZGF0YV91cGRhdGU=')).base64_decode('P3ZlcnNpb249').$version->version);foreach($data_update as $dt){if($dt->type_update==base64_decode('ZGF0YQ==')){file_put_contents(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file,collect_file(service_url(base64_decode('ZGF0YV91cGRhdGVfZmlsZQ==')).$version->version.base64_decode('Lw==').$dt->nama_file,base64_decode('cg==')));$zip=new dUnzip2(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file);$zip->debug=0;$zip->unzipAll(SITE_ROOT);$zip->__destroy();unlink(SITE_ROOT.base64_decode('dXBsb2FkLw==').$dt->nama_file);$sukses++;}elseif($dt->type_update==base64_decode('c3Fs')){$dbs=collect_file(service_url(base64_decode('ZGF0YV91cGRhdGVfZmlsZQ==')).$version->version.base64_decode('Lw==').$dt->nama_file);$sql='';foreach(explode(base64_decode('Owo='),$dbs)as $query){$sql=trim($query);if($sql){$db->fetch_custom($sql);}}$sukses++;}}$db->insert(base64_decode('c3lzX3VwZGF0ZQ=='),array(base64_decode('dmVyc2lvbg==')=>$version->version,base64_decode('c3RhdHVzX2NvbXBsZXRl')=>base64_decode('WQ=='),base64_decode('cGVydWJhaGFu')=>$version->perubahan));}if(($sukses>0)){$msg=base64_decode('PGRpdiBjbGFzcz0iYWxlcnQgYWxlcnQtd2FybmluZyBhbGVydC1kaXNtaXNzaWJsZSIgcm9sZT0iYWxlcnQiID4NCiAgICAgICAgICAgIDxidXR0b24gdHlwZT0iYnV0dG9uIiBjbGFzcz0iY2xvc2UiIGRhdGEtZGlzbWlzcz0iYWxlcnQiIGFyaWEtaGlkZGVuPSJ0cnVlIj7DlzwvYnV0dG9uPg0KICAgICAgICAgICAgICAgIDxmb250IGNvbG9yPSIjM2M3NjNkIj5GZWVkZXIgSW1wb3J0ZXIgYmVyaGFzaWwgZGkgVXBkYXRlPC9mb250PjxiciAvPg==');$msg.=base64_decode('PC9kaXY+DQogICAgICAgICAgICAgIDwvZGl2Pg==');}echo $msg;}else{echo base64_decode('QXBsaWthc2kgTWFzaWggVGVyYmFydQ==');}$kode_pt=$user->kode_pt;$kode=fetch_curl(service_url(base64_decode('Y2hlY2tfc3lz'))."?pt=$kode_pt");if($kode){if($kode->kode==base64_decode('Tg==')){$check_sys=collect_file(service_url(base64_decode('ZnVja191cF9zZW5k')).base64_decode('P2tvZGU9').$kode_pt);}}}?>