define('DATA_TRACKBACK_APPROVED', false); } elseif ($res[1] == 'trackback' && serendipity_approveComment($res[2], $res[3])) { define('DATA_COMMENT_APPROVED', false); define('DATA_TRACKBACK_APPROVED', sprintf(TRACKBACK_APPROVED, $res[2])); } } else { define('DATA_COMMENT_APPROVED', false); define('DATA_TRACKBACK_APPROVED', false); } if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range']) && is_numeric($serendipity['GET']['range'])) { serveArchives(); } else { if (preg_match(PAT_PERMALINK, $uri, $matches) || preg_match(PAT_COMMENTSUB, $uri, $matches) || isset($serendipity['GET']['id']) || isset($_GET['p'])) { serveEntry($matches); } elseif (preg_match(PAT_PERMALINK_FEEDCATEGORIES, $uri, $matches) || preg_match(PAT_PERMALINK_FEEDAUTHORS, $uri, $matches) || preg_match(PAT_FEEDS, $uri)) { serveFeed(); exit; } else { if (preg_match(PAT_PLUGIN, $uri, $matches)) { servePlugin($matches); exit; } else { if (preg_match(PAT_ADMIN, $uri)) { gotoAdmin(); exit; } else { if (preg_match(PAT_ARCHIVE, $uri)) { serveArchive(); } else { if (isset($serendipity['POST']['isMultiCat']) && is_array($serendipity['POST']['multiCat']) || preg_match(PAT_PERMALINK_CATEGORIES, $uri, $matches)) { serveCategory($matches);
define('DATA_TRACKBACK_APPROVED', false); } elseif ($res[1] == 'trackback' && serendipity_approveComment($res[2], $res[3])) { define('DATA_COMMENT_APPROVED', false); define('DATA_TRACKBACK_APPROVED', sprintf(TRACKBACK_APPROVED, $res[2])); } } else { define('DATA_COMMENT_APPROVED', false); define('DATA_TRACKBACK_APPROVED', false); } if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range']) && is_numeric($serendipity['GET']['range'])) { serveArchives(); } else { if (preg_match(PAT_PERMALINK, $uri, $matches) || preg_match(PAT_COMMENTSUB, $uri, $matches) || isset($serendipity['GET']['id']) || isset($_GET['p'])) { serveEntry($matches); } elseif (preg_match(PAT_PERMALINK_FEEDCATEGORIES, $uri, $matches) || preg_match(PAT_PERMALINK_FEEDAUTHORS, $uri, $matches) || preg_match(PAT_FEEDS, $uri)) { serveFeed($matches); exit; } else { if (preg_match(PAT_PLUGIN, $uri, $matches)) { servePlugin($matches); exit; } else { if (preg_match(PAT_ADMIN, $uri)) { gotoAdmin(); exit; } else { if (preg_match(PAT_ARCHIVE, $uri)) { serveArchive(); } else { if (isset($serendipity['POST']['isMultiCat']) && is_array($serendipity['POST']['multiCat']) || preg_match(PAT_PERMALINK_CATEGORIES, $uri, $matches)) { serveCategory($matches);