'404.php' )); Registry::set('routes', array( array( 'regexp' => ' /^ ((tag|user)\/([^\/]+)\/)? ((recent|toprated|popular|unsolved)\/)? (page-(\d+))? $/ix ', 'path' => 'index.php', 'params' => array( 'action' => 'index', 2 => 'filter', 3 => 'filterValue', 5 => 'sortBy', 7 => 'page', ) ), array( 'regexp' => '/^add$/i', 'path' => 'add.php', ), array( 'regexp' => '/^search$/i', 'path' => 'search.php', ), array( 'regexp' => '/^question\/(\d+)$/i', 'path' => 'question.php', 'params' => array( 1 => 'id' ) ), array( 'regexp' => '/^edit\/(\d+)$/i', 'path' => 'edit.php', 'params' => array( 1 => 'id' ) ), array( 'regexp' => '/^question\/(\d+)\/(voteUp|voteDown)$/i', 'path' => 'questionVote.php', 'params' => array( 1 => 'id', 2 => 'action', ) ), array( 'regexp' => '/^question\/(\d+)\/acceptAnswer$/i', 'path' => 'acceptAnswer.php', 'params' => array( 1 => 'id', ) ), array( 'regexp' => '/^answer\/(\d+)\/(voteUp|voteDown)$/i', 'path' => 'answerVote.php', 'params' => array( 1 => 'id', 2 => 'action', ) ), array( 'regexp' => '/^deleteQuestion$/i', 'path' => 'deleteQuestion.php', ), array( 'regexp' => '/^tagsAutocomplete$/i', 'path' => 'tagsAutocomplete.php', ), array( 'regexp' => '/^addAnswer$/i', 'path' => 'addAnswer.php', ), array( 'regexp' => '/^editAnswer$/i', 'path' => 'editAnswer.php', ), array( 'regexp' => '/^deleteAnswer$/i', 'path' => 'deleteAnswer.php', ), array( 'regexp' => '/^refreshAnswers$/i', 'path' => 'refreshAnswers.php', ), )); $dispatcher = new Dispatcher; $dispatcher->dispatch(); ?>