• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Revision0e7bdfff84cce9947279048c12c2d26f32ce3fb0 (tree)
Time2006-05-29 23:54:52
Authorh677 <h677>
Commiterh677

Log Message

Cookieの仕様変更を容易にしておいた

Change Summary

Incremental Difference

--- a/Editor.pas
+++ b/Editor.pas
@@ -855,7 +855,7 @@ begin
855855
856856 Cookie := '';
857857 if ACOOKIE <> '' then
858- Cookie := ACOOKIE;
858+ Cookie := ACOOKIE;
859859 if SPID <> '' then
860860 Cookie := Cookie + 'SPID=' + SPID + '; ';
861861 if PON <> '' then
@@ -864,9 +864,19 @@ begin
864864 //ƒzƒXƒg‚ª2ch‚ŁABe‚ÉLogin‚µ‚Ä‚¢‚ê‚ÎBE‚̃f[ƒ^‚ð‘—‚é
865865 //GikoSys.ParseURI( URL, Protocol,Host, Path, Document, Port, Bookmark );
866866 //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+ // ŒÅ’è‚̃NƒbƒL[‚ª‚ ‚ê‚ΐH‚킹‚é
869+ if Length(GikoSys.Setting.FixedCookie) > 0 then begin
870+ // ƒzƒXƒg‚ª2ch‚̏ꍇCŒÅ’è‚̃NƒbƒL[‚ð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+
870880 Cookie := 'Cookie: ' + Cookie + 'NAME=' + NameComboBox.Text + '; MAIL=' + MailComboBox.Text;
871881
872882 sysMenu := GetSystemMenu( Handle, false );
@@ -1012,13 +1022,13 @@ begin
10121022 if MsgResult = IDYES then begin
10131023 if (GikoSys.Setting.RemoteTrapAtt) and (tmpRawheader <> '') then begin
10141024 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);
10171027 end;
10181028 if (Board.SPID = '') and (Board.PON = '') and (Board.Cookie = '') then
10191029 raise Exception.Create('');
10201030 //‚à‚¤ˆê‰ñ‚±‚̃ƒ\ƒbƒh
1021- Send(Board.Cookie, Board.SPID, Board.PON, False);
1031+ Send(Board.Cookie, Board.SPID, Board.PON, False);
10221032 Exit;
10231033 end else begin
10241034 Board.SPID := '';
@@ -1208,10 +1218,8 @@ begin
12081218 + 'mail=' + HttpEncode(MailComboBox.Text) + '&'
12091219 + 'MESSAGE=' + HttpEncode(body) + '&'
12101220 + 'bbs=' + Board.BBSID + '&'
1211- + 'time=' + IntToStr(SendTime) + '&' //;
1212- //2005/05/27 2chŽd—l•ÏXŽb’菈’u
1213- //‚½‚¾‚µAŠm”Fƒ_ƒCƒAƒƒO‚ªo‚È‚¢‚Æ‚¢‚¤–â‘è—L‚èB
1214- + 'hana=mogera&';
1221+ + 'time=' + IntToStr(SendTime) + '&';
1222+
12151223 if FThreadItem = nil then begin
12161224 s := s + 'subject=' + HttpEncode(TitleEdit.Text) + '&';
12171225 s := s + 'submit=' + HttpEncode('‘SÓ”C‚𕉂¤‚±‚Æ‚ð³‘ø‚µ‚ď‘‚«ž‚Þ') + #13#10;
@@ -2174,7 +2182,7 @@ begin
21742182 end else if( AnsiPos(VAL_PON, val) > 0 ) then begin
21752183 ABoard.PON := Copy(val, AnsiPos(VAL_PON, val) + Length(VAL_PON), Length(val));
21762184 end else begin
2177- ABoard.Cookie := val + '; ';
2185+ ABoard.Cookie := ABoard.Cookie + val + '; ';
21782186 end;
21792187 //expires‚ðØ‚èo‚·
21802188 val := Trim(GikoSys.GetTokenIndex(tmp, ';', 1));
--- a/KuroutSetting.dfm
+++ b/KuroutSetting.dfm
@@ -363,6 +363,39 @@ object KuroutOption: TKuroutOption
363363 end
364364 end
365365 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
366399 end
367400 object OkBotton: TButton
368401 Left = 224
--- a/KuroutSetting.pas
+++ b/KuroutSetting.pas
@@ -56,6 +56,11 @@ type
5656 Label6: TLabel;
5757 ReadTimeOut: TEdit;
5858 Label7: TLabel;
59+ KakikomiTabSheet: TTabSheet;
60+ CookieGroupBox: TGroupBox;
61+ Label8: TLabel;
62+ FixedCookieEdit: TEdit;
63+ Label9: TLabel;
5964 procedure OkBottonClick(Sender: TObject);
6065 procedure FormCreate(Sender: TObject);
6166 procedure CDeleteButtonClick(Sender: TObject);
@@ -116,6 +121,8 @@ begin
116121 //FusianaSet
117122 LocalTrapAtt.Checked := GikoSys.Setting.LocalTrapAtt;
118123 RemoteTrapAtt.Checked := GikoSys.Setting.RemoteTrapAtt;
124+ // Cookie
125+ FixedCookieEdit.Text := GikoSys.Setting.FixedCookie;
119126 end;
120127
121128 procedure TKuroutOption.SaveSetting;
@@ -134,12 +141,15 @@ begin
134141 else
135142 GikoSys.Setting.TimeAdjustSec := 0;
136143 GikoSys.Setting.TimeAdjust := PutPostTimeRadioButton.Checked;
137- //2chŒ¾ŒêƒTƒ|[ƒg
138- GikoSys.Setting.GengoSupport := GengoSupport.Checked;
139- GikoSys.SetGikoMessage;
140- //ƒ[ƒJƒ‹EƒŠƒ‚[ƒ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+ //ƒ[ƒJƒ‹EƒŠƒ‚[ƒg̼±ÅŒx
148+ GikoSys.Setting.LocalTrapAtt := LocalTrapAtt.Checked;
149+ GikoSys.Setting.RemoteTrapAtt := RemoteTrapAtt.Checked;
150+ // Cookie
151+ GikoSys.Setting.FixedCookie := FixedCookieEdit.Text;
152+
143153
144154 GikoSys.Setting.KuroutSettingTabIndex := PageControl1.ActivePageIndex;
145155 end;
--- a/Option.dfm
+++ b/Option.dfm
@@ -61,9 +61,9 @@ object OptionDialog: TOptionDialog
6161 Top = 4
6262 Width = 509
6363 Height = 389
64- ActivePage = TabSheet3
64+ ActivePage = TabSheet4
6565 MultiLine = True
66- TabIndex = 3
66+ TabIndex = 7
6767 TabOrder = 3
6868 OnChange = OptionTabChange
6969 object ConnectSheet: TTabSheet
@@ -1207,8 +1207,8 @@ object OptionDialog: TOptionDialog
12071207 end
12081208 end
12091209 object GroupBox19: TGroupBox
1210- Left = 16
1211- Top = 80
1210+ Left = 11
1211+ Top = 74
12121212 Width = 465
12131213 Height = 49
12141214 Caption = #23653#27508
--- a/Setting.pas
+++ b/Setting.pas
@@ -411,7 +411,7 @@ type
411411 //ƒXƒŒiž‚Ý‚Å–¢Šm’蕶Žš‚à—LŒø‚É‚·‚é‚©
412412 FUseUndecided: Boolean;
413413
414- //Be2ch
414+ //Be2ch
415415 //”FØ—pƒ†[ƒUIDEƒpƒXƒ[ƒh
416416 FBeUserID: String;
417417 FBeCode: String;
@@ -430,6 +430,9 @@ type
430430 FInputAssistFormWidth: Integer;
431431 FInputAssistFormHeight: Integer;
432432
433+ // Cookie‚É•t‰Á‚·‚éŒÅ’èƒR[ƒh
434+ FFixedCookie: String;
435+
433436 function GetMainCoolSet(Index: Integer): TCoolSet;
434437 function GetBoardCoolSet(Index: Integer): TCoolSet;
435438 function GetBrowserCoolSet(Index: Integer): TCoolSet;
@@ -753,6 +756,8 @@ type
753756 //! InputAssistƒtƒH[ƒ€‚̃TƒCƒY
754757 property InputAssistFormWidth: Integer read FInputAssistFormWidth write FInputAssistFormWidth;
755758 property InputAssistFormHeight: Integer read FInputAssistFormHeight write FInputAssistFormHeight;
759+ //! Cookie‚É•t‰Á‚·‚éŒÅ’èƒR[ƒh
760+ property FixedCookie: String read FFixedCookie write FFixedCookie;
756761
757762 end;
758763
@@ -789,7 +794,7 @@ const
789794 SPAMFILTER_FILE_NAME = 'SpamFilter.ini';
790795 LANGUAGE_FILE_NAME = 'language.ini';
791796 INPUTASSIST_FILE_NAME = 'InputAssist.ini';
792-
797+ FIXED_COOKIE = 'hana=mogera';
793798
794799
795800 implementation
@@ -1373,6 +1378,9 @@ begin
13731378 FInputAssistFormWidth := ini.ReadInteger('IAtWindowsSize', 'Width', 400);
13741379 FInputAssistFormHeight := ini.ReadInteger('IAtWindowsSize', 'Height', 460);
13751380
1381+ // Cookie‚É•t‰Á‚·‚éŒÅ’èƒR[ƒh
1382+ FFixedCookie := ini.ReadString('Cookie', 'fixedString', FIXED_COOKIE);
1383+
13761384 ini.UpdateFile;
13771385 finally
13781386 ini.Free;
@@ -1741,6 +1749,8 @@ begin
17411749
17421750 //—š—ð‚̍őå•Û‘¶Œ”
17431751 ini.WriteInteger('Recode', 'Max', FMaxRecordCount);
1752+ // ŒÅ’è‚ÌCookie•¶Žš—ñ
1753+ ini.WriteString('Cookie', 'fixedString', FFixedCookie);
17441754
17451755 ini.UpdateFile;
17461756 finally