Subversion Repositories Kolibri OS

Rev

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

Rev 4649 Rev 4650
Line 28... Line 28...
28
//images
28
//images
29
#include "img\toolbar_icons.c"
29
#include "img\toolbar_icons.c"
30
#include "img\URLgoto.txt";
30
#include "img\URLgoto.txt";
Line 31... Line 31...
31
 
31
 
32
#ifdef LANG_RUS
32
#ifdef LANG_RUS
33
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 0.99.73";
33
	char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 0.99.74";
34
	?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
34
	?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
35
	?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
35
	?define T_LAST_SLIDE "â® ¯®á«¥¤­¨© á« ©¤"
36
	char loading[] = "‡ £à㧪  áâà ­¨æë...
";
36
	char loading[] = "‡ £à㧪  áâà ­¨æë...
";
37
	unsigned char page_not_found[] = FROM "html\page_not_found_ru.htm";
37
	unsigned char page_not_found[] = FROM "html\page_not_found_ru.htm";
38
	char accept_language[]= "Accept-Language: ru\n";
38
	char accept_language[]= "Accept-Language: ru\n";
39
#else
39
#else
40
	char version[]=" Text-based Browser 0.99.73";
40
	char version[]=" Text-based Browser 0.99.74";
41
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
41
	?define IMAGES_CACHE_CLEARED "Images cache cleared"
42
	?define T_LAST_SLIDE "This slide is the last"
42
	?define T_LAST_SLIDE "This slide is the last"
43
	char loading[] = "Loading...
";
43
	char loading[] = "Loading...
";
44
	unsigned char page_not_found[] = FROM "html\page_not_found_en.htm";
44
	unsigned char page_not_found[] = FROM "html\page_not_found_en.htm";
Line 467... Line 467...
467
		http_free stdcall (http_transfer);	// abort connection
467
		http_free stdcall (http_transfer);	// abort connection
468
		$pop	EAX							
468
		$pop	EAX							
469
		mem_Free(EAX);						// free data
469
		mem_Free(EAX);						// free data
470
		http_transfer=0;
470
		http_transfer=0;
471
		bufsize = 0;
471
		bufsize = 0;
-
 
472
		bufpointer = mem_Free(bufpointer);
472
	}
473
	}
473
	PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal);
474
	PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal);
474
}
475
}
Line 475... Line 476...
475
 
476
 
Line 497... Line 498...
497
		http_transfer = EAX;
498
		http_transfer = EAX;
498
		if (http_transfer == 0)
499
		if (http_transfer == 0)
499
		{
500
		{
500
			StopLoading();
501
			StopLoading();
501
			bufsize = 0;
502
			bufsize = 0;
-
 
503
			bufpointer = mem_Free(bufpointer);
502
			ShowPage();
504
			ShowPage();
503
			return;
505
			return;
504
		}
506
		}
505
	}
507
	}
506
	else
508
	else
507
	{
509
	{
508
		file_size stdcall (#URL);
510
		file_size stdcall (#URL);
509
		bufsize = EBX;
511
		bufsize = EBX;
510
		if (!bufsize) return;
512
		if (bufsize)
-
 
513
		{
511
		mem_Free(bufpointer);
514
			bufpointer = mem_Free(bufpointer);
512
		bufpointer = mem_Alloc(bufsize);
515
			bufpointer = mem_Alloc(bufsize);
513
		SetPageDefaults();
516
			SetPageDefaults();
514
		ReadFile(0, bufsize, bufpointer, #URL);	
517
			ReadFile(0, bufsize, bufpointer, #URL);				
-
 
518
		}
515
		ShowPage();
519
		ShowPage();
516
	}
520
	}
517
}
521
}
Line 518... Line 522...
518
 
522