Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6043 leency 1
 
2
{
3
	if(!strncmp(_in,"/sys/",5)) return true;
4
	if(!strncmp(_in,"/hd/",4)) return true;
5
	if(!strncmp(_in,"/fd/",4)) return true;
6
	if(!strncmp(_in,"/rd/",4)) return true;
7
	if(!strncmp(_in,"/tmp/",5)) return true;
8
	if(!strncmp(_in,"/cd/",4)) return true;
9
	if(!strncmp(_in,"/bd/",4)) return true;
10
	if(!strncmp(_in,"/usbhd/",7)) return true;
11
	if(!strncmp(_in,"/kolibrios/",11)) return true;
12
	return false;
13
}
14
15
 
16
int check_is_the_url_absolute(dword in)
17
{
18
	if(!strncmp(_in,"http:",5)) return true;
19
	if(!strncmp(_in,"https:",6)) return true;
20
	if(!strncmp(_in,"ftp:",4)) return true;
21
}
22
23
 
24
{
25
	int i;
26
	dword orig_URL = in_URL;
27
	char newurl[UML];
28
29
 
30
	{
31
		strcpy(i+1, i+5);
32
	}
33
34
 
35
36
 
37
	if (!http_transfer)
38
	{
39
		strcpy(#newurl, History.current());
40
	}
41
	else
42
	{
43
		strcpy(#newurl, History.items.get(History.active-2));
44
	}
45
46
 
47
	{
48
		i = strchr(#newurl+8, '/');
49
		if (i) ESBYTE[i]=0;
50
		in_URL+=1;
51
	}
52
53
 
54
55
 
56
	{
57
		newurl[strrchr(#newurl, '/')] = 0x00;
58
	}
59
60
 
61
	{
62
		in_URL+=3;
63
		newurl[strrchr(#newurl, '/')-1] = 0x00;
64
		goto _CUT_ST_LEVEL_MARK;
65
	}
66
67
 
68
69
 
70
	strcpy(orig_URL, #newurl);
71
}
72
73
 
74