-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdecinn.php
More file actions
139 lines (116 loc) · 4.12 KB
/
decinn.php
File metadata and controls
139 lines (116 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php echo "<?xml version='1.0' ?>"; ?>
<?php
$query = $_GET["query"];
if($query) {
$queryArr = explode(',', $query);
$page = $queryArr[0];
$nazev = $queryArr[1];
$search = ('http://e-decin.cz/video/all.html?from='.$queryArr[0]);
}
if($page) {
if($search) {
$html = file_get_contents($search);
} else {
$html = file_get_contents($search);
}
} else {
$page = 0;
if($search) {
$html = file_get_contents($search);
} else {
$html = file_get_contents($search);
}
}
?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<mediaDisplay name=threePartsView
suffixXPC="2" sideColorLeft="0:0:0"
sideLeftWidthPC="0"
sideColorRight="0:0:0"
headerImageWidthPC="0"
headerCapWidthPC="0"
itemWidthPC="70"
itemImageXPC="5"
itemImageYPC="18"
itemXPC="17"
itemYPC="18"
backgroundColor="0:0:0"
itemBackgroundColor="0:0:0"
showHeader=no
selectMenuOnRight=no
showDefaultInfo=no
itemPerPage=5 infoYPC=90
>
<text offsetXPC=5 offsetYPC=6 widthPC=50 heightPC=6 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=250:250:250>Regionální videa - <?php echo $nazev; ?></text>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_01.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_02.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_03.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_04.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_05.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_06.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_07.png </idleImage>
<idleImage idleImageWidthPC=10 idleImageHeightPC=10> image/POPUP_LOADING_08.png </idleImage>
<backgroundDisplay>
<image offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">image/gmini-bg.jpg</image>
</backgroundDisplay>
<image offsetXPC="84" offsetYPC="89" widthPC="7" heightPC="7">image/arrow_left.png</image>
<image offsetXPC="90" offsetYPC="89" widthPC="7" heightPC="7">image/arrow_right.png</image>
<image offsetXPC=85 offsetYPC=3 widthPC=10 heightPC=10>
image/logo.png
</image>
</mediaDisplay>
<channel>
<title>Regionální videa</title>
<menu>main menu</menu>
<?php
if($page > 0) { ?>
<item>
<?php
$sThisFile = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
$url = $sThisFile."?query=".($page-10).",".$nazev.",".$queryArr[2];
//if($search) {
// $url = $url.$search;
//}
?>
<title>Předchozí stránka</title>
<link><?php echo $url;?></link><media:thumbnail url="image/left.jpg" />
</item>
<?php } ?>
<?php
$videos = explode('<td rowspan="4" width="10"><div align="center">', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach($videos as $video) {
$t1 = explode('<img src="http://e-decin.cz/seyretfiles/uploads/thumbnails/user_62/user_62_t', $video);
$t2 = explode('.jpg', $t1[1]);
$link = $t2[0];
$t1 = explode('http://e-decin.cz/video/zpravodajstvi/', $video);
$t2 = explode('.html', $t1[1]);
$titulek = $t2[0];
$t1 = explode('<img src="', $video);
$t2 = explode('"', $t1[1]);
$nahled = $t2[0];
echo '<item>';
echo '<title>'.$titulek.'</title>';
echo '<link>http://e-decin.cz/seyretfiles/uploads/videos/user_62/user_62_v'.$link.'.flv</link>';
echo '<enclosure type="video/flv" url="http://e-decin.cz/seyretfiles/uploads/videos/user_62/user_62_v'.$link.'.flv"/>';
echo '<media:thumbnail url="'.$nahled.'" />';
echo '</item>';
echo "\n";
}
?>
<item>
<?php
$sThisFile = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
$url = $sThisFile."?query=".($page+10).",".$nazev.",".$queryArr[2];
//$url = $sThisFile."?query=".($page+1).",";
//if($search) {
// $url = $url.$search;
//}
?>
<title>Další stránka</title>
<link><?php echo $url;?></link>
<media:thumbnail url="image/right.jpg" />
</item>
</channel>
</rss>