// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: packimports(3) package com.zend.ide.util.f; import com.zend.ide.i.y; import com.zend.ide.p.ba; import com.zend.ide.util.Registration; import com.zend.ide.util.bi; import com.zend.ide.util.cr; import com.zend.ide.util.ct; import com.zend.ide.util.cu; import com.zend.ide.util.cv; import java.awt.Component; import java.awt.Dialog; import java.awt.Frame; import java.util.ArrayList; import java.util.Calendar; import java.util.zip.CRC32; import javax.swing.JFrame; // Referenced classes of package com.zend.ide.util.f: // f, d, e, g, // q, h public class a implements cu { public a() { b = new f(); } public void a() { String s = bi.a("USER_NAME"); String s1 = bi.a("LICENSE_KEY"); a(s, s1); } public void a(String s, String s1) { label0: { b = b(s, s1); if(b.c == 0) e().a(d); f _tmp = b; if(b.c != 2) break label0; if(b.d <= 0 && !d()) { boolean flag = true; do { do { if(!flag) break label0; d(ct.a(890), ct.a(1072)); e().a(d); } while(b()); flag = false; } while(f == 0); } if(b.d <= 6 && !d()) a(b.d, e().b()); } a(e); } private boolean b() { f f1 = a.c(); int i = f1.c; return (i == 2 || i == 0) && !d(); } public void a(JFrame jframe) { e().a(jframe, d); } public f c() { return b; } public boolean d() { f f1 = a.c(); return f1.a.indexOf("Personal") != -1 && f1.a.indexOf("Edition") != -1; } public void a(d d1) { if(e == null) e = new ArrayList(2); synchronized(e) { if(!e.contains(d1)) e.add(d1); } } private static final void a(java.util.List list) { if(list != null) synchronized(list) { int i = list.size(); int j = 0; do { if(j >= i) break; d d1 = (d)list.get(j); d1.a(); j++; } while(f == 0); } } private g e() { if(c == null) c = f(); return c; } protected g f() { d = new e(this); return new g(); } private void a(String s) { e(ct.a(881), ct.a(882, s, s)); } private static f b(String s, String s1) { int i1; i1 = f; if(s == null || s1 == null) return new f(s, s1); f f1; String s2; String s4; String s3; label0: { if(s1.toLowerCase().startsWith("lk")) s1 = s1.substring(2); f1 = new f(s, s1); s2 = ""; s3 = ""; if(s1.length() >= 18) { f1.h = true; s2 = s1.substring(16, 18); try { s3 = s1.substring(18); f1.e = Integer.valueOf(s3).intValue(); } catch(Exception exception1) { f1.e = 0; } s1 = s1.substring(0, 16); if(Integer.valueOf(s2).intValue() == 0) { f1.g = true; if(i1 == 0) break label0; } f1.g = false; if(i1 == 0) break label0; } f1.h = false; f1.g = true; } s4 = s1.substring(8, 16); String s5 = "Zend" + s + s4 + s2 + s3; CRC32 crc32 = new CRC32(); crc32.update(s5.getBytes()); int i = (int)crc32.getValue(); String s6 = Integer.toHexString(i) + s4; do { if(s6.length() >= 16) break; s6 = "0" + s6; } while(i1 == 0); if(s6.compareToIgnoreCase(s1) != 0) break MISSING_BLOCK_LABEL_459; if(a(f1, s2)) return f1; int j = Integer.parseInt(s4.substring(4)); if(a(f1, j)) return f1; if(a(f1)) return f1; f1.g = false; int k = Integer.parseInt(s4.substring(0, 2)); int l = Integer.parseInt(s4.substring(2, 4)); Calendar calendar = Calendar.getInstance(); Calendar calendar1 = Calendar.getInstance(); calendar1.set(j, l - 1, k); calendar1; calendar; f1.d = (calendar1.get(6) - calendar.get(6)) + 1; calendar1; calendar; f1.d += (calendar1.get(1) - calendar.get(1)) * 365; f1.c = 2; return f1; Exception exception; exception; return new f(s, s1); } private static boolean a(f f1) { if(cr.a() == 1) { CRC32 crc32 = new CRC32(); CRC32 crc32_1 = new CRC32(); CRC32 crc32_2 = new CRC32(); String s = Integer.toString(3) + Integer.toString(0); crc32.update(s.getBytes()); crc32_1.update(f1.a.getBytes()); crc32_2.update(f1.b.getBytes()); if(Registration.listenListener(Integer.toHexString((int)crc32.getValue()), Integer.toHexString((int)crc32_1.getValue()), Integer.toHexString((int)crc32_2.getValue())) == 0) { f1.c = 2; f1.d = -2; f1.i = true; return true; } } return false; } private static boolean a(f f1, String s) { if(f1.h && !f1.g && Integer.valueOf(s).intValue() < 30) { f1.f = true; return true; } else { return false; } } private static boolean a(f f1, int i) { if(i >= 3500) { f1.c = 1; return true; } else { return false; } } private static void a(long l, Component component) { String s = l != 1L ? ct.a(137) : ct.a(136); String s1 = ct.a(1127, "" + l, s); String s2 = ct.a(138); a(s2, s1, component); } private static void a(Component component) { String s = ct.a(491); String s1 = ct.a(492); a(s1, s, component); } private static void b(Component component) { String s = ct.a(467); String s1 = ct.a(466); a(s, s1, component); } private static void a(Component component, String s, int i) { if(i == 0) { return; } else { String s1 = ct.a(499); String s2 = s1 + "!\n" + s + "\n" + ct.a(497, String.valueOf(i)); ba.a(component, s2, s1, -1, 1); return; } } private static void a(String s, String s1, Component component) { if(component == null) { component = new JFrame(); ((JFrame)component).setIconImage(cv.a("noticemsg16.gif")); } ba.a(component, s1, s, -1, 2); } public void d(String s, String s1) { q q1; label0: { int i = f; Component component = e().b(); if(component != null && (component instanceof Frame)) { q1 = new q((Frame)component, s, s1); if(i == 0) break label0; } if(component != null && (component instanceof Dialog)) { q1 = new q((Dialog)component, s, s1); if(i == 0) break label0; } q1 = new q(new Frame(), s, s1); } q1.show(); } public void e(String s, String s1) { y y1; label0: { int i = f; Component component = e().b(); if(component != null && (component instanceof Frame)) { y1 = new y((Frame)component, s, s1); if(i == 0) break label0; } if(component != null && (component instanceof Dialog)) { y1 = new y((Dialog)component, s, s1); if(i == 0) break label0; } y1 = new y(new Frame(), s, s1); } y1.show(); } static g a(a a1) { return a1.e(); } static f c(String s, String s1) { return b(s, s1); } static void a(a a1, String s) { a1.a(s); } static void d(Component component) { a(component); } static void c(Component component) { b(component); } static f a(a a1, f f1) { return a1.b = f1; } static f b(a a1) { return a1.b; } static void b(Component component, String s, int i) { a(component, s, i); } static void b(java.util.List list) { a(list); } public static a a = new a(); private f b; private g c; private h d; protected java.util.List e; public static int f; }