impostor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +50 -0
  3. data/README.txt +65 -0
  4. data/Rakefile +40 -0
  5. data/lib/impostor.rb +6 -0
  6. data/lib/www/impostor/phpbb2.rb +260 -0
  7. data/lib/www/impostor/wwf79.rb +254 -0
  8. data/lib/www/impostor/wwf80.rb +264 -0
  9. data/lib/www/impostor.rb +269 -0
  10. data/test/fixtures/phpbb2-get-new_topic-form-good-response.html +725 -0
  11. data/test/fixtures/phpbb2-get-viewtopic-for-new-topic-good-response.html +364 -0
  12. data/test/fixtures/phpbb2-get-viewtopic-for-new-topic-malformed-response.html +364 -0
  13. data/test/fixtures/phpbb2-index.html +361 -0
  14. data/test/fixtures/phpbb2-logged-in.html +349 -0
  15. data/test/fixtures/phpbb2-login.html +306 -0
  16. data/test/fixtures/phpbb2-not-logged-in.html +349 -0
  17. data/test/fixtures/phpbb2-post-new_topic-good-response.html +290 -0
  18. data/test/fixtures/phpbb2-post-reply-good-response.html +290 -0
  19. data/test/fixtures/phpbb2-post-reply-throttled-response.html +290 -0
  20. data/test/fixtures/phpbb2-too-many-posts.html +290 -0
  21. data/test/fixtures/wwf79-forum_posts.html +422 -0
  22. data/test/fixtures/wwf79-general-new-topic-error.html +46 -0
  23. data/test/fixtures/wwf79-general-posting-error.html +46 -0
  24. data/test/fixtures/wwf79-good-post-forum_posts.html +462 -0
  25. data/test/fixtures/wwf79-index.html +137 -0
  26. data/test/fixtures/wwf79-logged-in.html +46 -0
  27. data/test/fixtures/wwf79-login.html +123 -0
  28. data/test/fixtures/wwf79-new-topic-forum_posts-response.html +305 -0
  29. data/test/fixtures/wwf79-new-topic-post_message_form.html +212 -0
  30. data/test/fixtures/wwf79-not-logged-in.html +128 -0
  31. data/test/fixtures/wwf79-too-many-posts.html +46 -0
  32. data/test/fixtures/wwf79-too-many-topics.html +46 -0
  33. data/test/fixtures/wwf80-general-posting-error.html +54 -0
  34. data/test/fixtures/wwf80-get-new_topic-form-good-response.html +217 -0
  35. data/test/fixtures/wwf80-get-viewtopic-for-new-topic-good-response.html +290 -0
  36. data/test/fixtures/wwf80-index.html +371 -0
  37. data/test/fixtures/wwf80-logged-in.html +52 -0
  38. data/test/fixtures/wwf80-login.html +125 -0
  39. data/test/fixtures/wwf80-new_reply_form.html +204 -0
  40. data/test/fixtures/wwf80-not-logged-in.html +136 -0
  41. data/test/fixtures/wwf80-post-new_topic-good-response.html +293 -0
  42. data/test/fixtures/wwf80-post-reply-good-response.html +331 -0
  43. data/test/fixtures/wwf80-too-many-posts.html +54 -0
  44. data/test/test_helper.rb +38 -0
  45. data/test/test_www_impostor.rb +165 -0
  46. data/test/test_www_impostor_phpbb2.rb +536 -0
  47. data/test/test_www_impostor_wwf79.rb +535 -0
  48. data/test/test_www_impostor_wwf80.rb +535 -0
  49. data/vendor/plugins/impostor/lib/autotest/discover.rb +3 -0
  50. data/vendor/plugins/impostor/lib/autotest/impostor.rb +49 -0
  51. data.tar.gz.sig +3 -0
  52. metadata +156 -0
  53. metadata.gz.sig +3 -0
