blob: fc6b2f71617e03e033824a552e2243cb2e6812ae (
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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
<?php
/**
* class Status:
* Contains the localized current status of the LIVE plugin.
*/
class Status
{
public $title;
public $vers_string;
public $vers_number;
public $datefmt;
public $language;
public function __construct($title, $vname, $vnum, $datefmt, $lang)
{
$this->title = $title;
$this->vers_string = $vname;
$this->vers_number = $vnum;
$this->datefmt = $datefmt;
$this->language = $lang;
}
}
/**
* class Menu:
* holds the localized names and the urls to the pages of the main
* menu.
*/
class Menu
{
public $urls;
public function __construct($entries)
{
$this->urls = $entries;
}
}
/**
* class Screenshots:
* Contains the localized 'basic' names of the screenshot images and a
* description of the single images.
*/
class Screenshots
{
private $images;
public function __construct($imgNames)
{
$this->images = $imgNames;
}
public function RandomImg()
{
$idx = array_rand($this->images);
$this->MakeAnchor($idx);
}
public function AllImg()
{
foreach($this->images as $idx => $descr) {
$this->MakeAnchor($idx);
}
}
private function MakeAnchor($img)
{
echo "<a href=\"screenshots.php?img=$img\"><img src=\"img/${img}_thumb.jpg\" alt=\"$img\"/></a>\n";
}
public 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";
}
public function ImageDescr($img, $error)
{
$img = basename($img);
if (isset($this->images[$img]))
return $this->images[$img];
else
return $error;
}
}
/**
* class SoftwareComponnent:
* Describes one software component which has some kind of relation
* with the LIVE plugin.
*/
class SoftwareComponent
{
private $name;
private $minVers;
private $recVers;
private $homepage;
public function __construct($n, $m, $r, $h)
{
$this->name = $n;
$this->minVers = $m;
$this->recVers = $r;
$this->homepage = $h;
}
public function Name()
{
return $this->name;
}
public function MinVersion()
{
return $this->minVers;
}
public function RecommendedVersion()
{
return $this->recVers;
}
public function Homepage()
{
return $this->homepage;
}
}
class LiveSWConfig
{
private $required;
private $optional;
private $plugins;
public function __construct(array $r, array $o, array $p)
{
$this->required = $r;
$this->optional = $o;
$this->plugins = $p;
}
public function Required()
{
return $this->required;
}
public function Optional()
{
return $this->optional;
}
public function Plugins()
{
return $this->plugins;
}
}
?>
|