-
Notifications
You must be signed in to change notification settings - Fork 16
/
phpWeb.pas
123 lines (94 loc) · 2.62 KB
/
phpWeb.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{*******************************************************}
{ PHP4Delphi }
{ PHP - Delphi interface }
{ }
{ Author: }
{ Serhiy Perevoznyk }
{ serge_perevoznyk@hotmail.com }
{ http://users.chello.be/ws36637 }
{*******************************************************}
{$I PHP.INC}
{ $Id: phpWeb.pas,v 6.2 02/2006 delphi32 Exp $ }
unit phpWeb;
interface
uses
Windows, ToolsAPI, Forms, Dialogs, SysUtils, Graphics, Classes, ShellAPI;
type
TphpWebWizard = class(TNotifierObject, IOTAWIzard, IOTAMenuWizard)
public
function GetMenuText: string;
function GetIDString: string;
function GetName: string;
function GetState: TWizardState;
procedure Execute;
end;
TphpForumWizard = 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(TphpWebWizard.Create as IOTAWizard);
RegisterPackageWizard(TphpForumWizard.Create as IOTAWizard);
end;
procedure InitExpert;
begin
{ stubbed out }
end;
procedure DoneExpert;
begin
{ stubbed out }
end;
{ TphpWebWizard }
procedure TphpWebWizard.Execute;
begin
ShellExecute(0, 'open', 'http://www.php.net', nil, nil, SW_SHOW);
end;
function TphpWebWizard.GetIDString: string;
begin
Result := 'Perevoznyk.TphpWebWizard';
end;
function TphpWebWizard.GetMenuText: string;
begin
Result := 'PHP Home Page';
end;
function TphpWebWizard.GetName: string;
begin
Result := 'TphpWebWizard';
end;
function TphpWebWizard.GetState: TWizardState;
begin
Result := [wsEnabled];
end;
{ TphpForumWizard }
procedure TphpForumWizard.Execute;
begin
ShellExecute(0, 'open', 'http://sourceforge.net/forum/forum.php?forum_id=324242', nil, nil, SW_SHOW);
end;
function TphpForumWizard.GetIDString: string;
begin
Result := 'Perevoznyk.TphpForumWizard';
end;
function TphpForumWizard.GetMenuText: string;
begin
Result := 'PHP4Delphi Forum';
end;
function TphpForumWizard.GetName: string;
begin
Result := 'TphpForumWizard';
end;
function TphpForumWizard.GetState: TWizardState;
begin
Result := [wsEnabled];
end;
initialization
InitExpert;
finalization
DoneExpert;
end.