Completed
Push — develop ( bcb506 )
by Adam
23:26 queued 05:42
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.
modules/AOS_PDF_Templates/templateParser.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -59,33 +59,33 @@  discard block
 block discarded – undo
59 59
             if (isset($field_def['name']) && $field_def['name'] != '') {
60 60
                 $fieldName = $field_def['name'];
61 61
                 if ($field_def['type'] == 'currency') {
62
-                    $repl_arr[$key . "_" . $fieldName] = currency_format_number($focus->$fieldName, $params = array('currency_symbol' => false));
62
+                    $repl_arr[$key."_".$fieldName] = currency_format_number($focus->$fieldName, $params = array('currency_symbol' => false));
63 63
                 } else if (($field_def['type'] == 'radioenum' || $field_def['type'] == 'enum' || $field_def['type'] == 'dynamicenum') && isset($field_def['options'])) {
64
-                    $repl_arr[$key . "_" . $fieldName] = translate($field_def['options'], $focus->module_dir, $focus->$fieldName);
64
+                    $repl_arr[$key."_".$fieldName] = translate($field_def['options'], $focus->module_dir, $focus->$fieldName);
65 65
                 } else if ($field_def['type'] == 'multienum' && isset($field_def['options'])) {
66 66
                     $mVals = unencodeMultienum($focus->$fieldName);
67 67
                     $translatedVals = array();
68
-                    foreach($mVals as $mVal){
68
+                    foreach ($mVals as $mVal) {
69 69
                         $translatedVals[] = translate($field_def['options'], $focus->module_dir, $mVal);
70 70
                     }
71
-                    $repl_arr[$key . "_" . $fieldName] = implode(", ", $translatedVals);
71
+                    $repl_arr[$key."_".$fieldName] = implode(", ", $translatedVals);
72 72
                 } //Fix for Windows Server as it needed to be converted to a string.
73 73
                 else if ($field_def['type'] == 'int') {
74
-                    $repl_arr[$key . "_" . $fieldName] = strval($focus->$fieldName);
74
+                    $repl_arr[$key."_".$fieldName] = strval($focus->$fieldName);
75 75
                 } else if ($field_def['type'] == 'image') {
76
-                    $secureLink = $sugar_config['site_url'] . '/' . "public/". $focus->id .  '_' . $fieldName;
77
-                    $file_location = $sugar_config['upload_dir'] . '/'  . $focus->id .  '_' . $fieldName;
76
+                    $secureLink = $sugar_config['site_url'].'/'."public/".$focus->id.'_'.$fieldName;
77
+                    $file_location = $sugar_config['upload_dir'].'/'.$focus->id.'_'.$fieldName;
78 78
                     // create a copy with correct extension by mime type
79
-                    if(!file_exists('public')) {
79
+                    if (!file_exists('public')) {
80 80
                         sugar_mkdir('public', 0777);
81 81
                     }
82
-                    if(!copy($file_location, "public/{$focus->id}".  '_' . "$fieldName")) {
83
-                        $secureLink = $sugar_config['site_url'] . '/'. $file_location;
82
+                    if (!copy($file_location, "public/{$focus->id}".'_'."$fieldName")) {
83
+                        $secureLink = $sugar_config['site_url'].'/'.$file_location;
84 84
                     }
85 85
                     $link = $secureLink;
86
-                    $repl_arr[$key . "_" . $fieldName] = '<img src="' . $link . '" width="'.$field_def['width'].'" height="'.$field_def['height'].'"/>';
86
+                    $repl_arr[$key."_".$fieldName] = '<img src="'.$link.'" width="'.$field_def['width'].'" height="'.$field_def['height'].'"/>';
87 87
                 } else {
88
-                    $repl_arr[$key . "_" . $fieldName] = $focus->$fieldName;
88
+                    $repl_arr[$key."_".$fieldName] = $focus->$fieldName;
89 89
                 }
90 90
             }
91 91
         } // end foreach()
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 if ($value != '' && $value != '0.00') {
99 99
                     if ($repl_arr['aos_products_quotes_discount'] == 'Percentage') {
100 100
                         $sep = get_number_seperators();
101
-                        $value = rtrim(rtrim(format_number($value), '0'), $sep[1]);//.$app_strings['LBL_PERCENTAGE_SYMBOL'];
101
+                        $value = rtrim(rtrim(format_number($value), '0'), $sep[1]); //.$app_strings['LBL_PERCENTAGE_SYMBOL'];
102 102
                     } else {
103 103
                         $value = currency_format_number($value, $params = array('currency_symbol' => false));
104 104
                     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 }
108 108
             }
109 109
             if ($name === 'aos_products_product_image' && !empty($value)) {
110
-                $value = '<img src="' . $value . '"width="50" height="50"/>';
110
+                $value = '<img src="'.$value.'"width="50" height="50"/>';
111 111
             }
112 112
             if ($name === 'aos_products_quotes_product_qty') {
113 113
                 $sep = get_number_seperators();
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             }
116 116
             if ($name === 'aos_products_quotes_vat' || strpos($name, 'pct') > 0 || strpos($name, 'percent') > 0 || strpos($name, 'percentage') > 0) {
117 117
                 $sep = get_number_seperators();
118
-                $value = rtrim(rtrim(format_number($value), '0'), $sep[1]) . $app_strings['LBL_PERCENTAGE_SYMBOL'];
118
+                $value = rtrim(rtrim(format_number($value), '0'), $sep[1]).$app_strings['LBL_PERCENTAGE_SYMBOL'];
119 119
             }
120 120
             if (strpos($name, 'date') > 0 || strpos($name, 'expiration') > 0) {
121 121
                 if ($value != '') {
Please login to merge, or discard this patch.
include/ListView/ListViewSubPanel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -546,10 +546,10 @@
 block discarded – undo
546 546
             global $app_strings;
547 547
 
548 548
             if(!isset($current_offset) || empty($current_offset))
549
-	    {
550
-  		$current_offset=0;
551
-	    }
552
-	    $start_record = $current_offset + 1;
549
+        {
550
+            $current_offset=0;
551
+        }
552
+        $start_record = $current_offset + 1;
553 553
 
554 554
             if (!is_numeric($col_count)) {
555 555
                 $col_count = 20;
Please login to merge, or discard this patch.
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 $this->createSmartyTemplate();
137 137
             }
138 138
 
139
-            $html_var = $this->subpanel_module . "_CELL";
139
+            $html_var = $this->subpanel_module."_CELL";
140 140
 
141 141
             $list_data = $this->processUnionBeans($sugarbean, $subpanel_def, $html_var);
142 142
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                 }
292 292
             }
293 293
 
294
-            foreach($data as $aVal => $aItem) {
294
+            foreach ($data as $aVal => $aItem) {
295 295
                 $widget_contents[$aVal] = array();
296 296
                 $subpanel_item_count++;
297 297
                 $aItem->check_date_relationships_load();
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 
325 325
                 if ($this->shouldProcess) {
326 326
                     if ($aItem->ACLAccess('EditView')) {
327
-                        $widget_contents[$aVal][0] = "<input type='checkbox' class='checkbox' name='mass[]' value='" . $fields['ID'] . "' />";
327
+                        $widget_contents[$aVal][0] = "<input type='checkbox' class='checkbox' name='mass[]' value='".$fields['ID']."' />";
328 328
                     }
329 329
                     else {
330 330
                         $widget_contents[$aVal][0] = '';
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 //                    else {
336 336
 //                        $this->smartyTemplate->assign('TAG_NAME', 'span');
337 337
 //                    }
338
-                    $this->smartyTemplate->assign('CHECKALL', "<input type='checkbox'  title='" . $GLOBALS['app_strings']['LBL_SELECT_ALL_TITLE'] . "' class='checkbox' name='massall' id='massall' value='' onclick='sListView.check_all(document.MassUpdate, \"mass[]\", this.checked);' />");
338
+                    $this->smartyTemplate->assign('CHECKALL', "<input type='checkbox'  title='".$GLOBALS['app_strings']['LBL_SELECT_ALL_TITLE']."' class='checkbox' name='massall' id='massall' value='' onclick='sListView.check_all(document.MassUpdate, \"mass[]\", this.checked);' />");
339 339
 
340 340
                 }
341 341
                 $oddRow = !$oddRow;
@@ -415,8 +415,8 @@  discard block
 block discarded – undo
415 415
                         if ($usage != 'query_only') {
416 416
                             $list_field['name'] = $field_name;
417 417
 
418
-                            $module_field = $field_name . '_mod';
419
-                            $owner_field = $field_name . '_owner';
418
+                            $module_field = $field_name.'_mod';
419
+                            $owner_field = $field_name.'_owner';
420 420
                             if (!empty($aItem->$module_field)) {
421 421
 
422 422
                                 $list_field['owner_id'] = $aItem->$owner_field;
@@ -504,11 +504,11 @@  discard block
 block discarded – undo
504 504
                                         unset($_content);
505 505
                                     }
506 506
                                     else {
507
-                                        $doNotProcessTheseActions = array("edit_button", "close_button","remove_button");
508
-                                        if(!in_array($list_field['name'],$doNotProcessTheseActions) && '' != ($_content = $layout_manager->widgetDisplay($list_field))){
507
+                                        $doNotProcessTheseActions = array("edit_button", "close_button", "remove_button");
508
+                                        if (!in_array($list_field['name'], $doNotProcessTheseActions) && '' != ($_content = $layout_manager->widgetDisplay($list_field))) {
509 509
                                             $button_contents[$aVal][] = $_content;
510 510
                                             unset($_content);
511
-                                        }else{
511
+                                        } else {
512 512
                                             $button_contents[$aVal][] = '';
513 513
                                         }
514 514
                                     }
@@ -545,9 +545,9 @@  discard block
 block discarded – undo
545 545
             global $currentModule;
546 546
             global $app_strings;
547 547
 
548
-            if(!isset($current_offset) || empty($current_offset))
548
+            if (!isset($current_offset) || empty($current_offset))
549 549
 	    {
550
-  		$current_offset=0;
550
+  		$current_offset = 0;
551 551
 	    }
552 552
 	    $start_record = $current_offset + 1;
553 553
 
@@ -579,21 +579,21 @@  discard block
 block discarded – undo
579 579
                 $dynamic_url = '';
580 580
 
581 581
                 if ($this->is_dynamic) {
582
-                    $dynamic_url .= '&' . $this->getSessionVariableName($html_varName, 'ORDER_BY') . '=' . $this->getSessionVariable($html_varName, 'ORDER_BY') . '&sort_order=' . $this->sort_order . '&to_pdf=true&action=SubPanelViewer&subpanel=' . $this->subpanel_module;
582
+                    $dynamic_url .= '&'.$this->getSessionVariableName($html_varName, 'ORDER_BY').'='.$this->getSessionVariable($html_varName, 'ORDER_BY').'&sort_order='.$this->sort_order.'&to_pdf=true&action=SubPanelViewer&subpanel='.$this->subpanel_module;
583 583
                 }
584 584
 
585
-                $current_URL = htmlentities($this->base_URL . $current_offset . $dynamic_url);
586
-                $start_URL = htmlentities($this->base_URL . "0" . $dynamic_url);
587
-                $previous_URL = htmlentities($this->base_URL . $previous_offset . $dynamic_url);
588
-                $next_URL = htmlentities($this->base_URL . $next_offset . $dynamic_url);
589
-                $end_URL = htmlentities($this->base_URL . 'end' . $dynamic_url);
585
+                $current_URL = htmlentities($this->base_URL.$current_offset.$dynamic_url);
586
+                $start_URL = htmlentities($this->base_URL."0".$dynamic_url);
587
+                $previous_URL = htmlentities($this->base_URL.$previous_offset.$dynamic_url);
588
+                $next_URL = htmlentities($this->base_URL.$next_offset.$dynamic_url);
589
+                $end_URL = htmlentities($this->base_URL.'end'.$dynamic_url);
590 590
 
591 591
                 if (!empty($this->start_link_wrapper)) {
592
-                    $current_URL = $this->start_link_wrapper . $current_URL . $this->end_link_wrapper;
593
-                    $start_URL = $this->start_link_wrapper . $start_URL . $this->end_link_wrapper;
594
-                    $previous_URL = $this->start_link_wrapper . $previous_URL . $this->end_link_wrapper;
595
-                    $next_URL = $this->start_link_wrapper . $next_URL . $this->end_link_wrapper;
596
-                    $end_URL = $this->start_link_wrapper . $end_URL . $this->end_link_wrapper;
592
+                    $current_URL = $this->start_link_wrapper.$current_URL.$this->end_link_wrapper;
593
+                    $start_URL = $this->start_link_wrapper.$start_URL.$this->end_link_wrapper;
594
+                    $previous_URL = $this->start_link_wrapper.$previous_URL.$this->end_link_wrapper;
595
+                    $next_URL = $this->start_link_wrapper.$next_URL.$this->end_link_wrapper;
596
+                    $end_URL = $this->start_link_wrapper.$end_URL.$this->end_link_wrapper;
597 597
                 }
598 598
 
599 599
                 $moduleString = htmlspecialchars("{$currentModule}_{$html_varName}_offset");
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
                     $uids = empty($_REQUEST['uid']) || $massUpdateRun ? '' : $_REQUEST['uid'];
607 607
                     $select_entire_list = ($massUpdateRun) ? 0 : (isset($_POST['select_entire_list']) ? $_POST['select_entire_list'] : (isset($_REQUEST['select_entire_list']) ? htmlspecialchars($_REQUEST['select_entire_list']) : 0));
608 608
 
609
-                    echo "<textarea style='display: none' name='uid'>{$uids}</textarea>\n" . "<input type='hidden' name='select_entire_list' value='{$select_entire_list}'>\n" . "<input type='hidden' name='{$moduleString}' value='0'>\n" . "<input type='hidden' name='{$moduleStringOrder}' value='0'>\n";
609
+                    echo "<textarea style='display: none' name='uid'>{$uids}</textarea>\n"."<input type='hidden' name='select_entire_list' value='{$select_entire_list}'>\n"."<input type='hidden' name='{$moduleString}' value='0'>\n"."<input type='hidden' name='{$moduleStringOrder}' value='0'>\n";
610 610
 
611 611
                 }
612 612
 
@@ -614,17 +614,17 @@  discard block
 block discarded – undo
614 614
                 $GLOBALS['log']->debug("Offsets: (start, previous, next, last)(0, $previous_offset, $next_offset, $last_offset)");
615 615
 
616 616
                 if (0 == $current_offset) {
617
-                    $start_link = "<button type='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' class='button' disabled>" . SugarThemeRegistry::current()->getImage("start_off", "aborder='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START']) . "</button>";
618
-                    $previous_link = "<button type='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' class='button' disabled>" . SugarThemeRegistry::current()->getImage("previous_off", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS']) . "</button>";
617
+                    $start_link = "<button type='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' class='button' disabled>".SugarThemeRegistry::current()->getImage("start_off", "aborder='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START'])."</button>";
618
+                    $previous_link = "<button type='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' class='button' disabled>".SugarThemeRegistry::current()->getImage("previous_off", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS'])."</button>";
619 619
                 }
620 620
                 else {
621 621
                     if ($this->multi_select_popup) {// nav links for multiselect popup, submit form to save checks.
622
-                        $start_link = "<button type='button' class='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' onClick='javascript:save_checks(0, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("start", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START']) . "</button>";
623
-                        $previous_link = "<button type='button' class='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' onClick='javascript:save_checks($previous_offset, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("previous", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS']) . "</button>";
622
+                        $start_link = "<button type='button' class='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' onClick='javascript:save_checks(0, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("start", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START'])."</button>";
623
+                        $previous_link = "<button type='button' class='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' onClick='javascript:save_checks($previous_offset, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("previous", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS'])."</button>";
624 624
                     }
625 625
                     elseif ($this->shouldProcess) {
626
-                        $start_link = "<button type='button' class='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' onClick='location.href=\"$start_URL\"; sListView.save_checks(0, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("start", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START']) . "</button>";
627
-                        $previous_link = "<button type='button' class='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' onClick='location.href=\"$previous_URL\"; sListView.save_checks($previous_offset, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("previous", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS']) . "</button>";
626
+                        $start_link = "<button type='button' class='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' onClick='location.href=\"$start_URL\"; sListView.save_checks(0, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("start", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START'])."</button>";
627
+                        $previous_link = "<button type='button' class='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' onClick='location.href=\"$previous_URL\"; sListView.save_checks($previous_offset, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("previous", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS'])."</button>";
628 628
                     }
629 629
                     else {
630 630
                         $onClick = '';
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
                         else {
635 635
                             $onClick = "'location.href=\"$start_URL\";'";
636 636
                         }
637
-                        $start_link = "<button type='button' class='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' onClick=" . $onClick . ">" . SugarThemeRegistry::current()->getImage("start", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START']) . "</button>";
637
+                        $start_link = "<button type='button' class='button' name='listViewStartButton' title='{$this->local_app_strings['LNK_LIST_START']}' onClick=".$onClick.">".SugarThemeRegistry::current()->getImage("start", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_START'])."</button>";
638 638
 
639 639
                         $onClick = '';
640 640
                         if (0 != preg_match('/javascript.*/', $previous_URL)) {
@@ -643,25 +643,25 @@  discard block
 block discarded – undo
643 643
                         else {
644 644
                             $onClick = "'location.href=\"$previous_URL\";'";
645 645
                         }
646
-                        $previous_link = "<button type='button' class='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' onClick=" . $onClick . ">" . SugarThemeRegistry::current()->getImage("previous", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS']) . "</button>";
646
+                        $previous_link = "<button type='button' class='button' name='listViewPrevButton' title='{$this->local_app_strings['LNK_LIST_PREVIOUS']}' onClick=".$onClick.">".SugarThemeRegistry::current()->getImage("previous", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_PREVIOUS'])."</button>";
647 647
                     }
648 648
                 }
649 649
 
650 650
                 if ($last_offset <= $current_offset) {
651
-                    $end_link = "<button type='button' name='listViewEndButton' title='{$this->local_app_strings['LNK_LIST_END']}' class='button' disabled>" . SugarThemeRegistry::current()->getImage("end_off", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END']) . "</button>";
652
-                    $next_link = "<button type='button' name='listViewNextButton' title='{$this->local_app_strings['LNK_LIST_NEXT']}' class='button' disabled>" . SugarThemeRegistry::current()->getImage("next_off", "aborder='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT']) . "</button>";
651
+                    $end_link = "<button type='button' name='listViewEndButton' title='{$this->local_app_strings['LNK_LIST_END']}' class='button' disabled>".SugarThemeRegistry::current()->getImage("end_off", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END'])."</button>";
652
+                    $next_link = "<button type='button' name='listViewNextButton' title='{$this->local_app_strings['LNK_LIST_NEXT']}' class='button' disabled>".SugarThemeRegistry::current()->getImage("next_off", "aborder='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT'])."</button>";
653 653
                 }
654 654
                 else {
655 655
                     if ($this->multi_select_popup) { // nav links for multiselect popup, submit form to save checks.
656
-                        $end_link = "<button type='button' name='listViewEndButton' class='button' title='{$this->local_app_strings['LNK_LIST_END']}' onClick='javascript:save_checks($last_offset, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("end", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END']) . "</button>";
656
+                        $end_link = "<button type='button' name='listViewEndButton' class='button' title='{$this->local_app_strings['LNK_LIST_END']}' onClick='javascript:save_checks($last_offset, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("end", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END'])."</button>";
657 657
                         if (!empty($sugar_config['disable_count_query'])) {
658 658
                             $end_link = '';
659 659
                         }
660
-                        $next_link = "<button type='button' name='listViewNextButton' title='{$this->local_app_strings['LNK_LIST_NEXT']}' class='button' onClick='javascript:save_checks($next_offset, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("next", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT']) . "</button>";
660
+                        $next_link = "<button type='button' name='listViewNextButton' title='{$this->local_app_strings['LNK_LIST_NEXT']}' class='button' onClick='javascript:save_checks($next_offset, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("next", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT'])."</button>";
661 661
                     }
662 662
                     elseif ($this->shouldProcess) {
663
-                        $end_link = "<button type='button' name='listViewEndButton' class='button' title='{$this->local_app_strings['LNK_LIST_END']}' onClick='location.href=\"$end_URL\"; sListView.save_checks(\"end\", \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("end", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END']) . "</button>";
664
-                        $next_link = "<button type='button' name='listViewNextButton' class='button' title='{$this->local_app_strings['LNK_LIST_NEXT']}' onClick='location.href=\"$next_URL\"; sListView.save_checks($next_offset, \"{$moduleString}\");'>" . SugarThemeRegistry::current()->getImage("next", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT']) . "</button>";
663
+                        $end_link = "<button type='button' name='listViewEndButton' class='button' title='{$this->local_app_strings['LNK_LIST_END']}' onClick='location.href=\"$end_URL\"; sListView.save_checks(\"end\", \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("end", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END'])."</button>";
664
+                        $next_link = "<button type='button' name='listViewNextButton' class='button' title='{$this->local_app_strings['LNK_LIST_NEXT']}' onClick='location.href=\"$next_URL\"; sListView.save_checks($next_offset, \"{$moduleString}\");'>".SugarThemeRegistry::current()->getImage("next", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT'])."</button>";
665 665
                     }
666 666
                     else {
667 667
                         $onClick = '';
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
                         else {
672 672
                             $onClick = "'location.href=\"$next_URL\";'";
673 673
                         }
674
-                        $next_link = "<button type='button' name='listViewNextButton' class='button' title='{$this->local_app_strings['LNK_LIST_NEXT']}' onClick=" . $onClick . ">" . SugarThemeRegistry::current()->getImage("next", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT']) . "</button>";
674
+                        $next_link = "<button type='button' name='listViewNextButton' class='button' title='{$this->local_app_strings['LNK_LIST_NEXT']}' onClick=".$onClick.">".SugarThemeRegistry::current()->getImage("next", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_NEXT'])."</button>";
675 675
 
676 676
                         $onClick = '';
677 677
                         if (0 != preg_match('/javascript.*/', $end_URL)) {
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
                         else {
681 681
                             $onClick = "'location.href=\"$end_URL\";'";
682 682
                         }
683
-                        $end_link = "<button type='button' name='listViewEndButton' class='button' title='{$this->local_app_strings['LNK_LIST_END']}' onClick=" . $onClick . ">" . SugarThemeRegistry::current()->getImage("end", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END']) . "</button>";
683
+                        $end_link = "<button type='button' name='listViewEndButton' class='button' title='{$this->local_app_strings['LNK_LIST_END']}' onClick=".$onClick.">".SugarThemeRegistry::current()->getImage("end", "border='0' align='absmiddle'", null, null, '.gif', $this->local_app_strings['LNK_LIST_END'])."</button>";
684 684
 
685 685
                     }
686 686
                 }
@@ -690,14 +690,14 @@  discard block
 block discarded – undo
690 690
 
691 691
                 $end_record = $end_record - 1;
692 692
 
693
-                $script_href = "<a style=\'width: 150px\' name=\"thispage\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $this->records_per_page)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};\' href=\'#\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_CURRENT']}&nbsp;&#x28;{$this->records_per_page}&#x29;&#x200E;</a>" . "<a style=\'width: 150px\' name=\"selectall\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$row_count});\' href=\'#\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}&nbsp;&#x28;{$row_count}&#x29;&#x200E;</a>" . "<a style=\'width: 150px\' name=\"deselect\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.clear_all(document.MassUpdate, \"mass[]\", false);\' href=\'#\'>{$this->local_app_strings['LBL_LISTVIEW_NONE']}</a>";
693
+                $script_href = "<a style=\'width: 150px\' name=\"thispage\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $this->records_per_page)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};\' href=\'#\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_CURRENT']}&nbsp;&#x28;{$this->records_per_page}&#x29;&#x200E;</a>"."<a style=\'width: 150px\' name=\"selectall\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$row_count});\' href=\'#\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}&nbsp;&#x28;{$row_count}&#x29;&#x200E;</a>"."<a style=\'width: 150px\' name=\"deselect\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.clear_all(document.MassUpdate, \"mass[]\", false);\' href=\'#\'>{$this->local_app_strings['LBL_LISTVIEW_NONE']}</a>";
694 694
 
695 695
                 $close_inline_img = SugarThemeRegistry::current()->getImage('close_inline', 'border=0', null, null, ".gif", $app_strings['LBL_CLOSEINLINE']);
696 696
 
697 697
                 echo "<script>
698 698
                 function select_dialog() {
699 699
                 	var \$dialog = \$('<div></div>')
700
-					.html('<a style=\'width: 150px\' name=\"thispage\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $this->records_per_page)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};\' href=\'javascript:void(0)\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_CURRENT']}&nbsp;&#x28;{$this->records_per_page}&#x29;&#x200E;</a>" . "<a style=\'width: 150px\' name=\"selectall\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$row_count});\' href=\'javascript:void(0)\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}&nbsp;&#x28;{$row_count}&#x29;&#x200E;</a>" . "<a style=\'width: 150px\' name=\"deselect\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.clear_all(document.MassUpdate, \"mass[]\", false);\' href=\'javascript:void(0)\'>{$this->local_app_strings['LBL_LISTVIEW_NONE']}</a>')
700
+					.html('<a style=\'width: 150px\' name=\"thispage\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $this->records_per_page)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};\' href=\'javascript:void(0)\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_CURRENT']}&nbsp;&#x28;{$this->records_per_page}&#x29;&#x200E;</a>"."<a style=\'width: 150px\' name=\"selectall\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$row_count});\' href=\'javascript:void(0)\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}&nbsp;&#x28;{$row_count}&#x29;&#x200E;</a>"."<a style=\'width: 150px\' name=\"deselect\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.clear_all(document.MassUpdate, \"mass[]\", false);\' href=\'javascript:void(0)\'>{$this->local_app_strings['LBL_LISTVIEW_NONE']}</a>')
701 701
 					.dialog({
702 702
 						autoOpen: false,
703 703
 						width: 150
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
                     if (!empty($GLOBALS['sugar_config']['disable_count_query']) && $GLOBALS['sugar_config']['disable_count_query'] === true && $total > $pageTotal) {
715 715
                         $this->show_plus = true;
716 716
                         $total = $pageTotal;
717
-                        $total_label = $total . '+';
717
+                        $total_label = $total.'+';
718 718
                     }
719 719
                     else {
720 720
                         $this->show_plus = false;
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
                     //Bug#52931: Replace with actionMenu
726 726
                     //$select_link = "<a id='select_link' onclick='return select_dialog();' href=\"javascript:void(0)\">".$this->local_app_strings['LBL_LINK_SELECT']."&nbsp;".SugarThemeRegistry::current()->getImage('MoreDetail', 'border=0', 11, 7, '.png', $app_strings['LBL_MOREDETAIL'])."</a>";
727 727
                     $menuItems = array(
728
-                        "<input title=\"" . $app_strings['LBL_SELECT_ALL_TITLE'] . "\" type='checkbox' class='checkbox massall' name='massall' id='massall' value='' onclick='sListView.check_all(document.MassUpdate, \"mass[]\", this.checked);' /><a href='javascript: void(0);'></a>", "<a  name='thispage' id='button_select_this_page' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick='if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $pageTotal)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};' href='#'>{$app_strings['LBL_LISTVIEW_OPTION_CURRENT']}&nbsp;&#x28;{$pageTotal}&#x29;&#x200E;</a>", "<a  name='selectall' id='button_select_all' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick='sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$total});' href='#'>{$app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}&nbsp;&#x28;{$total_label}&#x29;&#x200E;</a>", "<a name='deselect' id='button_deselect' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick='sListView.clear_all(document.MassUpdate, \"mass[]\", false);' href='#'>{$app_strings['LBL_LISTVIEW_NONE']}</a>",
728
+                        "<input title=\"".$app_strings['LBL_SELECT_ALL_TITLE']."\" type='checkbox' class='checkbox massall' name='massall' id='massall' value='' onclick='sListView.check_all(document.MassUpdate, \"mass[]\", this.checked);' /><a href='javascript: void(0);'></a>", "<a  name='thispage' id='button_select_this_page' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick='if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $pageTotal)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};' href='#'>{$app_strings['LBL_LISTVIEW_OPTION_CURRENT']}&nbsp;&#x28;{$pageTotal}&#x29;&#x200E;</a>", "<a  name='selectall' id='button_select_all' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick='sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$total});' href='#'>{$app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}&nbsp;&#x28;{$total_label}&#x29;&#x200E;</a>", "<a name='deselect' id='button_deselect' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick='sListView.clear_all(document.MassUpdate, \"mass[]\", false);' href='#'>{$app_strings['LBL_LISTVIEW_NONE']}</a>",
729 729
                     );
730 730
                     require_once('include/Smarty/plugins/function.sugar_action_menu.php');
731 731
                     $select_link = smarty_function_sugar_action_menu(array(
@@ -737,10 +737,10 @@  discard block
 block discarded – undo
737 737
                     $select_link = "&nbsp;";
738 738
                 }
739 739
 
740
-                $export_link = '<input class="button" type="button" value="' . $this->local_app_strings['LBL_EXPORT'] . '" ' . 'onclick="return sListView.send_form(true, \'' . $_REQUEST['module'] . '\', \'index.php?entryPoint=export\',\'' . $this->local_app_strings['LBL_LISTVIEW_NO_SELECTED'] . '\')">';
740
+                $export_link = '<input class="button" type="button" value="'.$this->local_app_strings['LBL_EXPORT'].'" '.'onclick="return sListView.send_form(true, \''.$_REQUEST['module'].'\', \'index.php?entryPoint=export\',\''.$this->local_app_strings['LBL_LISTVIEW_NO_SELECTED'].'\')">';
741 741
 
742 742
                 if ($this->show_delete_button) {
743
-                    $delete_link = '<input class="button" type="button" id="delete_button" name="Delete" value="' . $this->local_app_strings['LBL_DELETE_BUTTON_LABEL'] . '" onclick="return sListView.send_mass_update(\'selected\',\'' . $this->local_app_strings['LBL_LISTVIEW_NO_SELECTED'] . '\', 1)">';
743
+                    $delete_link = '<input class="button" type="button" id="delete_button" name="Delete" value="'.$this->local_app_strings['LBL_DELETE_BUTTON_LABEL'].'" onclick="return sListView.send_mass_update(\'selected\',\''.$this->local_app_strings['LBL_LISTVIEW_NO_SELECTED'].'\', 1)">';
744 744
                 }
745 745
                 else {
746 746
                     $delete_link = '&nbsp;';
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
                 $admin->retrieveSettings('system');
751 751
 
752 752
                 $user_merge = $current_user->getPreference('mailmerge_on');
753
-                if($user_merge == 'on' && isset($admin->settings['system_mailmerge_on']) && $admin->settings['system_mailmerge_on']) {
753
+                if ($user_merge == 'on' && isset($admin->settings['system_mailmerge_on']) && $admin->settings['system_mailmerge_on']) {
754 754
                     echo "<script>
755 755
                 function mailmerge_dialog(el) {
756 756
                    	var \$dialog = \$('<div></div>')
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
                         . "<a  class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' href=\'index.php?action=index&module=MailMerge&entire=true\'>{$this->local_app_strings['LBL_LISTVIEW_OPTION_ENTIRE']}</a>')
760 760
 					.dialog({
761 761
 						autoOpen: false,
762
-						title: '". $this->local_app_strings['LBL_MAILMERGE']."',
762
+						title: '".$this->local_app_strings['LBL_MAILMERGE']."',
763 763
 						width: 150,
764 764
 						position: {
765 765
 						    my: myPos,
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
                     $merge_link = "&nbsp;";
776 776
                 }
777 777
 
778
-                $selected_objects_span = "&nbsp;|&nbsp;{$this->local_app_strings['LBL_LISTVIEW_SELECTED_OBJECTS']}<input  style='border: 0px; background: transparent; font-size: inherit; color: inherit' type='text' readonly name='selectCount[]' value='" . ((isset($_POST['mass'])) ? count($_POST['mass']) : 0) . "' />";
778
+                $selected_objects_span = "&nbsp;|&nbsp;{$this->local_app_strings['LBL_LISTVIEW_SELECTED_OBJECTS']}<input  style='border: 0px; background: transparent; font-size: inherit; color: inherit' type='text' readonly name='selectCount[]' value='".((isset($_POST['mass'])) ? count($_POST['mass']) : 0)."' />";
779 779
 
780 780
                 if ($_REQUEST['module'] == 'Home' || $this->local_current_module == 'Import' || $this->show_export_button == false || (!empty($sugar_config['disable_export'])) || (!empty($sugar_config['admin_export_only']) && !(is_admin($current_user) || (ACLController::moduleSupportsACL($_REQUEST['module']) && ACLAction::getUserAccessLevel($current_user->id, $_REQUEST['module'], 'access') == ACL_ALLOW_ENABLED && (ACLAction::getUserAccessLevel($current_user->id, $_REQUEST['module'], 'admin') == ACL_ALLOW_ADMIN || ACLAction::getUserAccessLevel($current_user->id, $_REQUEST['module'], 'admin') == ACL_ALLOW_ADMIN_DEV))))) {
781 781
                     if ($_REQUEST['module'] != 'InboundEmail' && $_REQUEST['module'] != 'EmailMan' && $_REQUEST['module'] != 'iFrames') {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 
808 808
                         //attempt to get the query to recreate this subpanel
809 809
                         if (!empty($this->response)) {
810
-                            $response =& $this->response;
810
+                            $response = & $this->response;
811 811
                         }
812 812
                         else {
813 813
                             $response = SugarBean::get_union_related_list($sugarbean, $this->sortby, $this->sort_order, $this->query_where, $current_offset, -1, $this->records_per_page, $this->query_limit, $subpanel_def);
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
                     else {
825 825
                         $html_text .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td align=\"left\"  nowrap>$select_link&nbsp;$export_link&nbsp;$delete_link&nbsp;$selected_objects_span";
826 826
                     }
827
-                    $html_text .= "</td>\n<td nowrap align=\"right\">" . $start_link . "&nbsp;&nbsp;" . $previous_link . "&nbsp;&nbsp;<span class='pageNumbers'>(" . $start_record . " - " . $end_record . " " . $this->local_app_strings['LBL_LIST_OF'] . " " . $row_count . ")</span>&nbsp;&nbsp;" . $next_link . "&nbsp;&nbsp;" . $end_link . "</td></tr></table>\n";
827
+                    $html_text .= "</td>\n<td nowrap align=\"right\">".$start_link."&nbsp;&nbsp;".$previous_link."&nbsp;&nbsp;<span class='pageNumbers'>(".$start_record." - ".$end_record." ".$this->local_app_strings['LBL_LIST_OF']." ".$row_count.")</span>&nbsp;&nbsp;".$next_link."&nbsp;&nbsp;".$end_link."</td></tr></table>\n";
828 828
                     $html_text .= "</td>\n";
829 829
                     $html_text .= "</tr>\n";
830 830
                     $this->smartyTemplate->assign("PAGINATION", $html_text);
@@ -843,42 +843,42 @@  discard block
 block discarded – undo
843 843
                 $this->base_URL = $_SERVER['PHP_SELF'];
844 844
 
845 845
                 if (isset($_SERVER['QUERY_STRING'])) {
846
-                    $this->base_URL = preg_replace("/\&" . $this->getSessionVariableName($html_varName, "ORDER_BY") . "=[0-9a-zA-Z\_\.]*/", "", $this->base_URL . '?' . $_SERVER['QUERY_STRING']);
847
-                    $this->base_URL = preg_replace("/\&" . $this->getSessionVariableName($html_varName, "offset") . "=[0-9]*/", "", $this->base_URL);
846
+                    $this->base_URL = preg_replace("/\&".$this->getSessionVariableName($html_varName, "ORDER_BY")."=[0-9a-zA-Z\_\.]*/", "", $this->base_URL.'?'.$_SERVER['QUERY_STRING']);
847
+                    $this->base_URL = preg_replace("/\&".$this->getSessionVariableName($html_varName, "offset")."=[0-9]*/", "", $this->base_URL);
848 848
                 }
849 849
                 if ($_SERVER['REQUEST_METHOD'] == 'POST') {
850 850
                     $this->base_URL .= '?';
851 851
                     if (isset($_REQUEST['action'])) {
852
-                        $this->base_URL .= '&action=' . $_REQUEST['action'];
852
+                        $this->base_URL .= '&action='.$_REQUEST['action'];
853 853
                     }
854 854
                     if (isset($_REQUEST['record'])) {
855
-                        $this->base_URL .= '&record=' . $_REQUEST['record'];
855
+                        $this->base_URL .= '&record='.$_REQUEST['record'];
856 856
                     }
857 857
                     if (isset($_REQUEST['module'])) {
858
-                        $this->base_URL .= '&module=' . $_REQUEST['module'];
858
+                        $this->base_URL .= '&module='.$_REQUEST['module'];
859 859
                     }
860 860
                 }
861
-                $this->base_URL .= "&" . $this->getSessionVariableName($html_varName, "offset") . "=";
861
+                $this->base_URL .= "&".$this->getSessionVariableName($html_varName, "offset")."=";
862 862
             }
863 863
 
864 864
             if ($this->is_dynamic) {
865
-                $this->base_URL .= '&to_pdf=true&action=SubPanelViewer&subpanel=' . $this->source_module;
865
+                $this->base_URL .= '&to_pdf=true&action=SubPanelViewer&subpanel='.$this->source_module;
866 866
             }
867 867
 
868 868
             //bug43465 start
869 869
             if (isset($this->appendToBaseUrl) && is_array($this->appendToBaseUrl)) {
870 870
                 foreach ($this->appendToBaseUrl as $key => $value) {
871
-                    $fullRequestString = $key . '=' . $value;
871
+                    $fullRequestString = $key.'='.$value;
872 872
 
873 873
                     if ($this->base_URL == "/index.php") {
874 874
                         $this->base_URL .= "?";
875 875
                     }
876 876
                     else {
877
-                        if ($fullRequestString == substr($this->baseURL, '-' . strlen($fullRequestString))) {
878
-                            $this->base_URL = preg_replace("/&" . $key . "\=.*/", "", $this->base_URL);
877
+                        if ($fullRequestString == substr($this->baseURL, '-'.strlen($fullRequestString))) {
878
+                            $this->base_URL = preg_replace("/&".$key."\=.*/", "", $this->base_URL);
879 879
                         }
880 880
                         else {
881
-                            $this->base_URL = preg_replace("/&" . $key . "\=.*?&/", "&", $this->base_URL);
881
+                            $this->base_URL = preg_replace("/&".$key."\=.*?&/", "&", $this->base_URL);
882 882
                         }
883 883
                         $this->base_URL .= "&";
884 884
                     }
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
             }
890 890
             //bug43465 end
891 891
 
892
-            $sort_URL_base = $this->base_URL . "&" . $this->getSessionVariableName($html_varName, "ORDER_BY") . "=";
892
+            $sort_URL_base = $this->base_URL."&".$this->getSessionVariableName($html_varName, "ORDER_BY")."=";
893 893
 
894 894
             if ($sort_URL_base !== "") {
895 895
                 $this->smartyTemplate->assign("ORDER_BY", $sort_URL_base);
Please login to merge, or discard this patch.