Ejemplo n.º 1
0
         $multi_mode = false;
     } catch (ADEIException $ae) {
         if ($_GET['db_server'] || $_GET['db_name'] || $_GET['db_group']) {
             throw $ae;
         }
         $multi_mode = true;
     }
     try {
         $cache = new CACHEDB();
         $flags = REQUEST::NEED_ITEMINFO | REQUEST::NEED_INFO | CACHE::TABLE_INFO;
         if ($multi_mode) {
             $info = $cache->GetCacheList($flags);
         } else {
             $info = array();
             $postfix = $cache->GetCachePostfix($req->props['db_group'], $req->props['db_name'], $req->props['db_server']);
             $info[0] = $cache->GetExtendedCacheInfo($postfix, $flags);
         }
     } catch (ADEIException $ex) {
         $ex->logInfo(NULL, $req);
         $error = xml_escape($ex->getInfo());
     }
     break;
 case "log":
     try {
         $cur = time();
         $interval = $_REQUEST['interval'];
         $filter = json_decode(stripslashes($_REQUEST['filter']), true);
         if (isset($_REQUEST['priority'])) {
             $priority = $_REQUEST['priority'];
         } else {
             $priority = LOG_ERR;