2008-07-25 08:26:05 +00:00
|
|
|
<?php
|
|
|
|
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# This file is part of InDefero, an open source project management application.
|
2011-04-02 19:37:07 +00:00
|
|
|
# Copyright (C) 2008-2011 Céondo Ltd and contributors.
|
2008-07-25 08:26:05 +00:00
|
|
|
#
|
2008-07-25 08:28:35 +00:00
|
|
|
# InDefero is free software; you can redistribute it and/or modify
|
2008-07-25 08:26:05 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
2008-07-25 08:28:35 +00:00
|
|
|
# InDefero is distributed in the hope that it will be useful,
|
2008-07-25 08:26:05 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
$ctl = array();
|
|
|
|
$base = Pluf::f('idf_base');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'index');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/login/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
2008-08-02 07:48:35 +00:00
|
|
|
'method' => 'login',
|
|
|
|
'name' => 'login_view');
|
2008-07-25 08:26:05 +00:00
|
|
|
|
2008-08-12 20:17:49 +00:00
|
|
|
$ctl[] = array('regex' => '#^/preferences/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'myAccount');
|
|
|
|
|
2008-12-05 19:37:24 +00:00
|
|
|
$ctl[] = array('regex' => '#^/dashboard/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'dashboard',
|
|
|
|
'name' => 'idf_dashboard');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/dashboard/submitted/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'dashboard',
|
|
|
|
'params' => false,
|
|
|
|
'name' => 'idf_dashboard_submit');
|
|
|
|
|
2008-08-12 20:17:49 +00:00
|
|
|
$ctl[] = array('regex' => '#^/u/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'view');
|
|
|
|
|
2008-07-25 08:26:05 +00:00
|
|
|
$ctl[] = array('regex' => '#^/logout/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'logout');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/help/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
2010-05-10 08:11:27 +00:00
|
|
|
'method' => 'faq',
|
|
|
|
'name' => 'idf_faq');
|
2008-07-25 08:26:05 +00:00
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
2008-07-26 16:42:41 +00:00
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'home');
|
2011-05-27 22:48:24 +00:00
|
|
|
|
2011-04-06 13:33:26 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/logo/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'logo');
|
2008-07-25 08:26:05 +00:00
|
|
|
|
2010-10-09 11:53:01 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/timeline/(\w+)/$#',
|
2008-11-14 14:41:51 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'timeline');
|
|
|
|
|
2010-10-09 11:53:01 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/feed/timeline/(\w+)/$#',
|
2008-12-03 14:00:47 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'timelineFeed',
|
|
|
|
'name' => 'idf_project_timeline_feed');
|
|
|
|
|
2010-10-09 11:53:01 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/feed/timeline/(\w+)/token/(.*)/$#',
|
2008-12-03 14:00:47 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'timelineFeed',
|
|
|
|
'name' => 'idf_project_timeline_feed_auth');
|
|
|
|
|
2011-03-15 21:54:35 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/timeline/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'timelineCompat');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/feed/timeline/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'timelineFeedCompat',
|
|
|
|
'name' => 'idf_project_timeline_feed');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/feed/timeline/token/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'timelineFeedCompat',
|
|
|
|
'name' => 'idf_project_timeline_feed_auth');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'index');
|
2011-10-02 23:54:01 +00:00
|
|
|
|
2011-06-15 07:11:47 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/summary/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'summary');
|
2008-07-25 08:26:05 +00:00
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/search/$#',
|
2008-08-13 16:26:36 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'search');
|
|
|
|
|
2011-10-02 23:54:01 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/search/status/(\w+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'searchStatus');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/search/label/(\d+)/(\w+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'searchLabel');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/(\d+)/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'view');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/(\d+)/star/$#',
|
2008-08-12 10:46:09 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'star');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/status/(\w+)/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'listStatus');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/label/(\d+)/(\w+)/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'listLabel');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/create/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'create');
|
|
|
|
|
2011-10-03 08:00:35 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/(.*)/(\w+)/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
2011-10-04 08:05:42 +00:00
|
|
|
'method' => 'userIssues');
|
2008-07-25 08:26:05 +00:00
|
|
|
|
2008-11-12 19:40:58 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/attachment/(\d+)/(.*)$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'getAttachment');
|
|
|
|
|
2008-12-30 17:00:59 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/view/attachment/(\d+)/(.*)$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'viewAttachment');
|
|
|
|
|
2011-01-05 16:02:06 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/watchlist/(\w+)$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'watchList');
|
2011-03-15 21:54:35 +00:00
|
|
|
|
2011-01-05 16:02:06 +00:00
|
|
|
$ctl[] = array('regex' => '#^/watchlist/(\w+)$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'forgeWatchList');
|
2011-03-15 21:54:35 +00:00
|
|
|
|
2011-05-10 14:21:29 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/issues/autocomplete/(\d*)$#',
|
2011-05-09 11:52:09 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Issue',
|
|
|
|
'method' => 'autoCompleteIssueList');
|
|
|
|
|
2008-08-29 17:50:10 +00:00
|
|
|
// ---------- SCM ----------------------------------------
|
2008-07-26 16:42:41 +00:00
|
|
|
|
2009-01-22 10:12:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/help/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'help');
|
|
|
|
|
2010-09-01 13:13:52 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/invalid/([^/]+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'invalidRevision');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/disambiguate/([^/]+)/from/([^/]+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'disambiguateRevision');
|
|
|
|
|
2008-11-23 13:41:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/tree/([^/]+)/$#',
|
2008-07-26 16:42:41 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'treeBase');
|
|
|
|
|
2008-11-23 13:41:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/tree/([^/]+)/(.*)$#',
|
2008-07-26 16:42:41 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'tree');
|
|
|
|
|
2008-11-23 13:41:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/changes/([^/]+)/$#',
|
2008-07-26 23:31:10 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'changeLog');
|
|
|
|
|
2008-11-23 13:41:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/commit/([^/]+)/$#',
|
2008-07-28 20:09:17 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'commit');
|
|
|
|
|
2008-11-25 19:11:09 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/ddiff/([^/]+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'downloadDiff');
|
|
|
|
|
2008-11-23 13:41:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/download/([^/]+)/$#',
|
2008-08-02 11:51:42 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'download');
|
|
|
|
|
2008-11-23 13:41:41 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/file/([^/]+)/(.*)$#',
|
2008-11-11 21:32:01 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Source',
|
|
|
|
'method' => 'getFile');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/treerev/$#',
|
2008-08-29 17:50:10 +00:00
|
|
|
'base' => $base,
|
2008-09-12 10:32:27 +00:00
|
|
|
'model' => 'IDF_Views_Source_Svn',
|
2008-08-29 17:50:10 +00:00
|
|
|
'method' => 'treeRev');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/changesrev/$#',
|
2008-08-29 17:50:10 +00:00
|
|
|
'base' => $base,
|
2008-09-12 10:32:27 +00:00
|
|
|
'model' => 'IDF_Views_Source_Svn',
|
2008-08-29 17:50:10 +00:00
|
|
|
'method' => 'changelogRev');
|
|
|
|
|
2008-11-22 22:51:23 +00:00
|
|
|
// ---------- WIKI -----------------------------------------
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'index');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/create/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'create');
|
|
|
|
|
2008-11-25 19:32:33 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/search/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'search');
|
|
|
|
|
2008-11-25 20:07:51 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/label/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'listLabel');
|
|
|
|
|
2008-11-22 22:51:23 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/update/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'update');
|
|
|
|
|
2008-11-23 11:33:11 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/delrev/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'deleteRev');
|
|
|
|
|
2010-02-19 10:46:43 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/doc/delete/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'delete');
|
|
|
|
|
2008-11-22 22:51:23 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/page/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Wiki',
|
|
|
|
'method' => 'view');
|
|
|
|
|
2008-08-06 19:54:45 +00:00
|
|
|
// ---------- Downloads ------------------------------------
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/$#',
|
2008-08-03 22:42:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'index');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/label/(\d+)/$#',
|
2008-08-06 19:54:45 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'listLabel');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/(\d+)/$#',
|
2008-08-03 22:42:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'view');
|
|
|
|
|
2011-05-27 22:48:24 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/get/(.+)$#',
|
2008-08-05 13:44:27 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'download');
|
|
|
|
|
2011-05-27 22:48:24 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/(\d+)/get/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'downloadById');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/create/$#',
|
2008-08-03 22:42:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'submit');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/downloads/(\d+)/delete/$#',
|
2008-08-08 19:33:10 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Download',
|
|
|
|
'method' => 'delete');
|
|
|
|
|
2008-11-30 09:26:05 +00:00
|
|
|
// ---------- CODE REVIEW --------------------------------
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/review/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Review',
|
|
|
|
'method' => 'index');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/review/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Review',
|
|
|
|
'method' => 'view');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/review/create/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Review',
|
|
|
|
'method' => 'create');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/review/getpatch/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Review',
|
|
|
|
'method' => 'getPatch');
|
|
|
|
|
2008-07-26 16:42:41 +00:00
|
|
|
|
|
|
|
// ---------- ADMIN --------------------------------------
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'admin');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/issues/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'adminIssues');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/downloads/$#',
|
2008-08-03 22:42:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'adminDownloads');
|
|
|
|
|
2008-11-22 22:51:23 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/wiki/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'adminWiki');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/source/$#',
|
2008-09-02 14:45:49 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'adminSource');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/members/$#',
|
2008-07-25 08:26:05 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'adminMembers');
|
|
|
|
|
2008-09-04 15:19:53 +00:00
|
|
|
$ctl[] = array('regex' => '#^/p/([\-\w]+)/admin/tabs/$#',
|
2008-08-07 13:35:03 +00:00
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Project',
|
|
|
|
'method' => 'adminTabs');
|
|
|
|
|
2008-11-21 19:33:39 +00:00
|
|
|
// ---------- API ----------------------------------------
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/help/api/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'faqApi');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/api/p/([\-\w]+)/issues/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Api',
|
|
|
|
'method' => 'issuesIndex');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/api/p/([\-\w]+)/issues/create/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Api',
|
|
|
|
'method' => 'issueCreate');
|
|
|
|
|
2011-03-07 14:01:51 +00:00
|
|
|
$ctl[] = array('regex' => '#^/api/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Api',
|
|
|
|
'method' => 'projectIndex');
|
|
|
|
|
2008-11-30 23:36:27 +00:00
|
|
|
// ---------- FORGE ADMIN --------------------------------
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/admin/projects/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'projects');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/admin/projects/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'projectUpdate');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/admin/projects/create/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'projectCreate');
|
|
|
|
|
2009-02-27 09:42:18 +00:00
|
|
|
$ctl[] = array('regex' => '#^/admin/projects/(\d+)/delete/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'projectDelete');
|
|
|
|
|
2009-01-02 10:20:10 +00:00
|
|
|
$ctl[] = array('regex' => '#^/admin/users/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'users');
|
|
|
|
|
2010-02-24 09:43:28 +00:00
|
|
|
$ctl[] = array('regex' => '#^/admin/users/create/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'userCreate');
|
|
|
|
|
2009-01-02 10:38:35 +00:00
|
|
|
$ctl[] = array('regex' => '#^/admin/users/notvalid/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'usersNotValidated');
|
|
|
|
|
2009-01-02 10:20:10 +00:00
|
|
|
$ctl[] = array('regex' => '#^/admin/users/(\d+)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'userUpdate');
|
|
|
|
|
2010-08-29 23:01:25 +00:00
|
|
|
if (Pluf::f("mtn_usher_conf", null) !== null)
|
2010-08-07 21:28:13 +00:00
|
|
|
{
|
|
|
|
$ctl[] = array('regex' => '#^/admin/usher/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'usher');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/admin/usher/control/(.*)$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'usherControl');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/admin/usher/server/(.+)/control/(.+)$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'usherServerControl');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/admin/usher/server/(.+)/connections/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_Admin',
|
|
|
|
'method' => 'usherServerConnections');
|
|
|
|
}
|
|
|
|
|
2009-01-01 20:50:16 +00:00
|
|
|
// ---------- UTILITY VIEWS -------------------------------
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/register/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'register');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/register/k/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'registerConfirmation');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/register/ik/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'registerInputKey');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/password/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'passwordRecoveryAsk');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/password/ik/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'passwordRecoveryInputCode');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/password/k/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views',
|
|
|
|
'method' => 'passwordRecovery');
|
|
|
|
|
2009-01-29 17:44:39 +00:00
|
|
|
$ctl[] = array('regex' => '#^/preferences/email/ik/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'changeEmailInputKey');
|
|
|
|
|
|
|
|
$ctl[] = array('regex' => '#^/preferences/email/ak/(.*)/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'changeEmailDo');
|
|
|
|
|
2011-02-20 22:57:48 +00:00
|
|
|
$ctl[] = array('regex' => '#^/preferences/email/(\d+)/delete/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'deleteMail');
|
|
|
|
|
2010-02-22 21:27:31 +00:00
|
|
|
$ctl[] = array('regex' => '#^/preferences/key/(\d+)/delete/$#',
|
|
|
|
'base' => $base,
|
|
|
|
'model' => 'IDF_Views_User',
|
|
|
|
'method' => 'deleteKey');
|
|
|
|
|
|
|
|
|
2008-07-25 08:26:05 +00:00
|
|
|
return $ctl;
|