Completed
Push — develop ( 695bbe...affb48 )
by Adam
19:17
created
install/language/en_us.lang.php 1 patch
Indentation   +427 added lines, -427 removed lines patch added patch discarded remove patch
@@ -43,296 +43,296 @@  discard block
 block discarded – undo
43 43
 }
44 44
 
45 45
 $mod_strings = array(
46
-	'LBL_BASIC_SEARCH'					=> 'Quick Filter',
47
-	'LBL_ADVANCED_SEARCH'				=> 'Advanced Filter',
48
-	'LBL_BASIC_TYPE'					=> 'Basic Type',
49
-	'LBL_ADVANCED_TYPE'					=> 'Advanced Type',
50
-	'LBL_SYSOPTS_2'                     => 'What type of database will be used for the SuiteCRM instance you are about to install?',
51
-	'LBL_SYSOPTS_DB'					=> 'Specify Database Type',
52
-	'LBL_SYSOPTS_DB_TITLE'              => 'Database Type',
53
-	'LBL_SYSOPTS_ERRS_TITLE'			=> 'Please fix the following errors before proceeding:',
54
-	'ERR_DB_VERSION_FAILURE'			=> 'Unable to check database version.',
55
-	'DEFAULT_CHARSET'					=> 'UTF-8',
56
-	'ERR_ADMIN_USER_NAME_BLANK'         => 'Provide the user name for the SuiteCRM admin user. ',
57
-	'ERR_ADMIN_PASS_BLANK'				=> 'Provide the password for the SuiteCRM admin user. ',
58
-
59
-	'ERR_CHECKSYS'                      => 'Errors have been detected during compatibility check. In order for your SuiteCRM Installation to function properly, please take the proper steps to address the issues listed below and either press the recheck button, or try installing again.',
60
-	'ERR_CHECKSYS_CALL_TIME'            => 'Allow Call Time Pass Reference is On (this should be set to Off in php.ini)',
61
-	'ERR_CHECKSYS_CURL'					=> 'Not found: SuiteCRM Scheduler will run with limited functionality.',
62
-	'ERR_CHECKSYS_IMAP'					=> 'Not found: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.',
63
-	'ERR_CHECKSYS_MEM_LIMIT_1'			=> ' (Set this to ',
64
-	'ERR_CHECKSYS_MEM_LIMIT_2'			=> 'M or larger in your php.ini file)',
65
-	'ERR_CHECKSYS_NOT_WRITABLE'			=> 'Warning: Not Writable',
66
-	'ERR_CHECKSYS_PHP_INVALID_VER'		=> 'Your version of PHP is not supported by SuiteCRM. You will need to install a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported PHP Versions. Your version is ',
67
-	'ERR_CHECKSYS_IIS_INVALID_VER'      => 'Your version of IIS is not supported by SuiteCRM. You will need to install a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported IIS Versions. Your version is ',
68
-	'ERR_CHECKSYS_FASTCGI'              => 'We detect that you are not using a FastCGI handler mapping for PHP. You will need to install/configure a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported Versions. Please see <a href="http://www.iis.net/php/" target="_blank">http://www.iis.net/php/</a> for details ',
69
-	'ERR_CHECKSYS_FASTCGI_LOGGING'      => 'For optimal experience using IIS/FastCGI sapi, set fastcgi.logging to 0 in your php.ini file.',
70
-	'LBL_DB_UNAVAILABLE'                => 'Database unavailable',
71
-	'LBL_CHECKSYS_DB_SUPPORT_NOT_AVAILABLE' => 'Database Support was not found. Please make sure you have the necessary drivers for one of the following supported Database Types: MySQL or MS SQLServer. You might need to uncomment the extension in the php.ini file, or recompile with the right binary file, depending on your version of PHP. Please refer to your PHP Manual for more information on how to enable Database Support.',
72
-	'LBL_CHECKSYS_XML_NOT_AVAILABLE'        => 'Functions associated with XML Parser Libraries that are needed by the SuiteCRM application were not found. You might need to uncomment the extension in the  php.ini file, or recompile with the right binary file, depending on your version of PHP. Please refer to your PHP Manual for more information.',
73
-	'ERR_CHECKSYS_MBSTRING'             => 'Functions associated with the Multibyte Strings PHP extension (mbstring) that are needed by the SuiteCRM application were not found. <br/><br/>Generally, the mbstring module is not enabled by default in PHP and must be activated with --enable-mbstring when the PHP binary is built. Please refer to your PHP Manual for more information on how to enable mbstring support.',
74
-	'ERR_CHECKSYS_CONFIG_NOT_WRITABLE'  => 'The config file exists but is not writeable. Please take the necessary steps to make the file writeable. Depending on your Operating system, this might require you to change the permissions by running chmod 766, or to right click on the filename to access the properties and uncheck the read only option.',
75
-	'ERR_CHECKSYS_CONFIG_OVERRIDE_NOT_WRITABLE'  => 'The config override file exists but is not writeable. Please take the necessary steps to make the file writeable. Depending on your Operating system, this might require you to change the permissions by running chmod 766, or to right click on the filename to access the properties and uncheck the read only option.',
76
-	'ERR_CHECKSYS_CUSTOM_NOT_WRITABLE'  => 'The Custom Directory exists but is not writeable. You may have to change permissions on it (chmod 766) or right click on it and uncheck the read only option, depending on your Operating System. Please take the needed steps to make the file writeable.',
77
-	'ERR_CHECKSYS_FILES_NOT_WRITABLE'   => "The files or directories listed below are not writeable or are missing and cannot be created. Depending on your Operating System, correcting this may require you to change permissions on the files or parent directory (chmod 755), or to right click on the parent directory and uncheck the 'read only' option and apply it to all subfolders.",
78
-	'LBL_CHECKSYS_OVERRIDE_CONFIG' => 'Config override',
79
-	'ERR_CHECKSYS_SAFE_MODE'			=> 'Safe Mode is On (you may wish to disable in php.ini)',
80
-	'ERR_CHECKSYS_ZLIB'					=> 'ZLib support not found: SuiteCRM reaps enormous performance benefits with zlib compression.',
81
-	'ERR_CHECKSYS_ZIP'					=> 'ZIP support not found: SuiteCRM needs ZIP support in order to process compressed files.',
82
-	'ERR_CHECKSYS_PCRE'					=> 'PCRE library not found: SuiteCRM needs PCRE library in order to process Perl style of regular expression pattern matching.',
83
-	'ERR_CHECKSYS_PCRE_VER'				=> 'PCRE library version: SuiteCRM needs PCRE library 7.0 or above to process Perl style of regular expression pattern matching.',
84
-	'ERR_DB_ADMIN'						=> 'The provided database administrator username and/or password is invalid, and a connection to the database could not be established. Please enter a valid user name and password. (Error: ',
85
-	'ERR_DB_ADMIN_MSSQL'                => 'The provided database administrator username and/or password is invalid, and a connection to the database could not be established. Please enter a valid user name and password.',
86
-	'ERR_DB_EXISTS_NOT'					=> 'The specified database does not exist.',
87
-	'ERR_DB_EXISTS_WITH_CONFIG'			=> 'Database already exists with config data. To run an install with the chosen database, please re-run the install and choose: "Drop and recreate existing SuiteCRM tables?"  To upgrade, use the Upgrade Wizard in the Admin Console. Please read the upgrade documentation located <a href="http://www.suitecrm.com" target="_new">here</a>.',
88
-	'ERR_DB_EXISTS'						=> 'The provided Database Name already exists -- cannot create another one with the same name.',
89
-	'ERR_DB_EXISTS_PROCEED'             => 'The provided Database Name already exists. You can<br>1. hit the back button and choose a new database name <br>2. click next and continue but all existing tables on this database will be dropped. <strong>This means your tables and data will be blown away.</strong>',
90
-	'ERR_DB_HOSTNAME'					=> 'Host name cannot be blank.',
91
-	'ERR_DB_INVALID'					=> 'Invalid database type selected.',
92
-	'ERR_DB_LOGIN_FAILURE'				=> 'The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password',
93
-	'ERR_DB_LOGIN_FAILURE_MYSQL'		=> 'The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password',
94
-	'ERR_DB_LOGIN_FAILURE_MSSQL'		=> 'The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password',
95
-	'ERR_DB_MYSQL_VERSION'				=> 'Your MySQL version (%s) is not supported by SuiteCRM. You will need to install a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported MySQL versions.',
96
-	'ERR_DB_NAME'						=> 'Database name cannot be blank.',
97
-	'ERR_DB_MYSQL_DB_NAME_INVALID'      => "Database name cannot contain a '\\', '/', or '.'",
98
-	'ERR_DB_MSSQL_DB_NAME_INVALID'      => "Database name cannot begin with a number, '#', or '@' and cannot contain a space, '\"', \"'\", '*', '/', '\', '?', ':', '<', '>', '&', '!', or '-'",
99
-	'ERR_DB_OCI8_DB_NAME_INVALID'       => "Database name can only consist of alphanumeric characters and the symbols '#', '_' or '$'",
100
-	'ERR_DB_PASSWORD'					=> 'The passwords provided for the SuiteCRM database administrator do not match. Please re-enter the same passwords in the password fields.',
101
-	'ERR_DB_PRIV_USER'					=> 'Provide a database administrator user name. The user is required for the initial connection to the database.',
102
-	'ERR_DB_USER_EXISTS'				=> 'User name for SuiteCRM database user already exists -- cannot create another one with the same name. Please enter a new user name.',
103
-	'ERR_DB_USER'						=> 'Enter a user name for the SuiteCRM database administrator.',
104
-	'ERR_DBCONF_VALIDATION'				=> 'Please fix the following errors before proceeding:',
105
-	'ERR_DBCONF_PASSWORD_MISMATCH'      => 'The passwords provided for the SuiteCRM database user do not match. Please re-enter the same passwords in the password fields.',
106
-	'ERR_ERROR_GENERAL'					=> 'The following errors were encountered:',
107
-	'ERR_LANG_CANNOT_DELETE_FILE'		=> 'Cannot delete file: ',
108
-	'ERR_LANG_MISSING_FILE'				=> 'Cannot find file: ',
109
-	'ERR_LANG_NO_LANG_FILE'			 	=> 'No language pack file found at include/language inside: ',
110
-	'ERR_LANG_UPLOAD_1'					=> 'There was a problem with your upload. Please try again.',
111
-	'ERR_LANG_UPLOAD_2'					=> 'Language Packs must be ZIP archives.',
112
-	'ERR_LANG_UPLOAD_3'					=> 'PHP could not move the temp file to the upgrade directory.',
113
-	'ERR_LOG_DIRECTORY_NOT_EXISTS'		=> 'Log directory provided is not a valid directory.',
114
-	'ERR_LOG_DIRECTORY_NOT_WRITABLE'	=> 'Log directory provided is not a writable directory.',
115
-	'ERR_NO_DIRECT_SCRIPT'				=> 'Unable to process script directly.',
116
-	'ERR_NO_SINGLE_QUOTE'				=> 'Cannot use the single quotation mark for ',
117
-	'ERR_PASSWORD_MISMATCH'				=> 'The passwords provided for the SuiteCRM admin user do not match. Please re-enter the same passwords in the password fields.',
118
-	'ERR_PERFORM_CONFIG_PHP_1'			=> 'Cannot write to the <span class=stop>config.php</span> file.',
119
-	'ERR_PERFORM_CONFIG_PHP_2'			=> 'You can continue this installation by manually creating the config.php file and pasting the configuration information below into the config.php file. However, you <strong>must </strong>create the config.php file before you continue to the next step.',
120
-	'ERR_PERFORM_CONFIG_PHP_3'			=> 'Did you remember to create the config.php file?',
121
-	'ERR_PERFORM_CONFIG_PHP_4'			=> 'Warning: Could not write to config.php file. Please ensure it exists.',
122
-	'ERR_PERFORM_HTACCESS_1'			=> 'Cannot write to the ',
123
-	'ERR_PERFORM_HTACCESS_2'			=> ' file.',
124
-	'ERR_PERFORM_HTACCESS_3'			=> 'If you want to secure your log file from being accessible via browser, create an .htaccess file in your log directory with the line:',
125
-	'ERR_PERFORM_NO_TCPIP'				=> '<b>We could not detect an Internet connection.</b> When you do have a connection, please visit <a href="http://www.suitecrm.com/">http://www.suitecrm.com/</a> to register with SuiteCRM. By letting us know a little bit about how your company plans to use SuiteCRM, we can ensure we are always delivering the right application for your business needs.',
126
-	'ERR_SESSION_DIRECTORY_NOT_EXISTS'	=> 'Session directory provided is not a valid directory.',
127
-	'ERR_SESSION_DIRECTORY'				=> 'Session directory provided is not a writable directory.',
128
-	'ERR_SESSION_PATH'					=> 'Session path is required if you wish to specify your own.',
129
-	'ERR_SI_NO_CONFIG'					=> 'You did not include config_si.php in the document root, or you did not define $sugar_config_si in config.php',
130
-	'ERR_SITE_GUID'						=> 'Application ID is required if you wish to specify your own.',
131
-	'ERROR_SPRITE_SUPPORT'              => "Currently we are not able to locate the GD library, as a result you will not be able to use the CSS Sprite functionality.",
132
-	'ERR_UPLOAD_MAX_FILESIZE'			=> 'Warning: Your PHP configuration should be changed to allow files of at least 6MB to be uploaded.',
133
-	'LBL_UPLOAD_MAX_FILESIZE_TITLE'     => 'Upload File Size',
134
-	'ERR_URL_BLANK'						=> 'Provide the base URL for the SuiteCRM instance.',
135
-	'ERR_UW_NO_UPDATE_RECORD'			=> 'Could not locate installation record of',
136
-	'ERROR_FLAVOR_INCOMPATIBLE'			=> 'The uploaded file is not compatible with this flavor of SuiteCRM: ',
137
-	'ERROR_MANIFEST_TYPE'				=> 'Manifest file must specify the package type.',
138
-	'ERROR_PACKAGE_TYPE'				=> 'Manifest file specifies an unrecognized package type',
139
-	'ERROR_VERSION_INCOMPATIBLE'		=> 'The uploaded file is not compatible with this version of SuiteCRM: ',
140
-
141
-	'LBL_BACK'							=> 'Back',
142
-	'LBL_CANCEL'                        => 'Cancel',
143
-	'LBL_ACCEPT'                        => 'I Accept',
144
-	'LBL_CHECKSYS_CACHE'				=> 'Writable Cache Sub-Directories',
145
-	'LBL_DROP_DB_CONFIRM'               => 'The provided Database Name already exists.<br>You can either:<br>1. Click on the Cancel button and choose a new database name, or <br>2. Click the Accept button and continue. All existing tables in the database will be dropped. <strong>This means that all of the tables and pre-existing data will be blown away.</strong>',
146
-	'LBL_CHECKSYS_COMPONENT'			=> 'Component',
147
-	'LBL_CHECKSYS_CONFIG'				=> 'Writable SuiteCRM Configuration File (config.php)',
148
-	'LBL_CHECKSYS_CURL'					=> 'cURL Module',
149
-	'LBL_CHECKSYS_CUSTOM'				=> 'Writeable Custom Directory',
150
-	'LBL_CHECKSYS_DATA'					=> 'Writable Data Sub-Directories',
151
-	'LBL_CHECKSYS_IMAP'					=> 'IMAP Module',
152
-	'LBL_CHECKSYS_FASTCGI'             => 'FastCGI',
153
-	'LBL_CHECKSYS_MBSTRING'				=> 'MB Strings Module',
154
-	'LBL_CHECKSYS_MEM_OK'				=> 'OK (No Limit)',
155
-	'LBL_CHECKSYS_MEM_UNLIMITED'		=> 'OK (Unlimited)',
156
-	'LBL_CHECKSYS_MEM'					=> 'PHP Memory Limit',
157
-	'LBL_CHECKSYS_MODULE'				=> 'Writable Modules Sub-Directories and Files',
158
-	'LBL_CHECKSYS_NOT_AVAILABLE'		=> 'Not Available',
159
-	'LBL_CHECKSYS_OK'					=> 'OK',
160
-	'LBL_CHECKSYS_PHP_INI'				=> 'Location of your PHP configuration file (php.ini):',
161
-	'LBL_CHECKSYS_PHP_OK'				=> 'OK (ver ',
162
-	'LBL_CHECKSYS_PHPVER'				=> 'PHP Version',
163
-	'LBL_CHECKSYS_IISVER'               => 'IIS Version',
164
-	'LBL_CHECKSYS_RECHECK'				=> 'Re-check',
165
-	'LBL_CHECKSYS_STATUS'				=> 'Status',
166
-	'LBL_CHECKSYS_TITLE'				=> 'System Check Acceptance',
167
-	'LBL_CHECKSYS_XML'					=> 'XML Parsing',
168
-	'LBL_CHECKSYS_ZLIB'					=> 'ZLIB Compression Module',
169
-	'LBL_CHECKSYS_ZIP'					=> 'ZIP Handling Module',
170
-	'LBL_CHECKSYS_PCRE'					=> 'PCRE Library',
171
-	'LBL_CHECKSYS_FIX_FILES'            => 'Please fix the following files or directories before proceeding:',
172
-	'LBL_CHECKSYS_FIX_MODULE_FILES'     => 'Please fix the following module directories and the files under them before proceeding:',
173
-	'LBL_CHECKSYS_UPLOAD'               => 'Writable Upload Directory',
174
-	'LBL_CLOSE'							=> 'Close',
175
-	'LBL_THREE'                         => '3',
176
-	'LBL_CONFIRM_BE_CREATED'			=> 'be created',
177
-	'LBL_CONFIRM_DB_TYPE'				=> 'Database Type',
178
-	'LBL_CONFIRM_NOT'					=> 'not',
179
-	'LBL_CONFIRM_TITLE'					=> 'Confirm Settings',
180
-	'LBL_CONFIRM_WILL'					=> 'will',
181
-	'LBL_DBCONF_DB_DROP'                => 'Drop Tables',
182
-	'LBL_DBCONF_DB_NAME'				=> 'Database Name',
183
-	'LBL_DBCONF_DB_PASSWORD'			=> 'SuiteCRM Database User Password',
184
-	'LBL_DBCONF_DB_PASSWORD2'			=> 'Re-enter SuiteCRM Database User Password',
185
-	'LBL_DBCONF_DB_USER'				=> 'SuiteCRM Database User',
186
-	'LBL_DBCONF_SUGAR_DB_USER'          => 'SuiteCRM Database User',
187
-	'LBL_DBCONF_DB_ADMIN_USER'          => 'Database Administrator Username',
188
-	'LBL_DBCONF_DB_ADMIN_PASSWORD'      => 'Database Admin Password',
189
-	'LBL_DBCONF_DEMO_DATA'				=> 'Populate Database with Demo Data?',
190
-	'LBL_DBCONF_DEMO_DATA_TITLE'        => 'Choose Demo Data',
191
-	'LBL_DBCONF_HOST_NAME'				=> 'Host Name',
192
-	'LBL_DBCONF_HOST_INSTANCE'			=> 'Host Instance',
193
-	'LBL_DBCONFIG_SECURITY'             => 'For security purposes, you can specify an exclusive database user to connect to the SuiteCRM database. This user must be able to write, update and retrieve data on the SuiteCRM database that will be created for this instance. This user can be the database administrator specified above, or you can provide new or existing database user information.',
194
-	'LBL_DBCONFIG_PROVIDE_DD'           => 'Provide existing user',
195
-	'LBL_DBCONFIG_CREATE_DD'            => 'Define user to create',
196
-	'LBL_DBCONFIG_SAME_DD'              => 'Same as Admin User',
197
-	'LBL_DBCONF_TITLE'					=> 'Database Configuration',
198
-	'LBL_DBCONF_TITLE_NAME'             => 'Provide Database Name',
199
-	'LBL_DBCONF_TITLE_USER_INFO'        => 'Provide Database User Information',
200
-	'LBL_DBCONF_TITLE_PSWD_INFO_LABEL' => 'Password',
201
-	'LBL_DISABLED_DESCRIPTION_2'		=> 'After this change has been made, you may click the "Start" button below to begin your installation. <i>After the installation is complete, you will want to change the value for \'installer_locked\' to \'true\'.</i>',
202
-	'LBL_DISABLED_DESCRIPTION'			=> 'The installer has already been run once. As a safety measure, it has been disabled from running a second time. If you are absolutely sure you want to run it again, please go to your config.php file and locate (or add) a variable called \'installer_locked\' and set it to \'false\'. The line should look like this:',
203
-	'LBL_DISABLED_HELP_1'				=> 'For installation help, please visit the SuiteCRM',
204
-	'LBL_DISABLED_HELP_LNK'             => 'http://www.suitecrm.com/forum/index',
205
-	'LBL_DISABLED_HELP_2'				=> 'support forums',
206
-	'LBL_DISABLED_TITLE_2'				=> 'SuiteCRM Installation has been Disabled',
207
-	'LBL_HELP'							=> 'Help',
208
-	'LBL_INSTALL'                       => 'Install',
209
-	'LBL_INSTALL_TYPE_TITLE'            => 'Installation Options',
210
-	'LBL_INSTALL_TYPE_SUBTITLE'         => 'Choose Install Type',
211
-	'LBL_INSTALL_TYPE_TYPICAL'          => ' <b>Typical Install</b>',
212
-	'LBL_INSTALL_TYPE_CUSTOM'           => ' <b>Custom Install</b>',
213
-	'LBL_INSTALL_TYPE_MSG2'             => 'Requires minimum information for the installation. Recommended for new users.',
214
-	'LBL_INSTALL_TYPE_MSG3'             => 'Provides additional options to set during the installation. Most of these options are also available after installation in the admin screens. Recommended for advanced users.',
215
-	'LBL_LANG_1'						=> 'To use a language in SuiteCRM other than the default language (US-English), you can upload and install the language pack at this time. You will be able to upload and install language packs from within the SuiteCRM application as well. If you would like to skip this step, click Next.',
216
-	'LBL_LANG_BUTTON_COMMIT'			=> 'Install',
217
-	'LBL_LANG_BUTTON_REMOVE'			=> 'Remove',
218
-	'LBL_LANG_BUTTON_UNINSTALL'			=> 'Uninstall',
219
-	'LBL_LANG_BUTTON_UPLOAD'			=> 'Upload',
220
-	'LBL_LANG_NO_PACKS'					=> 'none',
221
-	'LBL_LANG_PACK_INSTALLED'			=> 'The following language packs have been installed: ',
222
-	'LBL_LANG_PACK_READY'				=> 'The following language packs are ready to be installed: ',
223
-	'LBL_LANG_SUCCESS'					=> 'The language pack was successfully uploaded.',
224
-	'LBL_LANG_TITLE'			   		=> 'Language Pack',
225
-	'LBL_LAUNCHING_SILENT_INSTALL'     => 'Installing SuiteCRM now. This may take up to a few minutes.',
226
-	'LBL_LANG_UPLOAD'					=> 'Upload a Language Pack',
227
-	'LBL_LICENSE_ACCEPTANCE'			=> 'License Acceptance',
228
-	'LBL_LICENSE_CHECKING'              => 'Checking system for compatibility.',
229
-	'LBL_LICENSE_CHKENV_HEADER'         => 'Checking Environment',
230
-	'LBL_LICENSE_CHKDB_HEADER'          => 'Verifying DB Credentials.',
231
-	'LBL_LICENSE_CHECK_PASSED'          => 'System passed check for compatibility.',
232
-	'LBL_CREATE_CACHE' => 'Preparing to Install...',
233
-	'LBL_LICENSE_REDIRECT'              => 'Redirecting in ',
234
-	'LBL_LICENSE_I_ACCEPT'				=> 'I Accept',
235
-	'LBL_LICENSE_PRINTABLE'				=> ' Printable View ',
236
-	'LBL_PRINT_SUMM'                    => 'Print Summary',
237
-	'LBL_LICENSE_TITLE_2'				=> 'SuiteCRM License',
238
-
239
-	'LBL_LOCALE_NAME_FIRST'				=> 'David',
240
-	'LBL_LOCALE_NAME_LAST'				=> 'Livingstone',
241
-	'LBL_LOCALE_NAME_SALUTATION'		=> 'Dr.',
242
-
243
-	'LBL_ML_ACTION'						=> 'Action',
244
-	'LBL_ML_DESCRIPTION'				=> 'Description',
245
-	'LBL_ML_INSTALLED'					=> 'Date Installed',
246
-	'LBL_ML_NAME'						=> 'Name',
247
-	'LBL_ML_PUBLISHED'					=> 'Date Published',
248
-	'LBL_ML_TYPE'						=> 'Type',
249
-	'LBL_ML_UNINSTALLABLE'				=> 'Uninstallable',
250
-	'LBL_ML_VERSION'					=> 'Version',
251
-	'LBL_MSSQL'							=> 'SQL Server',
252
-	'LBL_MSSQL2'                        => 'SQL Server (FreeTDS)',
253
-	'LBL_MSSQL_SQLSRV'				    => 'SQL Server (Microsoft SQL Server Driver for PHP)',
254
-	'LBL_MYSQL'							=> 'MySQL',
255
-	'LBL_MYSQLI'						=> 'MySQL (mysqli extension)',
256
-	'LBL_NEXT'							=> 'Next',
257
-	'LBL_NO'							=> 'No',
258
-	'LBL_PERFORM_ADMIN_PASSWORD'		=> 'Setting site admin password',
259
-	'LBL_PERFORM_CONFIG_PHP'			=> 'Creating SuiteCRM configuration file',
260
-	'LBL_PERFORM_CREATE_DB_1'			=> '<b>Creating the database</b> ',
261
-	'LBL_PERFORM_CREATE_DB_2'			=> ' <b>on</b> ',
262
-	'LBL_PERFORM_CREATE_DB_USER'		=> 'Creating the Database username and password...',
263
-	'LBL_PERFORM_CREATE_DEFAULT'		=> 'Creating default SuiteCRM data',
264
-	'LBL_PERFORM_DEFAULT_SCHEDULER'		=> 'Creating default scheduler jobs',
265
-	'LBL_PERFORM_DEFAULT_USERS'			=> 'Creating default users',
266
-	'LBL_PERFORM_DEMO_DATA'				=> 'Populating the database tables with demo data (this may take a little while)',
267
-	'LBL_PERFORM_DONE'					=> 'done<br>',
268
-	'LBL_PERFORM_FINISH'				=> 'Finish',
269
-	'LBL_PERFORM_OUTRO_1'				=> 'The setup of SuiteCRM ',
270
-	'LBL_PERFORM_OUTRO_2'				=> ' is now complete!',
271
-	'LBL_PERFORM_OUTRO_3'				=> 'Total time: ',
272
-	'LBL_PERFORM_OUTRO_4'				=> ' seconds.',
273
-	'LBL_PERFORM_OUTRO_5'				=> 'Approximate memory used: ',
274
-	'LBL_PERFORM_OUTRO_6'				=> ' bytes.',
275
-	'LBL_PERFORM_SUCCESS'				=> 'Success!',
276
-	'LBL_PERFORM_TABLES'				=> 'Creating SuiteCRM application tables, audit tables and relationship metadata',
277
-	'LBL_PERFORM_TITLE'					=> 'Perform Setup',
278
-	'LBL_PRINT'							=> 'Print',
279
-	'LBL_REG_CONF_1'					=> 'Please complete the short form below to receive product announcements, training news, special offers and special event invitations from SuiteCRM. We do not sell, rent, share or otherwise distribute the information collected here to third parties.',
280
-	'LBL_REG_CONF_3'					=> 'Thank you for registering. Click on the Finish button to login to SuiteCRM. You will need to log in for the first time using the username "admin" and the password you entered in step 2.',
281
-	'LBL_REG_TITLE'						=> 'Registration',
282
-	'LBL_REQUIRED'						=> '* Required field',
283
-
284
-	'LBL_SITECFG_ADMIN_Name'            => 'SuiteCRM Application Admin Name',
285
-	'LBL_SITECFG_ADMIN_PASS_2'			=> 'Re-enter SuiteCRM Admin User Password',
286
-	'LBL_SITECFG_ADMIN_PASS'			=> 'SuiteCRM Admin User Password',
287
-	'LBL_SITECFG_APP_ID'				=> 'Application ID',
288
-	'LBL_SITECFG_CUSTOM_ID_DIRECTIONS'	=> 'If selected, you must provide an application ID to override the auto-generated ID. The ID ensures that sessions of one SuiteCRM instance are not used by other instances. If you have a cluster of SuiteCRM installations, they all must share the same application ID.',
289
-	'LBL_SITECFG_CUSTOM_ID'				=> 'Provide Your Own Application ID',
290
-	'LBL_SITECFG_CUSTOM_LOG_DIRECTIONS'	=> 'If selected, you must specify a log directory to override the default directory for the SuiteCRM log. Regardless of where the log file is located, access to it through a web browser will be restricted via an .htaccess redirect.',
291
-	'LBL_SITECFG_CUSTOM_LOG'			=> 'Use a Custom Log Directory',
292
-	'LBL_SITECFG_CUSTOM_SESSION_DIRECTIONS'	=> 'If selected, you must provide a secure folder for storing SuiteCRM session information. This can be done to prevent session data from being vulnerable on shared servers.',
293
-	'LBL_SITECFG_CUSTOM_SESSION'		=> 'Use a Custom Session Directory for SuiteCRM',
294
-	'LBL_SITECFG_FIX_ERRORS'			=> '<b>Please fix the following errors before proceeding:</b>',
295
-	'LBL_SITECFG_LOG_DIR'				=> 'Log Directory',
296
-	'LBL_SITECFG_SESSION_PATH'			=> 'Path to Session Directory<br>(must be writable)',
297
-	'LBL_SITECFG_SITE_SECURITY'			=> 'Select Security Options',
298
-	'LBL_SITECFG_SUGAR_UP_DIRECTIONS'	=> 'If selected, the system will periodically check for updated versions of the application.',
299
-	'LBL_SITECFG_SUGAR_UP'				=> 'Automatically Check For Updates?',
300
-	'LBL_SITECFG_SUGAR_UPDATES'			=> 'SuiteCRM Updates Config',
301
-	'LBL_SITECFG_TITLE'					=> 'Site Configuration',
302
-	'LBL_SITECFG_TITLE2'                => 'Identify Administration User',
303
-	'LBL_SITECFG_SECURITY_TITLE'        => 'Site Security',
304
-	'LBL_SITECFG_URL'					=> 'URL of SuiteCRM Instance',
305
-	'LBL_SITECFG_ANONSTATS'             => 'Send Anonymous Usage Statistics?',
306
-	'LBL_SITECFG_ANONSTATS_DIRECTIONS'  => 'If selected, SuiteCRM will send <b>anonymous</b> statistics about your installation to SuiteCRM Inc. every time your system checks for new versions. This information will help us better understand how the application is used and guide improvements to the product.',
307
-	'LBL_SITECFG_URL_MSG'               => 'Enter the URL that will be used to access the SuiteCRM instance after installation. The URL will also be used as a base for the URLs in the SuiteCRM application pages. The URL should include the web server or machine name or IP address.',
308
-	'LBL_SITECFG_SYS_NAME_MSG'          => 'Enter a name for your system. This name will be displayed in the browser title bar when users visit the SuiteCRM application.',
309
-	'LBL_SITECFG_PASSWORD_MSG'          => 'After installation, you will need to use the SuiteCRM admin user (default username = admin) to log in to the SuiteCRM instance. Enter a password for this administrator user. This password can be changed after the initial login. You may also enter another admin username to use besides the default value provided.',
310
-	'LBL_SITECFG_COLLATION_MSG'         => 'Select collation (sorting) settings for your system. This settings will create the tables with the specific language you use. In case your language doesn\'t require special settings please use default value.',
311
-	'LBL_SPRITE_SUPPORT'                => 'Sprite Support',
312
-	'LBL_SYSTEM_CREDS'                  => 'System Credentials',
313
-	'LBL_SYSTEM_ENV'                    => 'System Environment',
314
-	'LBL_START'							=> 'Start',
315
-	'LBL_SHOW_PASS'                     => 'Show Passwords',
316
-	'LBL_HIDE_PASS'                     => 'Hide Passwords',
317
-	'LBL_HIDDEN'                        => '<i>(hidden)</i>',
318
-	'LBL_STEP1' => 'Step 1 of 2 - Pre-Installation requirements',
319
-	'LBL_STEP2' => 'Step 2 of 2 - Configuration',
320
-	'LBL_STEP'							=> 'Step',
321
-	'LBL_TITLE_WELCOME'					=> 'Welcome to the SuiteCRM ',
322
-	//welcome page variables
323
-	'LBL_TITLE_ARE_YOU_READY'            => 'Are you ready to install?',
324
-	'REQUIRED_SYS_COMP' => 'Required System Components',
325
-	'REQUIRED_SYS_COMP_MSG' =>
326
-		'Before you begin, please be sure that you have the supported versions of the following system components:<br>
46
+    'LBL_BASIC_SEARCH'					=> 'Quick Filter',
47
+    'LBL_ADVANCED_SEARCH'				=> 'Advanced Filter',
48
+    'LBL_BASIC_TYPE'					=> 'Basic Type',
49
+    'LBL_ADVANCED_TYPE'					=> 'Advanced Type',
50
+    'LBL_SYSOPTS_2'                     => 'What type of database will be used for the SuiteCRM instance you are about to install?',
51
+    'LBL_SYSOPTS_DB'					=> 'Specify Database Type',
52
+    'LBL_SYSOPTS_DB_TITLE'              => 'Database Type',
53
+    'LBL_SYSOPTS_ERRS_TITLE'			=> 'Please fix the following errors before proceeding:',
54
+    'ERR_DB_VERSION_FAILURE'			=> 'Unable to check database version.',
55
+    'DEFAULT_CHARSET'					=> 'UTF-8',
56
+    'ERR_ADMIN_USER_NAME_BLANK'         => 'Provide the user name for the SuiteCRM admin user. ',
57
+    'ERR_ADMIN_PASS_BLANK'				=> 'Provide the password for the SuiteCRM admin user. ',
58
+
59
+    'ERR_CHECKSYS'                      => 'Errors have been detected during compatibility check. In order for your SuiteCRM Installation to function properly, please take the proper steps to address the issues listed below and either press the recheck button, or try installing again.',
60
+    'ERR_CHECKSYS_CALL_TIME'            => 'Allow Call Time Pass Reference is On (this should be set to Off in php.ini)',
61
+    'ERR_CHECKSYS_CURL'					=> 'Not found: SuiteCRM Scheduler will run with limited functionality.',
62
+    'ERR_CHECKSYS_IMAP'					=> 'Not found: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.',
63
+    'ERR_CHECKSYS_MEM_LIMIT_1'			=> ' (Set this to ',
64
+    'ERR_CHECKSYS_MEM_LIMIT_2'			=> 'M or larger in your php.ini file)',
65
+    'ERR_CHECKSYS_NOT_WRITABLE'			=> 'Warning: Not Writable',
66
+    'ERR_CHECKSYS_PHP_INVALID_VER'		=> 'Your version of PHP is not supported by SuiteCRM. You will need to install a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported PHP Versions. Your version is ',
67
+    'ERR_CHECKSYS_IIS_INVALID_VER'      => 'Your version of IIS is not supported by SuiteCRM. You will need to install a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported IIS Versions. Your version is ',
68
+    'ERR_CHECKSYS_FASTCGI'              => 'We detect that you are not using a FastCGI handler mapping for PHP. You will need to install/configure a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported Versions. Please see <a href="http://www.iis.net/php/" target="_blank">http://www.iis.net/php/</a> for details ',
69
+    'ERR_CHECKSYS_FASTCGI_LOGGING'      => 'For optimal experience using IIS/FastCGI sapi, set fastcgi.logging to 0 in your php.ini file.',
70
+    'LBL_DB_UNAVAILABLE'                => 'Database unavailable',
71
+    'LBL_CHECKSYS_DB_SUPPORT_NOT_AVAILABLE' => 'Database Support was not found. Please make sure you have the necessary drivers for one of the following supported Database Types: MySQL or MS SQLServer. You might need to uncomment the extension in the php.ini file, or recompile with the right binary file, depending on your version of PHP. Please refer to your PHP Manual for more information on how to enable Database Support.',
72
+    'LBL_CHECKSYS_XML_NOT_AVAILABLE'        => 'Functions associated with XML Parser Libraries that are needed by the SuiteCRM application were not found. You might need to uncomment the extension in the  php.ini file, or recompile with the right binary file, depending on your version of PHP. Please refer to your PHP Manual for more information.',
73
+    'ERR_CHECKSYS_MBSTRING'             => 'Functions associated with the Multibyte Strings PHP extension (mbstring) that are needed by the SuiteCRM application were not found. <br/><br/>Generally, the mbstring module is not enabled by default in PHP and must be activated with --enable-mbstring when the PHP binary is built. Please refer to your PHP Manual for more information on how to enable mbstring support.',
74
+    'ERR_CHECKSYS_CONFIG_NOT_WRITABLE'  => 'The config file exists but is not writeable. Please take the necessary steps to make the file writeable. Depending on your Operating system, this might require you to change the permissions by running chmod 766, or to right click on the filename to access the properties and uncheck the read only option.',
75
+    'ERR_CHECKSYS_CONFIG_OVERRIDE_NOT_WRITABLE'  => 'The config override file exists but is not writeable. Please take the necessary steps to make the file writeable. Depending on your Operating system, this might require you to change the permissions by running chmod 766, or to right click on the filename to access the properties and uncheck the read only option.',
76
+    'ERR_CHECKSYS_CUSTOM_NOT_WRITABLE'  => 'The Custom Directory exists but is not writeable. You may have to change permissions on it (chmod 766) or right click on it and uncheck the read only option, depending on your Operating System. Please take the needed steps to make the file writeable.',
77
+    'ERR_CHECKSYS_FILES_NOT_WRITABLE'   => "The files or directories listed below are not writeable or are missing and cannot be created. Depending on your Operating System, correcting this may require you to change permissions on the files or parent directory (chmod 755), or to right click on the parent directory and uncheck the 'read only' option and apply it to all subfolders.",
78
+    'LBL_CHECKSYS_OVERRIDE_CONFIG' => 'Config override',
79
+    'ERR_CHECKSYS_SAFE_MODE'			=> 'Safe Mode is On (you may wish to disable in php.ini)',
80
+    'ERR_CHECKSYS_ZLIB'					=> 'ZLib support not found: SuiteCRM reaps enormous performance benefits with zlib compression.',
81
+    'ERR_CHECKSYS_ZIP'					=> 'ZIP support not found: SuiteCRM needs ZIP support in order to process compressed files.',
82
+    'ERR_CHECKSYS_PCRE'					=> 'PCRE library not found: SuiteCRM needs PCRE library in order to process Perl style of regular expression pattern matching.',
83
+    'ERR_CHECKSYS_PCRE_VER'				=> 'PCRE library version: SuiteCRM needs PCRE library 7.0 or above to process Perl style of regular expression pattern matching.',
84
+    'ERR_DB_ADMIN'						=> 'The provided database administrator username and/or password is invalid, and a connection to the database could not be established. Please enter a valid user name and password. (Error: ',
85
+    'ERR_DB_ADMIN_MSSQL'                => 'The provided database administrator username and/or password is invalid, and a connection to the database could not be established. Please enter a valid user name and password.',
86
+    'ERR_DB_EXISTS_NOT'					=> 'The specified database does not exist.',
87
+    'ERR_DB_EXISTS_WITH_CONFIG'			=> 'Database already exists with config data. To run an install with the chosen database, please re-run the install and choose: "Drop and recreate existing SuiteCRM tables?"  To upgrade, use the Upgrade Wizard in the Admin Console. Please read the upgrade documentation located <a href="http://www.suitecrm.com" target="_new">here</a>.',
88
+    'ERR_DB_EXISTS'						=> 'The provided Database Name already exists -- cannot create another one with the same name.',
89
+    'ERR_DB_EXISTS_PROCEED'             => 'The provided Database Name already exists. You can<br>1. hit the back button and choose a new database name <br>2. click next and continue but all existing tables on this database will be dropped. <strong>This means your tables and data will be blown away.</strong>',
90
+    'ERR_DB_HOSTNAME'					=> 'Host name cannot be blank.',
91
+    'ERR_DB_INVALID'					=> 'Invalid database type selected.',
92
+    'ERR_DB_LOGIN_FAILURE'				=> 'The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password',
93
+    'ERR_DB_LOGIN_FAILURE_MYSQL'		=> 'The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password',
94
+    'ERR_DB_LOGIN_FAILURE_MSSQL'		=> 'The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password',
95
+    'ERR_DB_MYSQL_VERSION'				=> 'Your MySQL version (%s) is not supported by SuiteCRM. You will need to install a version that is compatible with the SuiteCRM application. Please consult the Compatibility Matrix in the Release Notes for supported MySQL versions.',
96
+    'ERR_DB_NAME'						=> 'Database name cannot be blank.',
97
+    'ERR_DB_MYSQL_DB_NAME_INVALID'      => "Database name cannot contain a '\\', '/', or '.'",
98
+    'ERR_DB_MSSQL_DB_NAME_INVALID'      => "Database name cannot begin with a number, '#', or '@' and cannot contain a space, '\"', \"'\", '*', '/', '\', '?', ':', '<', '>', '&', '!', or '-'",
99
+    'ERR_DB_OCI8_DB_NAME_INVALID'       => "Database name can only consist of alphanumeric characters and the symbols '#', '_' or '$'",
100
+    'ERR_DB_PASSWORD'					=> 'The passwords provided for the SuiteCRM database administrator do not match. Please re-enter the same passwords in the password fields.',
101
+    'ERR_DB_PRIV_USER'					=> 'Provide a database administrator user name. The user is required for the initial connection to the database.',
102
+    'ERR_DB_USER_EXISTS'				=> 'User name for SuiteCRM database user already exists -- cannot create another one with the same name. Please enter a new user name.',
103
+    'ERR_DB_USER'						=> 'Enter a user name for the SuiteCRM database administrator.',
104
+    'ERR_DBCONF_VALIDATION'				=> 'Please fix the following errors before proceeding:',
105
+    'ERR_DBCONF_PASSWORD_MISMATCH'      => 'The passwords provided for the SuiteCRM database user do not match. Please re-enter the same passwords in the password fields.',
106
+    'ERR_ERROR_GENERAL'					=> 'The following errors were encountered:',
107
+    'ERR_LANG_CANNOT_DELETE_FILE'		=> 'Cannot delete file: ',
108
+    'ERR_LANG_MISSING_FILE'				=> 'Cannot find file: ',
109
+    'ERR_LANG_NO_LANG_FILE'			 	=> 'No language pack file found at include/language inside: ',
110
+    'ERR_LANG_UPLOAD_1'					=> 'There was a problem with your upload. Please try again.',
111
+    'ERR_LANG_UPLOAD_2'					=> 'Language Packs must be ZIP archives.',
112
+    'ERR_LANG_UPLOAD_3'					=> 'PHP could not move the temp file to the upgrade directory.',
113
+    'ERR_LOG_DIRECTORY_NOT_EXISTS'		=> 'Log directory provided is not a valid directory.',
114
+    'ERR_LOG_DIRECTORY_NOT_WRITABLE'	=> 'Log directory provided is not a writable directory.',
115
+    'ERR_NO_DIRECT_SCRIPT'				=> 'Unable to process script directly.',
116
+    'ERR_NO_SINGLE_QUOTE'				=> 'Cannot use the single quotation mark for ',
117
+    'ERR_PASSWORD_MISMATCH'				=> 'The passwords provided for the SuiteCRM admin user do not match. Please re-enter the same passwords in the password fields.',
118
+    'ERR_PERFORM_CONFIG_PHP_1'			=> 'Cannot write to the <span class=stop>config.php</span> file.',
119
+    'ERR_PERFORM_CONFIG_PHP_2'			=> 'You can continue this installation by manually creating the config.php file and pasting the configuration information below into the config.php file. However, you <strong>must </strong>create the config.php file before you continue to the next step.',
120
+    'ERR_PERFORM_CONFIG_PHP_3'			=> 'Did you remember to create the config.php file?',
121
+    'ERR_PERFORM_CONFIG_PHP_4'			=> 'Warning: Could not write to config.php file. Please ensure it exists.',
122
+    'ERR_PERFORM_HTACCESS_1'			=> 'Cannot write to the ',
123
+    'ERR_PERFORM_HTACCESS_2'			=> ' file.',
124
+    'ERR_PERFORM_HTACCESS_3'			=> 'If you want to secure your log file from being accessible via browser, create an .htaccess file in your log directory with the line:',
125
+    'ERR_PERFORM_NO_TCPIP'				=> '<b>We could not detect an Internet connection.</b> When you do have a connection, please visit <a href="http://www.suitecrm.com/">http://www.suitecrm.com/</a> to register with SuiteCRM. By letting us know a little bit about how your company plans to use SuiteCRM, we can ensure we are always delivering the right application for your business needs.',
126
+    'ERR_SESSION_DIRECTORY_NOT_EXISTS'	=> 'Session directory provided is not a valid directory.',
127
+    'ERR_SESSION_DIRECTORY'				=> 'Session directory provided is not a writable directory.',
128
+    'ERR_SESSION_PATH'					=> 'Session path is required if you wish to specify your own.',
129
+    'ERR_SI_NO_CONFIG'					=> 'You did not include config_si.php in the document root, or you did not define $sugar_config_si in config.php',
130
+    'ERR_SITE_GUID'						=> 'Application ID is required if you wish to specify your own.',
131
+    'ERROR_SPRITE_SUPPORT'              => "Currently we are not able to locate the GD library, as a result you will not be able to use the CSS Sprite functionality.",
132
+    'ERR_UPLOAD_MAX_FILESIZE'			=> 'Warning: Your PHP configuration should be changed to allow files of at least 6MB to be uploaded.',
133
+    'LBL_UPLOAD_MAX_FILESIZE_TITLE'     => 'Upload File Size',
134
+    'ERR_URL_BLANK'						=> 'Provide the base URL for the SuiteCRM instance.',
135
+    'ERR_UW_NO_UPDATE_RECORD'			=> 'Could not locate installation record of',
136
+    'ERROR_FLAVOR_INCOMPATIBLE'			=> 'The uploaded file is not compatible with this flavor of SuiteCRM: ',
137
+    'ERROR_MANIFEST_TYPE'				=> 'Manifest file must specify the package type.',
138
+    'ERROR_PACKAGE_TYPE'				=> 'Manifest file specifies an unrecognized package type',
139
+    'ERROR_VERSION_INCOMPATIBLE'		=> 'The uploaded file is not compatible with this version of SuiteCRM: ',
140
+
141
+    'LBL_BACK'							=> 'Back',
142
+    'LBL_CANCEL'                        => 'Cancel',
143
+    'LBL_ACCEPT'                        => 'I Accept',
144
+    'LBL_CHECKSYS_CACHE'				=> 'Writable Cache Sub-Directories',
145
+    'LBL_DROP_DB_CONFIRM'               => 'The provided Database Name already exists.<br>You can either:<br>1. Click on the Cancel button and choose a new database name, or <br>2. Click the Accept button and continue. All existing tables in the database will be dropped. <strong>This means that all of the tables and pre-existing data will be blown away.</strong>',
146
+    'LBL_CHECKSYS_COMPONENT'			=> 'Component',
147
+    'LBL_CHECKSYS_CONFIG'				=> 'Writable SuiteCRM Configuration File (config.php)',
148
+    'LBL_CHECKSYS_CURL'					=> 'cURL Module',
149
+    'LBL_CHECKSYS_CUSTOM'				=> 'Writeable Custom Directory',
150
+    'LBL_CHECKSYS_DATA'					=> 'Writable Data Sub-Directories',
151
+    'LBL_CHECKSYS_IMAP'					=> 'IMAP Module',
152
+    'LBL_CHECKSYS_FASTCGI'             => 'FastCGI',
153
+    'LBL_CHECKSYS_MBSTRING'				=> 'MB Strings Module',
154
+    'LBL_CHECKSYS_MEM_OK'				=> 'OK (No Limit)',
155
+    'LBL_CHECKSYS_MEM_UNLIMITED'		=> 'OK (Unlimited)',
156
+    'LBL_CHECKSYS_MEM'					=> 'PHP Memory Limit',
157
+    'LBL_CHECKSYS_MODULE'				=> 'Writable Modules Sub-Directories and Files',
158
+    'LBL_CHECKSYS_NOT_AVAILABLE'		=> 'Not Available',
159
+    'LBL_CHECKSYS_OK'					=> 'OK',
160
+    'LBL_CHECKSYS_PHP_INI'				=> 'Location of your PHP configuration file (php.ini):',
161
+    'LBL_CHECKSYS_PHP_OK'				=> 'OK (ver ',
162
+    'LBL_CHECKSYS_PHPVER'				=> 'PHP Version',
163
+    'LBL_CHECKSYS_IISVER'               => 'IIS Version',
164
+    'LBL_CHECKSYS_RECHECK'				=> 'Re-check',
165
+    'LBL_CHECKSYS_STATUS'				=> 'Status',
166
+    'LBL_CHECKSYS_TITLE'				=> 'System Check Acceptance',
167
+    'LBL_CHECKSYS_XML'					=> 'XML Parsing',
168
+    'LBL_CHECKSYS_ZLIB'					=> 'ZLIB Compression Module',
169
+    'LBL_CHECKSYS_ZIP'					=> 'ZIP Handling Module',
170
+    'LBL_CHECKSYS_PCRE'					=> 'PCRE Library',
171
+    'LBL_CHECKSYS_FIX_FILES'            => 'Please fix the following files or directories before proceeding:',
172
+    'LBL_CHECKSYS_FIX_MODULE_FILES'     => 'Please fix the following module directories and the files under them before proceeding:',
173
+    'LBL_CHECKSYS_UPLOAD'               => 'Writable Upload Directory',
174
+    'LBL_CLOSE'							=> 'Close',
175
+    'LBL_THREE'                         => '3',
176
+    'LBL_CONFIRM_BE_CREATED'			=> 'be created',
177
+    'LBL_CONFIRM_DB_TYPE'				=> 'Database Type',
178
+    'LBL_CONFIRM_NOT'					=> 'not',
179
+    'LBL_CONFIRM_TITLE'					=> 'Confirm Settings',
180
+    'LBL_CONFIRM_WILL'					=> 'will',
181
+    'LBL_DBCONF_DB_DROP'                => 'Drop Tables',
182
+    'LBL_DBCONF_DB_NAME'				=> 'Database Name',
183
+    'LBL_DBCONF_DB_PASSWORD'			=> 'SuiteCRM Database User Password',
184
+    'LBL_DBCONF_DB_PASSWORD2'			=> 'Re-enter SuiteCRM Database User Password',
185
+    'LBL_DBCONF_DB_USER'				=> 'SuiteCRM Database User',
186
+    'LBL_DBCONF_SUGAR_DB_USER'          => 'SuiteCRM Database User',
187
+    'LBL_DBCONF_DB_ADMIN_USER'          => 'Database Administrator Username',
188
+    'LBL_DBCONF_DB_ADMIN_PASSWORD'      => 'Database Admin Password',
189
+    'LBL_DBCONF_DEMO_DATA'				=> 'Populate Database with Demo Data?',
190
+    'LBL_DBCONF_DEMO_DATA_TITLE'        => 'Choose Demo Data',
191
+    'LBL_DBCONF_HOST_NAME'				=> 'Host Name',
192
+    'LBL_DBCONF_HOST_INSTANCE'			=> 'Host Instance',
193
+    'LBL_DBCONFIG_SECURITY'             => 'For security purposes, you can specify an exclusive database user to connect to the SuiteCRM database. This user must be able to write, update and retrieve data on the SuiteCRM database that will be created for this instance. This user can be the database administrator specified above, or you can provide new or existing database user information.',
194
+    'LBL_DBCONFIG_PROVIDE_DD'           => 'Provide existing user',
195
+    'LBL_DBCONFIG_CREATE_DD'            => 'Define user to create',
196
+    'LBL_DBCONFIG_SAME_DD'              => 'Same as Admin User',
197
+    'LBL_DBCONF_TITLE'					=> 'Database Configuration',
198
+    'LBL_DBCONF_TITLE_NAME'             => 'Provide Database Name',
199
+    'LBL_DBCONF_TITLE_USER_INFO'        => 'Provide Database User Information',
200
+    'LBL_DBCONF_TITLE_PSWD_INFO_LABEL' => 'Password',
201
+    'LBL_DISABLED_DESCRIPTION_2'		=> 'After this change has been made, you may click the "Start" button below to begin your installation. <i>After the installation is complete, you will want to change the value for \'installer_locked\' to \'true\'.</i>',
202
+    'LBL_DISABLED_DESCRIPTION'			=> 'The installer has already been run once. As a safety measure, it has been disabled from running a second time. If you are absolutely sure you want to run it again, please go to your config.php file and locate (or add) a variable called \'installer_locked\' and set it to \'false\'. The line should look like this:',
203
+    'LBL_DISABLED_HELP_1'				=> 'For installation help, please visit the SuiteCRM',
204
+    'LBL_DISABLED_HELP_LNK'             => 'http://www.suitecrm.com/forum/index',
205
+    'LBL_DISABLED_HELP_2'				=> 'support forums',
206
+    'LBL_DISABLED_TITLE_2'				=> 'SuiteCRM Installation has been Disabled',
207
+    'LBL_HELP'							=> 'Help',
208
+    'LBL_INSTALL'                       => 'Install',
209
+    'LBL_INSTALL_TYPE_TITLE'            => 'Installation Options',
210
+    'LBL_INSTALL_TYPE_SUBTITLE'         => 'Choose Install Type',
211
+    'LBL_INSTALL_TYPE_TYPICAL'          => ' <b>Typical Install</b>',
212
+    'LBL_INSTALL_TYPE_CUSTOM'           => ' <b>Custom Install</b>',
213
+    'LBL_INSTALL_TYPE_MSG2'             => 'Requires minimum information for the installation. Recommended for new users.',
214
+    'LBL_INSTALL_TYPE_MSG3'             => 'Provides additional options to set during the installation. Most of these options are also available after installation in the admin screens. Recommended for advanced users.',
215
+    'LBL_LANG_1'						=> 'To use a language in SuiteCRM other than the default language (US-English), you can upload and install the language pack at this time. You will be able to upload and install language packs from within the SuiteCRM application as well. If you would like to skip this step, click Next.',
216
+    'LBL_LANG_BUTTON_COMMIT'			=> 'Install',
217
+    'LBL_LANG_BUTTON_REMOVE'			=> 'Remove',
218
+    'LBL_LANG_BUTTON_UNINSTALL'			=> 'Uninstall',
219
+    'LBL_LANG_BUTTON_UPLOAD'			=> 'Upload',
220
+    'LBL_LANG_NO_PACKS'					=> 'none',
221
+    'LBL_LANG_PACK_INSTALLED'			=> 'The following language packs have been installed: ',
222
+    'LBL_LANG_PACK_READY'				=> 'The following language packs are ready to be installed: ',
223
+    'LBL_LANG_SUCCESS'					=> 'The language pack was successfully uploaded.',
224
+    'LBL_LANG_TITLE'			   		=> 'Language Pack',
225
+    'LBL_LAUNCHING_SILENT_INSTALL'     => 'Installing SuiteCRM now. This may take up to a few minutes.',
226
+    'LBL_LANG_UPLOAD'					=> 'Upload a Language Pack',
227
+    'LBL_LICENSE_ACCEPTANCE'			=> 'License Acceptance',
228
+    'LBL_LICENSE_CHECKING'              => 'Checking system for compatibility.',
229
+    'LBL_LICENSE_CHKENV_HEADER'         => 'Checking Environment',
230
+    'LBL_LICENSE_CHKDB_HEADER'          => 'Verifying DB Credentials.',
231
+    'LBL_LICENSE_CHECK_PASSED'          => 'System passed check for compatibility.',
232
+    'LBL_CREATE_CACHE' => 'Preparing to Install...',
233
+    'LBL_LICENSE_REDIRECT'              => 'Redirecting in ',
234
+    'LBL_LICENSE_I_ACCEPT'				=> 'I Accept',
235
+    'LBL_LICENSE_PRINTABLE'				=> ' Printable View ',
236
+    'LBL_PRINT_SUMM'                    => 'Print Summary',
237
+    'LBL_LICENSE_TITLE_2'				=> 'SuiteCRM License',
238
+
239
+    'LBL_LOCALE_NAME_FIRST'				=> 'David',
240
+    'LBL_LOCALE_NAME_LAST'				=> 'Livingstone',
241
+    'LBL_LOCALE_NAME_SALUTATION'		=> 'Dr.',
242
+
243
+    'LBL_ML_ACTION'						=> 'Action',
244
+    'LBL_ML_DESCRIPTION'				=> 'Description',
245
+    'LBL_ML_INSTALLED'					=> 'Date Installed',
246
+    'LBL_ML_NAME'						=> 'Name',
247
+    'LBL_ML_PUBLISHED'					=> 'Date Published',
248
+    'LBL_ML_TYPE'						=> 'Type',
249
+    'LBL_ML_UNINSTALLABLE'				=> 'Uninstallable',
250
+    'LBL_ML_VERSION'					=> 'Version',
251
+    'LBL_MSSQL'							=> 'SQL Server',
252
+    'LBL_MSSQL2'                        => 'SQL Server (FreeTDS)',
253
+    'LBL_MSSQL_SQLSRV'				    => 'SQL Server (Microsoft SQL Server Driver for PHP)',
254
+    'LBL_MYSQL'							=> 'MySQL',
255
+    'LBL_MYSQLI'						=> 'MySQL (mysqli extension)',
256
+    'LBL_NEXT'							=> 'Next',
257
+    'LBL_NO'							=> 'No',
258
+    'LBL_PERFORM_ADMIN_PASSWORD'		=> 'Setting site admin password',
259
+    'LBL_PERFORM_CONFIG_PHP'			=> 'Creating SuiteCRM configuration file',
260
+    'LBL_PERFORM_CREATE_DB_1'			=> '<b>Creating the database</b> ',
261
+    'LBL_PERFORM_CREATE_DB_2'			=> ' <b>on</b> ',
262
+    'LBL_PERFORM_CREATE_DB_USER'		=> 'Creating the Database username and password...',
263
+    'LBL_PERFORM_CREATE_DEFAULT'		=> 'Creating default SuiteCRM data',
264
+    'LBL_PERFORM_DEFAULT_SCHEDULER'		=> 'Creating default scheduler jobs',
265
+    'LBL_PERFORM_DEFAULT_USERS'			=> 'Creating default users',
266
+    'LBL_PERFORM_DEMO_DATA'				=> 'Populating the database tables with demo data (this may take a little while)',
267
+    'LBL_PERFORM_DONE'					=> 'done<br>',
268
+    'LBL_PERFORM_FINISH'				=> 'Finish',
269
+    'LBL_PERFORM_OUTRO_1'				=> 'The setup of SuiteCRM ',
270
+    'LBL_PERFORM_OUTRO_2'				=> ' is now complete!',
271
+    'LBL_PERFORM_OUTRO_3'				=> 'Total time: ',
272
+    'LBL_PERFORM_OUTRO_4'				=> ' seconds.',
273
+    'LBL_PERFORM_OUTRO_5'				=> 'Approximate memory used: ',
274
+    'LBL_PERFORM_OUTRO_6'				=> ' bytes.',
275
+    'LBL_PERFORM_SUCCESS'				=> 'Success!',
276
+    'LBL_PERFORM_TABLES'				=> 'Creating SuiteCRM application tables, audit tables and relationship metadata',
277
+    'LBL_PERFORM_TITLE'					=> 'Perform Setup',
278
+    'LBL_PRINT'							=> 'Print',
279
+    'LBL_REG_CONF_1'					=> 'Please complete the short form below to receive product announcements, training news, special offers and special event invitations from SuiteCRM. We do not sell, rent, share or otherwise distribute the information collected here to third parties.',
280
+    'LBL_REG_CONF_3'					=> 'Thank you for registering. Click on the Finish button to login to SuiteCRM. You will need to log in for the first time using the username "admin" and the password you entered in step 2.',
281
+    'LBL_REG_TITLE'						=> 'Registration',
282
+    'LBL_REQUIRED'						=> '* Required field',
283
+
284
+    'LBL_SITECFG_ADMIN_Name'            => 'SuiteCRM Application Admin Name',
285
+    'LBL_SITECFG_ADMIN_PASS_2'			=> 'Re-enter SuiteCRM Admin User Password',
286
+    'LBL_SITECFG_ADMIN_PASS'			=> 'SuiteCRM Admin User Password',
287
+    'LBL_SITECFG_APP_ID'				=> 'Application ID',
288
+    'LBL_SITECFG_CUSTOM_ID_DIRECTIONS'	=> 'If selected, you must provide an application ID to override the auto-generated ID. The ID ensures that sessions of one SuiteCRM instance are not used by other instances. If you have a cluster of SuiteCRM installations, they all must share the same application ID.',
289
+    'LBL_SITECFG_CUSTOM_ID'				=> 'Provide Your Own Application ID',
290
+    'LBL_SITECFG_CUSTOM_LOG_DIRECTIONS'	=> 'If selected, you must specify a log directory to override the default directory for the SuiteCRM log. Regardless of where the log file is located, access to it through a web browser will be restricted via an .htaccess redirect.',
291
+    'LBL_SITECFG_CUSTOM_LOG'			=> 'Use a Custom Log Directory',
292
+    'LBL_SITECFG_CUSTOM_SESSION_DIRECTIONS'	=> 'If selected, you must provide a secure folder for storing SuiteCRM session information. This can be done to prevent session data from being vulnerable on shared servers.',
293
+    'LBL_SITECFG_CUSTOM_SESSION'		=> 'Use a Custom Session Directory for SuiteCRM',
294
+    'LBL_SITECFG_FIX_ERRORS'			=> '<b>Please fix the following errors before proceeding:</b>',
295
+    'LBL_SITECFG_LOG_DIR'				=> 'Log Directory',
296
+    'LBL_SITECFG_SESSION_PATH'			=> 'Path to Session Directory<br>(must be writable)',
297
+    'LBL_SITECFG_SITE_SECURITY'			=> 'Select Security Options',
298
+    'LBL_SITECFG_SUGAR_UP_DIRECTIONS'	=> 'If selected, the system will periodically check for updated versions of the application.',
299
+    'LBL_SITECFG_SUGAR_UP'				=> 'Automatically Check For Updates?',
300
+    'LBL_SITECFG_SUGAR_UPDATES'			=> 'SuiteCRM Updates Config',
301
+    'LBL_SITECFG_TITLE'					=> 'Site Configuration',
302
+    'LBL_SITECFG_TITLE2'                => 'Identify Administration User',
303
+    'LBL_SITECFG_SECURITY_TITLE'        => 'Site Security',
304
+    'LBL_SITECFG_URL'					=> 'URL of SuiteCRM Instance',
305
+    'LBL_SITECFG_ANONSTATS'             => 'Send Anonymous Usage Statistics?',
306
+    'LBL_SITECFG_ANONSTATS_DIRECTIONS'  => 'If selected, SuiteCRM will send <b>anonymous</b> statistics about your installation to SuiteCRM Inc. every time your system checks for new versions. This information will help us better understand how the application is used and guide improvements to the product.',
307
+    'LBL_SITECFG_URL_MSG'               => 'Enter the URL that will be used to access the SuiteCRM instance after installation. The URL will also be used as a base for the URLs in the SuiteCRM application pages. The URL should include the web server or machine name or IP address.',
308
+    'LBL_SITECFG_SYS_NAME_MSG'          => 'Enter a name for your system. This name will be displayed in the browser title bar when users visit the SuiteCRM application.',
309
+    'LBL_SITECFG_PASSWORD_MSG'          => 'After installation, you will need to use the SuiteCRM admin user (default username = admin) to log in to the SuiteCRM instance. Enter a password for this administrator user. This password can be changed after the initial login. You may also enter another admin username to use besides the default value provided.',
310
+    'LBL_SITECFG_COLLATION_MSG'         => 'Select collation (sorting) settings for your system. This settings will create the tables with the specific language you use. In case your language doesn\'t require special settings please use default value.',
311
+    'LBL_SPRITE_SUPPORT'                => 'Sprite Support',
312
+    'LBL_SYSTEM_CREDS'                  => 'System Credentials',
313
+    'LBL_SYSTEM_ENV'                    => 'System Environment',
314
+    'LBL_START'							=> 'Start',
315
+    'LBL_SHOW_PASS'                     => 'Show Passwords',
316
+    'LBL_HIDE_PASS'                     => 'Hide Passwords',
317
+    'LBL_HIDDEN'                        => '<i>(hidden)</i>',
318
+    'LBL_STEP1' => 'Step 1 of 2 - Pre-Installation requirements',
319
+    'LBL_STEP2' => 'Step 2 of 2 - Configuration',
320
+    'LBL_STEP'							=> 'Step',
321
+    'LBL_TITLE_WELCOME'					=> 'Welcome to the SuiteCRM ',
322
+    //welcome page variables
323
+    'LBL_TITLE_ARE_YOU_READY'            => 'Are you ready to install?',
324
+    'REQUIRED_SYS_COMP' => 'Required System Components',
325
+    'REQUIRED_SYS_COMP_MSG' =>
326
+        'Before you begin, please be sure that you have the supported versions of the following system components:<br>
327 327
                       <ul>
328 328
                       <li> Database/Database Management System (Examples: MariaDB, MySQL or SQL Server)</li>
329 329
                       <li> Web Server (Apache, IIS)</li>
330 330
                       </ul>
331 331
                       Consult the Compatibility Matrix in the Release Notes for
332 332
                       compatible system components for the SuiteCRM version that you are installing.<br>',
333
-	'REQUIRED_SYS_CHK' => 'Initial System Check',
334
-	'REQUIRED_SYS_CHK_MSG' =>
335
-		'When you begin the installation process, a system check will be performed on the web server on which the SuiteCRM files are located in order to
333
+    'REQUIRED_SYS_CHK' => 'Initial System Check',
334
+    'REQUIRED_SYS_CHK_MSG' =>
335
+        'When you begin the installation process, a system check will be performed on the web server on which the SuiteCRM files are located in order to
336 336
                       make sure the system is configured properly and has all of the necessary components
337 337
                       to successfully complete the installation. <br><br>
338 338
                       The system checks all of the following:<br>
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
 
355 355
 
356 356
 
357
-	'REQUIRED_INSTALLTYPE' => 'Typical or Custom install',
358
-	'REQUIRED_INSTALLTYPE_MSG' =>
359
-		'After the system check is performed, you can choose either
357
+    'REQUIRED_INSTALLTYPE' => 'Typical or Custom install',
358
+    'REQUIRED_INSTALLTYPE_MSG' =>
359
+        'After the system check is performed, you can choose either
360 360
                       the Typical or the Custom installation.<br><br>
361 361
                       For both <b>Typical</b> and <b>Custom</b> installations, you will need to know the following:<br>
362 362
                       <ul>
@@ -398,40 +398,40 @@  discard block
 block discarded – undo
398 398
                                   <li><b>Character Set</b> most commonly used in your locale.<br><br></li></ul>
399 399
                                   For more detailed information, please consult the Installation Guide.
400 400
                                 ',
401
-	'LBL_WELCOME_PLEASE_READ_BELOW' => 'Please read the following important information before proceeding with the installation. The information will help you determine whether or not you are ready to install the application at this time.',
402
-
403
-	'LBL_WELCOME_CHOOSE_LANGUAGE'		=> '<b>Choose your language</b>',
404
-	'LBL_WELCOME_SETUP_WIZARD'			=> 'Setup Wizard',
405
-	'LBL_WIZARD_TITLE'					=> 'SuiteCRM Setup Wizard: ',
406
-	'LBL_YES'							=> 'Yes',
407
-
408
-	'LBL_PATCHES_TITLE'     => 'Install Latest Patches',
409
-	'LBL_MODULE_TITLE'      => 'Install Language Packs',
410
-	'LBL_PATCH_1'           => 'If you would like to skip this step, click Next.',
411
-	'LBL_PATCH_TITLE'       => 'System Patch',
412
-	'LBL_PATCH_READY'       => 'The following patch(es) are ready to be installed:',
413
-	'LBL_SESSION_ERR_DESCRIPTION'		=> "SuiteCRM relies upon PHP sessions to store important information while connected to this web server. Your PHP installation does not have the Session information correctly configured.
401
+    'LBL_WELCOME_PLEASE_READ_BELOW' => 'Please read the following important information before proceeding with the installation. The information will help you determine whether or not you are ready to install the application at this time.',
402
+
403
+    'LBL_WELCOME_CHOOSE_LANGUAGE'		=> '<b>Choose your language</b>',
404
+    'LBL_WELCOME_SETUP_WIZARD'			=> 'Setup Wizard',
405
+    'LBL_WIZARD_TITLE'					=> 'SuiteCRM Setup Wizard: ',
406
+    'LBL_YES'							=> 'Yes',
407
+
408
+    'LBL_PATCHES_TITLE'     => 'Install Latest Patches',
409
+    'LBL_MODULE_TITLE'      => 'Install Language Packs',
410
+    'LBL_PATCH_1'           => 'If you would like to skip this step, click Next.',
411
+    'LBL_PATCH_TITLE'       => 'System Patch',
412
+    'LBL_PATCH_READY'       => 'The following patch(es) are ready to be installed:',
413
+    'LBL_SESSION_ERR_DESCRIPTION'		=> "SuiteCRM relies upon PHP sessions to store important information while connected to this web server. Your PHP installation does not have the Session information correctly configured.
414 414
 											<br><br>A common misconfiguration is that the <b>'session.save_path'</b> directive is not pointing to a valid directory. <br>
415 415
 											<br> Please correct your <a target=_new href='http://us2.php.net/manual/en/ref.session.php'>PHP configuration</a> in the php.ini file located here below.",
416
-	'LBL_SESSION_ERR_TITLE'				=> 'PHP Sessions Configuration Error',
417
-	'LBL_SYSTEM_NAME'=>'System Name',
418
-	'LBL_COLLATION' => 'Collation Settings',
419
-	'LBL_REQUIRED_SYSTEM_NAME'=>'Provide a System Name for the SuiteCRM instance.',
420
-	'LBL_PATCH_UPLOAD' => 'Select a patch file from your local computer',
421
-	'LBL_INCOMPATIBLE_PHP_VERSION' => 'Php version 5 or above is required.',
422
-	'LBL_MINIMUM_PHP_VERSION' => 'Minimum Php version required is 5.1.0. Recommended Php version is 5.2.x.',
423
-	'LBL_YOUR_PHP_VERSION' => '(Your current php version is ',
424
-	'LBL_RECOMMENDED_PHP_VERSION' =>' Recommended php version is 5.2.x)',
425
-	'LBL_BACKWARD_COMPATIBILITY_ON' => 'Php Backward Compatibility mode is turned on. Set zend.ze1_compatibility_mode to Off for proceeding further',
426
-	'LBL_STREAM' => 'PHP allows to use stream',
427
-
428
-	'advanced_password_new_account_email' => array(
429
-		'subject' => 'New account information',
430
-		'type' => 'system',
431
-		'description' => 'This template is used when the System Administrator sends a new password to a user.',
432
-		'body' => '<div><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width="550" align=\"\&quot;\&quot;center\&quot;\&quot;\"><tbody><tr><td colspan=\"2\"><p>Here is your account username and temporary password:</p><p>Username : $contact_user_user_name </p><p>Password : $contact_user_user_hash </p><br><p>$config_site_url</p><br><p>After you log in using the above password, you may be required to reset the password to one of your own choice.</p>   </td>         </tr><tr><td colspan=\"2\"></td>         </tr> </tbody></table> </div>',
433
-		'txt_body' =>
434
-			'
416
+    'LBL_SESSION_ERR_TITLE'				=> 'PHP Sessions Configuration Error',
417
+    'LBL_SYSTEM_NAME'=>'System Name',
418
+    'LBL_COLLATION' => 'Collation Settings',
419
+    'LBL_REQUIRED_SYSTEM_NAME'=>'Provide a System Name for the SuiteCRM instance.',
420
+    'LBL_PATCH_UPLOAD' => 'Select a patch file from your local computer',
421
+    'LBL_INCOMPATIBLE_PHP_VERSION' => 'Php version 5 or above is required.',
422
+    'LBL_MINIMUM_PHP_VERSION' => 'Minimum Php version required is 5.1.0. Recommended Php version is 5.2.x.',
423
+    'LBL_YOUR_PHP_VERSION' => '(Your current php version is ',
424
+    'LBL_RECOMMENDED_PHP_VERSION' =>' Recommended php version is 5.2.x)',
425
+    'LBL_BACKWARD_COMPATIBILITY_ON' => 'Php Backward Compatibility mode is turned on. Set zend.ze1_compatibility_mode to Off for proceeding further',
426
+    'LBL_STREAM' => 'PHP allows to use stream',
427
+
428
+    'advanced_password_new_account_email' => array(
429
+        'subject' => 'New account information',
430
+        'type' => 'system',
431
+        'description' => 'This template is used when the System Administrator sends a new password to a user.',
432
+        'body' => '<div><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width="550" align=\"\&quot;\&quot;center\&quot;\&quot;\"><tbody><tr><td colspan=\"2\"><p>Here is your account username and temporary password:</p><p>Username : $contact_user_user_name </p><p>Password : $contact_user_user_hash </p><br><p>$config_site_url</p><br><p>After you log in using the above password, you may be required to reset the password to one of your own choice.</p>   </td>         </tr><tr><td colspan=\"2\"></td>         </tr> </tbody></table> </div>',
433
+        'txt_body' =>
434
+            '
435 435
 Here is your account username and temporary password:
436 436
 Username : $contact_user_user_name
437 437
 Password : $contact_user_user_hash
@@ -439,120 +439,120 @@  discard block
 block discarded – undo
439 439
 $config_site_url
440 440
 
441 441
 After you log in using the above password, you may be required to reset the password to one of your own choice.',
442
-		'name' => 'System-generated password email',
443
-	),
444
-	'advanced_password_forgot_password_email' => array(
445
-		'subject' => 'Reset your account password',
446
-		'type' => 'system',
442
+        'name' => 'System-generated password email',
443
+    ),
444
+    'advanced_password_forgot_password_email' => array(
445
+        'subject' => 'Reset your account password',
446
+        'type' => 'system',
447 447
         'description' => "This template is used to send a user a link to click to reset the user's account password.",
448
-		'body' => '<div><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width="550" align=\"\&quot;\&quot;center\&quot;\&quot;\"><tbody><tr><td colspan=\"2\"><p>You recently requested on $contact_user_pwd_last_changed to be able to reset your account password. </p><p>Click on the link below to reset your password:</p><p> $contact_user_link_guid </p>  </td>         </tr><tr><td colspan=\"2\"></td>         </tr> </tbody></table> </div>',
449
-		'txt_body' =>
450
-			'
448
+        'body' => '<div><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width="550" align=\"\&quot;\&quot;center\&quot;\&quot;\"><tbody><tr><td colspan=\"2\"><p>You recently requested on $contact_user_pwd_last_changed to be able to reset your account password. </p><p>Click on the link below to reset your password:</p><p> $contact_user_link_guid </p>  </td>         </tr><tr><td colspan=\"2\"></td>         </tr> </tbody></table> </div>',
449
+        'txt_body' =>
450
+            '
451 451
 You recently requested on $contact_user_pwd_last_changed to be able to reset your account password.
452 452
 
453 453
 Click on the link below to reset your password:
454 454
 
455 455
 $contact_user_link_guid',
456
-		'name' => 'Forgot Password email',
457
-	),
458
-
459
-	// SMTP settings
460
-
461
-	'LBL_WIZARD_SMTP_DESC' => 'Provide the email account that will be used to send emails, such as the assignment notifications and new user passwords. Users will receive emails from SuiteCRM, as sent from the specified email account.',
462
-	'LBL_CHOOSE_EMAIL_PROVIDER'        => 'Choose your Email provider:',
463
-
464
-	'LBL_SMTPTYPE_GMAIL'                    => 'Gmail',
465
-	'LBL_SMTPTYPE_YAHOO'                    => 'Yahoo! Mail',
466
-	'LBL_SMTPTYPE_EXCHANGE'                 => 'Microsoft Exchange',
467
-	'LBL_SMTPTYPE_OTHER'                  => 'Other',
468
-	'LBL_MAIL_SMTP_SETTINGS'           => 'SMTP Server Specification',
469
-	'LBL_MAIL_SMTPSERVER'				=> 'SMTP Server:',
470
-	'LBL_MAIL_SMTPPORT'					=> 'SMTP Port:',
471
-	'LBL_MAIL_SMTPAUTH_REQ'				=> 'Use SMTP Authentication?',
472
-	'LBL_EMAIL_SMTP_SSL_OR_TLS'         => 'Enable SMTP over SSL or TLS?',
473
-	'LBL_GMAIL_SMTPUSER'					=> 'Gmail Email Address:',
474
-	'LBL_GMAIL_SMTPPASS'					=> 'Gmail Password:',
475
-	'LBL_ALLOW_DEFAULT_SELECTION'           => 'Allow users to use this account for outgoing email:',
476
-	'LBL_ALLOW_DEFAULT_SELECTION_HELP'          => 'When this option is selected, all users will be able to send emails using the same outgoing mail account used to send system notifications and alerts. If the option is not selected, users can still use the outgoing mail server after providing their own account information.',
477
-
478
-	'LBL_YAHOOMAIL_SMTPPASS'					=> 'Yahoo! Mail Password:',
479
-	'LBL_YAHOOMAIL_SMTPUSER'					=> 'Yahoo! Mail ID:',
480
-
481
-	'LBL_EXCHANGE_SMTPPASS'					=> 'Exchange Password:',
482
-	'LBL_EXCHANGE_SMTPUSER'					=> 'Exchange Username:',
483
-	'LBL_EXCHANGE_SMTPPORT'					=> 'Exchange Server Port:',
484
-	'LBL_EXCHANGE_SMTPSERVER'				=> 'Exchange Server:',
485
-
486
-
487
-	'LBL_MAIL_SMTPUSER'					=> 'SMTP Username:',
488
-	'LBL_MAIL_SMTPPASS'					=> 'SMTP Password:',
489
-
490
-	// Branding
491
-
492
-	'LBL_WIZARD_SYSTEM_TITLE' => 'Branding',
493
-	'LBL_WIZARD_SYSTEM_DESC' => 'Provide your organization\'s name and logo in order to brand your SuiteCRM.',
494
-	'SYSTEM_NAME_WIZARD'=>'Name:',
495
-	'SYSTEM_NAME_HELP'=>'This is the name that displays in the title bar of your browser.',
496
-	'NEW_LOGO'=>'Select Logo:',
497
-	'NEW_LOGO_HELP'=>'The image file format can be either .png or .jpg. The maximum height is 170px, and the maximum width is 450px. Any image uploaded that is larger in any direction will be scaled to these max dimensions.',
498
-	'COMPANY_LOGO_UPLOAD_BTN' => 'Upload',
499
-	'CURRENT_LOGO'=>'Current Logo:',
500
-	'CURRENT_LOGO_HELP'=>'This logo is displayed in the left-hand corner of the footer of the SuiteCRM application.',
501
-
502
-
503
-	//Scenario selection of modules
504
-	'LBL_WIZARD_SCENARIO_TITLE' => 'Scenario Selection',
505
-	'LBL_WIZARD_SCENARIO_DESC' => 'This is to allow tailoring of the displayed modules based on your requirements. Each of the modules can be enabled after install using the administration page.',
506
-	'LBL_WIZARD_SCENARIO_EMPTY'=> 'There are no scenarios currently set in the configuration file (config.php)',
507
-
508
-
509
-
510
-	// System Local Settings
511
-
512
-
513
-	'LBL_LOCALE_TITLE' => 'System Locale Settings',
514
-	'LBL_WIZARD_LOCALE_DESC' => 'Specify how you would like data in SuiteCRM to be displayed, based on your geographical location. The settings you provide here will be the default settings. Users will be able set their own preferences.',
515
-	'LBL_DATE_FORMAT' => 'Date Format:',
516
-	'LBL_TIME_FORMAT' => 'Time Format:',
517
-	'LBL_TIMEZONE' => 'Time Zone:',
518
-	'LBL_LANGUAGE'=>'Language:',
519
-	'LBL_CURRENCY'=>'Currency:',
520
-	'LBL_CURRENCY_SYMBOL'=>'Currency Symbol:',
521
-	'LBL_CURRENCY_ISO4217' => 'ISO 4217 Currency Code:',
522
-	'LBL_NUMBER_GROUPING_SEP' => '1000s separator:',
523
-	'LBL_DECIMAL_SEP' => 'Decimal symbol:',
524
-	'LBL_NAME_FORMAT' => 'Name Format:',
525
-	'UPLOAD_LOGO' => 'Please wait, logo uploading..',
526
-	'ERR_UPLOAD_FILETYPE' => 'File type do not allowed, please upload a jpeg or png.',
527
-	'ERR_LANG_UPLOAD_UNKNOWN' => 'Unknown file upload error occured.',
528
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_INI_SIZE' => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
529
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_FORM_SIZE' => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
530
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_PARTIAL' => 'The uploaded file was only partially uploaded.',
531
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_FILE' => 'No file was uploaded.',
532
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_TMP_DIR' => 'Missing a temporary folder.',
533
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_CANT_WRITE' => 'Failed to write file to disk.',
534
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_EXTENSION' => 'A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop.',
535
-
536
-	'LBL_INSTALL_PROCESS' => 'Install...',
537
-
538
-	'LBL_EMAIL_ADDRESS' => 'Email Address:',
539
-	'ERR_ADMIN_EMAIL' => 'Administrator Email Address is incorrect.',
540
-	'ERR_SITE_URL' => 'Site URL is required.',
541
-
542
-	'STAT_CONFIGURATION' => 'Configuration relationships...',
543
-	'STAT_CREATE_DB' => 'Create database...',
544
-	//'STAT_CREATE_DB_TABLE' => 'Create database... (table: %s)',
545
-	'STAT_CREATE_DEFAULT_SETTINGS' => 'Create default settings...',
546
-	'STAT_INSTALL_FINISH' => 'Install finish...',
547
-	'STAT_INSTALL_FINISH_LOGIN' => 'Installation process finished, <a href="%s">please log in...</a>',
548
-	'LBL_LICENCE_TOOLTIP' => 'Please accept license first',
549
-
550
-	'LBL_MORE_OPTIONS_TITLE' => 'More options',
551
-	'LBL_START' => '',
552
-	'LBL_DB_CONN_ERR' => 'Database error',
553
-	'LBL_OLD_PHP' => 'Old PHP Version Detected!',
554
-	'LBL_OLD_PHP_MSG' => 'The recommended PHP version to install SuiteCRM is %s <br />Although the minimum PHP version required is %s, is not recommended due to the large number of fixed bugs, including security fixes, released in the more modern versions.<br />You are using PHP version %s, which is EOL: <a href="http://php.net/eol.php">http://php.net/eol.php</a>.<br />Please consider upgrading your PHP version. Instructions on <a href="http://php.net/migration70">http://php.net/migration70</a>. ',
555
-	'LBL_OLD_PHP_OK' => 'I\'m aware of the risks and wish to continue.',
456
+        'name' => 'Forgot Password email',
457
+    ),
458
+
459
+    // SMTP settings
460
+
461
+    'LBL_WIZARD_SMTP_DESC' => 'Provide the email account that will be used to send emails, such as the assignment notifications and new user passwords. Users will receive emails from SuiteCRM, as sent from the specified email account.',
462
+    'LBL_CHOOSE_EMAIL_PROVIDER'        => 'Choose your Email provider:',
463
+
464
+    'LBL_SMTPTYPE_GMAIL'                    => 'Gmail',
465
+    'LBL_SMTPTYPE_YAHOO'                    => 'Yahoo! Mail',
466
+    'LBL_SMTPTYPE_EXCHANGE'                 => 'Microsoft Exchange',
467
+    'LBL_SMTPTYPE_OTHER'                  => 'Other',
468
+    'LBL_MAIL_SMTP_SETTINGS'           => 'SMTP Server Specification',
469
+    'LBL_MAIL_SMTPSERVER'				=> 'SMTP Server:',
470
+    'LBL_MAIL_SMTPPORT'					=> 'SMTP Port:',
471
+    'LBL_MAIL_SMTPAUTH_REQ'				=> 'Use SMTP Authentication?',
472
+    'LBL_EMAIL_SMTP_SSL_OR_TLS'         => 'Enable SMTP over SSL or TLS?',
473
+    'LBL_GMAIL_SMTPUSER'					=> 'Gmail Email Address:',
474
+    'LBL_GMAIL_SMTPPASS'					=> 'Gmail Password:',
475
+    'LBL_ALLOW_DEFAULT_SELECTION'           => 'Allow users to use this account for outgoing email:',
476
+    'LBL_ALLOW_DEFAULT_SELECTION_HELP'          => 'When this option is selected, all users will be able to send emails using the same outgoing mail account used to send system notifications and alerts. If the option is not selected, users can still use the outgoing mail server after providing their own account information.',
477
+
478
+    'LBL_YAHOOMAIL_SMTPPASS'					=> 'Yahoo! Mail Password:',
479
+    'LBL_YAHOOMAIL_SMTPUSER'					=> 'Yahoo! Mail ID:',
480
+
481
+    'LBL_EXCHANGE_SMTPPASS'					=> 'Exchange Password:',
482
+    'LBL_EXCHANGE_SMTPUSER'					=> 'Exchange Username:',
483
+    'LBL_EXCHANGE_SMTPPORT'					=> 'Exchange Server Port:',
484
+    'LBL_EXCHANGE_SMTPSERVER'				=> 'Exchange Server:',
485
+
486
+
487
+    'LBL_MAIL_SMTPUSER'					=> 'SMTP Username:',
488
+    'LBL_MAIL_SMTPPASS'					=> 'SMTP Password:',
489
+
490
+    // Branding
491
+
492
+    'LBL_WIZARD_SYSTEM_TITLE' => 'Branding',
493
+    'LBL_WIZARD_SYSTEM_DESC' => 'Provide your organization\'s name and logo in order to brand your SuiteCRM.',
494
+    'SYSTEM_NAME_WIZARD'=>'Name:',
495
+    'SYSTEM_NAME_HELP'=>'This is the name that displays in the title bar of your browser.',
496
+    'NEW_LOGO'=>'Select Logo:',
497
+    'NEW_LOGO_HELP'=>'The image file format can be either .png or .jpg. The maximum height is 170px, and the maximum width is 450px. Any image uploaded that is larger in any direction will be scaled to these max dimensions.',
498
+    'COMPANY_LOGO_UPLOAD_BTN' => 'Upload',
499
+    'CURRENT_LOGO'=>'Current Logo:',
500
+    'CURRENT_LOGO_HELP'=>'This logo is displayed in the left-hand corner of the footer of the SuiteCRM application.',
501
+
502
+
503
+    //Scenario selection of modules
504
+    'LBL_WIZARD_SCENARIO_TITLE' => 'Scenario Selection',
505
+    'LBL_WIZARD_SCENARIO_DESC' => 'This is to allow tailoring of the displayed modules based on your requirements. Each of the modules can be enabled after install using the administration page.',
506
+    'LBL_WIZARD_SCENARIO_EMPTY'=> 'There are no scenarios currently set in the configuration file (config.php)',
507
+
508
+
509
+
510
+    // System Local Settings
511
+
512
+
513
+    'LBL_LOCALE_TITLE' => 'System Locale Settings',
514
+    'LBL_WIZARD_LOCALE_DESC' => 'Specify how you would like data in SuiteCRM to be displayed, based on your geographical location. The settings you provide here will be the default settings. Users will be able set their own preferences.',
515
+    'LBL_DATE_FORMAT' => 'Date Format:',
516
+    'LBL_TIME_FORMAT' => 'Time Format:',
517
+    'LBL_TIMEZONE' => 'Time Zone:',
518
+    'LBL_LANGUAGE'=>'Language:',
519
+    'LBL_CURRENCY'=>'Currency:',
520
+    'LBL_CURRENCY_SYMBOL'=>'Currency Symbol:',
521
+    'LBL_CURRENCY_ISO4217' => 'ISO 4217 Currency Code:',
522
+    'LBL_NUMBER_GROUPING_SEP' => '1000s separator:',
523
+    'LBL_DECIMAL_SEP' => 'Decimal symbol:',
524
+    'LBL_NAME_FORMAT' => 'Name Format:',
525
+    'UPLOAD_LOGO' => 'Please wait, logo uploading..',
526
+    'ERR_UPLOAD_FILETYPE' => 'File type do not allowed, please upload a jpeg or png.',
527
+    'ERR_LANG_UPLOAD_UNKNOWN' => 'Unknown file upload error occured.',
528
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_INI_SIZE' => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
529
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_FORM_SIZE' => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
530
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_PARTIAL' => 'The uploaded file was only partially uploaded.',
531
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_FILE' => 'No file was uploaded.',
532
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_TMP_DIR' => 'Missing a temporary folder.',
533
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_CANT_WRITE' => 'Failed to write file to disk.',
534
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_EXTENSION' => 'A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop.',
535
+
536
+    'LBL_INSTALL_PROCESS' => 'Install...',
537
+
538
+    'LBL_EMAIL_ADDRESS' => 'Email Address:',
539
+    'ERR_ADMIN_EMAIL' => 'Administrator Email Address is incorrect.',
540
+    'ERR_SITE_URL' => 'Site URL is required.',
541
+
542
+    'STAT_CONFIGURATION' => 'Configuration relationships...',
543
+    'STAT_CREATE_DB' => 'Create database...',
544
+    //'STAT_CREATE_DB_TABLE' => 'Create database... (table: %s)',
545
+    'STAT_CREATE_DEFAULT_SETTINGS' => 'Create default settings...',
546
+    'STAT_INSTALL_FINISH' => 'Install finish...',
547
+    'STAT_INSTALL_FINISH_LOGIN' => 'Installation process finished, <a href="%s">please log in...</a>',
548
+    'LBL_LICENCE_TOOLTIP' => 'Please accept license first',
549
+
550
+    'LBL_MORE_OPTIONS_TITLE' => 'More options',
551
+    'LBL_START' => '',
552
+    'LBL_DB_CONN_ERR' => 'Database error',
553
+    'LBL_OLD_PHP' => 'Old PHP Version Detected!',
554
+    'LBL_OLD_PHP_MSG' => 'The recommended PHP version to install SuiteCRM is %s <br />Although the minimum PHP version required is %s, is not recommended due to the large number of fixed bugs, including security fixes, released in the more modern versions.<br />You are using PHP version %s, which is EOL: <a href="http://php.net/eol.php">http://php.net/eol.php</a>.<br />Please consider upgrading your PHP version. Instructions on <a href="http://php.net/migration70">http://php.net/migration70</a>. ',
555
+    'LBL_OLD_PHP_OK' => 'I\'m aware of the risks and wish to continue.',
556 556
 
557 557
     'LBL_DBCONF_TITLE_USER_INFO_LABEL' => 'User',
558 558
     'LBL_DBCONFIG_MSG3_LABEL' => 'Database Name',
Please login to merge, or discard this patch.
install.php 4 patches
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@  discard block
 block discarded – undo
1 1
 <?php
2
- /**
2
+    /**
3 3
 *
4
- * SugarCRM Community Edition is a customer relationship management program developed by
5
- * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
4
+     * SugarCRM Community Edition is a customer relationship management program developed by
5
+     * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
6 6
 *
7
- * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
8
- * Copyright (C) 2011 - 2017 SalesAgility Ltd.
9
- *
10
- * This program is free software; you can redistribute it and/or modify it under
11
- * the terms of the GNU Affero General Public License version 3 as published by the
12
- * Free Software Foundation with the addition of the following permission added
13
- * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
14
- * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
15
- * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
16
- *
17
- * This program is distributed in the hope that it will be useful, but WITHOUT
18
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19
- * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
20
- * details.
21
- *
22
- * You should have received a copy of the GNU Affero General Public License along with
23
- * this program; if not, see http://www.gnu.org/licenses or write to the Free
24
- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
- * 02110-1301 USA.
26
- *
27
- * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
28
- * SW2-130, Cupertino, CA 95014, USA. or at email address [email protected].
29
- *
30
- * The interactive user interfaces in modified source and object code versions
31
- * of this program must display Appropriate Legal Notices, as required under
32
- * Section 5 of the GNU Affero General Public License version 3.
33
- *
34
- * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
35
- * these Appropriate Legal Notices must retain the display of the "Powered by
36
- * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
37
- * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
38
- * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
39
- */
40
- if(!defined('sugarEntry')) {
7
+     * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
8
+     * Copyright (C) 2011 - 2017 SalesAgility Ltd.
9
+     *
10
+     * This program is free software; you can redistribute it and/or modify it under
11
+     * the terms of the GNU Affero General Public License version 3 as published by the
12
+     * Free Software Foundation with the addition of the following permission added
13
+     * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
14
+     * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
15
+     * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
16
+     *
17
+     * This program is distributed in the hope that it will be useful, but WITHOUT
18
+     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19
+     * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
20
+     * details.
21
+     *
22
+     * You should have received a copy of the GNU Affero General Public License along with
23
+     * this program; if not, see http://www.gnu.org/licenses or write to the Free
24
+     * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
+     * 02110-1301 USA.
26
+     *
27
+     * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
28
+     * SW2-130, Cupertino, CA 95014, USA. or at email address [email protected].
29
+     *
30
+     * The interactive user interfaces in modified source and object code versions
31
+     * of this program must display Appropriate Legal Notices, as required under
32
+     * Section 5 of the GNU Affero General Public License version 3.
33
+     *
34
+     * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
35
+     * these Appropriate Legal Notices must retain the display of the "Powered by
36
+     * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
37
+     * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
38
+     * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
39
+     */
40
+    if(!defined('sugarEntry')) {
41 41
     define('sugarEntry', true);
42 42
 }
43 43
 
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
  * If less than minimum we refuse to install.
62 62
  */
63 63
 if (check_php_version() === -1) {
64
-	$msg = 'The recommended PHP version to install SuiteCRM is ';
65
-	$msg .= constant('SUITECRM_PHP_REC_VERSION').'<br />';
66
-	$msg .= 'Although the minimum PHP version required is ';
67
-	$msg .= constant('SUITECRM_PHP_MIN_VERSION').', ';
68
-	$msg .= 'is not recommended due to the large number of fixed bugs, including security fixes, ';
69
-	$msg .= 'released in the more modern versions.<br />';
70
- 	$msg .= 'You are using PHP version  '. constant('PHP_VERSION').', which is EOL: <a href="http://php.net/eol.php">http://php.net/eol.php</a>.<br />';
71
-	$msg .= 'Please consider upgrading your PHP version. Instructions on <a href="http://php.net/migration70">http://php.net/migration70</a>. ';
64
+    $msg = 'The recommended PHP version to install SuiteCRM is ';
65
+    $msg .= constant('SUITECRM_PHP_REC_VERSION').'<br />';
66
+    $msg .= 'Although the minimum PHP version required is ';
67
+    $msg .= constant('SUITECRM_PHP_MIN_VERSION').', ';
68
+    $msg .= 'is not recommended due to the large number of fixed bugs, including security fixes, ';
69
+    $msg .= 'released in the more modern versions.<br />';
70
+        $msg .= 'You are using PHP version  '. constant('PHP_VERSION').', which is EOL: <a href="http://php.net/eol.php">http://php.net/eol.php</a>.<br />';
71
+    $msg .= 'Please consider upgrading your PHP version. Instructions on <a href="http://php.net/migration70">http://php.net/migration70</a>. ';
72 72
     die($msg);
73 73
 }
74 74
 
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 $workflow = array() ;
351 351
 // If less then recommended PHP version, insert old_php.pho into workflow.
352 352
 if (check_php_version() === 0) {
353
-	$workflow[] = 'old_php.php';
353
+    $workflow[] = 'old_php.php';
354 354
 }
355 355
 // use a simple array to map out the steps of the installer page flow
356 356
 $workflow[] = 'welcome.php';
@@ -518,16 +518,16 @@  discard block
 block discarded – undo
518 518
     $validation_errors = array();
519 519
 // process the data posted
520 520
 if($next_clicked) {
521
-	// store the submitted data because the 'Next' button was clicked
521
+    // store the submitted data because the 'Next' button was clicked
522 522
     switch($workflow[trim($_REQUEST['current_step'])]) {
523 523
         case 'old_php.php':
524
-		$_SESSION['language'] = $_REQUEST['language'];
525
-		$_SESSION['setup_old_php'] = get_boolean_from_request('setup_old_php');
526
-		break;
524
+        $_SESSION['language'] = $_REQUEST['language'];
525
+        $_SESSION['setup_old_php'] = get_boolean_from_request('setup_old_php');
526
+        break;
527 527
 
528
-	case 'welcome.php':
529
-        	$_SESSION['language'] = $_REQUEST['language'];
530
-   			$_SESSION['setup_site_admin_user_name'] = 'admin';
528
+    case 'welcome.php':
529
+            $_SESSION['language'] = $_REQUEST['language'];
530
+                $_SESSION['setup_site_admin_user_name'] = 'admin';
531 531
 //        break;
532 532
 //      case 'license.php':
533 533
                 $_SESSION['setup_license_accept']   = get_boolean_from_request('setup_license_accept');
@@ -655,12 +655,12 @@  discard block
 block discarded – undo
655 655
     case 'old_php.php':
656 656
     case 'welcome.php':
657 657
     case 'license.php':
658
-			//
659
-			// Check to see if session variables are working properly
660
-			//
661
-			$_SESSION['test_session'] = 'sessions are available';
658
+            //
659
+            // Check to see if session variables are working properly
660
+            //
661
+            $_SESSION['test_session'] = 'sessions are available';
662 662
         @session_write_close();
663
-			unset($_SESSION['test_session']);
663
+            unset($_SESSION['test_session']);
664 664
         @session_start();
665 665
 
666 666
             if(!isset($_SESSION['test_session']))
Please login to merge, or discard this patch.
Switch Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -652,53 +652,53 @@
 block discarded – undo
652 652
     }
653 653
 
654 654
 switch($the_file) {
655
-    case 'old_php.php':
656
-    case 'welcome.php':
657
-    case 'license.php':
658
-			//
659
-			// Check to see if session variables are working properly
660
-			//
661
-			$_SESSION['test_session'] = 'sessions are available';
662
-        @session_write_close();
663
-			unset($_SESSION['test_session']);
664
-        @session_start();
665
-
666
-            if(!isset($_SESSION['test_session']))
667
-            {
668
-                $the_file = 'installDisabled.php';
669
-                // PHP.ini location -
670
-                $phpIniLocation = get_cfg_var("cfg_file_path");
671
-                $disabled_title = $mod_strings['LBL_SESSION_ERR_TITLE'];
672
-                $disabled_title_2 = $mod_strings['LBL_SESSION_ERR_TITLE'];
673
-                $disabled_text = $mod_strings['LBL_SESSION_ERR_DESCRIPTION']."<pre>{$phpIniLocation}</pre>";
674
-                break;
675
-            }
676
-            // check to see if installer has been disabled
677
-            if(is_readable('config.php') && (filesize('config.php') > 0)) {
678
-                include_once('config.php');
679
-
680
-                if(!isset($sugar_config['installer_locked']) || $sugar_config['installer_locked'] == true) {
655
+        case 'old_php.php':
656
+        case 'welcome.php':
657
+        case 'license.php':
658
+			    //
659
+			    // Check to see if session variables are working properly
660
+			    //
661
+			    $_SESSION['test_session'] = 'sessions are available';
662
+            @session_write_close();
663
+			    unset($_SESSION['test_session']);
664
+            @session_start();
665
+
666
+                if(!isset($_SESSION['test_session']))
667
+                {
681 668
                     $the_file = 'installDisabled.php';
682
-                    $disabled_title = $mod_strings['LBL_DISABLED_DESCRIPTION'];
683
-                    $disabled_title_2 = $mod_strings['LBL_DISABLED_TITLE_2'];
684
-                    $disabled_text =<<<EOQ
685
-					<p>{$mod_strings['LBL_DISABLED_DESCRIPTION']}</p>
669
+                    // PHP.ini location -
670
+                    $phpIniLocation = get_cfg_var("cfg_file_path");
671
+                    $disabled_title = $mod_strings['LBL_SESSION_ERR_TITLE'];
672
+                    $disabled_title_2 = $mod_strings['LBL_SESSION_ERR_TITLE'];
673
+                    $disabled_text = $mod_strings['LBL_SESSION_ERR_DESCRIPTION']."<pre>{$phpIniLocation}</pre>";
674
+                    break;
675
+                }
676
+                // check to see if installer has been disabled
677
+                if(is_readable('config.php') && (filesize('config.php') > 0)) {
678
+                    include_once('config.php');
679
+
680
+                    if(!isset($sugar_config['installer_locked']) || $sugar_config['installer_locked'] == true) {
681
+                        $the_file = 'installDisabled.php';
682
+                        $disabled_title = $mod_strings['LBL_DISABLED_DESCRIPTION'];
683
+                        $disabled_title_2 = $mod_strings['LBL_DISABLED_TITLE_2'];
684
+                        $disabled_text =<<<EOQ
685
+    					<p>{$mod_strings['LBL_DISABLED_DESCRIPTION']}</p>
686 686
 					<pre>
687 687
 						'installer_locked' => false,
688 688
 					</pre>
689 689
 					<p>{$mod_strings['LBL_DISABLED_DESCRIPTION_2']}</p>
690 690
 
691 691
 					<p>{$mod_strings['LBL_DISABLED_HELP_1']} <a href="{$mod_strings['LBL_DISABLED_HELP_LNK']}" target="_blank">{$mod_strings['LBL_DISABLED_HELP_2']}</a>.</p>
692
-EOQ;
693
-                    //if this is an offline client installation but the conversion did not succeed,
694
-                    //then try to convert again
695
-                    if(isset($sugar_config['disc_client']) && $sugar_config['disc_client'] == true && isset($sugar_config['oc_converted']) && $sugar_config['oc_converted'] == false) {
696
-                        header('Location: index.php?entryPoint=oc_convert&first_time=true');
697
-                        exit ();
692
+    EOQ;
693
+                        //if this is an offline client installation but the conversion did not succeed,
694
+                        //then try to convert again
695
+                        if(isset($sugar_config['disc_client']) && $sugar_config['disc_client'] == true && isset($sugar_config['oc_converted']) && $sugar_config['oc_converted'] == false) {
696
+                            header('Location: index.php?entryPoint=oc_convert&first_time=true');
697
+                            exit ();
698
+                        }
698 699
                     }
699 700
                 }
700
-            }
701
-            break;
701
+                break;
702 702
         case 'register.php':
703 703
         case 'complete_install.php':
704 704
             session_unset();
Please login to merge, or discard this patch.
Spacing   +111 added lines, -111 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
  * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
38 38
  * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
39 39
  */
40
- if(!defined('sugarEntry')) {
40
+ if (!defined('sugarEntry')) {
41 41
     define('sugarEntry', true);
42 42
 }
43 43
 
44 44
 require_once 'include/utils.php';
45 45
 @session_start();
46
-if(isset($_REQUEST['clear_session']) || !empty($_SESSION['loginAttempts'])) {
46
+if (isset($_REQUEST['clear_session']) || !empty($_SESSION['loginAttempts'])) {
47 47
     session_destroy();
48 48
     header('Location: install.php');
49 49
     echo 'session clean, page refresh...';
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 }
52 52
 
53 53
 //  recover smtp settings
54
-if(isset($_POST['smtp_tab_selected'])) {
54
+if (isset($_POST['smtp_tab_selected'])) {
55 55
     $_POST = array_merge($_POST, $_POST[$_POST['smtp_tab_selected']]);
56 56
 }
57 57
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 	$msg .= constant('SUITECRM_PHP_MIN_VERSION').', ';
68 68
 	$msg .= 'is not recommended due to the large number of fixed bugs, including security fixes, ';
69 69
 	$msg .= 'released in the more modern versions.<br />';
70
- 	$msg .= 'You are using PHP version  '. constant('PHP_VERSION').', which is EOL: <a href="http://php.net/eol.php">http://php.net/eol.php</a>.<br />';
70
+ 	$msg .= 'You are using PHP version  '.constant('PHP_VERSION').', which is EOL: <a href="http://php.net/eol.php">http://php.net/eol.php</a>.<br />';
71 71
 	$msg .= 'Please consider upgrading your PHP version. Instructions on <a href="http://php.net/migration70">http://php.net/migration70</a>. ';
72 72
     die($msg);
73 73
 }
74 74
 
75 75
 $session_id = session_id();
76
-if(empty($session_id)){
76
+if (empty($session_id)) {
77 77
     @session_start();
78 78
 }
79 79
 $GLOBALS['installing'] = true;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 $silentInstall = true;
99 99
 
100 100
 //Todo, check if there is an instance where goto is not set, but a silent install is in place
101
-if(isset($_REQUEST['goto']) && $_REQUEST['goto'] != 'SilentInstall') {
101
+if (isset($_REQUEST['goto']) && $_REQUEST['goto'] != 'SilentInstall') {
102 102
     require_once('jssource/minify.php');
103 103
     $silentInstall = false;
104 104
 }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 setPhpIniSettings();
110 110
 $locale = new Localization();
111 111
 
112
-if(get_magic_quotes_gpc() == 1) {
112
+if (get_magic_quotes_gpc() == 1) {
113 113
     $_REQUEST = array_map("stripslashes_checkstrings", $_REQUEST);
114 114
     $_POST = array_map("stripslashes_checkstrings", $_POST);
115 115
     $_GET = array_map("stripslashes_checkstrings", $_GET);
@@ -130,16 +130,16 @@  discard block
 block discarded – undo
130 130
 
131 131
 ///////////////////////////////////////////////////////////////////////////////
132 132
 ////	INSTALLER LANGUAGE
133
-function getSupportedInstallLanguages(){
133
+function getSupportedInstallLanguages() {
134 134
     $supportedLanguages = array(
135 135
         'en_us'	=> 'English (US)',
136 136
     );
137
-    if(file_exists('install/lang.config.php')){
137
+    if (file_exists('install/lang.config.php')) {
138 138
         include('install/lang.config.php');
139
-        if(!empty($config['languages'])){
139
+        if (!empty($config['languages'])) {
140 140
 
141
-            foreach($config['languages'] as $k=>$v){
142
-                if(file_exists('install/language/' . $k . '.lang.php')){
141
+            foreach ($config['languages'] as $k=>$v) {
142
+                if (file_exists('install/language/'.$k.'.lang.php')) {
143 143
                     $supportedLanguages[$k] = $v;
144 144
                 }
145 145
             }
@@ -151,10 +151,10 @@  discard block
 block discarded – undo
151 151
 
152 152
 // after install language is selected, use that pack
153 153
 $default_lang = 'en_us';
154
-if(!isset($_POST['language']) && (!isset($_SESSION['language']) && empty($_SESSION['language']))) {
155
-    if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
154
+if (!isset($_POST['language']) && (!isset($_SESSION['language']) && empty($_SESSION['language']))) {
155
+    if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
156 156
         $lang = parseAcceptLanguage();
157
-        if(isset($supportedLanguages[$lang])) {
157
+        if (isset($supportedLanguages[$lang])) {
158 158
             $_POST['language'] = $lang;
159 159
         } else {
160 160
             $_POST['language'] = $default_lang;
@@ -162,19 +162,19 @@  discard block
 block discarded – undo
162 162
     }
163 163
 }
164 164
 
165
-if(isset($_POST['language'])) {
166
-    $_SESSION['language'] = str_replace('-','_',$_POST['language']);
165
+if (isset($_POST['language'])) {
166
+    $_SESSION['language'] = str_replace('-', '_', $_POST['language']);
167 167
 }
168 168
 
169 169
 $current_language = isset($_SESSION['language']) ? $_SESSION['language'] : $default_lang;
170 170
 
171
-if(file_exists("install/language/{$current_language}.lang.php")) {
171
+if (file_exists("install/language/{$current_language}.lang.php")) {
172 172
     require_once("install/language/{$current_language}.lang.php");
173 173
 } else {
174 174
     require_once("install/language/{$default_lang}.lang.php");
175 175
 }
176 176
 
177
-if($current_language != 'en_us') {
177
+if ($current_language != 'en_us') {
178 178
     $my_mod_strings = $mod_strings;
179 179
     include('install/language/en_us.lang.php');
180 180
     $mod_strings = sugarLangArrayMerge($mod_strings, $my_mod_strings);
@@ -188,40 +188,40 @@  discard block
 block discarded – undo
188 188
 $help_url = get_help_button_url();
189 189
 
190 190
 //if this license print, then redirect and exit,
191
-if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'licensePrint')
191
+if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'licensePrint')
192 192
 {
193 193
     include('install/licensePrint.php');
194 194
     exit ();
195 195
 }
196 196
 
197
-if(isset($_REQUEST['sugar_body_only']) && $_REQUEST['sugar_body_only'] == "1") {
197
+if (isset($_REQUEST['sugar_body_only']) && $_REQUEST['sugar_body_only'] == "1") {
198 198
     //if this is a system check, then just run the check and return,
199 199
     //this is an ajax call and there is no need for further processing
200 200
 
201
-    if(isset($_REQUEST['uploadLogoFrame']) && ($_REQUEST['uploadLogoFrame'])){
201
+    if (isset($_REQUEST['uploadLogoFrame']) && ($_REQUEST['uploadLogoFrame'])) {
202 202
         echo 'I\'m an uploader iframe!';
203 203
         return;
204 204
     }
205 205
 
206 206
     // upload company logo
207
-    if(isset($_REQUEST['uploadLogo']) && ($_REQUEST['uploadLogo'])){
207
+    if (isset($_REQUEST['uploadLogo']) && ($_REQUEST['uploadLogo'])) {
208 208
         $filepath = '';
209 209
         $errors = array();
210 210
 
211
-        switch($_FILES['company_logo']['error']) {
211
+        switch ($_FILES['company_logo']['error']) {
212 212
 
213 213
             case UPLOAD_ERR_OK:
214 214
                 $allowedTypes = array(IMAGETYPE_PNG, IMAGETYPE_JPEG/*, IMAGETYPE_GIF */);
215 215
                 $detectedType = exif_imagetype($_FILES['company_logo']['tmp_name']);
216
-                if(!in_array($detectedType, $allowedTypes)) {
216
+                if (!in_array($detectedType, $allowedTypes)) {
217 217
                     $errors[] = $mod_strings['ERR_UPLOAD_FILETYPE'];
218 218
                 }
219 219
                 else {
220 220
                     // uploaded image stored in the /custom path instead of put into the original theme directory..
221 221
 
222
-                    mkdir_recursive('custom/' . SugarThemeRegistry::current()->getDefaultImagePath(), true);
222
+                    mkdir_recursive('custom/'.SugarThemeRegistry::current()->getDefaultImagePath(), true);
223 223
                     $tmpvar = explode('?', SugarThemeRegistry::current()->getImageURL('company_logo.png'));
224
-                    $destFile = 'custom/' . $tmpvar[0];
224
+                    $destFile = 'custom/'.$tmpvar[0];
225 225
                     if (!move_uploaded_file($_FILES['company_logo']['tmp_name'], $destFile)) {
226 226
                         $errors[] = $mod_strings['ERR_LANG_UPLOAD_1'];
227 227
                     }
@@ -269,13 +269,13 @@  discard block
 block discarded – undo
269 269
 
270 270
         // TODO--low: validate file size & image width/height and save, show status result to client js
271 271
 
272
-        echo "<script>window.top.window.{$_REQUEST['callback']}(" . json_encode($result) . ");</script>";
272
+        echo "<script>window.top.window.{$_REQUEST['callback']}(".json_encode($result).");</script>";
273 273
         return;
274 274
     }
275 275
 
276
-    if(isset($_REQUEST['storeConfig']) && ($_REQUEST['storeConfig'])){
276
+    if (isset($_REQUEST['storeConfig']) && ($_REQUEST['storeConfig'])) {
277 277
         // store configuration by form to session
278
-        if(!isset($_SESSION)) session_start();
278
+        if (!isset($_SESSION)) session_start();
279 279
         $_SESSION = array_merge($_SESSION, $_POST);
280 280
 
281 281
         // TODO--low: don't forget the custom type install settings! validate here..
@@ -289,22 +289,22 @@  discard block
 block discarded – undo
289 289
 //            $si_errors = true;
290 290
 //        }
291 291
 
292
-        if(!empty($sugar_config['dbconfig'])) {
292
+        if (!empty($sugar_config['dbconfig'])) {
293 293
             try {
294 294
                 $db = DBManagerFactory::getInstance();
295 295
                 $db->disconnect();
296
-            } catch (\Exception $e) {
297
-                $validation_errors[] = $mod_strings['LBL_DB_CONN_ERR'] . ': ' . $e->getMessage();
296
+            }catch (\Exception $e) {
297
+                $validation_errors[] = $mod_strings['LBL_DB_CONN_ERR'].': '.$e->getMessage();
298 298
             }
299 299
         }
300 300
 
301 301
         $errors = '';
302
-        if( isset($validation_errors) && is_array($validation_errors)){
303
-            if( count($validation_errors) > 0 ){
302
+        if (isset($validation_errors) && is_array($validation_errors)) {
303
+            if (count($validation_errors) > 0) {
304 304
                 // $errors  = '<div id="errorMsgs">';
305 305
                 $errors .= '<p>'.$mod_strings['LBL_SITECFG_FIX_ERRORS'].'</p><ul>';
306
-                foreach( $validation_errors as $error ){
307
-                    $errors .= '<li class="error">' . $error . '</li>';
306
+                foreach ($validation_errors as $error) {
307
+                    $errors .= '<li class="error">'.$error.'</li>';
308 308
                 }
309 309
                 $errors .= '</ul>'; //</div>';
310 310
             }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         return;
315 315
     }
316 316
 
317
-    if(isset($_REQUEST['checkInstallSystem']) && ($_REQUEST['checkInstallSystem'])){
317
+    if (isset($_REQUEST['checkInstallSystem']) && ($_REQUEST['checkInstallSystem'])) {
318 318
         require_once('install/installSystemCheck.php');
319 319
         echo runCheck($install_script, $mod_strings);
320 320
         return;
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
     //if this is a DB Settings check, then just run the check and return,
324 324
     //this is an ajax call and there is no need for further processing
325
-    if(isset($_REQUEST['checkDBSettings']) && ($_REQUEST['checkDBSettings'])){
325
+    if (isset($_REQUEST['checkDBSettings']) && ($_REQUEST['checkDBSettings'])) {
326 326
         require_once('install/checkDBSettings.php');
327 327
         echo checkDBSettings();
328 328
         return;
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
 }
331 331
 
332 332
 //maintaining the install_type if earlier set to custom
333
-if(isset($_REQUEST['install_type']) && $_REQUEST['install_type'] == 'custom'){
333
+if (isset($_REQUEST['install_type']) && $_REQUEST['install_type'] == 'custom') {
334 334
     $_SESSION['install_type'] = $_REQUEST['install_type'];
335 335
 }
336 336
 
337 337
 //set the default settings into session
338
-foreach($installer_defaults as $key =>$val){
339
-    if(!isset($_SESSION[$key])){
338
+foreach ($installer_defaults as $key =>$val) {
339
+    if (!isset($_SESSION[$key])) {
340 340
         $_SESSION[$key] = $val;
341 341
     }
342 342
 }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 $next_clicked = false;
348 348
 $next_step = 0;
349 349
 
350
-$workflow = array() ;
350
+$workflow = array();
351 351
 // If less then recommended PHP version, insert old_php.pho into workflow.
352 352
 if (check_php_version() === 0) {
353 353
 	$workflow[] = 'old_php.php';
@@ -366,9 +366,9 @@  discard block
 block discarded – undo
366 366
 //$workflow[] = 'dbConfig_b.php';
367 367
 
368 368
 //define web root, which will be used as default for site_url
369
-if($_SERVER['SERVER_PORT']=='80'){
369
+if ($_SERVER['SERVER_PORT'] == '80') {
370 370
     $web_root = $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
371
-}else{
371
+} else {
372 372
     $web_root = $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['PHP_SELF'];
373 373
 }
374 374
 $web_root = str_replace("/install.php", "", $web_root);
@@ -386,16 +386,16 @@  discard block
 block discarded – undo
386 386
     }
387 387
 }
388 388
 
389
-if(empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) {
389
+if (empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) {
390 390
     $sugar_config['cache_dir'] = $_SESSION['cache_dir'];
391 391
 }
392 392
 
393 393
 // set the form's php var to the loaded config's var else default to sane settings
394
-if(!isset($_SESSION['setup_site_url'])  || empty($_SESSION['setup_site_url'])) {
395
-    if(isset($sugar_config['site_url']) && !empty($sugar_config['site_url'])) {
396
-        $_SESSION['setup_site_url']= $sugar_config['site_url'];
394
+if (!isset($_SESSION['setup_site_url']) || empty($_SESSION['setup_site_url'])) {
395
+    if (isset($sugar_config['site_url']) && !empty($sugar_config['site_url'])) {
396
+        $_SESSION['setup_site_url'] = $sugar_config['site_url'];
397 397
     } else {
398
-        $_SESSION['setup_site_url']= $web_root;
398
+        $_SESSION['setup_site_url'] = $web_root;
399 399
     }
400 400
 }
401 401
 
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
 //$workflow[] = 'confirmSettings.php';
419 419
 $workflow[] = 'performSetup.php';
420 420
 
421
-if(!isset($_SESSION['oc_install']) ||  $_SESSION['oc_install'] == false){
422
-    if(isset($_SESSION['install_type'])  && !empty($_SESSION['install_type'])  && $_SESSION['install_type']=='custom'){
421
+if (!isset($_SESSION['oc_install']) || $_SESSION['oc_install'] == false) {
422
+    if (isset($_SESSION['install_type']) && !empty($_SESSION['install_type']) && $_SESSION['install_type'] == 'custom') {
423 423
         //$workflow[] = 'download_patches.php';
424 424
         $workflow[] = 'download_modules.php';
425 425
     }
@@ -430,8 +430,8 @@  discard block
 block discarded – undo
430 430
 
431 431
 
432 432
 // increment/decrement the workflow pointer
433
-if(!empty($_REQUEST['goto'])) {
434
-    switch($_REQUEST['goto']) {
433
+if (!empty($_REQUEST['goto'])) {
434
+    switch ($_REQUEST['goto']) {
435 435
         case $mod_strings['LBL_CHECKSYS_RECHECK']:
436 436
             $next_step = $_REQUEST['current_step'];
437 437
             break;
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
     }
454 454
 }
455 455
 // Add check here to see if a silent install config file exists; if so then launch silent installer
456
-elseif ( is_file('config_si.php') && empty($sugar_config['installer_locked'])) {
456
+elseif (is_file('config_si.php') && empty($sugar_config['installer_locked'])) {
457 457
 
458 458
     $langHeader = get_language_header();
459 459
 
@@ -498,13 +498,13 @@  discard block
 block discarded – undo
498 498
 
499 499
 
500 500
 
501
-$exclude_files = array('complete_install.php','register.php','download_modules.php');
501
+$exclude_files = array('complete_install.php', 'register.php', 'download_modules.php');
502 502
 
503
-if(isset($next_step) && isset($workflow[$next_step]) && !in_array($workflow[$next_step],$exclude_files) && isset($sugar_config['installer_locked']) && $sugar_config['installer_locked'] == true) {
503
+if (isset($next_step) && isset($workflow[$next_step]) && !in_array($workflow[$next_step], $exclude_files) && isset($sugar_config['installer_locked']) && $sugar_config['installer_locked'] == true) {
504 504
     $the_file = 'installDisabled.php';
505 505
     $disabled_title = $mod_strings['LBL_DISABLED_DESCRIPTION'];
506 506
     $disabled_title_2 = $mod_strings['LBL_DISABLED_TITLE_2'];
507
-    $disabled_text =<<<EOQ
507
+    $disabled_text = <<<EOQ
508 508
 		<p>{$mod_strings['LBL_DISABLED_DESCRIPTION']}</p>
509 509
 		<pre>
510 510
 			'installer_locked' => false,
@@ -514,12 +514,12 @@  discard block
 block discarded – undo
514 514
 		<p>{$mod_strings['LBL_DISABLED_HELP_1']} <a href="{$mod_strings['LBL_DISABLED_HELP_LNK']}" target="_blank">{$mod_strings['LBL_DISABLED_HELP_2']}</a>.</p>
515 515
 EOQ;
516 516
 }
517
-else{
517
+else {
518 518
     $validation_errors = array();
519 519
 // process the data posted
520
-if($next_clicked) {
520
+if ($next_clicked) {
521 521
 	// store the submitted data because the 'Next' button was clicked
522
-    switch($workflow[trim($_REQUEST['current_step'])]) {
522
+    switch ($workflow[trim($_REQUEST['current_step'])]) {
523 523
         case 'old_php.php':
524 524
 		$_SESSION['language'] = $_REQUEST['language'];
525 525
 		$_SESSION['setup_old_php'] = get_boolean_from_request('setup_old_php');
@@ -535,25 +535,25 @@  discard block
 block discarded – undo
535 535
 
536 536
 
537 537
                 // eventually default all vars here, with overrides from config.php
538
-                if(is_readable('config.php')) {
538
+                if (is_readable('config.php')) {
539 539
                     global $sugar_config;
540 540
                     include_once('config.php');
541 541
                 }
542 542
 
543 543
                 $default_db_type = 'mysql';
544 544
 
545
-                if(!isset($_SESSION['setup_db_type'])) {
545
+                if (!isset($_SESSION['setup_db_type'])) {
546 546
                     $_SESSION['setup_db_type'] = empty($sugar_config['dbconfig']['db_type']) ? $default_db_type : $sugar_config['dbconfig']['db_type'];
547 547
                 }
548 548
 
549 549
                 break;
550 550
             //TODO--low: add this functionality to installConfig.php
551 551
             case 'installType.php':
552
-                $_SESSION['install_type']   = $_REQUEST['install_type'];
553
-                if(isset($_REQUEST['setup_license_key']) && !empty($_REQUEST['setup_license_key'])){
554
-                    $_SESSION['setup_license_key']  = $_REQUEST['setup_license_key'];
552
+                $_SESSION['install_type'] = $_REQUEST['install_type'];
553
+                if (isset($_REQUEST['setup_license_key']) && !empty($_REQUEST['setup_license_key'])) {
554
+                    $_SESSION['setup_license_key'] = $_REQUEST['setup_license_key'];
555 555
                 }
556
-                $_SESSION['licenseKey_submitted']      = true;
556
+                $_SESSION['licenseKey_submitted'] = true;
557 557
 
558 558
 
559 559
 
@@ -562,39 +562,39 @@  discard block
 block discarded – undo
562 562
             case 'installConfig.php':
563 563
 
564 564
                 //case 'systemOptions.php':
565
-                if(isset($_REQUEST['setup_db_type'])) {
565
+                if (isset($_REQUEST['setup_db_type'])) {
566 566
                     $_SESSION['setup_db_type'] = $_REQUEST['setup_db_type'];
567 567
                 }
568 568
                 $validation_errors = validate_systemOptions();
569
-                if(count($validation_errors) > 0) {
569
+                if (count($validation_errors) > 0) {
570 570
                     $next_step--;
571 571
                 }
572 572
                 //break;
573 573
 
574 574
                 //case 'dbConfig_a.php':
575 575
                 //validation is now done through ajax call to checkDBSettings.php
576
-                if(isset($_REQUEST['setup_db_drop_tables'])){
576
+                if (isset($_REQUEST['setup_db_drop_tables'])) {
577 577
                     $_SESSION['setup_db_drop_tables'] = $_REQUEST['setup_db_drop_tables'];
578
-                    if($_SESSION['setup_db_drop_tables']=== true || $_SESSION['setup_db_drop_tables'] == 'true'){
578
+                    if ($_SESSION['setup_db_drop_tables'] === true || $_SESSION['setup_db_drop_tables'] == 'true') {
579 579
                         $_SESSION['setup_db_create_database'] = false;
580 580
                     }
581 581
                 }
582 582
                 //break;
583 583
 
584 584
                 //case 'siteConfig_a.php':
585
-                if(isset($_REQUEST['setup_site_url'])){$_SESSION['setup_site_url']          = $_REQUEST['setup_site_url'];}
586
-                if(isset($_REQUEST['setup_system_name'])){$_SESSION['setup_system_name']    = $_REQUEST['setup_system_name'];}
587
-                if(isset($_REQUEST['setup_db_collation'])) {
585
+                if (isset($_REQUEST['setup_site_url'])) {$_SESSION['setup_site_url']          = $_REQUEST['setup_site_url']; }
586
+                if (isset($_REQUEST['setup_system_name'])) {$_SESSION['setup_system_name']    = $_REQUEST['setup_system_name']; }
587
+                if (isset($_REQUEST['setup_db_collation'])) {
588 588
                     $_SESSION['setup_db_options']['collation'] = $_REQUEST['setup_db_collation'];
589 589
                 }
590 590
                 $_SESSION['setup_site_admin_user_name']             = $_REQUEST['setup_site_admin_user_name'];
591 591
                 $_SESSION['setup_site_admin_password']              = $_REQUEST['setup_site_admin_password'];
592 592
                 $_SESSION['setup_site_admin_password_retype']       = $_REQUEST['setup_site_admin_password_retype'];
593
-                $_SESSION['siteConfig_submitted']               = true;
593
+                $_SESSION['siteConfig_submitted'] = true;
594 594
 
595 595
                 $validation_errors = array();
596 596
                 $validation_errors = validate_siteConfig('a');
597
-                if(count($validation_errors) > 0 || $_REQUEST['goto'] == 'resend') {
597
+                if (count($validation_errors) > 0 || $_REQUEST['goto'] == 'resend') {
598 598
                     $next_step--;
599 599
                 }
600 600
                 //break;
@@ -602,56 +602,56 @@  discard block
 block discarded – undo
602 602
                 //case 'siteConfig_b.php':
603 603
                 $_SESSION['setup_site_sugarbeet_automatic_checks'] = get_boolean_from_request('setup_site_sugarbeet_automatic_checks');
604 604
 
605
-                $_SESSION['setup_site_custom_session_path']     = get_boolean_from_request('setup_site_custom_session_path');
606
-                if($_SESSION['setup_site_custom_session_path']){
607
-                    $_SESSION['setup_site_session_path']            = $_REQUEST['setup_site_session_path'];
608
-                }else{
605
+                $_SESSION['setup_site_custom_session_path'] = get_boolean_from_request('setup_site_custom_session_path');
606
+                if ($_SESSION['setup_site_custom_session_path']) {
607
+                    $_SESSION['setup_site_session_path'] = $_REQUEST['setup_site_session_path'];
608
+                } else {
609 609
                     $_SESSION['setup_site_session_path'] = '';
610 610
                 }
611 611
 
612
-                $_SESSION['setup_site_custom_log_dir']          = get_boolean_from_request('setup_site_custom_log_dir');
613
-                if($_SESSION['setup_site_custom_log_dir']){
614
-                    $_SESSION['setup_site_log_dir']                 = $_REQUEST['setup_site_log_dir'];
615
-                }else{
612
+                $_SESSION['setup_site_custom_log_dir'] = get_boolean_from_request('setup_site_custom_log_dir');
613
+                if ($_SESSION['setup_site_custom_log_dir']) {
614
+                    $_SESSION['setup_site_log_dir'] = $_REQUEST['setup_site_log_dir'];
615
+                } else {
616 616
                     $_SESSION['setup_site_log_dir'] = '.';
617 617
                 }
618 618
 
619
-                $_SESSION['setup_site_specify_guid']            = get_boolean_from_request('setup_site_specify_guid');
620
-                if($_SESSION['setup_site_specify_guid']){
621
-                    $_SESSION['setup_site_guid']                    = $_REQUEST['setup_site_guid'];
622
-                }else{
619
+                $_SESSION['setup_site_specify_guid'] = get_boolean_from_request('setup_site_specify_guid');
620
+                if ($_SESSION['setup_site_specify_guid']) {
621
+                    $_SESSION['setup_site_guid'] = $_REQUEST['setup_site_guid'];
622
+                } else {
623 623
                     $_SESSION['setup_site_guid'] = '';
624 624
                 }
625
-                $_SESSION['siteConfig_submitted']               = true;
626
-                if(isset($_REQUEST['setup_site_sugarbeet_anonymous_stats'])){
625
+                $_SESSION['siteConfig_submitted'] = true;
626
+                if (isset($_REQUEST['setup_site_sugarbeet_anonymous_stats'])) {
627 627
                     $_SESSION['setup_site_sugarbeet_anonymous_stats'] = get_boolean_from_request('setup_site_sugarbeet_anonymous_stats');
628
-                }else{
628
+                } else {
629 629
                     $_SESSION['setup_site_sugarbeet_anonymous_stats'] = 0;
630 630
                 }
631 631
 
632 632
                 $validation_errors = array();
633 633
                 $validation_errors = validate_siteConfig('b');
634
-                if(count($validation_errors) > 0) {
634
+                if (count($validation_errors) > 0) {
635 635
                     $next_step--;
636 636
                 }
637 637
                 break;
638 638
         }
639 639
     }
640 640
 
641
-    if($next_step == 9999) {
641
+    if ($next_step == 9999) {
642 642
         $the_file = 'SilentInstall';
643
-    }else if($next_step == 9191) {
644
-        $_SESSION['oc_server_url']	= $_REQUEST['oc_server_url'];
643
+    } else if ($next_step == 9191) {
644
+        $_SESSION['oc_server_url'] = $_REQUEST['oc_server_url'];
645 645
         $_SESSION['oc_username']    = $_REQUEST['oc_username'];
646 646
         $_SESSION['oc_password']   	= $_REQUEST['oc_password'];
647 647
         $the_file = 'oc_convert.php';
648 648
     }
649
-    else{
649
+    else {
650 650
         $the_file = $workflow[$next_step];
651 651
 
652 652
     }
653 653
 
654
-switch($the_file) {
654
+switch ($the_file) {
655 655
     case 'old_php.php':
656 656
     case 'welcome.php':
657 657
     case 'license.php':
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 			unset($_SESSION['test_session']);
664 664
         @session_start();
665 665
 
666
-            if(!isset($_SESSION['test_session']))
666
+            if (!isset($_SESSION['test_session']))
667 667
             {
668 668
                 $the_file = 'installDisabled.php';
669 669
                 // PHP.ini location -
@@ -674,14 +674,14 @@  discard block
 block discarded – undo
674 674
                 break;
675 675
             }
676 676
             // check to see if installer has been disabled
677
-            if(is_readable('config.php') && (filesize('config.php') > 0)) {
677
+            if (is_readable('config.php') && (filesize('config.php') > 0)) {
678 678
                 include_once('config.php');
679 679
 
680
-                if(!isset($sugar_config['installer_locked']) || $sugar_config['installer_locked'] == true) {
680
+                if (!isset($sugar_config['installer_locked']) || $sugar_config['installer_locked'] == true) {
681 681
                     $the_file = 'installDisabled.php';
682 682
                     $disabled_title = $mod_strings['LBL_DISABLED_DESCRIPTION'];
683 683
                     $disabled_title_2 = $mod_strings['LBL_DISABLED_TITLE_2'];
684
-                    $disabled_text =<<<EOQ
684
+                    $disabled_text = <<<EOQ
685 685
 					<p>{$mod_strings['LBL_DISABLED_DESCRIPTION']}</p>
686 686
 					<pre>
687 687
 						'installer_locked' => false,
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
 EOQ;
693 693
                     //if this is an offline client installation but the conversion did not succeed,
694 694
                     //then try to convert again
695
-                    if(isset($sugar_config['disc_client']) && $sugar_config['disc_client'] == true && isset($sugar_config['oc_converted']) && $sugar_config['oc_converted'] == false) {
695
+                    if (isset($sugar_config['disc_client']) && $sugar_config['disc_client'] == true && isset($sugar_config['oc_converted']) && $sugar_config['oc_converted'] == false) {
696 696
                         header('Location: index.php?entryPoint=oc_convert&first_time=true');
697 697
                         exit ();
698 698
                     }
@@ -722,22 +722,22 @@  discard block
 block discarded – undo
722 722
             }
723 723
 
724 724
             $validation_errors = validate_dbConfig('a');
725
-            if(count($validation_errors) > 0) {
725
+            if (count($validation_errors) > 0) {
726 726
                 $the_file = 'dbConfig_a.php';
727 727
                 $si_errors = true;
728 728
             }
729 729
             $validation_errors = validate_siteConfig('a');
730
-            if(count($validation_errors) > 0) {
730
+            if (count($validation_errors) > 0) {
731 731
                 $the_file = 'siteConfig_a.php';
732 732
                 $si_errors = true;
733 733
             }
734 734
             $validation_errors = validate_siteConfig('b');
735
-            if(count($validation_errors) > 0) {
735
+            if (count($validation_errors) > 0) {
736 736
                 $the_file = 'siteConfig_b.php';
737 737
                 $si_errors = true;
738 738
             }
739 739
 
740
-            if(!$si_errors){
740
+            if (!$si_errors) {
741 741
                 $the_file = 'performSetup.php';
742 742
             }
743 743
             require_once('jssource/minify.php');
@@ -770,13 +770,13 @@  discard block
 block discarded – undo
770 770
             // check whether we're getting this request from a command line tool
771 771
             // we want to output brief messages if we're outputting to a command line tool
772 772
             $cli_mode = false;
773
-            if(isset($_REQUEST['cli']) && ($_REQUEST['cli'] == 'true')) {
773
+            if (isset($_REQUEST['cli']) && ($_REQUEST['cli'] == 'true')) {
774 774
                 $_SESSION['cli'] = true;
775 775
                 // if we have errors, just shoot them back now
776
-                if(count($validation_errors) > 0) {
777
-                    foreach($validation_errors as $error) {
776
+                if (count($validation_errors) > 0) {
777
+                    foreach ($validation_errors as $error) {
778 778
                         print($mod_strings['ERR_ERROR_GENERAL']."\n");
779
-                        print("    " . $error . "\n");
779
+                        print("    ".$error."\n");
780 780
                         print("Exit 1\n");
781 781
                         exit(1);
782 782
                     }
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
 
794 794
 // change to require to get a good file load error message if the file is not available.
795 795
 
796
-require('install/' . $the_file);
796
+require('install/'.$the_file);
797 797
 
798 798
 installerHook('post_installFileRequire', array('the_file' => $the_file));
799 799
 
Please login to merge, or discard this patch.
Braces   +13 added lines, -15 removed lines patch added patch discarded remove patch
@@ -215,8 +215,7 @@  discard block
 block discarded – undo
215 215
                 $detectedType = exif_imagetype($_FILES['company_logo']['tmp_name']);
216 216
                 if(!in_array($detectedType, $allowedTypes)) {
217 217
                     $errors[] = $mod_strings['ERR_UPLOAD_FILETYPE'];
218
-                }
219
-                else {
218
+                } else {
220 219
                     // uploaded image stored in the /custom path instead of put into the original theme directory..
221 220
 
222 221
                     mkdir_recursive('custom/' . SugarThemeRegistry::current()->getDefaultImagePath(), true);
@@ -224,8 +223,7 @@  discard block
 block discarded – undo
224 223
                     $destFile = 'custom/' . $tmpvar[0];
225 224
                     if (!move_uploaded_file($_FILES['company_logo']['tmp_name'], $destFile)) {
226 225
                         $errors[] = $mod_strings['ERR_LANG_UPLOAD_1'];
227
-                    }
228
-                    else {
226
+                    } else {
229 227
                         $filepath = $destFile;
230 228
                     }
231 229
                 }
@@ -275,7 +273,9 @@  discard block
 block discarded – undo
275 273
 
276 274
     if(isset($_REQUEST['storeConfig']) && ($_REQUEST['storeConfig'])){
277 275
         // store configuration by form to session
278
-        if(!isset($_SESSION)) session_start();
276
+        if(!isset($_SESSION)) {
277
+            session_start();
278
+        }
279 279
         $_SESSION = array_merge($_SESSION, $_POST);
280 280
 
281 281
         // TODO--low: don't forget the custom type install settings! validate here..
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 //define web root, which will be used as default for site_url
369 369
 if($_SERVER['SERVER_PORT']=='80'){
370 370
     $web_root = $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
371
-}else{
371
+} else{
372 372
     $web_root = $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['PHP_SELF'];
373 373
 }
374 374
 $web_root = str_replace("/install.php", "", $web_root);
@@ -513,8 +513,7 @@  discard block
 block discarded – undo
513 513
 
514 514
 		<p>{$mod_strings['LBL_DISABLED_HELP_1']} <a href="{$mod_strings['LBL_DISABLED_HELP_LNK']}" target="_blank">{$mod_strings['LBL_DISABLED_HELP_2']}</a>.</p>
515 515
 EOQ;
516
-}
517
-else{
516
+} else{
518 517
     $validation_errors = array();
519 518
 // process the data posted
520 519
 if($next_clicked) {
@@ -605,27 +604,27 @@  discard block
 block discarded – undo
605 604
                 $_SESSION['setup_site_custom_session_path']     = get_boolean_from_request('setup_site_custom_session_path');
606 605
                 if($_SESSION['setup_site_custom_session_path']){
607 606
                     $_SESSION['setup_site_session_path']            = $_REQUEST['setup_site_session_path'];
608
-                }else{
607
+                } else{
609 608
                     $_SESSION['setup_site_session_path'] = '';
610 609
                 }
611 610
 
612 611
                 $_SESSION['setup_site_custom_log_dir']          = get_boolean_from_request('setup_site_custom_log_dir');
613 612
                 if($_SESSION['setup_site_custom_log_dir']){
614 613
                     $_SESSION['setup_site_log_dir']                 = $_REQUEST['setup_site_log_dir'];
615
-                }else{
614
+                } else{
616 615
                     $_SESSION['setup_site_log_dir'] = '.';
617 616
                 }
618 617
 
619 618
                 $_SESSION['setup_site_specify_guid']            = get_boolean_from_request('setup_site_specify_guid');
620 619
                 if($_SESSION['setup_site_specify_guid']){
621 620
                     $_SESSION['setup_site_guid']                    = $_REQUEST['setup_site_guid'];
622
-                }else{
621
+                } else{
623 622
                     $_SESSION['setup_site_guid'] = '';
624 623
                 }
625 624
                 $_SESSION['siteConfig_submitted']               = true;
626 625
                 if(isset($_REQUEST['setup_site_sugarbeet_anonymous_stats'])){
627 626
                     $_SESSION['setup_site_sugarbeet_anonymous_stats'] = get_boolean_from_request('setup_site_sugarbeet_anonymous_stats');
628
-                }else{
627
+                } else{
629 628
                     $_SESSION['setup_site_sugarbeet_anonymous_stats'] = 0;
630 629
                 }
631 630
 
@@ -640,13 +639,12 @@  discard block
 block discarded – undo
640 639
 
641 640
     if($next_step == 9999) {
642 641
         $the_file = 'SilentInstall';
643
-    }else if($next_step == 9191) {
642
+    } else if($next_step == 9191) {
644 643
         $_SESSION['oc_server_url']	= $_REQUEST['oc_server_url'];
645 644
         $_SESSION['oc_username']    = $_REQUEST['oc_username'];
646 645
         $_SESSION['oc_password']   	= $_REQUEST['oc_password'];
647 646
         $the_file = 'oc_convert.php';
648
-    }
649
-    else{
647
+    } else{
650 648
         $the_file = $workflow[$next_step];
651 649
 
652 650
     }
Please login to merge, or discard this patch.
SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/Metadata.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class OneLogin_Saml2_Metadata
9 9
 {
10
-    const TIME_VALID = 172800;  // 2 days
10
+    const TIME_VALID = 172800; // 2 days
11 11
     const TIME_CACHED = 604800; // 1 week
12 12
 
13 13
     /**
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
     {
28 28
 
29 29
         if (!isset($validUntil)) {
30
-            $validUntil =  time() + self::TIME_VALID;
30
+            $validUntil = time() + self::TIME_VALID;
31 31
         }
32
-        $validUntilTime =  gmdate('Y-m-d\TH:i:s\Z', $validUntil);
32
+        $validUntilTime = gmdate('Y-m-d\TH:i:s\Z', $validUntil);
33 33
 
34 34
         if (!isset($cacheDuration)) {
35 35
             $cacheDuration = self::TIME_CACHED;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $attrCsDesc = '';
104 104
             if (isset($sp['attributeConsumingService']['serviceDescription'])) {
105 105
                 $attrCsDesc = sprintf(
106
-                    '            <md:ServiceDescription xml:lang="en">%s</md:ServiceDescription>' . PHP_EOL,
106
+                    '            <md:ServiceDescription xml:lang="en">%s</md:ServiceDescription>'.PHP_EOL,
107 107
                     $sp['attributeConsumingService']['serviceDescription']
108 108
                 );
109 109
             }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                         $attribute['attributeValue'] = array($attribute['attributeValue']);
131 131
                     }
132 132
                     foreach ($attribute['attributeValue'] as $attrValue) {
133
-                        $reqAttrAuxStr .=<<<ATTRIBUTEVALUE
133
+                        $reqAttrAuxStr .= <<<ATTRIBUTEVALUE
134 134
 
135 135
                 <saml:AttributeValue xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">{$attrValue}</saml:AttributeValue>
136 136
 ATTRIBUTEVALUE;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                     $reqAttrAuxStr .= "\n            </md:RequestedAttribute>";
139 139
                 }
140 140
 
141
-                $requestedAttributeData[] = $requestedAttributeStr . $reqAttrAuxStr;
141
+                $requestedAttributeData[] = $requestedAttributeStr.$reqAttrAuxStr;
142 142
             }
143 143
 
144 144
             $requestedAttributeStr = implode(PHP_EOL, $requestedAttributeData);
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             if (!$xml) {
207 207
                 throw new Exception('Error parsing metadata');
208 208
             }
209
-        } catch (Exception $e) {
209
+        }catch (Exception $e) {
210 210
             throw new Exception('Error parsing metadata. '.$e->getMessage());
211 211
         }
212 212
 
Please login to merge, or discard this patch.
SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/LogoutRequest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@  discard block
 block discarded – undo
7 7
 class OneLogin_Saml2_LogoutRequest
8 8
 {
9 9
     /**
10
-    * Contains the ID of the Logout Request
11
-    * @var string
12
-    */
10
+     * Contains the ID of the Logout Request
11
+     * @var string
12
+     */
13 13
     public $id;
14 14
 
15 15
     /**
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     protected $_logoutRequest;
26 26
 
27 27
     /**
28
-    * After execute a validation process, this var contains the cause
29
-    * @var string
30
-    */
28
+     * After execute a validation process, this var contains the cause
29
+     * @var string
30
+     */
31 31
     private $_error;
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
             }
377 377
 
378 378
             return true;
379
-        } catch (Exception $e) {
379
+        }catch (Exception $e) {
380 380
             $this->_error = $e->getMessage();
381 381
             $debug = $this->_settings->isDebugActive();
382 382
             if ($debug) {
Please login to merge, or discard this patch.
SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/Response.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -470,11 +470,11 @@  discard block
 block discarded – undo
470 470
         }
471 471
     }
472 472
 
473
-   /**
474
-    * Checks that the samlp:Response/saml:Assertion/saml:Conditions element exists and is unique.
475
-    *
476
-    * @return boolean true if the Conditions element exists and is unique
477
-    */
473
+    /**
474
+     * Checks that the samlp:Response/saml:Assertion/saml:Conditions element exists and is unique.
475
+     *
476
+     * @return boolean true if the Conditions element exists and is unique
477
+     */
478 478
     public function checkOneCondition()
479 479
     {
480 480
         $entries = $this->_queryAssertion("/saml:Conditions");
@@ -485,11 +485,11 @@  discard block
 block discarded – undo
485 485
         }
486 486
     }
487 487
 
488
-   /**
489
-    * Checks that the samlp:Response/saml:Assertion/saml:AuthnStatement element exists and is unique.
490
-    *
491
-    * @return boolean true if the AuthnStatement element exists and is unique
492
-    */
488
+    /**
489
+     * Checks that the samlp:Response/saml:Assertion/saml:AuthnStatement element exists and is unique.
490
+     *
491
+     * @return boolean true if the AuthnStatement element exists and is unique
492
+     */
493 493
     public function checkOneAuthnStatement()
494 494
     {
495 495
         $entries = $this->_queryAssertion("/saml:AuthnStatement");
@@ -1075,7 +1075,7 @@  discard block
 block discarded – undo
1075 1075
               !$decrypted->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns') &&
1076 1076
               !$container->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:saml') &&
1077 1077
               !$container->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:saml2')
1078
-              ) {
1078
+                ) {
1079 1079
                 if (strpos($encryptedAssertion->tagName, 'saml2:') !== false) {
1080 1080
                     $ns = 'xmlns:saml2';
1081 1081
                 } else if (strpos($encryptedAssertion->tagName, 'saml:') !== false) {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
                 }
399 399
             }
400 400
             return true;
401
-        } catch (Exception $e) {
401
+        }catch (Exception $e) {
402 402
             $this->_error = $e->getMessage();
403 403
             $debug = $this->_settings->isDebugActive();
404 404
             if ($debug) {
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
 
737 737
             $attributeValues = array();
738 738
             foreach ($entry->childNodes as $childNode) {
739
-                $tagName = ($childNode->prefix ? $childNode->prefix.':' : '') . 'AttributeValue';
739
+                $tagName = ($childNode->prefix ? $childNode->prefix.':' : '').'AttributeValue';
740 740
                 if ($childNode->nodeType == XML_ELEMENT_NODE && $childNode->tagName === $tagName) {
741 741
                     $attributeValues[] = $childNode->nodeValue;
742 742
                 }
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
         $xpath->registerNamespace('xenc', OneLogin_Saml2_Constants::NS_XENC);
962 962
 
963 963
         $assertionNode = '/samlp:Response/saml:Assertion';
964
-        $signatureQuery = $assertionNode . '/ds:Signature/ds:SignedInfo/ds:Reference';
964
+        $signatureQuery = $assertionNode.'/ds:Signature/ds:SignedInfo/ds:Reference';
965 965
         $assertionReferenceNode = $xpath->query($signatureQuery)->item(0);
966 966
         if (!$assertionReferenceNode) {
967 967
             // is the response signed as a whole?
@@ -974,9 +974,9 @@  discard block
 block discarded – undo
974 974
                 } else {
975 975
                     $id = substr($responseReferenceNode->attributes->getNamedItem('URI')->nodeValue, 1);
976 976
                 }
977
-                $nameQuery = "/samlp:Response[@ID='$id']/saml:Assertion" . $assertionXpath;
977
+                $nameQuery = "/samlp:Response[@ID='$id']/saml:Assertion".$assertionXpath;
978 978
             } else {
979
-                $nameQuery = "/samlp:Response/saml:Assertion" . $assertionXpath;
979
+                $nameQuery = "/samlp:Response/saml:Assertion".$assertionXpath;
980 980
             }
981 981
         } else {
982 982
             $uri = $assertionReferenceNode->attributes->getNamedItem('URI')->nodeValue;
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
             } else {
986 986
                 $id = substr($assertionReferenceNode->attributes->getNamedItem('URI')->nodeValue, 1);
987 987
             }
988
-            $nameQuery = $assertionNode."[@ID='$id']" . $assertionXpath;
988
+            $nameQuery = $assertionNode."[@ID='$id']".$assertionXpath;
989 989
         }
990 990
 
991 991
         return $xpath->query($nameQuery);
Please login to merge, or discard this patch.
authentication/SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/Auth.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function setStrict($value)
157 157
     {
158
-        if (! (is_bool($value))) {
158
+        if (!(is_bool($value))) {
159 159
             throw new OneLogin_Saml2_Error(
160 160
                 'Invalid value passed to setStrict()',
161 161
                 OneLogin_Saml2_Error::SETTINGS_INVALID_SYNTAX
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
                 $security = $this->_settings->getSecurityData();
271 271
                 if (isset($security['logoutResponseSigned']) && $security['logoutResponseSigned']) {
272
-                    $signature = $this->buildResponseSignature($logoutResponse, isset($parameters['RelayState'])? $parameters['RelayState']: null, $security['signatureAlgorithm']);
272
+                    $signature = $this->buildResponseSignature($logoutResponse, isset($parameters['RelayState']) ? $parameters['RelayState'] : null, $security['signatureAlgorithm']);
273 273
                     $parameters['SigAlg'] = $security['signatureAlgorithm'];
274 274
                     $parameters['Signature'] = $signature;
275 275
                 }
@@ -579,13 +579,13 @@  discard block
 block discarded – undo
579 579
             if (isset($relayState)) {
580 580
                 $msg .= '&RelayState='.rawurlencode($relayState);
581 581
             }
582
-            $msg .= '&SigAlg=' . rawurlencode($signAlgorithm);
582
+            $msg .= '&SigAlg='.rawurlencode($signAlgorithm);
583 583
         } else {
584 584
             $msg = 'SAMLRequest='.urlencode($samlRequest);
585 585
             if (isset($relayState)) {
586 586
                 $msg .= '&RelayState='.urlencode($relayState);
587 587
             }
588
-            $msg .= '&SigAlg=' . urlencode($signAlgorithm);
588
+            $msg .= '&SigAlg='.urlencode($signAlgorithm);
589 589
         }
590 590
         $signature = $objKey->signData($msg);
591 591
         return base64_encode($signature);
@@ -622,13 +622,13 @@  discard block
 block discarded – undo
622 622
             if (isset($relayState)) {
623 623
                 $msg .= '&RelayState='.rawurlencode($relayState);
624 624
             }
625
-            $msg .= '&SigAlg=' . rawurlencode($signAlgorithm);
625
+            $msg .= '&SigAlg='.rawurlencode($signAlgorithm);
626 626
         } else {
627 627
             $msg = 'SAMLResponse='.urlencode($samlResponse);
628 628
             if (isset($relayState)) {
629 629
                 $msg .= '&RelayState='.urlencode($relayState);
630 630
             }
631
-            $msg .= '&SigAlg=' . urlencode($signAlgorithm);
631
+            $msg .= '&SigAlg='.urlencode($signAlgorithm);
632 632
         }
633 633
         $signature = $objKey->signData($msg);
634 634
         return base64_encode($signature);
Please login to merge, or discard this patch.
SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/IdPMetadataParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             } else {
38 38
                 throw new Exception(curl_error($ch), curl_errno($ch));
39 39
             }
40
-        } catch (Exception $e) {
40
+        }catch (Exception $e) {
41 41
         }
42 42
         return $metadataInfo;
43 43
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 $data = file_get_contents($filepath);
64 64
                 $metadataInfo = self::parseXML($data, $entityId);
65 65
             }
66
-        } catch (Exception $e) {
66
+        }catch (Exception $e) {
67 67
         }
68 68
         return $metadataInfo;
69 69
     }
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
 
96 96
             $customIdPStr = '';
97 97
             if (!empty($entityId)) {
98
-                $customIdPStr = '[@entityID="' . $entityId . '"]';
98
+                $customIdPStr = '[@entityID="'.$entityId.'"]';
99 99
             }
100
-            $idpDescryptorXPath = '//md:EntityDescriptor' . $customIdPStr . '/md:IDPSSODescriptor';
100
+            $idpDescryptorXPath = '//md:EntityDescriptor'.$customIdPStr.'/md:IDPSSODescriptor';
101 101
 
102 102
             $idpDescriptorNodes = OneLogin_Saml2_Utils::query($dom, $idpDescryptorXPath);
103 103
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
                     }
180 180
                 }
181 181
             }
182
-        } catch (Exception $e) {
182
+        }catch (Exception $e) {
183 183
             throw new Exception('Error parsing metadata. '.$e->getMessage());
184 184
         }
185 185
 
Please login to merge, or discard this patch.
SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/LogoutResponse.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@  discard block
 block discarded – undo
7 7
 class OneLogin_Saml2_LogoutResponse
8 8
 {
9 9
     /**
10
-    * Contains the ID of the Logout Response
11
-    * @var string
12
-    */
10
+     * Contains the ID of the Logout Response
11
+     * @var string
12
+     */
13 13
     public $id;
14 14
 
15 15
     /**
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
     public $document;
32 32
 
33 33
     /**
34
-    * After execute a validation process, if it fails, this var contains the cause
35
-    * @var string
36
-    */
34
+     * After execute a validation process, if it fails, this var contains the cause
35
+     * @var string
36
+     */
37 37
     private $_error;
38 38
 
39 39
     /**
@@ -270,9 +270,9 @@  discard block
 block discarded – undo
270 270
         return $this->_error;
271 271
     }
272 272
 
273
-   /**
274
-    * @return the ID of the Response
275
-    */
273
+    /**
274
+     * @return the ID of the Response
275
+     */
276 276
     public function getId()
277 277
     {
278 278
         return $this->id;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
                 }
185 185
             }
186 186
             return true;
187
-        } catch (Exception $e) {
187
+        }catch (Exception $e) {
188 188
             $this->_error = $e->getMessage();
189 189
             $debug = $this->_settings->isDebugActive();
190 190
             if ($debug) {
Please login to merge, or discard this patch.
authentication/SAML2Authenticate/lib/onelogin/php-saml/lib/Saml2/Utils.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             }
125 125
         }
126 126
 
127
-        $schemaFile = dirname(__FILE__).'/schemas/' . $schema;
127
+        $schemaFile = dirname(__FILE__).'/schemas/'.$schema;
128 128
         $oldEntityLoader = libxml_disable_entity_loader(false);
129 129
         $res = $dom->schemaValidate($schemaFile);
130 130
         libxml_disable_entity_loader($oldEntityLoader);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public static function getStringBetween($str, $start, $end)
222 222
     {
223
-        $str = ' ' . $str;
223
+        $str = ' '.$str;
224 224
         $ini = strpos($str, $start);
225 225
 
226 226
         if ($ini == 0) {
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
         assert('is_array($parameters)');
250 250
 
251 251
         if (substr($url, 0, 1) === '/') {
252
-            $url = self::getSelfURLhost() . $url;
252
+            $url = self::getSelfURLhost().$url;
253 253
         }
254 254
 
255 255
         /* Verify that the URL is to a http or https site. */
256 256
         if (!preg_match('@^https?:\/\/@i', $url)) {
257 257
             throw new OneLogin_Saml2_Error(
258
-                'Redirect to invalid URL: ' . $url,
258
+                'Redirect to invalid URL: '.$url,
259 259
                 OneLogin_Saml2_Error::REDIRECT_INVALID_URL
260 260
             );
261 261
         }
@@ -274,17 +274,17 @@  discard block
 block discarded – undo
274 274
             } else if (is_array($value)) {
275 275
                 $param = "";
276 276
                 foreach ($value as $val) {
277
-                    $param .= urlencode($name) . "[]=" . urlencode($val). '&';
277
+                    $param .= urlencode($name)."[]=".urlencode($val).'&';
278 278
                 }
279 279
                 if (!empty($param)) {
280 280
                     $param = substr($param, 0, -1);
281 281
                 }
282 282
             } else {
283
-                $param = urlencode($name) . '=' . urlencode($value);
283
+                $param = urlencode($name).'='.urlencode($value);
284 284
             }
285 285
 
286 286
             if (!empty($param)) {
287
-                $url .= $paramPrefix . $param;
287
+                $url .= $paramPrefix.$param;
288 288
                 $paramPrefix = '&';
289 289
             }
290 290
         }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
         header('Pragma: no-cache');
297 297
         header('Cache-Control: no-cache, must-revalidate');
298
-        header('Location: ' . $url);
298
+        header('Location: '.$url);
299 299
         exit();
300 300
     }
301 301
 
@@ -376,10 +376,10 @@  discard block
 block discarded – undo
376 376
         $portnumber = self::getSelfPort();
377 377
 
378 378
         if (isset($portnumber) && ($portnumber != '80') && ($portnumber != '443')) {
379
-            $port = ':' . $portnumber;
379
+            $port = ':'.$portnumber;
380 380
         }
381 381
 
382
-        return $protocol."://" . $currenthost . $port;
382
+        return $protocol."://".$currenthost.$port;
383 383
     }
384 384
 
385 385
     /**
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
         } else if ($baseurlpath == '/') {
401 401
             self::$_baseurlpath = '/';
402 402
         } else {
403
-            self::$_baseurlpath = '/' . trim($baseurlpath, '/') . '/';
403
+            self::$_baseurlpath = '/'.trim($baseurlpath, '/').'/';
404 404
         }
405 405
     }
406 406
 
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
             $route = $infoWithBaseURLPath;
571 571
         }
572 572
 
573
-        $selfRoutedURLNoQuery = $selfURLhost . $route;
573
+        $selfRoutedURLNoQuery = $selfURLhost.$route;
574 574
         return $selfRoutedURLNoQuery;
575 575
     }
576 576
 
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
             $requestURI = $infoWithBaseURLPath;
599 599
         }
600 600
 
601
-        return $selfURLhost . $requestURI;
601
+        return $selfURLhost.$requestURI;
602 602
     }
603 603
 
604 604
     /**
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
      */
646 646
     public static function generateUniqueID()
647 647
     {
648
-        return 'ONELOGIN_' . sha1(uniqid(mt_rand(), true));
648
+        return 'ONELOGIN_'.sha1(uniqid(mt_rand(), true));
649 649
     }
650 650
 
651 651
     /**
@@ -682,10 +682,10 @@  discard block
 block discarded – undo
682 682
         /* We use a very strict regex to parse the timestamp. */
683 683
         $exp1 = '/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)';
684 684
         $exp2 = 'T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.\\d+)?Z$/D';
685
-        if (preg_match($exp1 . $exp2, $time, $matches) == 0) {
685
+        if (preg_match($exp1.$exp2, $time, $matches) == 0) {
686 686
             throw new Exception(
687
-                'Invalid SAML2 timestamp passed to' .
688
-                ' parseSAML2Time: ' . $time
687
+                'Invalid SAML2 timestamp passed to'.
688
+                ' parseSAML2Time: '.$time
689 689
             );
690 690
         }
691 691
 
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
         /* Parse the duration. We use a very strict pattern. */
730 730
         $durationRegEx = '#^(-?)P(?:(?:(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?)|(?:(\\d+)W))$#D';
731 731
         if (!preg_match($durationRegEx, $duration, $matches)) {
732
-            throw new Exception('Invalid ISO 8601 duration: ' . $duration);
732
+            throw new Exception('Invalid ISO 8601 duration: '.$duration);
733 733
         }
734 734
 
735 735
         $durYears = (empty($matches[2]) ? 0 : (int)$matches[2]);
@@ -1091,9 +1091,9 @@  discard block
 block discarded – undo
1091 1091
 
1092 1092
             if ($inputKeyAlgo !== $symKeyInfoAlgo) {
1093 1093
                 throw new OneLogin_Saml2_ValidationError(
1094
-                    'Algorithm mismatch between input key and key used to encrypt ' .
1095
-                    ' the symmetric key for the message. Key was: ' .
1096
-                    var_export($inputKeyAlgo, true) . '; message was: ' .
1094
+                    'Algorithm mismatch between input key and key used to encrypt '.
1095
+                    ' the symmetric key for the message. Key was: '.
1096
+                    var_export($inputKeyAlgo, true).'; message was: '.
1097 1097
                     var_export($symKeyInfoAlgo, true),
1098 1098
                     OneLogin_Saml2_ValidationError::KEY_ALGORITHM_ERROR
1099 1099
                 );
@@ -1105,7 +1105,7 @@  discard block
 block discarded – undo
1105 1105
             if ($keySize === null) {
1106 1106
                 // To protect against "key oracle" attacks
1107 1107
                 throw new OneLogin_Saml2_ValidationError(
1108
-                    'Unknown key size for encryption algorithm: ' . var_export($symmetricKey->type, true),
1108
+                    'Unknown key size for encryption algorithm: '.var_export($symmetricKey->type, true),
1109 1109
                     OneLogin_Saml2_ValidationError::KEY_ALGORITHM_ERROR
1110 1110
                 );
1111 1111
             }
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
                 $encryptedKey = $encKey->getCipherValue();
1116 1116
                 $pkey = openssl_pkey_get_details($symmetricKeyInfo->key);
1117 1117
                 $pkey = sha1(serialize($pkey), true);
1118
-                $key = sha1($encryptedKey . $pkey, true);
1118
+                $key = sha1($encryptedKey.$pkey, true);
1119 1119
 
1120 1120
                 /* Make sure that the key has the correct length. */
1121 1121
                 if (strlen($key) > $keySize) {
@@ -1129,8 +1129,8 @@  discard block
 block discarded – undo
1129 1129
             $symKeyAlgo = $symmetricKey->getAlgorithm();
1130 1130
             if ($inputKeyAlgo !== $symKeyAlgo) {
1131 1131
                 throw new OneLogin_Saml2_ValidationError(
1132
-                    'Algorithm mismatch between input key and key in message. ' .
1133
-                    'Key was: ' . var_export($inputKeyAlgo, true) . '; message was: ' .
1132
+                    'Algorithm mismatch between input key and key in message. '.
1133
+                    'Key was: '.var_export($inputKeyAlgo, true).'; message was: '.
1134 1134
                     var_export($symKeyAlgo, true),
1135 1135
                     OneLogin_Saml2_ValidationError::KEY_ALGORITHM_ERROR
1136 1136
                 );
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
         $objXMLSecDSig->add509Cert($cert, true);
1244 1244
 
1245 1245
         $insertBefore = $rootNode->firstChild;
1246
-        $messageTypes = array('AuthnRequest', 'Response', 'LogoutRequest','LogoutResponse');
1246
+        $messageTypes = array('AuthnRequest', 'Response', 'LogoutRequest', 'LogoutResponse');
1247 1247
         if (in_array($rootNode->localName, $messageTypes)) {
1248 1248
             $issuerNodes = self::query($dom, '/'.$rootNode->tagName.'/saml:Issuer');
1249 1249
             if ($issuerNodes->length == 1) {
@@ -1309,7 +1309,7 @@  discard block
 block discarded – undo
1309 1309
 
1310 1310
         try {
1311 1311
             $retVal = $objXMLSecDSig->validateReference();
1312
-        } catch (Exception $e) {
1312
+        }catch (Exception $e) {
1313 1313
             throw $e;
1314 1314
         }
1315 1315
 
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
             if ($signAlg != XMLSecurityKey::RSA_SHA1) {
1402 1402
                 try {
1403 1403
                     $objKey = OneLogin_Saml2_Utils::castKey($objKey, $signAlg, 'public');
1404
-                } catch (Exception $e) {
1404
+                }catch (Exception $e) {
1405 1405
                     $ex = new OneLogin_Saml2_ValidationError(
1406 1406
                         "Invalid signAlg in the recieved ".$strMessageType,
1407 1407
                         OneLogin_Saml2_ValidationError::INVALID_SIGNATURE
Please login to merge, or discard this patch.