コード例 #1
0
ファイル: action.php プロジェクト: Rapiddot/ruTorrent
         $checkTitle = $_REQUEST['chktitle'];
     }
     if (isset($_REQUEST['chkdesc'])) {
         $checkDesc = $_REQUEST['chkdesc'];
     }
     if (isset($_REQUEST['chklink'])) {
         $checkLink = $_REQUEST['chklink'];
     }
     if (isset($_REQUEST['directory'])) {
         $dir = $_REQUEST['directory'];
     }
     if (isset($_REQUEST['label'])) {
         $label = $_REQUEST['label'];
     }
     $filter = new rRSSFilter('', $pattern, $exclude, 1, '', 0, 1, $dir, $label, $checkTitle, $checkDesc, $checkLink);
     $val = $mngr->testFilter($filter, $hash);
     $errorsReported = true;
     break;
 case "setfilters":
     if (!isset($HTTP_RAW_POST_DATA)) {
         $HTTP_RAW_POST_DATA = file_get_contents("php://input");
     }
     $flts = new rRSSFilterList();
     $flt = null;
     if (isset($HTTP_RAW_POST_DATA)) {
         $vars = explode('&', $HTTP_RAW_POST_DATA);
         foreach ($vars as $var) {
             $parts = explode("=", $var);
             if ($parts[0] == "name") {
                 if ($flt) {
                     $flts->add($flt);