Gävle 026-12 12 20

Stockholm 08-32 62 70

info@tricom.se

Mina favoriter

Mitt konto

kr
Produkter
GamingOm ossKontakt
G21
Cgo8P3BocAoKJHByb2R1Y3QgPSBnZXRfY3VycmVudF9wcm9kdWN0KCk7CgppZihpc19hKCRwcm9kdWN0LCAiV0NfUHJvZHVjdCIpKQp7CiAgaWYoJHByb2R1Y3QtPmlzX29uX3NhbGUoKSkKICB7Cj8+PGRpdiBjbGFzcz0icm95YWwtcHJvZHVjdC1kaXNjb3VudCI+PD9waHAKICAKICAkc2FsZV9wcmljZSA9ICRwcm9kdWN0LT5nZXRfc2FsZV9wcmljZSgpOwogICRyZWd1bGFyX3ByaWNlID0gJHByb2R1Y3QtPmdldF9yZWd1bGFyX3ByaWNlKCk7CiAgJHByaWNlX2RpZmYgPSAkcmVndWxhcl9wcmljZSAtICRzYWxlX3ByaWNlOwoJICAKICBpZiAoJHByaWNlX2RpZmYgPiAxOTkpIHsKICBwcmludCAic3BhcmEgIiAuIHJvdW5kKCRwcmljZV9kaWZmKSAuICIga3IiOwp9IGVsc2UgewogICRwZXJjZW50YWdlID0gKCgkcmVndWxhcl9wcmljZSAtICRzYWxlX3ByaWNlKSAqIDEwMCkgLyAkcmVndWxhcl9wcmljZTsKICBwcmludCByb3VuZCgkcGVyY2VudGFnZSkgLiAiJSI7Cn0gCgkgIAoJICAKICAKICAKPz48L2Rpdj48P3BocAogIH0KLyp9ZWxzZXsKPz48ZGl2IGNsYXNzPSJyb3lhbC1wcm9kdWN0LWRpc2NvdW50Ij48P3BocAogIHByaW50ICIwJSI7Cj8+PC9kaXY+PD9waHAqLwp9Cgo/Pg==
PD9waHAKCiRwcm9kdWN0ID0gZ2V0X2N1cnJlbnRfcHJvZHVjdCgpOwoKaWYoaXNfYSgkcHJvZHVjdCwgIldDX1Byb2R1Y3QiKSkKewogIGlmKCRwcm9kdWN0LT5pc19vbl9zYWxlKCkpCiAgewoJICAKCSAgJGV4dHJhX2NsYXNzID0gKGNhbXBhaWdu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ICAgICAgaWYoISRoYXNfcm93cykKICAgICAgICBjb250aW51ZTsKCiAgICAgICRmaWVsZHMgPSBnZXRfZmllbGQoImF0dHJpYnV0X2F0dF92aXNhX3BhX3Byb2R1a3RyYWQiLCAkY2F0ZWdvcnkpOyAvLyBnZXQgYWxsIGZpZWxkcyBpbiByZXBlYXRlcgoKICAgICAgaWYoIWVtcHR5KCRmaWVsZHMpKQogICAgICB7CiAgICAgICAgZm9yZWFjaCgkZmllbGRzIGFzICRmaWVsZCkKICAgICAgICB7CiAgICAgICAgICBpZihjb3VudCgkdmFsdWVzX3RvX3ByaW50KSA+PSA1KXticmVhazt9CgkJCQogICAgICAgICAgZm9yZWFjaCgkZmllbGQgYXMgJGtleSA9PiAkdmFsdWUpCiAgICAgICAgICB7CgkJCSAgJGF0dHJfdmFsdWUgPSAkcHJvZHVjdC0+Z2V0X2F0dHJpYnV0ZSgkdmFsdWUpOwogICAgICAgICAgICAgIGlmKCFlbXB0eSgkYXR0cl92YWx1ZSkpCiAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgaWYoJGF0dHJfdmFsdWUgIT0gIk9zcGVjaWZpY2VyYXQiKQogICAgICAgICAgICAgICAgewoJCQkJCWlmKCFpbl9hcnJheSgkYXR0cl92YWx1ZSwgJHZhbHVlc190b19wcmludCkpCgkJCQkJewogICAgICAgICAgICAgICAgICAJCSR2YWx1ZXNfdG9fcHJpbnRbXSA9ICRhdHRyX3ZhbHVlOyAvLyBhZGQgdGF4b25vbXkgdG8gbGlzdAogICAgICAgICAgICAgICAgCX0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQoKICAgIH0KICB9CiAgCiAgICBpZihjb3VudCgkdmFsdWVzX3RvX3ByaW50KSA+IDApCgl7CiAgICAJcHJpbnQgJzx1bCBjbGFzcz0icHJvZHVrdGtvcnQtYXR0ciI+PGxpPjxpIGNsYXNzPSJmYXMgZmEtY2hlY2siPjwvaT4nI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