PHP Classes

File: w2sp/w2sp.example3.php

Recommend this page to a friend!
  Classes of Horst Nogajski   Winamp Shell ProXy   w2sp/w2sp.example3.php   Download  
File: w2sp/w2sp.example3.php
Role: Example script
Content type: text/plain
Description: example: playerpanel, tracklist select and info output
Class: Winamp Shell ProXy
Control server side WinampPlayer via shell
Author: By
Last change: (see description of classfile)
Date: 20 years ago
Size: 3,029 bytes
 

Contents

Class file image Download
<?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 width=\"190px\">";
       
$OUTPUT .= $W2SP->DisplayPanel();
       
$OUTPUT .= "</td>\r\n<td>\r\n" . $W2SP->DisplayWinampInfo(1) . "</td>\r\n</tr>\r\n";
       
$OUTPUT .= "<tr>\r\n<td colspan=2>\r\n";
       
$OUTPUT .= "<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;
    }

<?PHP echo $W2SP->CSSclasses();?>

-->
</style>

</head>
<body>
<div align="center">

<?PHP echo $OUTPUT;?>

</div>
</body>
</html>