コード例 #1
0
ファイル: anonymous.php プロジェクト: nitrotm/ngwinamp2
        // retrieve playlist infos
        $tmp = $ngwc->pl_getpos();
        $pl_pos = $tmp['index'];
        $pl_length = $tmp['length'];
        if ($ngwc->pl_getshuffle()) {
            $pl_shuffle = "enabled";
        } else {
            $pl_shuffle = "disabled";
        }
        if ($ngwc->pl_getrepeat()) {
            $pl_repeat = "enabled";
        } else {
            $pl_repeat = "disabled";
        }
        // retrieve current song name
        $pl_curname = $ngwc->pl_getnames($pl_pos);
        $pl_curname = $pl_curname[0];
        $pl_curfile = $ngwc->pl_getfiles($pl_pos);
        $pl_curfile = $pl_curfile[0];
        // Output infos
        ?>
<P>&nbsp;</P>
<P CLASS="bold title">INFOS</P>
<P>
playing name : <SPAN CLASS="bold italic"><?php 
        echo $pl_curname;
        ?>
</SPAN><BR>
playing file : <SPAN CLASS="bold italic"><?php 
        echo $pl_curfile;
        ?>