/********************************************************************** * uptimes.noctumdesign.com * Copyright (c) 2002 Ryan Grove . All rights reserved. * * This script is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA ********************************************************************** * download.php * * Client download page. Contains a list of all known uptime clients * and links to pages where they can be downloaded. **********************************************************************/ require_once("lib/functions.php"); require_once("lib/ui.class.php"); $ui = new infoui; $ui->header(); $ui->template_open(); $ui->message("Download a Client", ""); ?> Select your OS or platform from the dropdown list below to see the clients available for that OS. Want to write a client? It's easy! Have a look at the uptimes client protocol. $clients = array(); $clients[0]["name"] = "Linup"; $clients[0]["version"] = "1.0.2"; $clients[0]["url"] = "ftp://ftp.smux.net/pub/linup/"; $clients[0]["os"] = array("Linux"); $clients[0]["protocol"] = "4.2"; $clients[1]["name"] = "Perl-Uptime"; $clients[1]["version"] = "0.3"; $clients[1]["url"] = ""; $clients[1]["os"] = array("Linux", "Solaris"); $clients[1]["protocol"] = "4.2"; $clients[2]["name"] = "RISC OS UpClient"; $clients[2]["version"] = "2.01"; $clients[2]["url"] = "http://www.squirrel-net.co.uk/software/upclient/"; $clients[2]["os"] = array("RISC OS"); $clients[2]["protocol"] = "4.2"; $clients[3]["name"] = "supclient"; $clients[3]["version"] = "1.0a"; $clients[3]["url"] = "http://www.bodgit-n-scarper.com/software.html"; $clients[3]["os"] = array("SNMP"); $clients[3]["protocol"] = "4.2"; $clients[4]["name"] = "UpClient"; $clients[4]["version"] = "5.0b1"; $clients[4]["url"] = ""; $clients[4]["os"] = array("AIX", "BeOS", "FreeBSD", "OpenBSD", "NetBSD", "Irix", "Linux", "MacOS X", "Solaris", "SunOS", "Ultrix", "UnixWare"); $clients[4]["protocol"] = "5.0"; $clients[4]["desc"] = "Supports the new UDP reporting protocol."; $clients[5]["name"] = "jafoClient"; $clients[5]["version"] = "2.0"; $clients[5]["url"] = "http://uptimes-project.org/files/jafoClient20.zip"; $clients[5]["os"] = array("Windows"); $clients[5]["desc"] = "NT service only. Supports the new UDP reporting protocol."; $clients[5]["protocol"] = "5.0"; $clients[7]["name"] = "UptimeChaos"; $clients[7]["version"] = "0.1.1"; $clients[7]["url"] = "http://webs.sinectis.com/agramajo/uptime/uptime-chaos-0.1.1.tgz"; $clients[7]["homepage"] = "http://webs.sinectis.com/agramajo/uptime/"; $clients[7]["os"] = array("Linux", "FreeBSD", "Solaris"); $clients[7]["desc"] = "Written in Perl. Supports the new UDP reporting protocol."; $clients[7]["protocol"] = "5.0"; ?>
if (isset($_GET["os"]) && $_GET["os"] != "") { ?>
=$_GET["os"]?> Clients:
foreach($clients as $client) { if (in_array($_GET["os"], $client["os"])) { ?>
">
=$client["name"]." v".$client["version"]?>
(protocol version =$client["protocol"]?>)
if (isset($client["desc"])) print stripslashes($client["desc"])."
";
?>