forked from OpenStackweb/openstack-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample._ss_environment.php
117 lines (99 loc) · 4.63 KB
/
sample._ss_environment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/* What kind of environment is this: development, test, or live (ie, production)? */
define('SS_ENVIRONMENT_TYPE', '');
/* Database connection */
define('SS_DATABASE_SERVER', '');
define('SS_DATABASE_USERNAME', '');
define('SS_DATABASE_PASSWORD', '');
define('SS_DATABASE_CLASS','MySQLDatabase');
//db name
$database = '';
/* Global variables */
$email_from = '';
$email_log = '';
$email_new_deployment = '';
$mysqli = @new mysqli(SS_DATABASE_SERVER, SS_DATABASE_USERNAME, SS_DATABASE_PASSWORD, $database);
if ($mysqli->connect_errno) {
mysqli_close($mysqli);
ob_clean();
$maintenance_page = file_get_contents(getcwd(). '/../maintenance/index.html');
echo $maintenance_page;
header("HTTP/1.0 502 Bad Gateway");
exit();
}
mysqli_close($mysqli);
//used by openstack/code/utils/email/DevelopmentEmail.php
define('DEV_EMAIL_TO','');
//used on events module.
define("EVENT_REGISTRATION_REQUEST_EMAIL_FROM", '');
// used on elections module.
define('REVOCATION_NOTIFICATION_EMAIL_FROM','');
//used on jobs module.
define('JOB_REGISTRATION_REQUEST_EMAIL_FROM','');
//used on openstack/code/UserStoriesHolder.php (submitNewUserStory - ln 102)
define('USER_STORIES_NEW_SUBMISSION_EMAIL_FROM','');
//used on openstack/code/UserStoriesHolder.php (submitNewUserStory - ln 102)
define('USER_STORIES_NEW_SUBMISSION_EMAIL_TO','');
//used on openstack/code/summit/TrackChairPage.php (EmailTrackChairs - ln 739)
define('TRACK_CHAIRS_EMAIL_FROM','');
//used on openstack/code/summit/SpeakerListPage.php (EmailSpeakers - ln 59)
define('SPEAKER_EMAIL_FROM','');
//used on openstack/code/summit/SchedToolsPage.php (EmailSpeakers - ln 59 )
define('SCHED_TOOLS_EMAIL_FROM','');
//used on openstack/code/summit/CallForSpeakersPage.php (EmailOnNewTalk - ln 89)
define('CALL_4_SPEAKERS_FROM_EMAIL','');
//used on marketplace reviews module.
define('MARKETPLACE_REVIEWS_EMAIL_TO','');
define('DEPLOYMENT_SURVEY_THANK_U_FROM_EMAIL','');
//used on openstack/code/FeedbackForm.php (submitFeedback - ln 46)
define('FEEDBACK_FORM_FROM_EMAIL','');
define('FEEDBACK_FORM_TO_EMAIL','');
//used on openstack/code/OSLogoProgramForm.php (save- ln 133)
define('OS_LOGO_PROGRAM_FORM_FROM_EMAIL','');
define('OS_LOGO_PROGRAM_FORM_TO_EMAIL','');
//used on openstack/code/summit/PresentationVotingPage.php (Done - ln 257)
define('PRESENTATION_VOTING_EVENT_FROM_EMAIL','');
define('PRESENTATION_VOTING_EVENT_TO_EMAIL','');
//used on openstack/code/MemberListPage.php (saveNomination - ln 274)
define('CANDIDATE_NOMINATION_FROM_EMAIL','');
//used on openstack/code/summit/PresentationEditorPage.php (EmailSubmitters - ln 534)
define('OS_SUMMIT_PRESENTATION_VOTING_FROM_EMAIL','');
//used on openstack/code/summit/PresentationEditorPage.php (EmailSpeakers - ln 573)
define('OS_SUMMIT_SPEAKING_SUBMISSION_FROM_EMAIL','');
//used on openstack/code/summit/PresentationEditorPage.php (AssembleEmail - ln 1138)
define('OS_PRESENTATION_SUBMISSIONS_FROM_EMAIL','');
// news module settings
define("NEWS_SUBMISSION_EMAIL_ALERT_TO", '');
define('NEWS_SUBMISSION_EMAIL_FROM','secretary@openstack.org');
define('NEWS_SUBMISSION_EMAIL_SUBJECT','New News item on Openstack.org');
//ICLA Module configuration
define('ICLA_GROUP_ID', '');
define('GERRIT_BASE_URL', '');
define('GERRIT_USER', '');
define('GERRIT_PASSWORD', '');
define('PULL_ICLA_DATA_FROM_GERRIT_BATCH_SIZE', 1000);
define('PULL_LAST_COMMITTED_DATA_FROM_GERRIT_BATCH_SIZE', 1000);
define('CCLA_TEAM_INVITATION_EMAIL_FROM','');
define('CCLA_DEBUG_EMAIL','');
define('GOOGLE_GEO_CODING_API_KEY','');
//get a key from https://github.com/settings/applications#personal-access-tokens
define('GITHUB_API_OAUTH2TOKEN','');
define('APPSEC', ''); # openstack/code/MemberVerifyPage.php
// here u need to define your hostheader and your local path
// like $_FILE_TO_URL_MAPPING['/var/www/openstack.org'] = 'http://www..openstack.org';
// mainly this is used by the cron tasks
define('IDP_OPENSTACKID_URL','https://dev.openstackid.com');
//set true on production mode, otherwise false
define('Auth_OpenID_VERIFY_HOST',false);
define('Auth_OpenID_Realm','https://devbranch.openstack.org');
define('OPENSTACKID_ENABLED',true);
//summit purchase orders settings
define('APPROVED_PURCHASE_ORDER_EMAIL_FROM','');
define('APPROVED_PURCHASE_ORDER_EMAIL_SUBJECT','Your OpenStack Sponsorship Package Purchase Order was approved');
define('NEW_PURCHASE_ORDER_EMAIL_FROM','');
define('NEW_PURCHASE_ORDER_EMAIL_TO','');
define('NEW_PURCHASE_ORDER_EMAIL_SUBJECT','New Sponsorship Package Purchase Order');
define('REJECTED_PURCHASE_ORDER_EMAIL_FROM','');
define('REJECTED_PURCHASE_ORDER_EMAIL_SUBJECT','Your OpenStack Sponsorship Package Purchase Order was rejected');
global $_FILE_TO_URL_MAPPING;
$_FILE_TO_URL_MAPPING[''] = '';