} if (strlen($sn_pos) > 0) { $ngwc->sn_setpos($sn_pos); } } } // playlist requests if (strcmp($action, "playlist") == 0) { if (strcmp($pl_op, "randomize") == 0) { $ngwc->pl_randomize(); } if (strcmp($pl_op, "sort by path") == 0) { $ngwc->pl_sortbypath(); } if (strcmp($pl_op, "sort by title") == 0) { $ngwc->pl_sortbyname(); } if (strcmp($pl_op, "remove deads") == 0) { $ngwc->pl_removedead(); } if (strcmp($pl_op, "clear") == 0) { $ngwc->pl_clear(); } } // retrieve playlist infos $tmp = $ngwc->pl_getpos(); $pl_pos = $tmp['index']; $pl_length = $tmp['length']; if ($ngwc->pl_getshuffle()) { $pl_shuffle = "enabled"; } else {