2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
38 /*********************************************************************************gf
40 * Description: Executes a step in the installation process.
41 ********************************************************************************/
43 $moduleList = array();
44 // this list defines the modules shown in the top tab list of the app
45 //the order of this list is the default order displayed - do not change the order unless it is on purpose
46 $moduleList[] = 'Home';
47 $moduleList[] = 'Calendar';
48 $moduleList[] = 'Calls';
49 $moduleList[] = 'Meetings';
50 $moduleList[] = 'Tasks';
51 $moduleList[] = 'Notes';
52 $moduleList[] = 'Leads';
53 $moduleList[] = 'Contacts';
54 $moduleList[] = 'Accounts';
55 $moduleList[] = 'Opportunities';
57 $moduleList[] = 'Emails';
58 $moduleList[] = 'Campaigns';
59 $moduleList[] = 'Prospects';
60 $moduleList[] = 'ProspectLists';
62 $moduleList[] = 'Documents';
63 $moduleList[] = 'Cases';
64 $moduleList[] = 'Project';
65 $moduleList[] = 'Bugs';
70 // this list defines all of the module names and bean names in the app
71 // to create a new module's bean class, add the bean definition here
74 $beanList['ACLRoles'] = 'ACLRole';
75 $beanList['ACLActions'] = 'ACLAction';
77 $beanList['Leads'] = 'Lead';
78 $beanList['Cases'] = 'aCase';
79 $beanList['Bugs'] = 'Bug';
80 $beanList['ProspectLists'] = 'ProspectList';
81 $beanList['Prospects'] = 'Prospect';
82 $beanList['Project'] = 'Project';
83 $beanList['ProjectTask'] = 'ProjectTask';
84 $beanList['Campaigns'] = 'Campaign';
85 $beanList['EmailMarketing'] = 'EmailMarketing';
86 $beanList['CampaignLog'] = 'CampaignLog';
87 $beanList['CampaignTrackers'] = 'CampaignTracker';
88 $beanList['Releases'] = 'Release';
89 $beanList['Groups'] = 'Group';
90 $beanList['EmailMan'] = 'EmailMan';
91 $beanList['Schedulers'] = 'Scheduler';
92 $beanList['SchedulersJobs'] = 'SchedulersJob';
93 $beanList['Contacts'] = 'Contact';
94 $beanList['Accounts'] = 'Account';
95 $beanList['DynamicFields'] = 'DynamicField';
96 $beanList['EditCustomFields'] = 'FieldsMetaData';
97 $beanList['Opportunities'] = 'Opportunity';
98 $beanList['EmailTemplates'] = 'EmailTemplate';
99 $beanList['Notes'] = 'Note';
100 $beanList['Calls'] = 'Call';
101 $beanList['Emails'] = 'Email';
102 $beanList['Meetings'] = 'Meeting';
103 $beanList['Tasks'] = 'Task';
104 $beanList['Users'] = 'User';
105 $beanList['Currencies'] = 'Currency';
106 $beanList['Trackers'] = 'Tracker';
107 $beanList['Connectors'] = 'Connectors';
108 $beanList['Import_1'] = 'ImportMap';
109 $beanList['Import_2'] = 'UsersLastImport';
110 $beanList['Versions'] = 'Version';
111 $beanList['Administration'] = 'Administration';
112 $beanList['vCals'] = 'vCal';
113 $beanList['CustomFields'] = 'CustomFields';
119 $beanList['Documents'] = 'Document';
120 $beanList['DocumentRevisions'] = 'DocumentRevision';
121 $beanList['Roles'] = 'Role';
123 $beanList['Audit'] = 'Audit';
126 //$beanList['Queues'] = 'Queue';
128 $beanList['InboundEmail'] = 'InboundEmail';
131 $beanList['SavedSearch'] = 'SavedSearch';
132 $beanList['UserPreferences'] = 'UserPreference';
133 $beanList['MergeRecords'] = 'MergeRecord';
134 $beanList['EmailAddresses'] = 'EmailAddress';
135 $beanList['Relationships'] = 'Relationship';
136 $beanList['Employees'] = 'Employee';
141 // this list defines all of the files that contain the SugarBean class definitions from $beanList
142 // to create a new module's bean class, add the file definition here
143 $beanFiles = array();
145 $beanFiles['ACLAction'] = 'modules/ACLActions/ACLAction.php';
146 $beanFiles['ACLRole'] = 'modules/ACLRoles/ACLRole.php';
147 $beanFiles['Relationship'] = 'modules/Relationships/Relationship.php';
149 $beanFiles['Lead'] = 'modules/Leads/Lead.php';
150 $beanFiles['aCase'] = 'modules/Cases/Case.php';
151 $beanFiles['Bug'] = 'modules/Bugs/Bug.php';
152 $beanFiles['Group'] = 'modules/Groups/Group.php';
153 $beanFiles['CampaignLog'] = 'modules/CampaignLog/CampaignLog.php';
154 $beanFiles['Project'] = 'modules/Project/Project.php';
155 $beanFiles['ProjectTask'] = 'modules/ProjectTask/ProjectTask.php';
156 $beanFiles['Campaign'] = 'modules/Campaigns/Campaign.php';
157 $beanFiles['ProspectList'] = 'modules/ProspectLists/ProspectList.php';
158 $beanFiles['Prospect'] = 'modules/Prospects/Prospect.php';
160 $beanFiles['EmailMarketing'] = 'modules/EmailMarketing/EmailMarketing.php';
161 $beanFiles['CampaignTracker'] = 'modules/CampaignTrackers/CampaignTracker.php';
162 $beanFiles['Release'] = 'modules/Releases/Release.php';
163 $beanFiles['EmailMan'] = 'modules/EmailMan/EmailMan.php';
165 $beanFiles['Scheduler'] = 'modules/Schedulers/Scheduler.php';
166 $beanFiles['SchedulersJob'] = 'modules/SchedulersJobs/SchedulersJob.php';
167 $beanFiles['Contact'] = 'modules/Contacts/Contact.php';
168 $beanFiles['Account'] = 'modules/Accounts/Account.php';
169 $beanFiles['Opportunity'] = 'modules/Opportunities/Opportunity.php';
170 $beanFiles['EmailTemplate'] = 'modules/EmailTemplates/EmailTemplate.php';
171 $beanFiles['Note'] = 'modules/Notes/Note.php';
172 $beanFiles['Call'] = 'modules/Calls/Call.php';
173 $beanFiles['Email'] = 'modules/Emails/Email.php';
174 $beanFiles['Meeting'] = 'modules/Meetings/Meeting.php';
175 $beanFiles['Task'] = 'modules/Tasks/Task.php';
176 $beanFiles['User'] = 'modules/Users/User.php';
177 $beanFiles['Employee'] = 'modules/Employees/Employee.php';
178 $beanFiles['Currency'] = 'modules/Currencies/Currency.php';
179 $beanFiles['Tracker'] = 'modules/Trackers/Tracker.php';
180 $beanFiles['ImportMap'] = 'modules/Import/ImportMap.php';
181 $beanFiles['UsersLastImport']= 'modules/Import/UsersLastImport.php';
182 $beanFiles['Administration']= 'modules/Administration/Administration.php';
183 $beanFiles['UpgradeHistory']= 'modules/Administration/UpgradeHistory.php';
184 $beanFiles['vCal'] = 'modules/vCals/vCal.php';
186 $beanFiles['Version'] = 'modules/Versions/Version.php';
190 $beanFiles['Role'] = 'modules/Roles/Role.php';
192 $beanFiles['Document'] = 'modules/Documents/Document.php';
193 $beanFiles['DocumentRevision'] = 'modules/DocumentRevisions/DocumentRevision.php';
194 $beanFiles['FieldsMetaData'] = 'modules/DynamicFields/FieldsMetaData.php';
195 //$beanFiles['Audit'] = 'modules/Audit/Audit.php';
198 //$beanFiles['Queue'] = 'modules/Queues/Queue.php';
200 $beanFiles['InboundEmail'] = 'modules/InboundEmail/InboundEmail.php';
204 $beanFiles['SavedSearch'] = 'modules/SavedSearch/SavedSearch.php';
205 $beanFiles['UserPreference'] = 'modules/UserPreferences/UserPreference.php';
206 $beanFiles['MergeRecord'] = 'modules/MergeRecords/MergeRecord.php';
207 $beanFiles['EmailAddress'] = 'modules/EmailAddresses/EmailAddress.php';
211 // TODO: Remove the Library module, it is an example.
212 //$moduleList[] = 'Library';
213 //$beanList['Library']= 'Library';
214 //$beanFiles['Library'] = 'modules/Library/Library.php';
216 $beanFiles['Configurator'] = 'modules/Configurator/Configurator.php';
218 // added these lists for security settings for tabs
219 $modInvisList = array('Administration', 'Currencies', 'CustomFields', 'Connectors',
220 'Dropdown', 'Dynamic', 'DynamicFields', 'DynamicLayout', 'EditCustomFields',
221 'Help', 'Import', 'MySettings', 'EditCustomFields','FieldsMetaData',
222 'UpgradeWizard', 'Trackers', 'Connectors', 'Employees', 'Calendar',
224 'Users', 'Versions', 'LabelEditor','Roles','EmailMarketing'
225 ,'OptimisticLock', 'TeamMemberships', 'TeamSets', 'TeamSetModule', 'Audit', 'MailMerge', 'MergeRecords', 'EmailAddresses',
226 'Schedulers','Schedulers_jobs', /*'Queues',*/ 'EmailTemplates',
227 'CampaignTrackers', 'CampaignLog', 'EmailMan', 'Prospects', 'ProspectLists',
228 'Groups','InboundEmail',
229 'ACLActions', 'ACLRoles',
233 $adminOnlyList = array(
234 //module => list of actions (all says all actions are admin only)
235 //'Administration'=>array('all'=>1, 'SupportPortal'=>'allow'),
236 'Dropdown'=>array('all'=>1),
237 'Dynamic'=>array('all'=>1),
238 'DynamicFields'=>array('all'=>1),
239 'Currencies'=>array('all'=>1),
240 'EditCustomFields'=>array('all'=>1),
241 'FieldsMetaData'=>array('all'=>1),
242 'LabelEditor'=>array('all'=>1),
243 'ACL'=>array('all'=>1),
244 'ACLActions'=>array('all'=>1),
245 'ACLRoles'=>array('all'=>1),
246 'UpgradeWizard' => array('all' => 1),
247 'Studio' => array('all' => 1),
251 $modInvisList[] = 'ACL';
252 $modInvisList[] = 'ACLRoles';
253 $modInvisList[] = 'Configurator';
254 $modInvisList[] = 'UserPreferences';
255 $modInvisList[] = 'SavedSearch';
257 //$modInvisList[] = 'Queues';
258 $modInvisList[] = 'Studio';
259 $modInvisList[] = 'Connectors';
261 $beanList['SugarFeed'] = 'SugarFeed';
262 $beanFiles['SugarFeed'] = 'modules/SugarFeed/SugarFeed.php';
263 $modInvisList[] = 'SugarFeed';
265 // This is the mapping for modules that appear under a different module's tab
266 // Be sure to also add the modules to $modInvisList, otherwise their tab will still appear
267 $GLOBALS['moduleTabMap'] = array(
268 'UpgradeWizard' => 'Administration',
269 'EmailMan' => 'Administration',
270 'ModuleBuilder' => 'Administration',
271 'Configurator' => 'Administration',
272 'Studio' => 'Administration',
273 'Currencies' => 'Administration',
274 'SugarFeed' => 'Administration',
275 'DocumentRevisions' => 'Documents',
276 'EmailTemplates' => 'Emails',
277 'EmailMarketing' => 'Campaigns',
279 $beanList['EAPM'] = 'EAPM';
280 $beanFiles['EAPM'] = 'modules/EAPM/EAPM.php';
281 $modules_exempt_from_availability_check['EAPM'] = 'EAPM';
282 $modInvisList[] = 'EAPM';
285 if (file_exists('include/modules_override.php'))
287 include('include/modules_override.php');
289 if (file_exists('custom/application/Ext/Include/modules.ext.php'))
291 include('custom/application/Ext/Include/modules.ext.php');