From 34123e08bc47f340f3e3bf1e77398b2c6ee427bc Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 24 Mar 2013 17:10:32 +0100 Subject: Moved source of the LIVE homepage out of the normal LIVE distribution. --- doc/web/homepage/page-php-classes.inc | 158 ---------------------------------- 1 file changed, 158 deletions(-) delete mode 100644 doc/web/homepage/page-php-classes.inc (limited to 'doc/web/homepage/page-php-classes.inc') diff --git a/doc/web/homepage/page-php-classes.inc b/doc/web/homepage/page-php-classes.inc deleted file mode 100644 index fc6b2f7..0000000 --- a/doc/web/homepage/page-php-classes.inc +++ /dev/null @@ -1,158 +0,0 @@ -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 "\"$img\"/\n"; - } - - public function FullImage($img) - { - $img = basename($img); - echo "\"img/${img}.jpg\"/\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; - } -} - -?> -- cgit v1.2.3