Subversion Repositories Kolibri OS

Rev

Rev 7806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7806 Rev 8229
Line 136... Line 136...
136
	DrawEditBox(#ed);
136
	DrawEditBox(#ed);
137
}
137
}
Line 138... Line 138...
138
 
138
 
139
void StartDownloading()
139
void StartDownloading()
-
 
140
{
-
 
141
	char http_url[URL_SIZE];
140
{
142
	char proxy_url[URL_SIZE];
141
	StopDownloading();
143
	StopDownloading();
-
 
144
	if (!strncmp(#downloader_edit,"https://",7)) {
-
 
145
		notify("'HTTPS for download is not supported, trying to download the file via HTTP' -W");
-
 
146
		sprintf(#http_url, "http://%s", #downloader_edit+8);
142
	if (strncmp(#downloader_edit,"http://",7)!=0) {
147
		if (!downloader.Start(#http_url)) {
-
 
148
			notify("'Download failed.' -E");
-
 
149
			StopDownloading();
-
 
150
		}
-
 
151
		//sprintf(#proxy_url, "http://gate.aspero.pro/?site=%s", #downloader_edit);
-
 
152
		//if (!downloader.Start(#proxy_url)) {
-
 
153
		//	notify("'Download failed.' -E");
-
 
154
		//	StopDownloading();
-
 
155
		//}
143
		notify("'File address should start from http://' -E");
156
		DL_Draw_Window();
144
		return;
157
		return;
145
	}
158
	}
146
	if (!downloader.Start(#downloader_edit)) {
159
	if (!downloader.Start(#downloader_edit)) {
147
		if (download_and_exit) ExitProcess();
160
		if (download_and_exit) ExitProcess();