|
{
|
|
Aulalinex 3.0-7 Software de gestión de Aulas Tecnológicas
|
|
Copyright (C) 2008-2009, Consejería de Educación,Junta de Extremadura
|
|
Programación: Manuel Narváez Martínez <mnarvaez007@gmail.com>
|
|
Diseño gráfico: Ana María Zamora Moreno
|
|
Desarrollado con Lazarus 0.9.26
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
}
|
|
|
|
unit contraservidores;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils,IdURI, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
|
StdCtrls,HTTPDefs;
|
|
|
|
type
|
|
|
|
|
|
{ TfrmContraServidores }
|
|
|
|
TfrmContraServidores = class(TForm)
|
|
btnAceptar: TButton;
|
|
btnCancelar: TButton;
|
|
edContra: TEdit;
|
|
imgFondo: TImage;
|
|
lblMensaje: TLabel;
|
|
procedure btnAceptarClick(Sender: TObject);
|
|
procedure btnCancelarClick(Sender: TObject);
|
|
procedure edContraKeyPress(Sender: TObject; var Key: char);
|
|
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
|
private
|
|
{ private declarations }
|
|
public
|
|
{ public declarations }
|
|
end;
|
|
|
|
var
|
|
frmContraServidores: TfrmContraServidores;
|
|
|
|
|
|
implementation
|
|
|
|
{ TfrmContraServidores }
|
|
|
|
uses globales, inicio;
|
|
|
|
|
|
{ TfrmContraServidores }
|
|
|
|
procedure TfrmContraServidores.btnAceptarClick(Sender: TObject);
|
|
begin
|
|
if trim(edContra.text)='' then
|
|
mensaje('Introduce la contraseña de root de los servidores de aula (menú Configurar -> Contraseña=. Sin ella, esta función no está activa', aceptar)
|
|
else
|
|
begin
|
|
g_contraServidores:=edContra.Text;
|
|
g_contraServidores:=EncriptaXOR(g_contraServidores,'mo0T710bh07MA');
|
|
g_contraServidores:=HTTPEncode(g_contraServidores);
|
|
close;
|
|
end;
|
|
end;
|
|
|
|
procedure TfrmContraServidores.btnCancelarClick(Sender: TObject);
|
|
begin
|
|
close;
|
|
end;
|
|
|
|
procedure TfrmContraServidores.edContraKeyPress(Sender: TObject; var Key: char);
|
|
begin
|
|
if Key=#13 then btnAceptarClick(btnAceptar);
|
|
end;
|
|
|
|
procedure TfrmContraServidores.FormClose(Sender: TObject;
|
|
var CloseAction: TCloseAction);
|
|
begin
|
|
CloseAction:=cafree;
|
|
end;
|
|
procedure TfrmContraServidores.FormCloseQuery(Sender: TObject;
|
|
var CanClose: boolean);
|
|
begin
|
|
frmMain.show;
|
|
hide;
|
|
end;
|
|
|
|
initialization
|
|
{$I contraservidores.lrs}
|
|
|
|
end.
|
|
|