зеркало из https://github.com/mozilla/pjs.git
- got rid of some extra routes
- added some defaults that the rest of the pages need
This commit is contained in:
Родитель
60f7fabc93
Коммит
4a678ad33f
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
/* SVN FILE: $Id: bootstrap.php,v 1.1 2006-05-24 19:14:24 uid815 Exp $ */
|
||||
/* SVN FILE: $Id: bootstrap.php,v 1.2 2006-06-29 21:37:53 wclouser%mozilla.com Exp $ */
|
||||
|
||||
/**
|
||||
* Short description for file.
|
||||
|
@ -22,9 +22,9 @@
|
|||
* @package cake
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP v 0.10.8.2117
|
||||
* @version $Revision: 1.1 $
|
||||
* @version $Revision: 1.2 $
|
||||
* @modifiedby $LastChangedBy: phpnut $
|
||||
* @lastmodified $Date: 2006-05-24 19:14:24 $
|
||||
* @lastmodified $Date: 2006-06-29 21:37:53 $
|
||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||
*/
|
||||
|
||||
|
@ -46,5 +46,27 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Default application. If there isn't something in $_GET we'll fall back on this.
|
||||
* 1) Make sure this thing exists in the database
|
||||
* 2) This isn't escaped at all when used in SQL queries. If a single quote appears
|
||||
* in an application name in the future and you need to use it here, be sure to
|
||||
* escape it.
|
||||
*/
|
||||
define('DEFAULT_APP_NAME','Mozilla Firefox');
|
||||
|
||||
define('DEFAULT_APP_VERSION','1.5');
|
||||
|
||||
/**
|
||||
* We are adding applications dynamically based on the URL. If a version of firefox
|
||||
* comes in that we haven't dealt with yet, we want to ask a default set of
|
||||
* questions (rather than just a comment box). This is that default set. Same
|
||||
* rules apply as the default application above.
|
||||
*/
|
||||
define('DEFAULT_FIREFOX_INTENTION_SET_ID','2');
|
||||
define('DEFAULT_FIREFOX_ISSUE_SET_ID','1');
|
||||
define('DEFAULT_THUNDERBIRD_INTENTION_SET_ID','4');
|
||||
define('DEFAULT_THUNDERBIRD_ISSUE_SET_ID','3');
|
||||
|
||||
//EOF
|
||||
?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
/* SVN FILE: $Id: routes.php,v 1.1 2006-05-24 19:14:24 uid815 Exp $ */
|
||||
/* SVN FILE: $Id: routes.php,v 1.2 2006-06-29 21:37:53 wclouser%mozilla.com Exp $ */
|
||||
|
||||
/**
|
||||
* Short description for file.
|
||||
|
@ -24,9 +24,9 @@
|
|||
* @package cake
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision: 1.1 $
|
||||
* @version $Revision: 1.2 $
|
||||
* @modifiedby $LastChangedBy: phpnut $
|
||||
* @lastmodified $Date: 2006-05-24 19:14:24 $
|
||||
* @lastmodified $Date: 2006-06-29 21:37:53 $
|
||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||
*/
|
||||
|
||||
|
@ -40,12 +40,12 @@ $Route->connect ('/', array('controller'=>'results', 'action'=>'', ''));
|
|||
/**
|
||||
* ...and connect the rest of 'Pages' controller's urls.
|
||||
*/
|
||||
$Route->connect ('/pages/*', array('controller'=>'pages', 'action'=>'display'));
|
||||
//$Route->connect ('/pages/*', array('controller'=>'pages', 'action'=>'display'));
|
||||
|
||||
/**
|
||||
* Then we connect url '/test' to our test controller. This is helpfull in
|
||||
* developement.
|
||||
*/
|
||||
$Route->connect ('/tests', array('controller'=>'tests', 'action'=>'index'));
|
||||
//$Route->connect ('/tests', array('controller'=>'tests', 'action'=>'index'));
|
||||
|
||||
?>
|
||||
|
|
Загрузка…
Ссылка в новой задаче