示例#1
0
         }
     }
     break;
 case 'addtemplist':
     if (frm_isset('selids')) {
         $fl = explode(';', frm_get('selids'));
         $ids = retrievesids($fl);
         $kpx = new swfront();
         $kpx->write($ids);
     }
     break;
 case 'playselected':
     if (frm_isset('filestoarc')) {
         $fl = explode(';', frm_get('filestoarc'));
         $ids = retrievesids($fl);
         $kpx = new swfront();
         $kpx->write($ids);
         $kpx->flashhtml();
     }
     break;
 case 'dlall':
     if (ALLOWDOWNLOAD && $cfg['archivemode'] && db_guinfo('u_allowdownload') && db_guinfo('allowarchive') && frm_isset('p') && frm_ok('d', 1)) {
         $kpdir = new kpdir();
         $kpdir->setpwd(base64_decode(frm_get('p')));
         $kpdir->setdrive(frm_get('d', 1));
         if ($kpdir->determine()) {
             $res = $kpdir->filesql();
             if ($res) {
                 $kpa = new kparchiver();
                 while ($row = db_fetch_assoc($res)) {
                     $kpa->setfile($row['id']);