@@ -0,0 +1,290 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html dir="ltr"><head>
3
+
4
+
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <meta http-equiv="Content-Style-Type" content="text/css"><title>yourdomain.com ::</title><!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" -->
7
+
8
+
9
+
10
+
11
+ <style type="text/css">
12
+ <!--
13
+ /*
14
+ The original subSilver Theme for phpBB version 2+
15
+ Created by subBlue design
16
+ http://www.subBlue.com
17
+
18
+ NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
19
+ theme administration centre. When you have finalised your style you could cut the final CSS code
20
+ and place it in an external file, deleting this section to save bandwidth.
21
+ */
22
+
23
+ /* General page style. The scroll bar colours only visible in IE5.5+ */
24
+ body {
25
+ background-color: #E5E5E5;
26
+ scrollbar-face-color: #DEE3E7;
27
+ scrollbar-highlight-color: #FFFFFF;
28
+ scrollbar-shadow-color: #DEE3E7;
29
+ scrollbar-3dlight-color: #D1D7DC;
30
+ scrollbar-arrow-color: #006699;
31
+ scrollbar-track-color: #EFEFEF;
32
+ scrollbar-darkshadow-color: #98AAB1;
33
+ }
34
+
35
+ /* General font families for common tags */
36
+ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
37
+ a:link,a:active,a:visited { color : #006699; }
38
+ a:hover { text-decoration: underline; color : #DD6900; }
39
+ hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
40
+
41
+ /* This is the border line & background colour round the entire page */
42
+ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; }
43
+
44
+ /* This is the outline round the main forum tables */
45
+ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; }
46
+
47
+ /* Main table cell colours and backgrounds */
48
+ td.row1 { background-color: #EFEFEF; }
49
+ td.row2 { background-color: #DEE3E7; }
50
+ td.row3 { background-color: #D1D7DC; }
51
+
52
+ /*
53
+ This is for the table cell above the Topics, Post & Last posts on the index.php page
54
+ By default this is the fading out gradiated silver background.
55
+ However, you could replace this with a bitmap specific for each forum
56
+ */
57
+ td.rowpic {
58
+ background-color: #FFFFFF;
59
+ background-image: url(templates/subSilver/images/cellpic2.jpg);
60
+ background-repeat: repeat-y;
61
+ }
62
+
63
+ /* Header cells - the blue and silver gradient backgrounds */
64
+ th {
65
+ color: #FFA34F; font-size: 11px; font-weight : bold;
66
+ background-color: #006699; height: 25px;
67
+ background-image: url(templates/subSilver/images/cellpic3.gif);
68
+ }
69
+
70
+ td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
71
+ background-image: url(templates/subSilver/images/cellpic1.gif);
72
+ background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
73
+ }
74
+
75
+ /*
76
+ Setting additional nice inner borders for the main table cells.
77
+ The names indicate which sides the border will be on.
78
+ Don't worry if you don't understand this, just ignore it :-)
79
+ */
80
+ td.cat,td.catHead,td.catBottom {
81
+ height: 29px;
82
+ border-width: 0px 0px 0px 0px;
83
+ }
84
+ th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
85
+ font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px;
86
+ }
87
+ td.row3Right,td.spaceRow {
88
+ background-color: #D1D7DC; border: #FFFFFF; border-style: solid;
89
+ }
90
+
91
+ th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
92
+ th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
93
+ th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
94
+ th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
95
+ th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
96
+ th.thTop { border-width: 1px 0px 0px 0px; }
97
+ th.thCornerL { border-width: 1px 0px 0px 1px; }
98
+ th.thCornerR { border-width: 1px 1px 0px 0px; }
99
+
100
+ /* The largest text used in the index page title and toptic title etc. */
101
+ .maintitle {
102
+ font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
103
+ text-decoration: none; line-height : 120%; color : #000000;
104
+ }
105
+
106
+ /* General text */
107
+ .gen { font-size : 12px; }
108
+ .genmed { font-size : 11px; }
109
+ .gensmall { font-size : 10px; }
110
+ .gen,.genmed,.gensmall { color : #000000; }
111
+ a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
112
+ a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; }
113
+
114
+ /* The register, login, search etc links at the top of the page */
115
+ .mainmenu { font-size : 11px; color : #000000 }
116
+ a.mainmenu { text-decoration: none; color : #006699; }
117
+ a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }
118
+
119
+ /* Forum category titles */
120
+ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699}
121
+ a.cattitle { text-decoration: none; color : #006699; }
122
+ a.cattitle:hover{ text-decoration: underline; }
123
+
124
+ /* Forum title: Text and link to the forums used in: index.php */
125
+ .forumlink { font-weight: bold; font-size: 12px; color : #006699; }
126
+ a.forumlink { text-decoration: none; color : #006699; }
127
+ a.forumlink:hover{ text-decoration: underline; color : #DD6900; }
128
+
129
+ /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
130
+ .nav { font-weight: bold; font-size: 11px; color : #000000;}
131
+ a.nav { text-decoration: none; color : #006699; }
132
+ a.nav:hover { text-decoration: underline; }
133
+
134
+ /* titles for the topics: could specify viewed link colour too */
135
+ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; }
136
+ a.topictitle:link { text-decoration: none; color : #006699; }
137
+ a.topictitle:visited { text-decoration: none; color : #5493B4; }
138
+ a.topictitle:hover { text-decoration: underline; color : #DD6900; }
139
+
140
+ /* Name of poster in viewmsg.php and viewtopic.php and other places */
141
+ .name { font-size : 11px; color : #000000;}
142
+
143
+ /* Location, number of posts, post date etc */
144
+ .postdetails { font-size : 10px; color : #000000; }
145
+
146
+ /* The content of the posts (body of text) */
147
+ .postbody { font-size : 12px; line-height: 18px}
148
+ a.postlink:link { text-decoration: none; color : #006699 }
149
+ a.postlink:visited { text-decoration: none; color : #5493B4; }
150
+ a.postlink:hover { text-decoration: underline; color : #DD6900}
151
+
152
+ /* Quote & Code blocks */
153
+ .code {
154
+ font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
155
+ background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
156
+ border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
157
+ }
158
+
159
+ .quote {
160
+ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
161
+ background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
162
+ border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
163
+ }
164
+
165
+ /* Copyright and bottom info */
166
+ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
167
+ a.copyright { color: #444444; text-decoration: none;}
168
+ a.copyright:hover { color: #000000; text-decoration: underline;}
169
+
170
+ /* Form elements */
171
+ input,textarea, select {
172
+ color : #000000;
173
+ font: normal 11px Verdana, Arial, Helvetica, sans-serif;
174
+ border-color : #000000;
175
+ }
176
+
177
+ /* The text input fields background colour */
178
+ input.post, textarea.post, select {
179
+ background-color : #FFFFFF;
180
+ }
181
+
182
+ input { text-indent : 2px; }
183
+
184
+ /* The buttons used for bbCode styling in message post */
185
+ input.button {
186
+ background-color : #EFEFEF;
187
+ color : #000000;
188
+ font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
189
+ }
190
+
191
+ /* The main submit button option */
192
+ input.mainoption {
193
+ background-color : #FAFAFA;
194
+ font-weight : bold;
195
+ }
196
+
197
+ /* None-bold submit button */
198
+ input.liteoption {
199
+ background-color : #FAFAFA;
200
+ font-weight : normal;
201
+ }
202
+
203
+ /* This is the line in the posting page which shows the rollover
204
+ help line. This is actually a text box, but if set to be the same
205
+ colour as the background no one will know ;)
206
+ */
207
+ .helpline { background-color: #DEE3E7; border-style: none; }
208
+
209
+ /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
210
+ @import url("templates/subSilver/formIE.css");
211
+ -->
212
+ </style>
213
+ <script language="Javascript" type="text/javascript">
214
+ <!--
215
+ if ( 0 )
216
+ {
217
+ window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
218
+ }
219
+ //-->
220
+ </script></head><body bgcolor="#e5e5e5" link="#006699" text="#000000" vlink="#5493b4">
221
+
222
+ <a name="top"></a>
223
+
224
+ <table align="center" border="0" cellpadding="10" cellspacing="0" width="100%">
225
+ <tbody><tr>
226
+ <td class="bodyline"><table border="0" cellpadding="0" cellspacing="0" width="100%">
227
+ <tbody><tr>
228
+ <td><a href="http://localhost/phpBB2/index.php"><img src="too-many-posts_files/logo_phpBB.gif" alt="yourdomain.com Forum Index" border="0" vspace="1"></a></td>
229
+ <td align="center" valign="middle" width="100%"><span class="maintitle">yourdomain.com</span><br><span class="gen">A _little_ text to describe your forum<br>&nbsp; </span>
230
+ <table border="0" cellpadding="2" cellspacing="0">
231
+ <tbody><tr>
232
+ <td align="center" nowrap="nowrap" valign="top"><span class="mainmenu">&nbsp;<a href="http://localhost/phpBB2/faq.php" class="mainmenu"><img src="too-many-posts_files/icon_mini_faq.gif" alt="FAQ" border="0" height="13" hspace="3" width="12">FAQ</a>&nbsp; &nbsp;<a href="http://localhost/phpBB2/search.php" class="mainmenu"><img src="too-many-posts_files/icon_mini_search.gif" alt="Search" border="0" height="13" hspace="3" width="12">Search</a>&nbsp; &nbsp;<a href="http://localhost/phpBB2/memberlist.php" class="mainmenu"><img src="too-many-posts_files/icon_mini_members.gif" alt="Memberlist" border="0" height="13" hspace="3" width="12">Memberlist</a>&nbsp; &nbsp;<a href="http://localhost/phpBB2/groupcp.php" class="mainmenu"><img src="too-many-posts_files/icon_mini_groups.gif" alt="Usergroups" border="0" height="13" hspace="3" width="12">Usergroups</a>&nbsp;
233
+ </span></td>
234
+ </tr>
235
+ <tr>
236
+ <td align="center" height="25" nowrap="nowrap" valign="top"><span class="mainmenu">&nbsp;<a href="http://localhost/phpBB2/profile.php?mode=editprofile" class="mainmenu"><img src="too-many-posts_files/icon_mini_profile.gif" alt="Profile" border="0" height="13" hspace="3" width="12">Profile</a>&nbsp; &nbsp;<a href="http://localhost/phpBB2/privmsg.php?folder=inbox" class="mainmenu"><img src="too-many-posts_files/icon_mini_message.gif" alt="You have no new messages" border="0" height="13" hspace="3" width="12">You have no new messages</a>&nbsp; &nbsp;<a href="http://localhost/phpBB2/login.php?logout=true&amp;sid=83872b5b1250d45e3d3f16d0446faf01" class="mainmenu"><img src="too-many-posts_files/icon_mini_login.gif" alt="Log out [ tester ]" border="0" height="13" hspace="3" width="12">Log out [ tester ]</a>&nbsp;</span></td>
237
+ </tr>
238
+ </tbody></table></td>
239
+ </tr>
240
+ </tbody></table>
241
+
242
+ <br>
243
+
244
+
245
+ <table align="center" border="0" cellpadding="2" cellspacing="2" width="100%">
246
+ <tbody><tr>
247
+ <td class="nav" align="left"><a href="http://localhost/phpBB2/index.php" class="nav">yourdomain.com Forum Index</a></td>
248
+ </tr>
249
+ </tbody></table>
250
+
251
+ <table class="forumline" border="0" cellpadding="4" cellspacing="1" width="100%">
252
+ <tbody><tr>
253
+ <th class="thHead" height="25"><b>Information</b></th>
254
+ </tr>
255
+ <tr>
256
+ <td class="row1"><table border="0" cellpadding="1" cellspacing="0" width="100%">
257
+ <tbody><tr>
258
+ <td>&nbsp;</td>
259
+ </tr>
260
+ <tr>
261
+ <td align="center"><span class="gen">You cannot make another post so soon after your last; please try again in a short while.</span></td>
262
+ </tr>
263
+ <tr>
264
+ <td>&nbsp;</td>
265
+ </tr>
266
+ </tbody></table></td>
267
+ </tr>
268
+ </tbody></table>
269
+
270
+ <br clear="all">
271
+
272
+
273
+ <div align="center"><span class="copyright"><br><br>
274
+ <!--
275
+ We request you retain the full copyright notice below including the link to www.phpbb.com.
276
+ This not only gives respect to the large amount of time given freely by the developers
277
+ but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
278
+ reason) retain the full copyright we request you at least leave in place the
279
+ Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse
280
+ to include even this then support on our forums may be affected.
281
+
282
+ The phpBB Group : 2002
283
+ // -->
284
+ Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> © 2001, 2005 phpBB Group<br></span></div>
285
+ </td>
286
+ </tr>
287
+ </tbody></table>
288
+
289
+
290
+ </body></html>