2005-06-10 07:58:46 +04:00
|
|
|
<?php
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Reporter (r.m.o).
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Robert Accettura <robert@accettura.com>.
|
|
|
|
*
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2004
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
/**************************************
|
|
|
|
* I need to be renamed config.inc.php
|
|
|
|
* once the below is correct
|
|
|
|
**************************************/
|
|
|
|
|
|
|
|
// Debug
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['debug'] = false;
|
2005-06-10 07:58:46 +04:00
|
|
|
|
2006-01-21 06:06:36 +03:00
|
|
|
// Service Active
|
|
|
|
$config['service_active'] = true; // true=on | false=off
|
|
|
|
|
2006-01-26 06:14:01 +03:00
|
|
|
// Screenshot Formats
|
|
|
|
$config['screenshot_imageTypes'] = array('png' => 'image/png',
|
|
|
|
'jpg' => 'image/jpeg');
|
|
|
|
|
|
|
|
// Turn on WSDL??
|
|
|
|
$config['use_wsdl'] = false;
|
|
|
|
|
2005-06-10 07:58:46 +04:00
|
|
|
// Paths
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['base_url'] = 'http://reporter.server.tld'; // no trailing slash
|
|
|
|
$config['base_path'] = '/path/to/reporter'; // no trailing slash
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
// Database
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['db_type'] = 'mysql';
|
|
|
|
$config['db_server'] = 'SERVER';
|
|
|
|
$config['db_user'] = 'USERNAME';
|
|
|
|
$config['db_pass'] = 'PASSWORD';
|
|
|
|
$config['db_database'] = 'DATABASE';
|
|
|
|
$config['db_dsn'] = $config['db_type'].'://'.$config['db_user'].':'.$config['db_pass'].'@'.$config['db_server'].'/'.$config['db_database'];
|
2005-06-10 07:58:46 +04:00
|
|
|
|
2006-01-20 07:48:19 +03:00
|
|
|
// Theme
|
|
|
|
$config['theme'] = 'mozilla';
|
|
|
|
|
2005-06-10 07:58:46 +04:00
|
|
|
// Smarty Configurations
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['smarty_template_directory'] = $config['base_path'].'/templates/';
|
|
|
|
$config['smarty_compile_dir'] = '/tmp';
|
|
|
|
$config['smarty_cache_dir'] = '';
|
|
|
|
$config['smarty_compile_check'] = true;
|
|
|
|
$config['smarty_debug'] = false;
|
2005-06-10 07:58:46 +04:00
|
|
|
|
2005-12-01 08:03:25 +03:00
|
|
|
// Privacy Policy
|
|
|
|
$config['privacy_policy_web'] = 'http://www.mozilla.com/privacy-policy.html';
|
|
|
|
$config['privacy_policy_inline'] = 'http://reporter.mozilla.org/privacy/privacy-policy.html';
|
|
|
|
|
2005-06-10 07:58:46 +04:00
|
|
|
// Service
|
|
|
|
/**********************************************************
|
|
|
|
* If using reporter in a corporate environment, you can
|
|
|
|
* set reporter as a proxy, so that all reports that match
|
|
|
|
* a regular exression are forwarded to your database, and
|
|
|
|
* the rest go outwards to the main reporter.mozilla.org
|
|
|
|
* instance
|
|
|
|
***********************************************************/
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['proxy'] = false;
|
2005-06-10 07:58:46 +04:00
|
|
|
/**********************************************************
|
|
|
|
* if this statement evaluates to true, it uses the local
|
|
|
|
* instance, otherwise it goes to reporter.mozilla.org.
|
|
|
|
* You can have as many as you want (though less is better),
|
|
|
|
* sequentially number the array $config['proxy_regex'][0],
|
|
|
|
* $config['proxy_regex'][1], etc.
|
|
|
|
************************************************************/
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['proxy_regex'][0] = '';
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
// should we gzip encode (more cpu, less bandwidth) XX-> Not implemented
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['gzip'] = false;
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
// minimum version to allow to contact the service
|
2005-06-10 08:31:15 +04:00
|
|
|
$config['min_vers'] = '0.2';
|
2005-06-10 07:58:46 +04:00
|
|
|
|
2006-02-11 23:16:25 +03:00
|
|
|
// current product family
|
|
|
|
$config['current_product_family'] = 'Firefox/1.5';
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
// How many items to show by default
|
|
|
|
$config['show'] = 25;
|
2006-01-20 01:30:32 +03:00
|
|
|
$config['max_show'] = 200;
|
|
|
|
|
|
|
|
// Max items to remember for next/prev navigation
|
|
|
|
$config['max_nav_count'] = 2000;
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
// Field Names, and how they should appear in the UI
|
|
|
|
$config['fields']['report_id'] = 'Report ID';
|
|
|
|
$config['fields']['report_url'] = 'URL';
|
|
|
|
$config['fields']['host_url'] = 'Host';
|
|
|
|
$config['fields']['host_hostname'] = 'Hostname';
|
|
|
|
$config['fields']['report_problem_type'] = 'Problem Type';
|
|
|
|
$config['fields']['report_behind_login'] = 'Behind Login';
|
|
|
|
$config['fields']['report_product'] = 'Product';
|
|
|
|
$config['fields']['report_gecko'] = 'Gecko';
|
|
|
|
$config['fields']['report_useragent'] = 'User Agent';
|
|
|
|
$config['fields']['report_buildconfig'] = 'Build Config';
|
|
|
|
$config['fields']['report_platform'] = 'Platform';
|
|
|
|
$config['fields']['report_oscpu'] = 'OSCPU';
|
|
|
|
$config['fields']['report_language'] = 'Language';
|
2006-11-25 05:47:57 +03:00
|
|
|
$config['fields']['report_charset'] = 'Charset';
|
2005-06-10 07:58:46 +04:00
|
|
|
$config['fields']['report_file_date'] = 'File Date';
|
|
|
|
$config['fields']['report_email'] = 'Email';
|
|
|
|
$config['fields']['report_ip'] = 'IP';
|
|
|
|
$config['fields']['report_description'] = 'Description';
|
2006-06-06 00:13:13 +04:00
|
|
|
$config['fields']['report_file_date'] = 'Report File Date';
|
2005-06-10 07:58:46 +04:00
|
|
|
|
2006-06-06 00:13:13 +04:00
|
|
|
$config['unselectablefields'] = array('host_url', 'report_email', 'report_ip');
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************/
|
|
|
|
// Shouldn't need to touch this
|
|
|
|
/*****************************/
|
|
|
|
$config['self'] = 'http://' . $_SERVER['SERVER_NAME'] . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/')) . '/';
|
|
|
|
|
|
|
|
$boolTypes[-1] = '--';
|
|
|
|
$boolTypes[0] = 'No';
|
|
|
|
$boolTypes[1] = 'Yes';
|
|
|
|
|
|
|
|
//$problemTypes[0] = '--';
|
|
|
|
$problemTypes[1] = 'Browser not supported';
|
|
|
|
$problemTypes[2] = 'Can\'t log in';
|
|
|
|
$problemTypes[3] = 'Plugin not shown';
|
|
|
|
$problemTypes[4] = 'Other content missing';
|
|
|
|
$problemTypes[5] = 'Behavior wrong';
|
|
|
|
$problemTypes[6] = 'Appearance wrong';
|
|
|
|
$problemTypes[7] = 'Other problem';
|
2006-07-22 07:18:15 +04:00
|
|
|
$problemTypes[8] = 'Disability access';
|
2005-06-10 07:58:46 +04:00
|
|
|
|
|
|
|
?>
|