Rev 4686 | Rev 4688 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4686 | Rev 4687 | ||
---|---|---|---|
Line 241... | Line 241... | ||
241 | if (redirected>0) |
241 | if (redirected>0) |
242 | { |
242 | { |
243 | http_free stdcall (http_transfer); |
243 | http_free stdcall (http_transfer); |
244 | http_transfer=0; |
244 | http_transfer=0; |
245 | PageLinks.GetAbsoluteURL(#URL); |
245 | PageLinks.GetAbsoluteURL(#URL); |
- | 246 | BrowserHistory.current--; |
|
246 | strcpy(#editURL, #URL); |
247 | strcpy(#editURL, #URL); |
247 | OpenPage(); |
248 | OpenPage(); |
248 | } |
249 | } |
249 | else |
250 | else |
250 | { |
251 | { |
Line 461... | Line 462... | ||
461 | 462 | ||
462 | 463 | ||
- | 464 | ||
- | 465 | void ProcessLinks(int id) |
|
- | 466 | { |
|
- | 467 | if (http_transfer > 0) |
|
- | 468 | { |
|
- | 469 | StopLoading(); |
|
463 | 470 | BrowserHistory.current--; |
|
464 | void ProcessLinks(int id) |
471 | } |
465 | { |
472 | |
466 | strcpy(#URL, PageLinks.GetURL(id-401)); |
473 | strcpy(#URL, PageLinks.GetURL(id-401)); |
467 | //$1 - Condition Script |
474 | //$1 - Condition Script |
Line 546... | Line 553... | ||
546 | 553 | ||
547 | void OpenPage() |
554 | void OpenPage() |
548 | { |
555 | { |
549 | StopLoading(); |
556 | StopLoading(); |
- | 557 | strcpy(#editURL, #URL); |
|
550 | strcpy(#editURL, #URL); |
558 | BrowserHistory.AddUrl(); |
551 | if (strncmp(#URL,"WebView:",8)==0) return; |
559 | if (strncmp(#URL,"WebView:",8)==0) return; |
552 | if (strncmp(#URL,"http:",5)==0) |
560 | if (strncmp(#URL,"http:",5)==0) |
553 | { |
561 | { |
554 | img_draw stdcall(skin.image, address_box.left+address_box.width+1, address_box.top-2, 17, skin.h, 131, 0); |
562 | img_draw stdcall(skin.image, address_box.left+address_box.width+1, address_box.top-2, 17, skin.h, 131, 0); |
Line 563... | Line 571... | ||
563 | return; |
571 | return; |
564 | } |
572 | } |
565 | } |
573 | } |
566 | else |
574 | else |
567 | { |
575 | { |
568 | BrowserHistory.AddUrl(); |
- | |
569 | file_size stdcall (#URL); |
576 | file_size stdcall (#URL); |
570 | bufsize = EBX; |
577 | bufsize = EBX; |
571 | if (bufsize) |
578 | if (bufsize) |
572 | { |
579 | { |
573 | bufpointer = mem_Free(bufpointer); |
580 | bufpointer = mem_Free(bufpointer); |