-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuFFAuth.pas
More file actions
59 lines (48 loc) · 1.25 KB
/
uFFAuth.pas
File metadata and controls
59 lines (48 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
unit uFFAuth;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, OleCtrls, SHDocVw, ExtCtrls,uShorter,Common_FF;
type
Tffauthform = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Label2: TLabel;
WebBrowser1: TWebBrowser;
Panel2: TPanel;
Label3: TLabel;
Edit1: TEdit;
Label4: TLabel;
Edit2: TEdit;
Button1: TButton;
procedure FormShow(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
ffauthform: Tffauthform;
implementation
uses shrtOptions;
{$R *.dfm}
procedure Tffauthform.Button1Click(Sender: TObject);
begin
Options.FFLogin:=Edit1.Text;
Options.FFKey:=Edit2.Text;
Options.Save;
Options.Load;
FOptions.Button5.Enabled:=(Length(Trim(Options.FFLogin))=0)or
(Length(Trim(Options.FFKey))=0);
FOptions.Button4.Enabled:=(Length(Trim(Options.FFLogin))>0)and
(Length(Trim(Options.FFKey))>0);
FriendFeed.Authorized:=FOptions.Button4.Enabled;
ModalResult:=mrOk;
Hide;
end;
procedure Tffauthform.FormShow(Sender: TObject);
begin
WebBrowser1.Navigate(ffRemoteKeyURL);
end;
end.