Rev 5773 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5773 | Rev 5774 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | dword buflen; |
16 | dword buflen; |
17 | int count, active; |
17 | int count, active; |
18 | void Hover(); |
18 | void Hover(); |
19 | void AddLink(); |
19 | void AddLink(); |
20 | void AddText(); |
20 | void AddText(); |
21 | void ClickLink(); |
- | |
22 | dword GetURL(); |
21 | dword GetURL(); |
23 | void Clear(); |
22 | void Clear(); |
24 | void GetAbsoluteURL(); |
23 | void GetAbsoluteURL(); |
25 | int UrlAbsolute(); |
24 | int UrlAbsolute(); |
26 | } PageLinks; |
25 | } PageLinks; |
Line 162... | Line 161... | ||
162 | 161 | ||
163 | strcat(#newurl, in_URL); |
162 | strcat(#newurl, in_URL); |
164 | strcpy(orig_URL, #newurl); |
163 | strcpy(orig_URL, #newurl); |
Line 165... | Line -... | ||
165 | } |
- | |
166 | - | ||
167 | void LinksArray::ClickLink() |
- | |
168 | { |
- | |
169 | if (http_transfer > 0) |
- | |
170 | { |
- | |
171 | StopLoading(); |
- | |
172 | BrowserHistory.current--; |
- | |
173 | } |
- | |
174 | - | ||
175 | strcpy(#URL, PageLinks.GetURL(PageLinks.active)); |
- | |
176 | //#1 |
- | |
177 | if (URL[0] == '#') |
- | |
178 | { |
- | |
179 | strcpy(#anchor, #URL+strrchr(#URL, '#')); |
- | |
180 | strcpy(#URL, BrowserHistory.CurrentUrl()); |
- | |
181 | WB1.list.first=WB1.list.count-WB1.list.visible; |
- | |
182 | ShowPage(); |
- | |
183 | return; |
- | |
184 | } |
- | |
185 | //liner.ru#1 |
- | |
186 | if (strrchr(#URL, '#')!=-1) |
- | |
187 | { |
- | |
188 | strcpy(#anchor, #URL+strrchr(#URL, '#')); |
- | |
189 | URL[strrchr(#URL, '#')-1] = 0x00; |
- | |
190 | } |
- | |
191 | - | ||
192 | PageLinks.GetAbsoluteURL(#URL); |
- | |
193 | - | ||
194 | if (UrlExtIs(".png")==1) || (UrlExtIs(".gif")==1) || (UrlExtIs(".jpg")==1) || (UrlExtIs(".zip")==1) || (UrlExtIs(".kex")==1) |
- | |
195 | || (UrlExtIs(".7z")==1) || (UrlExtIs("netcfg")==1) |
- | |
196 | { |
- | |
197 | //notify(#URL); |
- | |
198 | if (!strncmp(#URL,"http://", 7)) |
- | |
199 | { |
- | |
200 | strcpy(#DL_URL, #URL); |
- | |
201 | CreateThread(#Downloader,#downloader_stak+4092); |
- | |
202 | } |
- | |
203 | else RunProgram("@open", #URL); |
- | |
204 | strcpy(#editURL, BrowserHistory.CurrentUrl()); |
- | |
205 | strcpy(#URL, BrowserHistory.CurrentUrl()); |
- | |
206 | return; |
- | |
207 | } |
- | |
208 | if (!strncmp(#URL,"mailto:", 7)) |
- | |
209 | { |
- | |
210 | notify(#URL); |
- | |
211 | strcpy(#editURL, BrowserHistory.CurrentUrl()); |
- | |
212 | strcpy(#URL, BrowserHistory.CurrentUrl()); |
- | |
213 | return; |
- | |
214 | } |
- | |
215 | OpenPage(); |
- |