Commit dd75d033 authored by cividesk's avatar cividesk

Move JIRA credentials to config file.

parent 66694c55
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
const DBHOST = 'localhost'; const DBHOST = 'localhost';
const DBNAME = 'stats_central'; const DBNAME = 'stats_central';
const DBUSER = 'root'; const DBUSER = '<username>';
const DBPASS = ''; const DBPASS = '<password>';
// Ping-backs database (http://latest.civicrm.org) // Ping-backs database (http://latest.civicrm.org)
const DBPING = 'civicrm_raw_stats'; const DBPING = 'civicrm_raw_stats';
...@@ -20,4 +20,8 @@ const DBDOWN = 'civicrm_downloads'; ...@@ -20,4 +20,8 @@ const DBDOWN = 'civicrm_downloads';
// Forum database (http://forum.civicrm.org) // Forum database (http://forum.civicrm.org)
const DBFORUM = 'civicrm_forum'; const DBFORUM = 'civicrm_forum';
const DATESTART = '2004-12-07 06:13:00'; // Date of the start of the project (from JIRA) const DATESTART = '2004-12-07 06:13:00'; // Date of the start of the project (from JIRA)
\ No newline at end of file
// JIRA credentials
define('JIRA_USERNAME', '<username>');
define('JIRA_PASSWORD', '<password>');
\ No newline at end of file
...@@ -7,7 +7,7 @@ require __DIR__ . "/../vendor/autoload.php"; ...@@ -7,7 +7,7 @@ require __DIR__ . "/../vendor/autoload.php";
function getApiClient() { function getApiClient() {
$api = new \chobie\Jira\Api( $api = new \chobie\Jira\Api(
"https://issues.civicrm.org/jira", "https://issues.civicrm.org/jira",
new \chobie\Jira\Api\Authentication\Basic("nganivet", "6NVBpJEwk0") new \chobie\Jira\Api\Authentication\Basic(JIRA_USERNAME, JIRA_PASSWORD)
); );
return $api; return $api;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment