blob: 17d03abd7b5dfd212165985d106c8fc89b575004 (
plain)
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
|
<?php
class Status
{
var $title;
var $vers_string;
var $vers_number;
var $datefmt;
var $language;
function Status($title, $vname, $vnum, $datefmt, $lang)
{
$this->title = $title;
$this->vers_string = $vname;
$this->vers_number = $vnum;
$this->datefmt = $datefmt;
$this->language = $lang;
}
}
class Menu
{
var $urls;
function Menu($entries)
{
$this->urls = $entries;
}
}
class Screenshots
{
var $images;
function Screenshots($imgNames)
{
$this->images = $imgNames;
}
function RandomImg()
{
$idx = array_rand($this->images);
$this->MakeAnchor($idx);
}
function AllImg()
{
foreach($this->images as $idx => $descr) {
$this->MakeAnchor($idx);
}
}
function MakeAnchor($img)
{
echo "<a href=\"screenshots.php?img=$img\"><img src=\"img/${img}_thumb.jpg\" alt=\"$img\"/></a>\n";
}
function FullImage($img)
{
$img = basename($img);
echo "<a href=\"screenshots.php\"><img src=\"img/${img}.jpg\" alt=\"img/${img}.jpg\"/ style=\"width: 810px\"></a>\n";
}
function ImageDescr($img, $error)
{
$img = basename($img);
if (isset($this->images[$img]))
return $this->images[$img];
else
return $error;
}
}
?>
|