Ejemplo n.º 1
0
     }
     if (!isset($HTTP_RAW_POST_DATA)) {
         $HTTP_RAW_POST_DATA = file_get_contents("php://input");
     }
     $rssList = array();
     if (isset($HTTP_RAW_POST_DATA)) {
         $vars = explode('&', $HTTP_RAW_POST_DATA);
         foreach ($vars as $var) {
             $parts = explode("=", $var);
             if ($parts[0] == "rss") {
                 $rssList[] = $parts[1];
             }
         }
     }
     if (isset($_REQUEST['hash']) && $_REQUEST['hash'] != "") {
         $mngr->changeGroup($_REQUEST['hash'], $lbl, $rssList);
     } else {
         $mngr->addGroup($lbl, $rssList);
     }
     break;
 case "edit":
     $lbl = "RSS Group";
     if (isset($_REQUEST['label']) && $_REQUEST['label'] != "") {
         $lbl = $_REQUEST['label'];
     }
     if (isset($_REQUEST['rss']) && isset($_REQUEST['url'])) {
         $mngr->change($_REQUEST['rss'], $_REQUEST['url'], $lbl);
     }
     break;
 case "clearhistory":
     $mngr->clearHistory();