PHP Classes

File: w2sp/w2sp.example4.php

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


Class file image Download
// 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:
// @require_once('YourPathTo_SECURITY_ADMIN' . '/_restrict.php');

    // require configfile (and classfile)

// initialize the classinstance, validate requests and send them if Valid, - or die!

if ($W2SP =& new Winamp2ShellProXy($w2sp_settings))
"Sorry, Winamp2 ShellProxy isn't set up in valid mode!");

$TableWidth = 0;
$OUTPUT = "";

$a = $W2SP->GetWinampInfo();

$buttons = array(
0 => array('40001','',''),
1 => array('50000','',''),
2 => array('blank','8','16'),
3 => array('40044','',''),
4 => array('40045','',''),
5 => array('40048','',''),
6 => array('40046','',''),
7 => array('40047','',''),
8 => array('blank','8','16'),
9 => array('60001','',''),
10 => array('55555','','')

$buttons as $v) $OUTPUT .= "<td>".$W2SP->DisplayButton($v[0],$v[1],$v[2],&$TableWidth)."</td>\r\n";

$OUTPUT = "<table cellspacing=2 border=0><tr><td align=\"center\">\r\n<table width=\"".$Tablewidth."px\" cellspacing=0 cellpadding=0 border=0><tr>\r\n".$OUTPUT."</tr></table>\r\n</td></tr><tr><td align=\"center\">\r\n";

$OUTPUT .= "<table><tr><td colspan=\"".count($buttons)."\" class=\"txt\">" . $a['Song'] . "</td></tr></table>\r\n</td></tr></table>\r\n";

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<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;
    input {
        font: 12px Verdana,Helvetica,Arial,sans-serif;
        text-align: left;
        text-decoration: none;
        color: #DDDDDD;
        background-color: #777777;
    .txt {
        font-size : 10px;
        font-style : normal;
        font-weight : bold;

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


<div align="center">

<?PHP echo $OUTPUT;?>