// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 08/10/2012 8:47:15
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   AccederADatos.java

package project;

import java.applet.Applet;
import java.awt.Component;
import java.awt.Container;
import java.util.*;
import javax.swing.JFrame;
import traduccion.Traducir;

// Referenced classes of package project:
//            MensajeDeError, SocketServidor

public class AccederADatos
{

    public AccederADatos()
    {
    }

    public static String cambiarElPassword()
    {
        if(cambiarPassword)
            return dni + fechaDelExamen;
        else
            return password;
    }

    public static String leer(String buscar)
    {
        if(RES2 == null)
            RES2 = ResourceBundle.getBundle("project2.application");
        return RES2.getString(buscar);
        Exception excepcion;
        excepcion;
        if(RES1 == null)
            RES1 = ResourceBundle.getBundle("project.application");
        return RES1.getString(buscar);
        Exception e;
        e;
        MensajeDeError mensaje = new MensajeDeError();
        e.printStackTrace();
        mensaje.mensaje(true, Traducir.getTraduccion(leer("h.proyecto"), "project.AccederADatos", "200411151335", idioma));
        mensaje = null;
        return null;
    }

    public static void salir(int estado)
    {
        socket.cerrarConexion();
        if(!entraComoApplet)
            System.exit(estado);
        else
            frameActivo.setVisible(false);
    }

    public static void recorrerComponentes(Component comp)
    {
        if(comp instanceof Container)
        {
            Container container = (Container)comp;
            Component componentes[] = container.getComponents();
            for(int i = 0; i < componentes.length; i++)
            {
                Component componente = componentes[i];
                recorrerComponentes(componente);
            }

        }
    }

    public static String decryptPassword = "";
    public static boolean entraComoDemo = false;
    public static boolean entraComoApplet = false;
    public static SocketServidor socket;
    public static Applet currentApplet = null;
    public static String fechaRepeatIVAP = "";
    public static String lookAndFeelOriginal = "";
    public static TreeMap mapaFicherosZip = new TreeMap();
    public static String username = "";
    public static String userPassword = "";
    public static boolean cambiarPassword = false;
    public static JFrame frameActivo;
    static int fecha = 0;
    static boolean updateFilesFound = false;
    static String updateFiles = "";
    public static final String idioma = leer("h.idiomaPrimario");
    public static String nombreUsuario = "";
    public static String apellido1Usuario;
    public static String apellido2Usuario;
    public static String dni;
    public static String password;
    public static String email = "";
    public static String nombreModulo = "";
    public static String sfecha = "";
    public static String fechaDelExamen = "";
    public static boolean posible = true;
    public static boolean examenTerminado = false;
    private static ResourceBundle RES1;
    private static ResourceBundle RES2;
    public static Vector vectorFicherosModificados = null;

}