2
header("Content-type: text/xml");
3
header("Cache-Control: no-cache, must-revalidate");
4
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
6
if(isset($_GET["start"]))
8
$start = $_GET["start"];
14
if(isset($_GET["zoom"]))
16
$zoom = $_GET["zoom"];
22
if(isset($_GET["pic_id"]))
24
$id = $_GET["pic_id"];
30
if(isset($_GET["image_target"]))
32
$target = $_GET["image_target"];
39
$window = $_GET["window"];
41
$image = "http://ipepdvadei2.ka.fzk.de/riku/services/imageservices.php?target=" . $target . "_main&start=$start&n=$zoom&window=$window";
42
$image2 = "http://ipepdvadei2.ka.fzk.de/riku/services/imageservices.php?target=" . $target . "_sec&id=$id";
44
//here we determine the start slider's maximum value
45
if($target === "cloud")
47
$dir = "/home/riku/small/";
53
if ($handle = opendir($dir)) {
54
while (false !== ($file = readdir($handle))) {
55
if(strstr($file, "kitcube"))
64
$start_slider_max = 1;
65
$data_dummy = $data_amount;
66
while($data_dummy > 100)
68
$data_dummy = floor($data_dummy / 10);
69
$start_slider_max = $start_slider_max * 10;
74
TODO:Implementation for finding the slider maximum value for other services
76
else if($target === "ceilo")
78
$start_slider_max = 500;
82
$start_slider_max = 100;
85
//contruct result XML and print it
86
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
89
<image2>$image2</image2>
90
<window>$window</window>
94
<start_slider_max>$start_slider_max</start_slider_max>
95
<data_amount>$data_amount</data_amount>
b'\\ No newline at end of file'