ギコナビ
Revision | 0e7bdfff84cce9947279048c12c2d26f32ce3fb0 (tree) |
---|---|
Time | 2006-05-29 23:54:52 |
Author | h677 <h677> |
Commiter | h677 |
Cookieの仕様変更を容易にしておいた
@@ -855,7 +855,7 @@ begin | ||
855 | 855 | |
856 | 856 | Cookie := ''; |
857 | 857 | if ACOOKIE <> '' then |
858 | - Cookie := ACOOKIE; | |
858 | + Cookie := ACOOKIE; | |
859 | 859 | if SPID <> '' then |
860 | 860 | Cookie := Cookie + 'SPID=' + SPID + '; '; |
861 | 861 | if PON <> '' then |
@@ -864,9 +864,19 @@ begin | ||
864 | 864 | //zXgª2chÅABeÉLoginµÄ¢êÎBEÌf[^ðé |
865 | 865 | //GikoSys.ParseURI( URL, Protocol,Host, Path, Document, Port, Bookmark ); |
866 | 866 | //if GikoSys.Is2chHost(Host) and GikoSys.Setting.BeLogin then |
867 | - if (Board.Is2ch) and (GikoSys.Setting.BeLogin) then | |
868 | - Cookie := Cookie + 'MDMD=' + GikoSys.Setting.BeCode + '; ' | |
869 | - + 'DMDM=' + GikoSys.Setting.BeUserID + '; '; | |
867 | + if (Board.Is2ch) then begin | |
868 | + // ÅèÌNbL[ª êÎHí¹é | |
869 | + if Length(GikoSys.Setting.FixedCookie) > 0 then begin | |
870 | + // zXgª2chÌêCÅèÌNbL[ðHí¹é | |
871 | + Cookie := Cookie + GikoSys.Setting.FixedCookie + '; '; | |
872 | + end; | |
873 | + if (GikoSys.Setting.BeLogin) then begin | |
874 | + Cookie := Cookie + 'MDMD=' + GikoSys.Setting.BeCode + '; ' | |
875 | + + 'DMDM=' + GikoSys.Setting.BeUserID + '; '; | |
876 | + end; | |
877 | + | |
878 | + end; | |
879 | + | |
870 | 880 | Cookie := 'Cookie: ' + Cookie + 'NAME=' + NameComboBox.Text + '; MAIL=' + MailComboBox.Text; |
871 | 881 | |
872 | 882 | sysMenu := GetSystemMenu( Handle, false ); |
@@ -1012,13 +1022,13 @@ begin | ||
1012 | 1022 | if MsgResult = IDYES then begin |
1013 | 1023 | if (GikoSys.Setting.RemoteTrapAtt) and (tmpRawheader <> '') then begin |
1014 | 1024 | GetCookie(tmpRawheader, Board); |
1015 | - end else begin | |
1016 | - GetCookie(Indy.Response.RawHeaders.Text, Board); | |
1025 | + end else begin | |
1026 | + GetCookie(Indy.Response.RawHeaders.Text, Board); | |
1017 | 1027 | end; |
1018 | 1028 | if (Board.SPID = '') and (Board.PON = '') and (Board.Cookie = '') then |
1019 | 1029 | raise Exception.Create(''); |
1020 | 1030 | //à¤êñ±Ì\bh |
1021 | - Send(Board.Cookie, Board.SPID, Board.PON, False); | |
1031 | + Send(Board.Cookie, Board.SPID, Board.PON, False); | |
1022 | 1032 | Exit; |
1023 | 1033 | end else begin |
1024 | 1034 | Board.SPID := ''; |
@@ -1208,10 +1218,8 @@ begin | ||
1208 | 1218 | + 'mail=' + HttpEncode(MailComboBox.Text) + '&' |
1209 | 1219 | + 'MESSAGE=' + HttpEncode(body) + '&' |
1210 | 1220 | + 'bbs=' + Board.BBSID + '&' |
1211 | - + 'time=' + IntToStr(SendTime) + '&' //; | |
1212 | - //2005/05/27 2chdlÏXbèu | |
1213 | - //½¾µAmF_CAOªoȢƢ¤âèLèB | |
1214 | - + 'hana=mogera&'; | |
1221 | + + 'time=' + IntToStr(SendTime) + '&'; | |
1222 | + | |
1215 | 1223 | if FThreadItem = nil then begin |
1216 | 1224 | s := s + 'subject=' + HttpEncode(TitleEdit.Text) + '&'; |
1217 | 1225 | s := s + 'submit=' + HttpEncode('SÓCð¤±Æð³øµÄ«Þ') + #13#10; |
@@ -2174,7 +2182,7 @@ begin | ||
2174 | 2182 | end else if( AnsiPos(VAL_PON, val) > 0 ) then begin |
2175 | 2183 | ABoard.PON := Copy(val, AnsiPos(VAL_PON, val) + Length(VAL_PON), Length(val)); |
2176 | 2184 | end else begin |
2177 | - ABoard.Cookie := val + '; '; | |
2185 | + ABoard.Cookie := ABoard.Cookie + val + '; '; | |
2178 | 2186 | end; |
2179 | 2187 | //expiresðØèo· |
2180 | 2188 | val := Trim(GikoSys.GetTokenIndex(tmp, ';', 1)); |
@@ -363,6 +363,39 @@ object KuroutOption: TKuroutOption | ||
363 | 363 | end |
364 | 364 | end |
365 | 365 | end |
366 | + object KakikomiTabSheet: TTabSheet | |
367 | + Caption = #35443#32048#35373#23450'3' | |
368 | + ImageIndex = 2 | |
369 | + object CookieGroupBox: TGroupBox | |
370 | + Left = 16 | |
371 | + Top = 16 | |
372 | + Width = 473 | |
373 | + Height = 105 | |
374 | + Caption = #12463#12483#12461#12540 | |
375 | + TabOrder = 0 | |
376 | + object Label8: TLabel | |
377 | + Left = 16 | |
378 | + Top = 20 | |
379 | + Width = 59 | |
380 | + Height = 12 | |
381 | + Caption = #22266#23450'Cookie' | |
382 | + end | |
383 | + object Label9: TLabel | |
384 | + Left = 20 | |
385 | + Top = 67 | |
386 | + Width = 321 | |
387 | + Height = 12 | |
388 | + Caption = '2'#12385#12419#12435#12397#12427#12408#12398#26360#12365#36796#12415#12398#38555#12395#65380#19978#35352#12398#25991#23383#21015#12434#24120#12395#36865#20449#12377#12427 | |
389 | + end | |
390 | + object FixedCookieEdit: TEdit | |
391 | + Left = 16 | |
392 | + Top = 40 | |
393 | + Width = 441 | |
394 | + Height = 20 | |
395 | + TabOrder = 0 | |
396 | + end | |
397 | + end | |
398 | + end | |
366 | 399 | end |
367 | 400 | object OkBotton: TButton |
368 | 401 | Left = 224 |
@@ -56,6 +56,11 @@ type | ||
56 | 56 | Label6: TLabel; |
57 | 57 | ReadTimeOut: TEdit; |
58 | 58 | Label7: TLabel; |
59 | + KakikomiTabSheet: TTabSheet; | |
60 | + CookieGroupBox: TGroupBox; | |
61 | + Label8: TLabel; | |
62 | + FixedCookieEdit: TEdit; | |
63 | + Label9: TLabel; | |
59 | 64 | procedure OkBottonClick(Sender: TObject); |
60 | 65 | procedure FormCreate(Sender: TObject); |
61 | 66 | procedure CDeleteButtonClick(Sender: TObject); |
@@ -116,6 +121,8 @@ begin | ||
116 | 121 | //FusianaSet |
117 | 122 | LocalTrapAtt.Checked := GikoSys.Setting.LocalTrapAtt; |
118 | 123 | RemoteTrapAtt.Checked := GikoSys.Setting.RemoteTrapAtt; |
124 | + // Cookie | |
125 | + FixedCookieEdit.Text := GikoSys.Setting.FixedCookie; | |
119 | 126 | end; |
120 | 127 | |
121 | 128 | procedure TKuroutOption.SaveSetting; |
@@ -134,12 +141,15 @@ begin | ||
134 | 141 | else |
135 | 142 | GikoSys.Setting.TimeAdjustSec := 0; |
136 | 143 | GikoSys.Setting.TimeAdjust := PutPostTimeRadioButton.Checked; |
137 | - //2ch¾êT|[g | |
138 | - GikoSys.Setting.GengoSupport := GengoSupport.Checked; | |
139 | - GikoSys.SetGikoMessage; | |
140 | - //[JE[g̼±Åx | |
141 | - GikoSys.Setting.LocalTrapAtt := LocalTrapAtt.Checked; | |
142 | - GikoSys.Setting.RemoteTrapAtt := RemoteTrapAtt.Checked; | |
144 | + //2ch¾êT|[g | |
145 | + GikoSys.Setting.GengoSupport := GengoSupport.Checked; | |
146 | + GikoSys.SetGikoMessage; | |
147 | + //[JE[g̼±Åx | |
148 | + GikoSys.Setting.LocalTrapAtt := LocalTrapAtt.Checked; | |
149 | + GikoSys.Setting.RemoteTrapAtt := RemoteTrapAtt.Checked; | |
150 | + // Cookie | |
151 | + GikoSys.Setting.FixedCookie := FixedCookieEdit.Text; | |
152 | + | |
143 | 153 | |
144 | 154 | GikoSys.Setting.KuroutSettingTabIndex := PageControl1.ActivePageIndex; |
145 | 155 | end; |
@@ -61,9 +61,9 @@ object OptionDialog: TOptionDialog | ||
61 | 61 | Top = 4 |
62 | 62 | Width = 509 |
63 | 63 | Height = 389 |
64 | - ActivePage = TabSheet3 | |
64 | + ActivePage = TabSheet4 | |
65 | 65 | MultiLine = True |
66 | - TabIndex = 3 | |
66 | + TabIndex = 7 | |
67 | 67 | TabOrder = 3 |
68 | 68 | OnChange = OptionTabChange |
69 | 69 | object ConnectSheet: TTabSheet |
@@ -1207,8 +1207,8 @@ object OptionDialog: TOptionDialog | ||
1207 | 1207 | end |
1208 | 1208 | end |
1209 | 1209 | object GroupBox19: TGroupBox |
1210 | - Left = 16 | |
1211 | - Top = 80 | |
1210 | + Left = 11 | |
1211 | + Top = 74 | |
1212 | 1212 | Width = 465 |
1213 | 1213 | Height = 49 |
1214 | 1214 | Caption = #23653#27508 |
@@ -411,7 +411,7 @@ type | ||
411 | 411 | //XiÝÅ¢mè¶àLøÉ·é© |
412 | 412 | FUseUndecided: Boolean; |
413 | 413 | |
414 | - //Be2ch | |
414 | + //Be2ch | |
415 | 415 | //FØp[UIDEpX[h |
416 | 416 | FBeUserID: String; |
417 | 417 | FBeCode: String; |
@@ -430,6 +430,9 @@ type | ||
430 | 430 | FInputAssistFormWidth: Integer; |
431 | 431 | FInputAssistFormHeight: Integer; |
432 | 432 | |
433 | + // CookieÉtÁ·éÅèR[h | |
434 | + FFixedCookie: String; | |
435 | + | |
433 | 436 | function GetMainCoolSet(Index: Integer): TCoolSet; |
434 | 437 | function GetBoardCoolSet(Index: Integer): TCoolSet; |
435 | 438 | function GetBrowserCoolSet(Index: Integer): TCoolSet; |
@@ -753,6 +756,8 @@ type | ||
753 | 756 | //! InputAssisttH[ÌTCY |
754 | 757 | property InputAssistFormWidth: Integer read FInputAssistFormWidth write FInputAssistFormWidth; |
755 | 758 | property InputAssistFormHeight: Integer read FInputAssistFormHeight write FInputAssistFormHeight; |
759 | + //! CookieÉtÁ·éÅèR[h | |
760 | + property FixedCookie: String read FFixedCookie write FFixedCookie; | |
756 | 761 | |
757 | 762 | end; |
758 | 763 |
@@ -789,7 +794,7 @@ const | ||
789 | 794 | SPAMFILTER_FILE_NAME = 'SpamFilter.ini'; |
790 | 795 | LANGUAGE_FILE_NAME = 'language.ini'; |
791 | 796 | INPUTASSIST_FILE_NAME = 'InputAssist.ini'; |
792 | - | |
797 | + FIXED_COOKIE = 'hana=mogera'; | |
793 | 798 | |
794 | 799 | |
795 | 800 | implementation |
@@ -1373,6 +1378,9 @@ begin | ||
1373 | 1378 | FInputAssistFormWidth := ini.ReadInteger('IAtWindowsSize', 'Width', 400); |
1374 | 1379 | FInputAssistFormHeight := ini.ReadInteger('IAtWindowsSize', 'Height', 460); |
1375 | 1380 | |
1381 | + // CookieÉtÁ·éÅèR[h | |
1382 | + FFixedCookie := ini.ReadString('Cookie', 'fixedString', FIXED_COOKIE); | |
1383 | + | |
1376 | 1384 | ini.UpdateFile; |
1377 | 1385 | finally |
1378 | 1386 | ini.Free; |
@@ -1741,6 +1749,8 @@ begin | ||
1741 | 1749 | |
1742 | 1750 | //ðÌÅåÛ¶ |
1743 | 1751 | ini.WriteInteger('Recode', 'Max', FMaxRecordCount); |
1752 | + // ÅèÌCookie¶ñ | |
1753 | + ini.WriteString('Cookie', 'fixedString', FFixedCookie); | |
1744 | 1754 | |
1745 | 1755 | ini.UpdateFile; |
1746 | 1756 | finally |