// 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 { $pl_shuffle = "disabled"; } if ($ngwc->pl_getrepeat()) { $pl_repeat = "enabled"; } else { $pl_repeat = "disabled";