/** * indexDispatch */ function compat_tf_indexDispatch() { // dispatcher-functions require_once "inc/functions/functions.dispatcher.php"; // start if (isset($_REQUEST['torrent'])) { dispatcher_startTransfer(urldecode(tfb_getRequestVar('torrent'))); } // stop if (isset($_REQUEST["kill_torrent"])) { dispatcher_stopTransfer(urldecode(tfb_getRequestVar('kill_torrent'))); } // del if (isset($_REQUEST['delfile'])) { dispatcher_deleteTransfer(urldecode(tfb_getRequestVar('delfile'))); } // deQueue if (isset($_REQUEST["QEntry"])) { dispatcher_deQueueTransfer(urldecode(tfb_getRequestVar('QEntry'))); } // get torrent via url if (isset($_REQUEST['url_upload'])) { dispatcher_processDownload(tfb_getRequestVarRaw('url_upload'), 'torrent'); } // file upload if (isset($_FILES['upload_file']) && !empty($_FILES['upload_file']['name'])) { compat_tf_processUpload(); } }
dispatcher_deQueueTransfer(urldecode(tfb_getRequestVar('transfer'))); break; case "setFilePriority": dispatcher_setFilePriority(urldecode(tfb_getRequestVar('transfer'))); break; /******************************************************************************* * injects ******************************************************************************/ /******************************************************************************* * injects ******************************************************************************/ case "fileUpload": dispatcher_processUpload(); break; case "urlUpload": dispatcher_processDownload(tfb_getRequestVarRaw('url'), tfb_getRequestVar('type')); break; case "wget": dispatcher_injectWget(tfb_getRequestVarRaw('url')); break; /******************************************************************************* * metafile-download ******************************************************************************/ /******************************************************************************* * metafile-download ******************************************************************************/ case "metafileDownload": dispatcher_sendMetafile(tfb_getRequestVar('transfer')); break; /******************************************************************************* * set