Subversion Repositories Kolibri OS

Rev

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

Rev 7606 Rev 7720
Line 29... Line 29...
29
_http http = {0, 0, 0, 0, 0, 0, 0};
29
_http http = {0, 0, 0, 0, 0, 0, 0};
Line 30... Line 30...
30
 
30
 
Line 31... Line 31...
31
char homepage[] = FROM "html\\homepage.htm""\0";
31
char homepage[] = FROM "html\\homepage.htm""\0";
32
 
32
 
33
#ifdef LANG_RUS
33
#ifdef LANG_RUS
34
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.8c";
34
char version[]="’¥ªáâ®¢ë© ¡à ã§¥à 1.8d";
35
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
35
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
36
?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
36
?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
37
char loading[] = "‡ £à㧪  áâà ­¨æë...
";
37
char loading[] = "‡ £à㧪  áâà ­¨æë...
";
Line 44... Line 44...
44
Œ¥­¥¤¦¥à § £à㧮ª";
44
Œ¥­¥¤¦¥à § £à㧮ª";
45
char link_menu[] =
45
char link_menu[] =
46
"Š®¯¨à®¢ âì áá뫪ã
46
"Š®¯¨à®¢ âì áá뫪ã
47
‘ª ç âì ᮤ¥à¦¨¬®¥ áá뫪¨";
47
‘ª ç âì ᮤ¥à¦¨¬®¥ áá뫪¨";
48
#else
48
#else
49
char version[]="Text-based Browser 1.8c";
49
char version[]="Text-based Browser 1.8d";
50
?define IMAGES_CACHE_CLEARED "Images cache cleared"
50
?define IMAGES_CACHE_CLEARED "Images cache cleared"
51
?define T_LAST_SLIDE "This slide is the last"
51
?define T_LAST_SLIDE "This slide is the last"
52
char loading[] = "Loading...
";
52
char loading[] = "Loading...
";
53
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
53
char page_not_found[] = FROM "html\\page_not_found_en.htm""\0";
54
char accept_language[]= "Accept-Language: en\n";
54
char accept_language[]= "Accept-Language: en\n";
Line 398... Line 398...
398
	WB1.list.count = WB1.list.first = 0;
398
	WB1.list.count = WB1.list.first = 0;
399
	cur_encoding = CH_NULL;
399
	cur_encoding = CH_NULL;
400
	if (o_bufpointer) o_bufpointer = free(o_bufpointer);
400
	if (o_bufpointer) o_bufpointer = free(o_bufpointer);
401
}
401
}
Line -... Line 402...
-
 
402
 
-
 
403
void ReplaceSpaceInUrl() {
-
 
404
	int i;
-
 
405
	strcpy(#editURL, #URL);
-
 
406
	while (i = strchr(#URL, ' '))
-
 
407
	{
-
 
408
		i -= #URL;
-
 
409
		strlcpy(#URL+i+3, #editURL+i+1, sizeof(URL)-i-4);
-
 
410
		URL[i] = '%';
-
 
411
		URL[i+1] = '2';
-
 
412
		URL[i+2] = '0';
-
 
413
	}
-
 
414
	strcpy(#editURL, #URL);
-
 
415
}
402
 
416
 
403
void OpenPage()
417
void OpenPage()
404
{
418
{
405
	char getUrl[sizeof(URL)];
419
	char getUrl[sizeof(URL)];
406
	StopLoading();
420
	StopLoading();
Line 415... Line 429...
415
		DrawEditBoxWebView();
429
		DrawEditBoxWebView();
416
		return;
430
		return;
417
	}
431
	}
418
	if (!strncmp(#URL,"http:",5)) || (!strncmp(#URL,"https://",8)) 
432
	if (!strncmp(#URL,"http:",5)) || (!strncmp(#URL,"https://",8)) 
419
	{
433
	{
-
 
434
		ReplaceSpaceInUrl();
420
		img_draw stdcall(skin.image, address_box.left+address_box.width+1, address_box.top-3, 17, skin.h, 68, SKIN_Y);
435
		img_draw stdcall(skin.image, address_box.left+address_box.width+1, address_box.top-3, 17, skin.h, 68, SKIN_Y);
Line 421... Line 436...
421
 
436
 
422
		if (!strncmp(#URL,"http:",5)) {
437
		if (!strncmp(#URL,"http:",5)) {
423
			http.get(#URL);
438
			http.get(#URL);
Line 501... Line 516...
501
	{
516
	{
502
		StopLoading();
517
		StopLoading();
503
		history.back();
518
		history.back();
504
	}
519
	}
505
	strcpy(#URL, PageLinks.GetURL(PageLinks.active));
520
	strcpy(#URL, PageLinks.GetURL(PageLinks.active));
-
 
521
	ReplaceSpaceInUrl();
506
	//#1
522
	//#1
507
	if (URL[0] == '#')
523
	if (URL[0] == '#')
508
	{
524
	{
509
		if (URL[1] == NULL) {
525
		if (URL[1] == NULL) {
510
			WB1.list.first = 0;
526
			WB1.list.first = 0;