$valuser->set('orsearch', 0); } if (frm_isset('onlyid3')) { $valuser->set('defaultid3', 1); } else { $valuser->set('defaultid3', 0); } if (frm_ok('hitsas', 2)) { $valuser->set('hitsas', frm_get('hitsas', 2)); } if (frm_ok('searchwh', 1)) { $valuser->set('defaultsearch', frm_get('searchwh', 1)); } $valuser->update(); $kps = new kpsearch(); if (frm_isset('searchtext') && strlen(frm_get('searchtext')) > 0 && is_array($kps->getwords($kps->what))) { $kps->gensearchsql(); $kpd = new kpdesign(); $kpd->top(true, get_lang(5)); $kps->viewsearch(); $nv = new navi(2, $kps->rows, true); $nv->writenavi(); $kps->endsearch(); $kpd->bottom(); } else { $match = false; } break; case 'playlist': if (frm_isset('editplaylist') || frm_isset('viewplaylist')) { if (frm_ok('sel_playlist', 1)) {
$valuser->set('orsearch', 0); } if (fruserset('onlyid3')) { $valuser->set('defaultid3', 1); } else { $valuser->set('defaultid3', 0); } if (fruserset('hitsas')) { $valuser->set('hitsas', verchar(fruser('hitsas'))); } if (fruserset('searchwh')) { $valuser->set('defaultsearch', vernum(fruser('searchwh'))); } $valuser->update(); $kps = new kpsearch(); if (fruserset('searchfor') && !fruserempty('searchfor') && is_array($kps->getwords($kps->what))) { $kps->gensearchsql(); $kpd = new kpdesign(); $kpd->top(true, get_lang(5)); $kps->viewsearch(); $nv = new navi(2, $kps->rows, true); $nv->writenavi(); $kps->endsearch(); $kpd->bottom(); } else { $match = false; } break; case 'playlist': if (isset($_POST['editplaylist']) || isset($_POST['viewplaylist'])) { playlist_editor($_POST['sel_playlist'], $_POST['previous']);