-
Notifications
You must be signed in to change notification settings - Fork 16
/
php4DelphiWeb.pas
83 lines (64 loc) · 1.8 KB
/
php4DelphiWeb.pas
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{*******************************************************}
{ PHP4Delphi }
{ PHP - Delphi interface }
{ }
{ Author: }
{ Serhiy Perevoznyk }
{ serge_perevoznyk@hotmail.com }
{ http://users.chello.be/ws36637 }
{*******************************************************}
{$I PHP.INC}
{ $Id: php4DelphiWeb.pas,v 6.2 02/2006 delphi32 Exp $ }
unit php4DelphiWeb;
interface
uses
Windows, ToolsAPI, Forms, Dialogs, SysUtils, Graphics, Classes, ShellAPI;
type
Tphp4DelphiWeb = class(TNotifierObject, IOTAWIzard, IOTAMenuWizard)
public
function GetMenuText: string;
function GetIDString: string;
function GetName: string;
function GetState: TWizardState;
procedure Execute;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterPackageWizard(Tphp4DelphiWeb.Create as IOTAWizard);
end;
procedure InitExpert;
begin
{ stubbed out }
end;
procedure DoneExpert;
begin
{ stubbed out }
end;
{ Tphp4DelphiWeb }
procedure Tphp4DelphiWeb.Execute;
begin
ShellExecute(0, 'open', 'http://users.chello.be/ws36637', nil, nil, SW_SHOW);
end;
function Tphp4DelphiWeb.GetIDString: string;
begin
Result := 'Perevoznyk.Tphp4DelphiWeb';
end;
function Tphp4DelphiWeb.GetMenuText: string;
begin
Result := 'PHP4Delphi Home Page';
end;
function Tphp4DelphiWeb.GetName: string;
begin
Result := 'Tphp4DelphiWeb';
end;
function Tphp4DelphiWeb.GetState: TWizardState;
begin
Result := [wsEnabled];
end;
initialization
InitExpert;
finalization
DoneExpert;
end.