<?php
// If you want use the W2SP in a public net you should use something to secure this file!
// If you are not using any security tool yet, I would recommend phpSecurityAdmin:
//
// http://hn273.users.phpclasses.org/browse.html/package/391.html
// @require_once('YourPathTo_SECURITY_ADMIN' . '/_restrict.php');
// require configfile (and classfile)
require_once('hidden/w2sp.config.php');
// initialize the classinstance, validate requests and send them if Valid, - or die!
if ($W2SP =& new Winamp2ShellProXy($w2sp_settings))
{
$W2SP->ValidateRequest($_GET);
}
else
{
die("Sorry, Winamp2 ShellProxy isn't set up in valid mode!");
}
$OUTPUT = "<table width=\"80%\" cellspacing=2 cellpadding=2 border=1>\r\n<tr>\r\n<td>";
$OUTPUT .= $W2SP->DisplayWinampInfo() . "</td>\r\n</tr>\r\n";
$OUTPUT .= "<tr>\r\n<td>\r\n<h3 align=\"left\">Last ".$W2SP->RecentTrackCount." played Tracks</h3>\r\n<p align=\"left\">" . $W2SP->DisplayRecentTracklist() . "</p>\r\n";
$OUTPUT .= "</td>\r\n</tr>\r\n</table>\r\n";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<?PHP echo $W2SP->MetaRefresh(1);?>
<meta http-equiv="content-language" content="en">
<meta name="description" lang="en" content="The Winamp2 ShellProXy is a package of two components, A) the w2sp.exe, a little commandline tool written in VB which acts as a proxy on the system shell and B) a php-class which serve a full featured winamp remote control to a webclient.">
<meta name="keywords" lang="en" content="Winamp, Winamp2, ShellProXy, Shell, ProXy, Plugin, phpclass, Netjuke,">
<meta name="author" content="Horst Nogajski">
<meta name="copyright" content="Horst Nogajski">
<meta name="publisher" content="Horst Nogajski">
<meta name="generator" content="handwritten with NoteTab Pro, Komodo 1.2, =:)">
<meta name="date" content="2003-10-10T08:00+01:00">
<meta http-equiv="imagetoolbar" content="no">
<style type="text/css">
<!--
a {
font: 12px Verdana,Helvetica,Arial,sans-serif;
text-decoration: none;
}
a:link, a:visited {
color: #E0E0E0;
}
a:hover, a:active {
color: #999999;
background-color: #EEEEEE;
}
body {
font-family: Verdana,Helvetica,Arial,sans-serif;
color: #DDDDDD;
background-color: #999999;
margin-top: 20px;
margin-bottom: 50px;
margin-left: 30px;
margin-right: 30px;
}
p,h1,h2,h3,h4,h5,h6,ul,ol,li,td,th {
font-family: Verdana,Helvetica,Arial,sans-serif;
}
h3 {
font: bold 14px Verdana,Helvetica,Arial,sans-serif;
color: #555555;
}
p {
font: 12px Verdana,Helvetica,Arial,sans-serif;
}
.txt {
font-size : 10px;
font-style : normal;
font-weight : bold;
}
<?PHP echo $W2SP->CSSclasses();?>
-->
</style>
</head>
<body>
<div align="center">
<?PHP echo $OUTPUT;?>
</div>
</body>
</html>
|