Completed
Push — master ( 97ae17...26fbd7 )
by Adam
18:33
created
modules/AOR_Reports/aor_utils.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- *
5
- * @package
6
- * @copyright SalesAgility Ltd http://www.salesagility.com
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
10
- * the Free Software Foundation; either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
19
- * along with this program; if not, see http://www.gnu.org/licenses
20
- * or write to the Free Software Foundation,Inc., 51 Franklin Street,
21
- * Fifth Floor, Boston, MA 02110-1301  USA
22
- *
23
- * @author Salesagility Ltd <[email protected]>
24
- */
3
+     *
4
+     *
5
+     * @package
6
+     * @copyright SalesAgility Ltd http://www.salesagility.com
7
+     *
8
+     * This program is free software; you can redistribute it and/or modify
9
+     * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
10
+     * the Free Software Foundation; either version 3 of the License, or
11
+     * (at your option) any later version.
12
+     *
13
+     * This program is distributed in the hope that it will be useful,
14
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+     * GNU General Public License for more details.
17
+     *
18
+     * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
19
+     * along with this program; if not, see http://www.gnu.org/licenses
20
+     * or write to the Free Software Foundation,Inc., 51 Franklin Street,
21
+     * Fifth Floor, Boston, MA 02110-1301  USA
22
+     *
23
+     * @author Salesagility Ltd <[email protected]>
24
+     */
25 25
 
26 26
 /**
27 27
  * Returns the display labels for a module path and field.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     $fieldDisplay = $currentBean->field_name_map[$field]['vname'];
63 63
     $fieldDisplay = translate($fieldDisplay, $currentBean->module_dir);
64 64
     $fieldDisplay = trim($fieldDisplay, ':');
65
-    foreach($modulePathDisplay as &$module) {
65
+    foreach ($modulePathDisplay as &$module) {
66 66
         $module = isset($app_list_strings['aor_moduleList'][$module]) ? $app_list_strings['aor_moduleList'][$module] : (
67 67
             isset($app_list_strings['moduleList'][$module]) ? $app_list_strings['moduleList'][$module] : $module
68 68
         );
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 function requestToUserParameters()
74 74
 {
75 75
     $params = array();
76
-    if(isset($_REQUEST['parameter_id']) && $_REQUEST['parameter_id']) {
76
+    if (isset($_REQUEST['parameter_id']) && $_REQUEST['parameter_id']) {
77 77
         foreach ($_REQUEST['parameter_id'] as $key => $parameterId) {
78 78
             if ($_REQUEST['parameter_type'][$key] === 'Multi') {
79 79
                 $_REQUEST['parameter_value'][$key] = encodeMultienumValue(explode(',', $_REQUEST['parameter_value'][$key]));
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     } else if ($date_time_period_list_selected == 'this_month') {
164 164
         $datetime_period = $datetime_period->setDate($datetime_period->format('Y'), $datetime_period->format('m'), 1);
165 165
     } else if ($date_time_period_list_selected == 'last_month') {
166
-        $datetime_period = $datetime_period->setDate($datetime_period->format('Y'), $datetime_period->format('m')-1, 1);
166
+        $datetime_period = $datetime_period->setDate($datetime_period->format('Y'), $datetime_period->format('m') - 1, 1);
167 167
     } else if ($date_time_period_list_selected == 'this_quarter') {
168 168
         $thisMonth = $datetime_period->setDate($datetime_period->format('Y'), $datetime_period->format('m'), 1);
169 169
         if ($thisMonth >= $q[1]['start'] && $thisMonth <= $q[1]['end']) {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     $offsetMonths -= 1;
229 229
     // Offset months
230 230
     if ($offsetMonths > 0) {
231
-        $q1start->add(new DateInterval('P' . $offsetMonths . 'M'));
231
+        $q1start->add(new DateInterval('P'.$offsetMonths.'M'));
232 232
     }
233 233
     $q1end = DateTime::createFromFormat(DATE_ISO8601, $q1start->format(DATE_ISO8601));
234 234
     $q1end->add(new DateInterval('P2M'));
Please login to merge, or discard this patch.
install/language/en_us.lang.php 1 patch
Indentation   +395 added lines, -395 removed lines patch added patch discarded remove patch
@@ -43,40 +43,40 @@  discard block
 block discarded – undo
43 43
  * *******************************************************************************/
44 44
 
45 45
 $mod_strings = array(
46
-	'LBL_BASIC_SEARCH'					=> 'Basic Search',
47
-	'LBL_ADVANCED_SEARCH'				=> 'Advanced Search',
48
-	'LBL_BASIC_TYPE'					=> 'Basic Type',
49
-	'LBL_ADVANCED_TYPE'					=> 'Advanced Type',
50
-	'LBL_SYSOPTS_1'						=> 'Select from the following system configuration options below.',
46
+    'LBL_BASIC_SEARCH'					=> 'Basic Search',
47
+    'LBL_ADVANCED_SEARCH'				=> 'Advanced Search',
48
+    'LBL_BASIC_TYPE'					=> 'Basic Type',
49
+    'LBL_ADVANCED_TYPE'					=> 'Advanced Type',
50
+    'LBL_SYSOPTS_1'						=> 'Select from the following system configuration options below.',
51 51
     'LBL_SYSOPTS_2'                     => 'What type of database will be used for the SuiteCRM instance you are about to install?',
52
-	'LBL_SYSOPTS_CONFIG'				=> 'System Configuration',
53
-	'LBL_SYSOPTS_DB_TYPE'				=> '',
54
-	'LBL_SYSOPTS_DB'					=> 'Specify Database Type',
52
+    'LBL_SYSOPTS_CONFIG'				=> 'System Configuration',
53
+    'LBL_SYSOPTS_DB_TYPE'				=> '',
54
+    'LBL_SYSOPTS_DB'					=> 'Specify Database Type',
55 55
     'LBL_SYSOPTS_DB_TITLE'              => 'Database Type',
56
-	'LBL_SYSOPTS_ERRS_TITLE'			=> 'Please fix the following errors before proceeding:',
57
-	'LBL_MAKE_DIRECTORY_WRITABLE'      => 'Please make the following directory writable:',
56
+    'LBL_SYSOPTS_ERRS_TITLE'			=> 'Please fix the following errors before proceeding:',
57
+    'LBL_MAKE_DIRECTORY_WRITABLE'      => 'Please make the following directory writable:',
58 58
     'ERR_DB_VERSION_FAILURE'			=> 'Unable to check database version.',
59
-	'DEFAULT_CHARSET'					=> 'UTF-8',
59
+    'DEFAULT_CHARSET'					=> 'UTF-8',
60 60
     'ERR_ADMIN_USER_NAME_BLANK'         => 'Provide the user name for the SuiteCRM admin user. ',
61
-	'ERR_ADMIN_PASS_BLANK'				=> 'Provide the password for the SuiteCRM admin user. ',
61
+    'ERR_ADMIN_PASS_BLANK'				=> 'Provide the password for the SuiteCRM admin user. ',
62 62
 
63 63
     //'ERR_CHECKSYS_CALL_TIME'			=> 'Allow Call Time Pass Reference is Off (please enable in php.ini)',
64 64
     '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.',
65 65
     'ERR_CHECKSYS_CALL_TIME'            => 'Allow Call Time Pass Reference is On (this should be set to Off in php.ini)',
66
-	'ERR_CHECKSYS_CURL'					=> 'Not found: SuiteCRM Scheduler will run with limited functionality.',
66
+    'ERR_CHECKSYS_CURL'					=> 'Not found: SuiteCRM Scheduler will run with limited functionality.',
67 67
     'ERR_CHECKSYS_IMAP'					=> 'Not found: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.',
68
-	'ERR_CHECKSYS_MSSQL_MQGPC'			=> 'Magic Quotes GPC cannot be turned "On" when using MS SQL Server.',
69
-	'ERR_CHECKSYS_MEM_LIMIT_0'			=> 'Warning: ',
70
-	'ERR_CHECKSYS_MEM_LIMIT_1'			=> ' (Set this to ',
71
-	'ERR_CHECKSYS_MEM_LIMIT_2'			=> 'M or larger in your php.ini file)',
72
-	'ERR_CHECKSYS_MYSQL_VERSION'		=> 'Minimum Version 4.1.2 - Found: ',
73
-	'ERR_CHECKSYS_NO_SESSIONS'			=> 'Failed to write and read session variables.  Unable to proceed with the installation.',
74
-	'ERR_CHECKSYS_NOT_VALID_DIR'		=> 'Not A Valid Directory',
75
-	'ERR_CHECKSYS_NOT_WRITABLE'			=> 'Warning: Not Writable',
76
-	'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 ',
77
-	'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 ',
78
-	'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 ',
79
-	'ERR_CHECKSYS_FASTCGI_LOGGING'      => 'For optimal experience using IIS/FastCGI sapi, set fastcgi.logging to 0 in your php.ini file.',
68
+    'ERR_CHECKSYS_MSSQL_MQGPC'			=> 'Magic Quotes GPC cannot be turned "On" when using MS SQL Server.',
69
+    'ERR_CHECKSYS_MEM_LIMIT_0'			=> 'Warning: ',
70
+    'ERR_CHECKSYS_MEM_LIMIT_1'			=> ' (Set this to ',
71
+    'ERR_CHECKSYS_MEM_LIMIT_2'			=> 'M or larger in your php.ini file)',
72
+    'ERR_CHECKSYS_MYSQL_VERSION'		=> 'Minimum Version 4.1.2 - Found: ',
73
+    'ERR_CHECKSYS_NO_SESSIONS'			=> 'Failed to write and read session variables.  Unable to proceed with the installation.',
74
+    'ERR_CHECKSYS_NOT_VALID_DIR'		=> 'Not A Valid Directory',
75
+    'ERR_CHECKSYS_NOT_WRITABLE'			=> 'Warning: Not Writable',
76
+    '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 ',
77
+    '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 ',
78
+    '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 ',
79
+    'ERR_CHECKSYS_FASTCGI_LOGGING'      => 'For optimal experience using IIS/FastCGI sapi, set fastcgi.logging to 0 in your php.ini file.',
80 80
     'ERR_CHECKSYS_PHP_UNSUPPORTED'		=> 'Unsupported PHP Version Installed: ( ver',
81 81
     'LBL_DB_UNAVAILABLE'                => 'Database unavailable',
82 82
     '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.',
@@ -89,184 +89,184 @@  discard block
 block discarded – undo
89 89
     '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.',
90 90
     '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.",
91 91
     'LBL_CHECKSYS_OVERRIDE_CONFIG' => 'Config override',
92
-	//'ERR_CHECKSYS_SAFE_MODE'			=> 'Safe Mode is On (please disable in php.ini)',
93
-	'ERR_CHECKSYS_SAFE_MODE'			=> 'Safe Mode is On (you may wish to disable in php.ini)',
92
+    //'ERR_CHECKSYS_SAFE_MODE'			=> 'Safe Mode is On (please disable in php.ini)',
93
+    'ERR_CHECKSYS_SAFE_MODE'			=> 'Safe Mode is On (you may wish to disable in php.ini)',
94 94
     'ERR_CHECKSYS_ZLIB'					=> 'ZLib support not found: SuiteCRM reaps enormous performance benefits with zlib compression.',
95 95
     'ERR_CHECKSYS_ZIP'					=> 'ZIP support not found: SuiteCRM needs ZIP support in order to process compressed files.',
96 96
     'ERR_CHECKSYS_PCRE'					=> 'PCRE library not found: SuiteCRM needs PCRE library in order to process Perl style of regular expression pattern matching.',
97 97
     'ERR_CHECKSYS_PCRE_VER'				=> 'PCRE library version: SuiteCRM needs PCRE library 7.0 or above to process Perl style of regular expression pattern matching.',
98
-	'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: ',
98
+    '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: ',
99 99
     '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.',
100
-	'ERR_DB_EXISTS_NOT'					=> 'The specified database does not exist.',
101
-	'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>.',
102
-	'ERR_DB_EXISTS'						=> 'The provided Database Name already exists -- cannot create another one with the same name.',
100
+    'ERR_DB_EXISTS_NOT'					=> 'The specified database does not exist.',
101
+    '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>.',
102
+    'ERR_DB_EXISTS'						=> 'The provided Database Name already exists -- cannot create another one with the same name.',
103 103
     '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>',
104
-	'ERR_DB_HOSTNAME'					=> 'Host name cannot be blank.',
105
-	'ERR_DB_INVALID'					=> 'Invalid database type selected.',
106
-	'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',
107
-	'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',
108
-	'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',
109
-	'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.',
110
-	'ERR_DB_NAME'						=> 'Database name cannot be blank.',
111
-	'ERR_DB_NAME2'						=> "Database name cannot contain a '\\', '/', or '.'",
104
+    'ERR_DB_HOSTNAME'					=> 'Host name cannot be blank.',
105
+    'ERR_DB_INVALID'					=> 'Invalid database type selected.',
106
+    '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',
107
+    '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',
108
+    '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',
109
+    '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.',
110
+    'ERR_DB_NAME'						=> 'Database name cannot be blank.',
111
+    'ERR_DB_NAME2'						=> "Database name cannot contain a '\\', '/', or '.'",
112 112
     'ERR_DB_MYSQL_DB_NAME_INVALID'      => "Database name cannot contain a '\\', '/', or '.'",
113 113
     'ERR_DB_MSSQL_DB_NAME_INVALID'      => "Database name cannot begin with a number, '#', or '@' and cannot contain a space, '\"', \"'\", '*', '/', '\', '?', ':', '<', '>', '&', '!', or '-'",
114 114
     'ERR_DB_OCI8_DB_NAME_INVALID'       => "Database name can only consist of alphanumeric characters and the symbols '#', '_' or '$'",
115
-	'ERR_DB_PASSWORD'					=> 'The passwords provided for the SuiteCRM database administrator do not match.  Please re-enter the same passwords in the password fields.',
116
-	'ERR_DB_PRIV_USER'					=> 'Provide a database administrator user name.  The user is required for the initial connection to the database.',
117
-	'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.',
118
-	'ERR_DB_USER'						=> 'Enter a user name for the SuiteCRM database administrator.',
119
-	'ERR_DBCONF_VALIDATION'				=> 'Please fix the following errors before proceeding:',
115
+    'ERR_DB_PASSWORD'					=> 'The passwords provided for the SuiteCRM database administrator do not match.  Please re-enter the same passwords in the password fields.',
116
+    'ERR_DB_PRIV_USER'					=> 'Provide a database administrator user name.  The user is required for the initial connection to the database.',
117
+    '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.',
118
+    'ERR_DB_USER'						=> 'Enter a user name for the SuiteCRM database administrator.',
119
+    'ERR_DBCONF_VALIDATION'				=> 'Please fix the following errors before proceeding:',
120 120
     '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.',
121
-	'ERR_ERROR_GENERAL'					=> 'The following errors were encountered:',
122
-	'ERR_LANG_CANNOT_DELETE_FILE'		=> 'Cannot delete file: ',
123
-	'ERR_LANG_MISSING_FILE'				=> 'Cannot find file: ',
124
-	'ERR_LANG_NO_LANG_FILE'			 	=> 'No language pack file found at include/language inside: ',
125
-	'ERR_LANG_UPLOAD_1'					=> 'There was a problem with your upload.  Please try again.',
126
-	'ERR_LANG_UPLOAD_2'					=> 'Language Packs must be ZIP archives.',
127
-	'ERR_LANG_UPLOAD_3'					=> 'PHP could not move the temp file to the upgrade directory.',
128
-	'ERR_LICENSE_MISSING'				=> 'Missing Required Fields',
129
-	'ERR_LICENSE_NOT_FOUND'				=> 'License file not found!',
130
-	'ERR_LOG_DIRECTORY_NOT_EXISTS'		=> 'Log directory provided is not a valid directory.',
131
-	'ERR_LOG_DIRECTORY_NOT_WRITABLE'	=> 'Log directory provided is not a writable directory.',
132
-	'ERR_LOG_DIRECTORY_REQUIRED'		=> 'Log directory is required if you wish to specify your own.',
133
-	'ERR_NO_DIRECT_SCRIPT'				=> 'Unable to process script directly.',
134
-	'ERR_NO_SINGLE_QUOTE'				=> 'Cannot use the single quotation mark for ',
135
-	'ERR_PASSWORD_MISMATCH'				=> 'The passwords provided for the SuiteCRM admin user do not match.  Please re-enter the same passwords in the password fields.',
136
-	'ERR_PERFORM_CONFIG_PHP_1'			=> 'Cannot write to the <span class=stop>config.php</span> file.',
137
-	'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.',
138
-	'ERR_PERFORM_CONFIG_PHP_3'			=> 'Did you remember to create the config.php file?',
139
-	'ERR_PERFORM_CONFIG_PHP_4'			=> 'Warning: Could not write to config.php file.  Please ensure it exists.',
140
-	'ERR_PERFORM_HTACCESS_1'			=> 'Cannot write to the ',
141
-	'ERR_PERFORM_HTACCESS_2'			=> ' file.',
142
-	'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:',
143
-	'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.',
144
-	'ERR_SESSION_DIRECTORY_NOT_EXISTS'	=> 'Session directory provided is not a valid directory.',
145
-	'ERR_SESSION_DIRECTORY'				=> 'Session directory provided is not a writable directory.',
146
-	'ERR_SESSION_PATH'					=> 'Session path is required if you wish to specify your own.',
147
-	'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',
148
-	'ERR_SITE_GUID'						=> 'Application ID is required if you wish to specify your own.',
121
+    'ERR_ERROR_GENERAL'					=> 'The following errors were encountered:',
122
+    'ERR_LANG_CANNOT_DELETE_FILE'		=> 'Cannot delete file: ',
123
+    'ERR_LANG_MISSING_FILE'				=> 'Cannot find file: ',
124
+    'ERR_LANG_NO_LANG_FILE'			 	=> 'No language pack file found at include/language inside: ',
125
+    'ERR_LANG_UPLOAD_1'					=> 'There was a problem with your upload.  Please try again.',
126
+    'ERR_LANG_UPLOAD_2'					=> 'Language Packs must be ZIP archives.',
127
+    'ERR_LANG_UPLOAD_3'					=> 'PHP could not move the temp file to the upgrade directory.',
128
+    'ERR_LICENSE_MISSING'				=> 'Missing Required Fields',
129
+    'ERR_LICENSE_NOT_FOUND'				=> 'License file not found!',
130
+    'ERR_LOG_DIRECTORY_NOT_EXISTS'		=> 'Log directory provided is not a valid directory.',
131
+    'ERR_LOG_DIRECTORY_NOT_WRITABLE'	=> 'Log directory provided is not a writable directory.',
132
+    'ERR_LOG_DIRECTORY_REQUIRED'		=> 'Log directory is required if you wish to specify your own.',
133
+    'ERR_NO_DIRECT_SCRIPT'				=> 'Unable to process script directly.',
134
+    'ERR_NO_SINGLE_QUOTE'				=> 'Cannot use the single quotation mark for ',
135
+    'ERR_PASSWORD_MISMATCH'				=> 'The passwords provided for the SuiteCRM admin user do not match.  Please re-enter the same passwords in the password fields.',
136
+    'ERR_PERFORM_CONFIG_PHP_1'			=> 'Cannot write to the <span class=stop>config.php</span> file.',
137
+    '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.',
138
+    'ERR_PERFORM_CONFIG_PHP_3'			=> 'Did you remember to create the config.php file?',
139
+    'ERR_PERFORM_CONFIG_PHP_4'			=> 'Warning: Could not write to config.php file.  Please ensure it exists.',
140
+    'ERR_PERFORM_HTACCESS_1'			=> 'Cannot write to the ',
141
+    'ERR_PERFORM_HTACCESS_2'			=> ' file.',
142
+    '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:',
143
+    '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.',
144
+    'ERR_SESSION_DIRECTORY_NOT_EXISTS'	=> 'Session directory provided is not a valid directory.',
145
+    'ERR_SESSION_DIRECTORY'				=> 'Session directory provided is not a writable directory.',
146
+    'ERR_SESSION_PATH'					=> 'Session path is required if you wish to specify your own.',
147
+    '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',
148
+    'ERR_SITE_GUID'						=> 'Application ID is required if you wish to specify your own.',
149 149
     '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.",
150
-	'ERR_UPLOAD_MAX_FILESIZE'			=> 'Warning: Your PHP configuration should be changed to allow files of at least 6MB to be uploaded.',
150
+    'ERR_UPLOAD_MAX_FILESIZE'			=> 'Warning: Your PHP configuration should be changed to allow files of at least 6MB to be uploaded.',
151 151
     'LBL_UPLOAD_MAX_FILESIZE_TITLE'     => 'Upload File Size',
152
-	'ERR_URL_BLANK'						=> 'Provide the base URL for the SuiteCRM instance.',
153
-	'ERR_UW_NO_UPDATE_RECORD'			=> 'Could not locate installation record of',
154
-	'ERROR_FLAVOR_INCOMPATIBLE'			=> 'The uploaded file is not compatible with this flavor (Community Edition, Professional, or Enterprise) of SuiteCRM: ',
155
-	'ERROR_LICENSE_EXPIRED'				=> "Error: Your license expired ",
156
-	'ERROR_LICENSE_EXPIRED2'			=> " day(s) ago.   Please go to the <a href='index.php?action=LicenseSettings&module=Administration'>'\"License Management\"</a>  in the Admin screen to enter your new license key.  If you do not enter a new license key within 30 days of your license key expiration, you will no longer be able to log in to this application.",
157
-	'ERROR_MANIFEST_TYPE'				=> 'Manifest file must specify the package type.',
158
-	'ERROR_PACKAGE_TYPE'				=> 'Manifest file specifies an unrecognized package type',
159
-	'ERROR_VALIDATION_EXPIRED'			=> "Error: Your validation key expired ",
160
-	'ERROR_VALIDATION_EXPIRED2'			=> " day(s) ago.   Please go to the <a href='index.php?action=LicenseSettings&module=Administration'>'\"License Management\"</a> in the Admin screen to enter your new validation key.  If you do not enter a new validation key within 30 days of your validation key expiration, you will no longer be able to log in to this application.",
161
-	'ERROR_VERSION_INCOMPATIBLE'		=> 'The uploaded file is not compatible with this version of SuiteCRM: ',
162
-
163
-	'LBL_BACK'							=> 'Back',
152
+    'ERR_URL_BLANK'						=> 'Provide the base URL for the SuiteCRM instance.',
153
+    'ERR_UW_NO_UPDATE_RECORD'			=> 'Could not locate installation record of',
154
+    'ERROR_FLAVOR_INCOMPATIBLE'			=> 'The uploaded file is not compatible with this flavor (Community Edition, Professional, or Enterprise) of SuiteCRM: ',
155
+    'ERROR_LICENSE_EXPIRED'				=> "Error: Your license expired ",
156
+    'ERROR_LICENSE_EXPIRED2'			=> " day(s) ago.   Please go to the <a href='index.php?action=LicenseSettings&module=Administration'>'\"License Management\"</a>  in the Admin screen to enter your new license key.  If you do not enter a new license key within 30 days of your license key expiration, you will no longer be able to log in to this application.",
157
+    'ERROR_MANIFEST_TYPE'				=> 'Manifest file must specify the package type.',
158
+    'ERROR_PACKAGE_TYPE'				=> 'Manifest file specifies an unrecognized package type',
159
+    'ERROR_VALIDATION_EXPIRED'			=> "Error: Your validation key expired ",
160
+    'ERROR_VALIDATION_EXPIRED2'			=> " day(s) ago.   Please go to the <a href='index.php?action=LicenseSettings&module=Administration'>'\"License Management\"</a> in the Admin screen to enter your new validation key.  If you do not enter a new validation key within 30 days of your validation key expiration, you will no longer be able to log in to this application.",
161
+    'ERROR_VERSION_INCOMPATIBLE'		=> 'The uploaded file is not compatible with this version of SuiteCRM: ',
162
+
163
+    'LBL_BACK'							=> 'Back',
164 164
     'LBL_CANCEL'                        => 'Cancel',
165 165
     'LBL_ACCEPT'                        => 'I Accept',
166
-	'LBL_CHECKSYS_1'					=> 'In order for your SuiteCRM installation to function properly, please ensure all of the system check items listed below are green. If any are red, please take the necessary steps to fix them.<BR><BR> For help on these system checks, please visit the <a href="http://www.suitecrm.com" target="_blank">SuiteCRM</a>.',
167
-	'LBL_CHECKSYS_CACHE'				=> 'Writable Cache Sub-Directories',
166
+    'LBL_CHECKSYS_1'					=> 'In order for your SuiteCRM installation to function properly, please ensure all of the system check items listed below are green. If any are red, please take the necessary steps to fix them.<BR><BR> For help on these system checks, please visit the <a href="http://www.suitecrm.com" target="_blank">SuiteCRM</a>.',
167
+    'LBL_CHECKSYS_CACHE'				=> 'Writable Cache Sub-Directories',
168 168
     '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>',
169
-	'LBL_CHECKSYS_CALL_TIME'			=> 'PHP Allow Call Time Pass Reference Turned Off',
169
+    'LBL_CHECKSYS_CALL_TIME'			=> 'PHP Allow Call Time Pass Reference Turned Off',
170 170
     'LBL_CHECKSYS_COMPONENT'			=> 'Component',
171
-	'LBL_CHECKSYS_COMPONENT_OPTIONAL'	=> 'Optional Components',
172
-	'LBL_CHECKSYS_CONFIG'				=> 'Writable SuiteCRM Configuration File (config.php)',
173
-	'LBL_CHECKSYS_CONFIG_OVERRIDE'		=> 'Writable SuiteCRM Configuration File (config_override.php)',
174
-	'LBL_CHECKSYS_CURL'					=> 'cURL Module',
171
+    'LBL_CHECKSYS_COMPONENT_OPTIONAL'	=> 'Optional Components',
172
+    'LBL_CHECKSYS_CONFIG'				=> 'Writable SuiteCRM Configuration File (config.php)',
173
+    'LBL_CHECKSYS_CONFIG_OVERRIDE'		=> 'Writable SuiteCRM Configuration File (config_override.php)',
174
+    'LBL_CHECKSYS_CURL'					=> 'cURL Module',
175 175
     'LBL_CHECKSYS_SESSION_SAVE_PATH'    => 'Session Save Path Setting',
176
-	'LBL_CHECKSYS_CUSTOM'				=> 'Writeable Custom Directory',
177
-	'LBL_CHECKSYS_DATA'					=> 'Writable Data Sub-Directories',
178
-	'LBL_CHECKSYS_IMAP'					=> 'IMAP Module',
179
-	'LBL_CHECKSYS_FASTCGI'             => 'FastCGI',
180
-	'LBL_CHECKSYS_MQGPC'				=> 'Magic Quotes GPC',
181
-	'LBL_CHECKSYS_MBSTRING'				=> 'MB Strings Module',
182
-	'LBL_CHECKSYS_MEM_OK'				=> 'OK (No Limit)',
183
-	'LBL_CHECKSYS_MEM_UNLIMITED'		=> 'OK (Unlimited)',
184
-	'LBL_CHECKSYS_MEM'					=> 'PHP Memory Limit',
185
-	'LBL_CHECKSYS_MODULE'				=> 'Writable Modules Sub-Directories and Files',
186
-	'LBL_CHECKSYS_MYSQL_VERSION'		=> 'MySQL Version',
187
-	'LBL_CHECKSYS_NOT_AVAILABLE'		=> 'Not Available',
188
-	'LBL_CHECKSYS_OK'					=> 'OK',
189
-	'LBL_CHECKSYS_PHP_INI'				=> 'Location of your PHP configuration file (php.ini):',
190
-	'LBL_CHECKSYS_PHP_OK'				=> 'OK (ver ',
191
-	'LBL_CHECKSYS_PHPVER'				=> 'PHP Version',
176
+    'LBL_CHECKSYS_CUSTOM'				=> 'Writeable Custom Directory',
177
+    'LBL_CHECKSYS_DATA'					=> 'Writable Data Sub-Directories',
178
+    'LBL_CHECKSYS_IMAP'					=> 'IMAP Module',
179
+    'LBL_CHECKSYS_FASTCGI'             => 'FastCGI',
180
+    'LBL_CHECKSYS_MQGPC'				=> 'Magic Quotes GPC',
181
+    'LBL_CHECKSYS_MBSTRING'				=> 'MB Strings Module',
182
+    'LBL_CHECKSYS_MEM_OK'				=> 'OK (No Limit)',
183
+    'LBL_CHECKSYS_MEM_UNLIMITED'		=> 'OK (Unlimited)',
184
+    'LBL_CHECKSYS_MEM'					=> 'PHP Memory Limit',
185
+    'LBL_CHECKSYS_MODULE'				=> 'Writable Modules Sub-Directories and Files',
186
+    'LBL_CHECKSYS_MYSQL_VERSION'		=> 'MySQL Version',
187
+    'LBL_CHECKSYS_NOT_AVAILABLE'		=> 'Not Available',
188
+    'LBL_CHECKSYS_OK'					=> 'OK',
189
+    'LBL_CHECKSYS_PHP_INI'				=> 'Location of your PHP configuration file (php.ini):',
190
+    'LBL_CHECKSYS_PHP_OK'				=> 'OK (ver ',
191
+    'LBL_CHECKSYS_PHPVER'				=> 'PHP Version',
192 192
     'LBL_CHECKSYS_IISVER'               => 'IIS Version',
193
-	'LBL_CHECKSYS_RECHECK'				=> 'Re-check',
194
-	'LBL_CHECKSYS_SAFE_MODE'			=> 'PHP Safe Mode Turned Off',
195
-	'LBL_CHECKSYS_SESSION'				=> 'Writable Session Save Path (',
196
-	'LBL_CHECKSYS_STATUS'				=> 'Status',
197
-	'LBL_CHECKSYS_TITLE'				=> 'System Check Acceptance',
198
-	'LBL_CHECKSYS_VER'					=> 'Found: ( ver ',
199
-	'LBL_CHECKSYS_XML'					=> 'XML Parsing',
200
-	'LBL_CHECKSYS_ZLIB'					=> 'ZLIB Compression Module',
201
-	'LBL_CHECKSYS_ZIP'					=> 'ZIP Handling Module',
202
-	'LBL_CHECKSYS_PCRE'					=> 'PCRE Library',
203
-	'LBL_CHECKSYS_FIX_FILES'            => 'Please fix the following files or directories before proceeding:',
193
+    'LBL_CHECKSYS_RECHECK'				=> 'Re-check',
194
+    'LBL_CHECKSYS_SAFE_MODE'			=> 'PHP Safe Mode Turned Off',
195
+    'LBL_CHECKSYS_SESSION'				=> 'Writable Session Save Path (',
196
+    'LBL_CHECKSYS_STATUS'				=> 'Status',
197
+    'LBL_CHECKSYS_TITLE'				=> 'System Check Acceptance',
198
+    'LBL_CHECKSYS_VER'					=> 'Found: ( ver ',
199
+    'LBL_CHECKSYS_XML'					=> 'XML Parsing',
200
+    'LBL_CHECKSYS_ZLIB'					=> 'ZLIB Compression Module',
201
+    'LBL_CHECKSYS_ZIP'					=> 'ZIP Handling Module',
202
+    'LBL_CHECKSYS_PCRE'					=> 'PCRE Library',
203
+    'LBL_CHECKSYS_FIX_FILES'            => 'Please fix the following files or directories before proceeding:',
204 204
     'LBL_CHECKSYS_FIX_MODULE_FILES'     => 'Please fix the following module directories and the files under them before proceeding:',
205 205
     'LBL_CHECKSYS_UPLOAD'               => 'Writable Upload Directory',
206 206
     'LBL_CLOSE'							=> 'Close',
207 207
     'LBL_THREE'                         => '3',
208
-	'LBL_CONFIRM_BE_CREATED'			=> 'be created',
209
-	'LBL_CONFIRM_DB_TYPE'				=> 'Database Type',
210
-	'LBL_CONFIRM_DIRECTIONS'			=> 'Please confirm the settings below.  If you would like to change any of the values, click "Back" to edit.  Otherwise, click "Next" to start the installation.',
211
-	'LBL_CONFIRM_LICENSE_TITLE'			=> 'License Information',
212
-	'LBL_CONFIRM_NOT'					=> 'not',
213
-	'LBL_CONFIRM_TITLE'					=> 'Confirm Settings',
214
-	'LBL_CONFIRM_WILL'					=> 'will',
215
-	'LBL_DBCONF_CREATE_DB'				=> 'Create Database',
216
-	'LBL_DBCONF_CREATE_USER'			=> 'Create User',
217
-	'LBL_DBCONF_DB_DROP_CREATE_WARN'	=> 'Caution: All SuiteCRM data will be erased<br>if this box is checked.',
218
-	'LBL_DBCONF_DB_DROP_CREATE'			=> 'Drop and Recreate Existing SuiteCRM tables?',
208
+    'LBL_CONFIRM_BE_CREATED'			=> 'be created',
209
+    'LBL_CONFIRM_DB_TYPE'				=> 'Database Type',
210
+    'LBL_CONFIRM_DIRECTIONS'			=> 'Please confirm the settings below.  If you would like to change any of the values, click "Back" to edit.  Otherwise, click "Next" to start the installation.',
211
+    'LBL_CONFIRM_LICENSE_TITLE'			=> 'License Information',
212
+    'LBL_CONFIRM_NOT'					=> 'not',
213
+    'LBL_CONFIRM_TITLE'					=> 'Confirm Settings',
214
+    'LBL_CONFIRM_WILL'					=> 'will',
215
+    'LBL_DBCONF_CREATE_DB'				=> 'Create Database',
216
+    'LBL_DBCONF_CREATE_USER'			=> 'Create User',
217
+    'LBL_DBCONF_DB_DROP_CREATE_WARN'	=> 'Caution: All SuiteCRM data will be erased<br>if this box is checked.',
218
+    'LBL_DBCONF_DB_DROP_CREATE'			=> 'Drop and Recreate Existing SuiteCRM tables?',
219 219
     'LBL_DBCONF_DB_DROP'                => 'Drop Tables',
220 220
     'LBL_DBCONF_DB_NAME'				=> 'Database Name',
221
-	'LBL_DBCONF_DB_PASSWORD'			=> 'SuiteCRM Database User Password',
222
-	'LBL_DBCONF_DB_PASSWORD2'			=> 'Re-enter SuiteCRM Database User Password',
223
-	'LBL_DBCONF_DB_USER'				=> 'SuiteCRM Database User',
221
+    'LBL_DBCONF_DB_PASSWORD'			=> 'SuiteCRM Database User Password',
222
+    'LBL_DBCONF_DB_PASSWORD2'			=> 'Re-enter SuiteCRM Database User Password',
223
+    'LBL_DBCONF_DB_USER'				=> 'SuiteCRM Database User',
224 224
     'LBL_DBCONF_SUGAR_DB_USER'          => 'SuiteCRM Database User',
225 225
     'LBL_DBCONF_DB_ADMIN_USER'          => 'Database Administrator Username',
226 226
     'LBL_DBCONF_DB_ADMIN_PASSWORD'      => 'Database Admin Password',
227
-	'LBL_DBCONF_DEMO_DATA'				=> 'Populate Database with Demo Data?',
227
+    'LBL_DBCONF_DEMO_DATA'				=> 'Populate Database with Demo Data?',
228 228
     'LBL_DBCONF_DEMO_DATA_TITLE'        => 'Choose Demo Data',
229
-	'LBL_DBCONF_HOST_NAME'				=> 'Host Name',
230
-	'LBL_DBCONF_HOST_INSTANCE'			=> 'Host Instance',
231
-	'LBL_DBCONF_HOST_PORT'				=> 'Port',
232
-	'LBL_DBCONF_INSTRUCTIONS'			=> 'Please enter your database configuration information below. If you are unsure of what to fill in, we suggest that you use the default values.',
233
-	'LBL_DBCONF_MB_DEMO_DATA'			=> 'Use multi-byte text in demo data?',
229
+    'LBL_DBCONF_HOST_NAME'				=> 'Host Name',
230
+    'LBL_DBCONF_HOST_INSTANCE'			=> 'Host Instance',
231
+    'LBL_DBCONF_HOST_PORT'				=> 'Port',
232
+    'LBL_DBCONF_INSTRUCTIONS'			=> 'Please enter your database configuration information below. If you are unsure of what to fill in, we suggest that you use the default values.',
233
+    'LBL_DBCONF_MB_DEMO_DATA'			=> 'Use multi-byte text in demo data?',
234 234
     'LBL_DBCONFIG_MSG2'                 => 'Name of web server or machine (host) on which the database is located ( such as localhost or www.mydomain.com ):',
235
-	'LBL_DBCONFIG_MSG2_LABEL' => 'Host Name',
235
+    'LBL_DBCONFIG_MSG2_LABEL' => 'Host Name',
236 236
     'LBL_DBCONFIG_MSG3'                 => 'Name of the database that will contain the data for the SuiteCRM instance you are about to install:',
237
-	'LBL_DBCONFIG_MSG3_LABEL' => 'Database Name',
237
+    'LBL_DBCONFIG_MSG3_LABEL' => 'Database Name',
238 238
     'LBL_DBCONFIG_B_MSG1'               => 'The username and password of a database administrator who can create database tables and users and who can write to the database is necessary in order to set up the SuiteCRM database.',
239
-	'LBL_DBCONFIG_B_MSG1_LABEL' => '',
239
+    'LBL_DBCONFIG_B_MSG1_LABEL' => '',
240 240
     '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.',
241 241
     'LBL_DBCONFIG_AUTO_DD'              => 'Do it for me',
242 242
     'LBL_DBCONFIG_PROVIDE_DD'           => 'Provide existing user',
243 243
     'LBL_DBCONFIG_CREATE_DD'            => 'Define user to create',
244 244
     'LBL_DBCONFIG_SAME_DD'              => 'Same as Admin User',
245
-	//'LBL_DBCONF_I18NFIX'              => 'Apply database column expansion for varchar and char types (up to 255) for multi-byte data?',
245
+    //'LBL_DBCONF_I18NFIX'              => 'Apply database column expansion for varchar and char types (up to 255) for multi-byte data?',
246 246
     'LBL_FTS'                           => 'Full Text Search',
247 247
     'LBL_FTS_INSTALLED'                 => 'Installed',
248 248
     'LBL_FTS_INSTALLED_ERR1'            => 'Full Text Search capability is not installed.',
249 249
     'LBL_FTS_INSTALLED_ERR2'            => 'You can still install but will not be able to use Full Text Search functionality.  Please refer to your database server install guide on how to do this, or contact your Administrator.',
250
-	'LBL_DBCONF_PRIV_PASS'				=> 'Privileged Database User Password',
251
-	'LBL_DBCONF_PRIV_USER_2'			=> 'Database Account Above Is a Privileged User?',
252
-	'LBL_DBCONF_PRIV_USER_DIRECTIONS'	=> 'This privileged database user must have the proper permissions to create a database, drop/create tables, and create a user.  This privileged database user will only be used to perform these tasks as needed during the installation process.  You may also use the same database user as above if that user has sufficient privileges.',
253
-	'LBL_DBCONF_PRIV_USER'				=> 'Privileged Database User Name',
254
-	'LBL_DBCONF_TITLE'					=> 'Database Configuration',
250
+    'LBL_DBCONF_PRIV_PASS'				=> 'Privileged Database User Password',
251
+    'LBL_DBCONF_PRIV_USER_2'			=> 'Database Account Above Is a Privileged User?',
252
+    'LBL_DBCONF_PRIV_USER_DIRECTIONS'	=> 'This privileged database user must have the proper permissions to create a database, drop/create tables, and create a user.  This privileged database user will only be used to perform these tasks as needed during the installation process.  You may also use the same database user as above if that user has sufficient privileges.',
253
+    'LBL_DBCONF_PRIV_USER'				=> 'Privileged Database User Name',
254
+    'LBL_DBCONF_TITLE'					=> 'Database Configuration',
255 255
     'LBL_DBCONF_TITLE_NAME'             => 'Provide Database Name',
256 256
     'LBL_DBCONF_TITLE_USER_INFO'        => 'Provide Database User Information',
257
-	'LBL_DBCONF_TITLE_USER_INFO_LABEL' => 'User',
258
-	'LBL_DBCONF_TITLE_PSWD_INFO_LABEL' => 'Password',
259
-	'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>',
260
-	'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:',
261
-	'LBL_DISABLED_HELP_1'				=> 'For installation help, please visit the SuiteCRM',
257
+    'LBL_DBCONF_TITLE_USER_INFO_LABEL' => 'User',
258
+    'LBL_DBCONF_TITLE_PSWD_INFO_LABEL' => 'Password',
259
+    '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>',
260
+    '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:',
261
+    'LBL_DISABLED_HELP_1'				=> 'For installation help, please visit the SuiteCRM',
262 262
     'LBL_DISABLED_HELP_LNK'             => 'http://www.suitecrm.com/forum/index',
263
-	'LBL_DISABLED_HELP_2'				=> 'support forums',
264
-	'LBL_DISABLED_TITLE_2'				=> 'SuiteCRM Installation has been Disabled',
265
-	'LBL_DISABLED_TITLE'				=> 'SuiteCRM Installation Disabled',
266
-	'LBL_EMAIL_CHARSET_DESC'			=> 'Character Set most commonly used in your locale',
267
-	'LBL_EMAIL_CHARSET_TITLE'			=> 'Outbound Email Settings',
263
+    'LBL_DISABLED_HELP_2'				=> 'support forums',
264
+    'LBL_DISABLED_TITLE_2'				=> 'SuiteCRM Installation has been Disabled',
265
+    'LBL_DISABLED_TITLE'				=> 'SuiteCRM Installation Disabled',
266
+    'LBL_EMAIL_CHARSET_DESC'			=> 'Character Set most commonly used in your locale',
267
+    'LBL_EMAIL_CHARSET_TITLE'			=> 'Outbound Email Settings',
268 268
     'LBL_EMAIL_CHARSET_CONF'            => 'Character Set for Outbound Email ',
269
-	'LBL_HELP'							=> 'Help',
269
+    'LBL_HELP'							=> 'Help',
270 270
     'LBL_INSTALL'                       => 'Install',
271 271
     'LBL_INSTALL_TYPE_TITLE'            => 'Installation Options',
272 272
     'LBL_INSTALL_TYPE_SUBTITLE'         => 'Choose Install Type',
@@ -275,157 +275,157 @@  discard block
 block discarded – undo
275 275
     'LBL_INSTALL_TYPE_MSG1'             => 'The key is required for general application functionality, but it is not required for installation. You do not need to enter the key at this time, but you will need to provide the key after you have installed the application.',
276 276
     'LBL_INSTALL_TYPE_MSG2'             => 'Requires minimum information for the installation. Recommended for new users.',
277 277
     '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.',
278
-	'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.',
279
-	'LBL_LANG_BUTTON_COMMIT'			=> 'Install',
280
-	'LBL_LANG_BUTTON_REMOVE'			=> 'Remove',
281
-	'LBL_LANG_BUTTON_UNINSTALL'			=> 'Uninstall',
282
-	'LBL_LANG_BUTTON_UPLOAD'			=> 'Upload',
283
-	'LBL_LANG_NO_PACKS'					=> 'none',
284
-	'LBL_LANG_PACK_INSTALLED'			=> 'The following language packs have been installed: ',
285
-	'LBL_LANG_PACK_READY'				=> 'The following language packs are ready to be installed: ',
286
-	'LBL_LANG_SUCCESS'					=> 'The language pack was successfully uploaded.',
287
-	'LBL_LANG_TITLE'			   		=> 'Language Pack',
278
+    '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.',
279
+    'LBL_LANG_BUTTON_COMMIT'			=> 'Install',
280
+    'LBL_LANG_BUTTON_REMOVE'			=> 'Remove',
281
+    'LBL_LANG_BUTTON_UNINSTALL'			=> 'Uninstall',
282
+    'LBL_LANG_BUTTON_UPLOAD'			=> 'Upload',
283
+    'LBL_LANG_NO_PACKS'					=> 'none',
284
+    'LBL_LANG_PACK_INSTALLED'			=> 'The following language packs have been installed: ',
285
+    'LBL_LANG_PACK_READY'				=> 'The following language packs are ready to be installed: ',
286
+    'LBL_LANG_SUCCESS'					=> 'The language pack was successfully uploaded.',
287
+    'LBL_LANG_TITLE'			   		=> 'Language Pack',
288 288
     'LBL_LAUNCHING_SILENT_INSTALL'     => 'Installing SuiteCRM now.  This may take up to a few minutes.',
289
-	'LBL_LANG_UPLOAD'					=> 'Upload a Language Pack',
290
-	'LBL_LICENSE_ACCEPTANCE'			=> 'License Acceptance',
289
+    'LBL_LANG_UPLOAD'					=> 'Upload a Language Pack',
290
+    'LBL_LICENSE_ACCEPTANCE'			=> 'License Acceptance',
291 291
     'LBL_LICENSE_CHECKING'              => 'Checking system for compatibility.',
292 292
     'LBL_LICENSE_CHKENV_HEADER'         => 'Checking Environment',
293 293
     'LBL_LICENSE_CHKDB_HEADER'          => 'Verifying DB Credentials.',
294 294
     'LBL_LICENSE_CHECK_PASSED'          => 'System passed check for compatibility.',
295
-	'LBL_CREATE_CACHE' => 'Preparing to Install...',
295
+    'LBL_CREATE_CACHE' => 'Preparing to Install...',
296 296
     'LBL_LICENSE_REDIRECT'              => 'Redirecting in ',
297
-	'LBL_LICENSE_DIRECTIONS'			=> 'If you have your license information, please enter it in the fields below.',
298
-	'LBL_LICENSE_DOWNLOAD_KEY'			=> 'Enter Download Key',
299
-	'LBL_LICENSE_EXPIRY'				=> 'Expiration Date',
300
-	'LBL_LICENSE_I_ACCEPT'				=> 'I Accept',
301
-	'LBL_LICENSE_NUM_USERS'				=> 'Number of Users',
302
-	'LBL_LICENSE_OC_DIRECTIONS'			=> 'Please enter the number of purchased offline clients.',
303
-	'LBL_LICENSE_OC_NUM'				=> 'Number of Offline Client Licenses',
304
-	'LBL_LICENSE_OC'					=> 'Offline Client Licenses',
305
-	'LBL_LICENSE_PRINTABLE'				=> ' Printable View ',
297
+    'LBL_LICENSE_DIRECTIONS'			=> 'If you have your license information, please enter it in the fields below.',
298
+    'LBL_LICENSE_DOWNLOAD_KEY'			=> 'Enter Download Key',
299
+    'LBL_LICENSE_EXPIRY'				=> 'Expiration Date',
300
+    'LBL_LICENSE_I_ACCEPT'				=> 'I Accept',
301
+    'LBL_LICENSE_NUM_USERS'				=> 'Number of Users',
302
+    'LBL_LICENSE_OC_DIRECTIONS'			=> 'Please enter the number of purchased offline clients.',
303
+    'LBL_LICENSE_OC_NUM'				=> 'Number of Offline Client Licenses',
304
+    'LBL_LICENSE_OC'					=> 'Offline Client Licenses',
305
+    'LBL_LICENSE_PRINTABLE'				=> ' Printable View ',
306 306
     'LBL_PRINT_SUMM'                    => 'Print Summary',
307
-	'LBL_LICENSE_TITLE_2'				=> 'SuiteCRM License',
308
-	'LBL_LICENSE_TITLE'					=> 'License Information',
309
-	'LBL_LICENSE_USERS'					=> 'Licensed Users',
310
-
311
-	'LBL_LOCALE_CURRENCY'				=> 'Currency Settings',
312
-	'LBL_LOCALE_CURR_DEFAULT'			=> 'Default Currency',
313
-	'LBL_LOCALE_CURR_SYMBOL'			=> 'Currency Symbol',
314
-	'LBL_LOCALE_CURR_ISO'				=> 'Currency Code (ISO 4217)',
315
-	'LBL_LOCALE_CURR_1000S'				=> '1000s Separator',
316
-	'LBL_LOCALE_CURR_DECIMAL'			=> 'Decimal Separator',
317
-	'LBL_LOCALE_CURR_EXAMPLE'			=> 'Example',
318
-	'LBL_LOCALE_CURR_SIG_DIGITS'		=> 'Significant Digits',
319
-	'LBL_LOCALE_DATEF'					=> 'Default Date Format',
320
-	'LBL_LOCALE_DESC'					=> 'The specified locale settings will be reflected globally within the SuiteCRM instance.',
321
-	'LBL_LOCALE_EXPORT'					=> 'Character Set for Import/Export<br> <i>(Email, .csv, vCard, PDF, data import)</i>',
322
-	'LBL_LOCALE_EXPORT_DELIMITER'		=> 'Export (.csv) Delimiter',
323
-	'LBL_LOCALE_EXPORT_TITLE'			=> 'Import/Export Settings',
324
-	'LBL_LOCALE_LANG'					=> 'Default Language',
325
-	'LBL_LOCALE_NAMEF'					=> 'Default Name Format',
326
-	'LBL_LOCALE_NAMEF_DESC'				=> 's = salutation<br />f = first name<br />l = last name',
327
-	'LBL_LOCALE_NAME_FIRST'				=> 'David',
328
-	'LBL_LOCALE_NAME_LAST'				=> 'Livingstone',
329
-	'LBL_LOCALE_NAME_SALUTATION'		=> 'Dr.',
330
-	'LBL_LOCALE_TIMEF'					=> 'Default Time Format',
307
+    'LBL_LICENSE_TITLE_2'				=> 'SuiteCRM License',
308
+    'LBL_LICENSE_TITLE'					=> 'License Information',
309
+    'LBL_LICENSE_USERS'					=> 'Licensed Users',
310
+
311
+    'LBL_LOCALE_CURRENCY'				=> 'Currency Settings',
312
+    'LBL_LOCALE_CURR_DEFAULT'			=> 'Default Currency',
313
+    'LBL_LOCALE_CURR_SYMBOL'			=> 'Currency Symbol',
314
+    'LBL_LOCALE_CURR_ISO'				=> 'Currency Code (ISO 4217)',
315
+    'LBL_LOCALE_CURR_1000S'				=> '1000s Separator',
316
+    'LBL_LOCALE_CURR_DECIMAL'			=> 'Decimal Separator',
317
+    'LBL_LOCALE_CURR_EXAMPLE'			=> 'Example',
318
+    'LBL_LOCALE_CURR_SIG_DIGITS'		=> 'Significant Digits',
319
+    'LBL_LOCALE_DATEF'					=> 'Default Date Format',
320
+    'LBL_LOCALE_DESC'					=> 'The specified locale settings will be reflected globally within the SuiteCRM instance.',
321
+    'LBL_LOCALE_EXPORT'					=> 'Character Set for Import/Export<br> <i>(Email, .csv, vCard, PDF, data import)</i>',
322
+    'LBL_LOCALE_EXPORT_DELIMITER'		=> 'Export (.csv) Delimiter',
323
+    'LBL_LOCALE_EXPORT_TITLE'			=> 'Import/Export Settings',
324
+    'LBL_LOCALE_LANG'					=> 'Default Language',
325
+    'LBL_LOCALE_NAMEF'					=> 'Default Name Format',
326
+    'LBL_LOCALE_NAMEF_DESC'				=> 's = salutation<br />f = first name<br />l = last name',
327
+    'LBL_LOCALE_NAME_FIRST'				=> 'David',
328
+    'LBL_LOCALE_NAME_LAST'				=> 'Livingstone',
329
+    'LBL_LOCALE_NAME_SALUTATION'		=> 'Dr.',
330
+    'LBL_LOCALE_TIMEF'					=> 'Default Time Format',
331 331
     'LBL_CUSTOMIZE_LOCALE'              => 'Customize Locale Settings',
332
-	'LBL_LOCALE_UI'						=> 'User Interface',
333
-
334
-	'LBL_ML_ACTION'						=> 'Action',
335
-	'LBL_ML_DESCRIPTION'				=> 'Description',
336
-	'LBL_ML_INSTALLED'					=> 'Date Installed',
337
-	'LBL_ML_NAME'						=> 'Name',
338
-	'LBL_ML_PUBLISHED'					=> 'Date Published',
339
-	'LBL_ML_TYPE'						=> 'Type',
340
-	'LBL_ML_UNINSTALLABLE'				=> 'Uninstallable',
341
-	'LBL_ML_VERSION'					=> 'Version',
342
-	'LBL_MSSQL'							=> 'SQL Server',
343
-	'LBL_MSSQL2'                        => 'SQL Server (FreeTDS)',
344
-	'LBL_MSSQL_SQLSRV'				    => 'SQL Server (Microsoft SQL Server Driver for PHP)',
345
-	'LBL_MYSQL'							=> 'MySQL',
332
+    'LBL_LOCALE_UI'						=> 'User Interface',
333
+
334
+    'LBL_ML_ACTION'						=> 'Action',
335
+    'LBL_ML_DESCRIPTION'				=> 'Description',
336
+    'LBL_ML_INSTALLED'					=> 'Date Installed',
337
+    'LBL_ML_NAME'						=> 'Name',
338
+    'LBL_ML_PUBLISHED'					=> 'Date Published',
339
+    'LBL_ML_TYPE'						=> 'Type',
340
+    'LBL_ML_UNINSTALLABLE'				=> 'Uninstallable',
341
+    'LBL_ML_VERSION'					=> 'Version',
342
+    'LBL_MSSQL'							=> 'SQL Server',
343
+    'LBL_MSSQL2'                        => 'SQL Server (FreeTDS)',
344
+    'LBL_MSSQL_SQLSRV'				    => 'SQL Server (Microsoft SQL Server Driver for PHP)',
345
+    'LBL_MYSQL'							=> 'MySQL',
346 346
     'LBL_MYSQLI'						=> 'MySQL (mysqli extension)',
347
-	'LBL_IBM_DB2'						=> 'IBM DB2',
348
-	'LBL_NEXT'							=> 'Next',
349
-	'LBL_NO'							=> 'No',
347
+    'LBL_IBM_DB2'						=> 'IBM DB2',
348
+    'LBL_NEXT'							=> 'Next',
349
+    'LBL_NO'							=> 'No',
350 350
     'LBL_ORACLE'						=> 'Oracle',
351
-	'LBL_PERFORM_ADMIN_PASSWORD'		=> 'Setting site admin password',
352
-	'LBL_PERFORM_AUDIT_TABLE'			=> 'audit table / ',
353
-	'LBL_PERFORM_CONFIG_PHP'			=> 'Creating SuiteCRM configuration file',
354
-	'LBL_PERFORM_CREATE_DB_1'			=> '<b>Creating the database</b> ',
355
-	'LBL_PERFORM_CREATE_DB_2'			=> ' <b>on</b> ',
356
-	'LBL_PERFORM_CREATE_DB_USER'		=> 'Creating the Database username and password...',
357
-	'LBL_PERFORM_CREATE_DEFAULT'		=> 'Creating default SuiteCRM data',
358
-	'LBL_PERFORM_CREATE_LOCALHOST'		=> 'Creating the Database username and password for localhost...',
359
-	'LBL_PERFORM_CREATE_RELATIONSHIPS'	=> 'Creating SuiteCRM relationship tables',
360
-	'LBL_PERFORM_CREATING'				=> 'creating / ',
361
-	'LBL_PERFORM_DEFAULT_REPORTS'		=> 'Creating default reports',
362
-	'LBL_PERFORM_DEFAULT_SCHEDULER'		=> 'Creating default scheduler jobs',
363
-	'LBL_PERFORM_DEFAULT_SETTINGS'		=> 'Inserting default settings',
364
-	'LBL_PERFORM_DEFAULT_USERS'			=> 'Creating default users',
365
-	'LBL_PERFORM_DEMO_DATA'				=> 'Populating the database tables with demo data (this may take a little while)',
366
-	'LBL_PERFORM_DONE'					=> 'done<br>',
367
-	'LBL_PERFORM_DROPPING'				=> 'dropping / ',
368
-	'LBL_PERFORM_FINISH'				=> 'Finish',
369
-	'LBL_PERFORM_LICENSE_SETTINGS'		=> 'Updating license information',
370
-	'LBL_PERFORM_OUTRO_1'				=> 'The setup of SuiteCRM ',
371
-	'LBL_PERFORM_OUTRO_2'				=> ' is now complete!',
372
-	'LBL_PERFORM_OUTRO_3'				=> 'Total time: ',
373
-	'LBL_PERFORM_OUTRO_4'				=> ' seconds.',
374
-	'LBL_PERFORM_OUTRO_5'				=> 'Approximate memory used: ',
375
-	'LBL_PERFORM_OUTRO_6'				=> ' bytes.',
376
-	'LBL_PERFORM_OUTRO_7'				=> 'Your system is now installed and configured for use.',
377
-	'LBL_PERFORM_REL_META'				=> 'relationship meta ... ',
378
-	'LBL_PERFORM_SUCCESS'				=> 'Success!',
379
-	'LBL_PERFORM_TABLES'				=> 'Creating SuiteCRM application tables, audit tables and relationship metadata',
380
-	'LBL_PERFORM_TITLE'					=> 'Perform Setup',
381
-	'LBL_PRINT'							=> 'Print',
382
-	'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.',
383
-	'LBL_REG_CONF_2'					=> 'Your name and email address are the only required fields for registration. All other fields are optional, but very helpful. We do not sell, rent, share, or otherwise distribute the information collected here to third parties.',
384
-	'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.',
385
-	'LBL_REG_TITLE'						=> 'Registration',
351
+    'LBL_PERFORM_ADMIN_PASSWORD'		=> 'Setting site admin password',
352
+    'LBL_PERFORM_AUDIT_TABLE'			=> 'audit table / ',
353
+    'LBL_PERFORM_CONFIG_PHP'			=> 'Creating SuiteCRM configuration file',
354
+    'LBL_PERFORM_CREATE_DB_1'			=> '<b>Creating the database</b> ',
355
+    'LBL_PERFORM_CREATE_DB_2'			=> ' <b>on</b> ',
356
+    'LBL_PERFORM_CREATE_DB_USER'		=> 'Creating the Database username and password...',
357
+    'LBL_PERFORM_CREATE_DEFAULT'		=> 'Creating default SuiteCRM data',
358
+    'LBL_PERFORM_CREATE_LOCALHOST'		=> 'Creating the Database username and password for localhost...',
359
+    'LBL_PERFORM_CREATE_RELATIONSHIPS'	=> 'Creating SuiteCRM relationship tables',
360
+    'LBL_PERFORM_CREATING'				=> 'creating / ',
361
+    'LBL_PERFORM_DEFAULT_REPORTS'		=> 'Creating default reports',
362
+    'LBL_PERFORM_DEFAULT_SCHEDULER'		=> 'Creating default scheduler jobs',
363
+    'LBL_PERFORM_DEFAULT_SETTINGS'		=> 'Inserting default settings',
364
+    'LBL_PERFORM_DEFAULT_USERS'			=> 'Creating default users',
365
+    'LBL_PERFORM_DEMO_DATA'				=> 'Populating the database tables with demo data (this may take a little while)',
366
+    'LBL_PERFORM_DONE'					=> 'done<br>',
367
+    'LBL_PERFORM_DROPPING'				=> 'dropping / ',
368
+    'LBL_PERFORM_FINISH'				=> 'Finish',
369
+    'LBL_PERFORM_LICENSE_SETTINGS'		=> 'Updating license information',
370
+    'LBL_PERFORM_OUTRO_1'				=> 'The setup of SuiteCRM ',
371
+    'LBL_PERFORM_OUTRO_2'				=> ' is now complete!',
372
+    'LBL_PERFORM_OUTRO_3'				=> 'Total time: ',
373
+    'LBL_PERFORM_OUTRO_4'				=> ' seconds.',
374
+    'LBL_PERFORM_OUTRO_5'				=> 'Approximate memory used: ',
375
+    'LBL_PERFORM_OUTRO_6'				=> ' bytes.',
376
+    'LBL_PERFORM_OUTRO_7'				=> 'Your system is now installed and configured for use.',
377
+    'LBL_PERFORM_REL_META'				=> 'relationship meta ... ',
378
+    'LBL_PERFORM_SUCCESS'				=> 'Success!',
379
+    'LBL_PERFORM_TABLES'				=> 'Creating SuiteCRM application tables, audit tables and relationship metadata',
380
+    'LBL_PERFORM_TITLE'					=> 'Perform Setup',
381
+    'LBL_PRINT'							=> 'Print',
382
+    '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.',
383
+    'LBL_REG_CONF_2'					=> 'Your name and email address are the only required fields for registration. All other fields are optional, but very helpful. We do not sell, rent, share, or otherwise distribute the information collected here to third parties.',
384
+    '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.',
385
+    'LBL_REG_TITLE'						=> 'Registration',
386 386
     'LBL_REG_NO_THANKS'                 => 'No Thanks',
387 387
     'LBL_REG_SKIP_THIS_STEP'            => 'Skip this Step',
388
-	'LBL_REQUIRED'						=> '* Required field',
388
+    'LBL_REQUIRED'						=> '* Required field',
389 389
 
390 390
     'LBL_SITECFG_ADMIN_Name'            => 'SuiteCRM Application Admin Name',
391
-	'LBL_SITECFG_ADMIN_PASS_2'			=> 'Re-enter SuiteCRM Admin User Password',
392
-	'LBL_SITECFG_ADMIN_PASS_WARN'		=> 'Caution: This will override the admin password of any previous installation.',
393
-	'LBL_SITECFG_ADMIN_PASS'			=> 'SuiteCRM Admin User Password',
394
-	'LBL_SITECFG_APP_ID'				=> 'Application ID',
395
-	'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.',
396
-	'LBL_SITECFG_CUSTOM_ID'				=> 'Provide Your Own Application ID',
397
-	'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.',
398
-	'LBL_SITECFG_CUSTOM_LOG'			=> 'Use a Custom Log Directory',
399
-	'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.',
400
-	'LBL_SITECFG_CUSTOM_SESSION'		=> 'Use a Custom Session Directory for SuiteCRM',
401
-	'LBL_SITECFG_DIRECTIONS'			=> 'Please enter your site configuration information below. If you are unsure of the fields, we suggest that you use the default values.',
402
-	'LBL_SITECFG_FIX_ERRORS'			=> '<b>Please fix the following errors before proceeding:</b>',
403
-	'LBL_SITECFG_LOG_DIR'				=> 'Log Directory',
404
-	'LBL_SITECFG_SESSION_PATH'			=> 'Path to Session Directory<br>(must be writable)',
405
-	'LBL_SITECFG_SITE_SECURITY'			=> 'Select Security Options',
406
-	'LBL_SITECFG_SUGAR_UP_DIRECTIONS'	=> 'If selected, the system will periodically check for updated versions of the application.',
407
-	'LBL_SITECFG_SUGAR_UP'				=> 'Automatically Check For Updates?',
408
-	'LBL_SITECFG_SUGAR_UPDATES'			=> 'SuiteCRM Updates Config',
409
-	'LBL_SITECFG_TITLE'					=> 'Site Configuration',
391
+    'LBL_SITECFG_ADMIN_PASS_2'			=> 'Re-enter SuiteCRM Admin User Password',
392
+    'LBL_SITECFG_ADMIN_PASS_WARN'		=> 'Caution: This will override the admin password of any previous installation.',
393
+    'LBL_SITECFG_ADMIN_PASS'			=> 'SuiteCRM Admin User Password',
394
+    'LBL_SITECFG_APP_ID'				=> 'Application ID',
395
+    '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.',
396
+    'LBL_SITECFG_CUSTOM_ID'				=> 'Provide Your Own Application ID',
397
+    '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.',
398
+    'LBL_SITECFG_CUSTOM_LOG'			=> 'Use a Custom Log Directory',
399
+    '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.',
400
+    'LBL_SITECFG_CUSTOM_SESSION'		=> 'Use a Custom Session Directory for SuiteCRM',
401
+    'LBL_SITECFG_DIRECTIONS'			=> 'Please enter your site configuration information below. If you are unsure of the fields, we suggest that you use the default values.',
402
+    'LBL_SITECFG_FIX_ERRORS'			=> '<b>Please fix the following errors before proceeding:</b>',
403
+    'LBL_SITECFG_LOG_DIR'				=> 'Log Directory',
404
+    'LBL_SITECFG_SESSION_PATH'			=> 'Path to Session Directory<br>(must be writable)',
405
+    'LBL_SITECFG_SITE_SECURITY'			=> 'Select Security Options',
406
+    'LBL_SITECFG_SUGAR_UP_DIRECTIONS'	=> 'If selected, the system will periodically check for updated versions of the application.',
407
+    'LBL_SITECFG_SUGAR_UP'				=> 'Automatically Check For Updates?',
408
+    'LBL_SITECFG_SUGAR_UPDATES'			=> 'SuiteCRM Updates Config',
409
+    'LBL_SITECFG_TITLE'					=> 'Site Configuration',
410 410
     'LBL_SITECFG_TITLE2'                => 'Identify Administration User',
411 411
     'LBL_SITECFG_SECURITY_TITLE'        => 'Site Security',
412
-	'LBL_SITECFG_URL'					=> 'URL of SuiteCRM Instance',
413
-	'LBL_SITECFG_USE_DEFAULTS'			=> 'Use Defaults?',
414
-	'LBL_SITECFG_ANONSTATS'             => 'Send Anonymous Usage Statistics?',
415
-	'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.',
412
+    'LBL_SITECFG_URL'					=> 'URL of SuiteCRM Instance',
413
+    'LBL_SITECFG_USE_DEFAULTS'			=> 'Use Defaults?',
414
+    'LBL_SITECFG_ANONSTATS'             => 'Send Anonymous Usage Statistics?',
415
+    '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.',
416 416
     '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.',
417 417
     '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.',
418 418
     '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.',
419 419
     '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.',
420 420
     'LBL_SPRITE_SUPPORT'                => 'Sprite Support',
421
-	'LBL_SYSTEM_CREDS'                  => 'System Credentials',
421
+    'LBL_SYSTEM_CREDS'                  => 'System Credentials',
422 422
     'LBL_SYSTEM_ENV'                    => 'System Environment',
423
-	'LBL_START'							=> 'Start',
423
+    'LBL_START'							=> 'Start',
424 424
     'LBL_SHOW_PASS'                     => 'Show Passwords',
425 425
     'LBL_HIDE_PASS'                     => 'Hide Passwords',
426 426
     'LBL_HIDDEN'                        => '<i>(hidden)</i>',
427
-	'LBL_STEP1' => 'Step 1 of 2 - Pre-Installation requirements',
428
-	'LBL_STEP2' => 'Step 2 of 2 - Configuration',
427
+    'LBL_STEP1' => 'Step 1 of 2 - Pre-Installation requirements',
428
+    'LBL_STEP2' => 'Step 2 of 2 - Configuration',
429 429
 //    'LBL_STEP1'                         => 'Step 1 of 8 - Pre-Installation requirements',
430 430
 //    'LBL_STEP2'                         => 'Step 2 of 8 - License Agreement',
431 431
 //    'LBL_STEP3'                         => 'Step 3 of 8 - Installation Type',
@@ -435,11 +435,11 @@  discard block
 block discarded – undo
435 435
 //    'LBL_STEP7'                         => 'Step 7 of 8 - Confirm Settings',
436 436
 //    'LBL_STEP8'                         => 'Step 8 of 8 - Installation Successful',
437 437
 //	'LBL_NO_THANKS'						=> 'Continue to installer',
438
-	'LBL_CHOOSE_LANG'					=> '<b>Choose your language</b>',
439
-	'LBL_STEP'							=> 'Step',
440
-	'LBL_TITLE_WELCOME'					=> 'Welcome to the SuiteCRM ',
441
-	'LBL_WELCOME_1'						=> 'This installer creates the SuiteCRM database tables and sets the configuration variables that you need to start. The entire process should take about ten minutes.',
442
-	'LBL_WELCOME_2'						=> 'For installation documentation, please visit the <a href="http://www.SuiteCRM.com/" target="_blank">SuiteCRM</a>.  <BR><BR> You can also find help from the SuiteCRM Community in the <a href="http://www.SuiteCRM.com/" target="_blank">SuiteCRM Forums</a>.',
438
+    'LBL_CHOOSE_LANG'					=> '<b>Choose your language</b>',
439
+    'LBL_STEP'							=> 'Step',
440
+    'LBL_TITLE_WELCOME'					=> 'Welcome to the SuiteCRM ',
441
+    'LBL_WELCOME_1'						=> 'This installer creates the SuiteCRM database tables and sets the configuration variables that you need to start. The entire process should take about ten minutes.',
442
+    'LBL_WELCOME_2'						=> 'For installation documentation, please visit the <a href="http://www.SuiteCRM.com/" target="_blank">SuiteCRM</a>.  <BR><BR> You can also find help from the SuiteCRM Community in the <a href="http://www.SuiteCRM.com/" target="_blank">SuiteCRM Forums</a>.',
443 443
     //welcome page variables
444 444
     'LBL_TITLE_ARE_YOU_READY'            => 'Are you ready to install?',
445 445
     'REQUIRED_SYS_COMP' => 'Required System Components',
@@ -522,20 +522,20 @@  discard block
 block discarded – undo
522 522
                                 ',
523 523
     '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.',
524 524
 
525
-	'LBL_WELCOME_CHOOSE_LANGUAGE'		=> '<b>Choose your language</b>',
526
-	'LBL_WELCOME_SETUP_WIZARD'			=> 'Setup Wizard',
527
-	'LBL_WELCOME_TITLE_WELCOME'			=> 'Welcome to the SuiteCRM ',
528
-	'LBL_WELCOME_TITLE'					=> 'SuiteCRM Setup Wizard',
529
-	'LBL_WIZARD_TITLE'					=> 'SuiteCRM Setup Wizard: ',
530
-	'LBL_YES'							=> 'Yes',
525
+    'LBL_WELCOME_CHOOSE_LANGUAGE'		=> '<b>Choose your language</b>',
526
+    'LBL_WELCOME_SETUP_WIZARD'			=> 'Setup Wizard',
527
+    'LBL_WELCOME_TITLE_WELCOME'			=> 'Welcome to the SuiteCRM ',
528
+    'LBL_WELCOME_TITLE'					=> 'SuiteCRM Setup Wizard',
529
+    'LBL_WIZARD_TITLE'					=> 'SuiteCRM Setup Wizard: ',
530
+    'LBL_YES'							=> 'Yes',
531 531
     'LBL_YES_MULTI'                     => 'Yes - Multibyte',
532
-	// OOTB Scheduler Job Names:
533
-	'LBL_OOTB_WORKFLOW'		=> 'Process Workflow Tasks',
534
-	'LBL_OOTB_REPORTS'		=> 'Run Report Generation Scheduled Tasks',
535
-	'LBL_OOTB_IE'			=> 'Check Inbound Mailboxes',
536
-	'LBL_OOTB_BOUNCE'		=> 'Run Nightly Process Bounced Campaign Emails',
532
+    // OOTB Scheduler Job Names:
533
+    'LBL_OOTB_WORKFLOW'		=> 'Process Workflow Tasks',
534
+    'LBL_OOTB_REPORTS'		=> 'Run Report Generation Scheduled Tasks',
535
+    'LBL_OOTB_IE'			=> 'Check Inbound Mailboxes',
536
+    'LBL_OOTB_BOUNCE'		=> 'Run Nightly Process Bounced Campaign Emails',
537 537
     'LBL_OOTB_CAMPAIGN'		=> 'Run Nightly Mass Email Campaigns',
538
-	'LBL_OOTB_PRUNE'		=> 'Prune Database on 1st of Month',
538
+    'LBL_OOTB_PRUNE'		=> 'Prune Database on 1st of Month',
539 539
     'LBL_OOTB_TRACKER'		=> 'Prune tracker tables',
540 540
     'LBL_OOTB_SUGARFEEDS'   => 'Prune SuiteCRM Feed Tables',
541 541
     'LBL_OOTB_SEND_EMAIL_REMINDERS'	=> 'Run Email Reminder Notifications',
@@ -549,19 +549,19 @@  discard block
 block discarded – undo
549 549
     'LBL_PATCH_1'           => 'If you would like to skip this step, click Next.',
550 550
     'LBL_PATCH_TITLE'       => 'System Patch',
551 551
     'LBL_PATCH_READY'       => 'The following patch(es) are ready to be installed:',
552
-	'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.
552
+    '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.
553 553
 											<br><br>A common misconfiguration is that the <b>'session.save_path'</b> directive is not pointing to a valid directory.  <br>
554 554
 											<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.",
555
-	'LBL_SESSION_ERR_TITLE'				=> 'PHP Sessions Configuration Error',
556
-	'LBL_SYSTEM_NAME'=>'System Name',
555
+    'LBL_SESSION_ERR_TITLE'				=> 'PHP Sessions Configuration Error',
556
+    'LBL_SYSTEM_NAME'=>'System Name',
557 557
     'LBL_COLLATION' => 'Collation Settings',
558
-	'LBL_REQUIRED_SYSTEM_NAME'=>'Provide a System Name for the SuiteCRM instance.',
559
-	'LBL_PATCH_UPLOAD' => 'Select a patch file from your local computer',
560
-	'LBL_INCOMPATIBLE_PHP_VERSION' => 'Php version 5 or above is required.',
561
-	'LBL_MINIMUM_PHP_VERSION' => 'Minimum Php version required is 5.1.0. Recommended Php version is 5.2.x.',
562
-	'LBL_YOUR_PHP_VERSION' => '(Your current php version is ',
563
-	'LBL_RECOMMENDED_PHP_VERSION' =>' Recommended php version is 5.2.x)',
564
-	'LBL_BACKWARD_COMPATIBILITY_ON' => 'Php Backward Compatibility mode is turned on. Set zend.ze1_compatibility_mode to Off for proceeding further',
558
+    'LBL_REQUIRED_SYSTEM_NAME'=>'Provide a System Name for the SuiteCRM instance.',
559
+    'LBL_PATCH_UPLOAD' => 'Select a patch file from your local computer',
560
+    'LBL_INCOMPATIBLE_PHP_VERSION' => 'Php version 5 or above is required.',
561
+    'LBL_MINIMUM_PHP_VERSION' => 'Minimum Php version required is 5.1.0. Recommended Php version is 5.2.x.',
562
+    'LBL_YOUR_PHP_VERSION' => '(Your current php version is ',
563
+    'LBL_RECOMMENDED_PHP_VERSION' =>' Recommended php version is 5.2.x)',
564
+    'LBL_BACKWARD_COMPATIBILITY_ON' => 'Php Backward Compatibility mode is turned on. Set zend.ze1_compatibility_mode to Off for proceeding further',
565 565
     'LBL_STREAM' => 'PHP allows to use stream',
566 566
 
567 567
     'advanced_password_new_account_email' => array(
@@ -593,91 +593,91 @@  discard block
 block discarded – undo
593 593
         'name' => 'Forgot Password email',
594 594
         ),
595 595
 
596
-	// SMTP settings
597
-
598
-	'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.',
599
-	'LBL_CHOOSE_EMAIL_PROVIDER'        => 'Choose your Email provider:',
600
-
601
-	'LBL_SMTPTYPE_GMAIL'                    => 'Gmail',
602
-	'LBL_SMTPTYPE_YAHOO'                    => 'Yahoo! Mail',
603
-	'LBL_SMTPTYPE_EXCHANGE'                 => 'Microsoft Exchange',
604
-	'LBL_SMTPTYPE_OTHER'                  => 'Other',
605
-	'LBL_MAIL_SMTP_SETTINGS'           => 'SMTP Server Specification',
606
-	'LBL_MAIL_SMTPSERVER'				=> 'SMTP Server:',
607
-	'LBL_MAIL_SMTPPORT'					=> 'SMTP Port:',
608
-	'LBL_MAIL_SMTPAUTH_REQ'				=> 'Use SMTP Authentication?',
609
-	'LBL_EMAIL_SMTP_SSL_OR_TLS'         => 'Enable SMTP over SSL or TLS?',
610
-	'LBL_GMAIL_SMTPUSER'					=> 'Gmail Email Address:',
611
-	'LBL_GMAIL_SMTPPASS'					=> 'Gmail Password:',
612
-	'LBL_ALLOW_DEFAULT_SELECTION'           => 'Allow users to use this account for outgoing email:',
613
-	'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.',
614
-
615
-	'LBL_YAHOOMAIL_SMTPPASS'					=> 'Yahoo! Mail Password:',
616
-	'LBL_YAHOOMAIL_SMTPUSER'					=> 'Yahoo! Mail ID:',
617
-
618
-	'LBL_EXCHANGE_SMTPPASS'					=> 'Exchange Password:',
619
-	'LBL_EXCHANGE_SMTPUSER'					=> 'Exchange Username:',
620
-	'LBL_EXCHANGE_SMTPPORT'					=> 'Exchange Server Port:',
621
-	'LBL_EXCHANGE_SMTPSERVER'				=> 'Exchange Server:',
622
-
623
-
624
-	'LBL_MAIL_SMTPUSER'					=> 'SMTP Username:',
625
-	'LBL_MAIL_SMTPPASS'					=> 'SMTP Password:',
626
-
627
-	// Branding
628
-
629
-	'LBL_WIZARD_SYSTEM_TITLE' => 'Branding',
630
-	'LBL_WIZARD_SYSTEM_DESC' => 'Provide your organization\'s name and logo in order to brand your SuiteCRM.',
631
-	'SYSTEM_NAME_WIZARD'=>'Name:',
632
-	'SYSTEM_NAME_HELP'=>'This is the name that displays in the title bar of your browser.',
633
-	'NEW_LOGO'=>'Select Logo:',
634
-	'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.',
635
-	'COMPANY_LOGO_UPLOAD_BTN' => 'Upload',
636
-	'CURRENT_LOGO'=>'Current Logo:',
596
+    // SMTP settings
597
+
598
+    '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.',
599
+    'LBL_CHOOSE_EMAIL_PROVIDER'        => 'Choose your Email provider:',
600
+
601
+    'LBL_SMTPTYPE_GMAIL'                    => 'Gmail',
602
+    'LBL_SMTPTYPE_YAHOO'                    => 'Yahoo! Mail',
603
+    'LBL_SMTPTYPE_EXCHANGE'                 => 'Microsoft Exchange',
604
+    'LBL_SMTPTYPE_OTHER'                  => 'Other',
605
+    'LBL_MAIL_SMTP_SETTINGS'           => 'SMTP Server Specification',
606
+    'LBL_MAIL_SMTPSERVER'				=> 'SMTP Server:',
607
+    'LBL_MAIL_SMTPPORT'					=> 'SMTP Port:',
608
+    'LBL_MAIL_SMTPAUTH_REQ'				=> 'Use SMTP Authentication?',
609
+    'LBL_EMAIL_SMTP_SSL_OR_TLS'         => 'Enable SMTP over SSL or TLS?',
610
+    'LBL_GMAIL_SMTPUSER'					=> 'Gmail Email Address:',
611
+    'LBL_GMAIL_SMTPPASS'					=> 'Gmail Password:',
612
+    'LBL_ALLOW_DEFAULT_SELECTION'           => 'Allow users to use this account for outgoing email:',
613
+    '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.',
614
+
615
+    'LBL_YAHOOMAIL_SMTPPASS'					=> 'Yahoo! Mail Password:',
616
+    'LBL_YAHOOMAIL_SMTPUSER'					=> 'Yahoo! Mail ID:',
617
+
618
+    'LBL_EXCHANGE_SMTPPASS'					=> 'Exchange Password:',
619
+    'LBL_EXCHANGE_SMTPUSER'					=> 'Exchange Username:',
620
+    'LBL_EXCHANGE_SMTPPORT'					=> 'Exchange Server Port:',
621
+    'LBL_EXCHANGE_SMTPSERVER'				=> 'Exchange Server:',
622
+
623
+
624
+    'LBL_MAIL_SMTPUSER'					=> 'SMTP Username:',
625
+    'LBL_MAIL_SMTPPASS'					=> 'SMTP Password:',
626
+
627
+    // Branding
628
+
629
+    'LBL_WIZARD_SYSTEM_TITLE' => 'Branding',
630
+    'LBL_WIZARD_SYSTEM_DESC' => 'Provide your organization\'s name and logo in order to brand your SuiteCRM.',
631
+    'SYSTEM_NAME_WIZARD'=>'Name:',
632
+    'SYSTEM_NAME_HELP'=>'This is the name that displays in the title bar of your browser.',
633
+    'NEW_LOGO'=>'Select Logo:',
634
+    '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.',
635
+    'COMPANY_LOGO_UPLOAD_BTN' => 'Upload',
636
+    'CURRENT_LOGO'=>'Current Logo:',
637 637
     'CURRENT_LOGO_HELP'=>'This logo is displayed in the left-hand corner of the footer of the SuiteCRM application.',
638 638
 
639
-	// System Local Settings
640
-
641
-
642
-	'LBL_LOCALE_TITLE' => 'System Locale Settings',
643
-	'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.',
644
-	'LBL_DATE_FORMAT' => 'Date Format:',
645
-	'LBL_TIME_FORMAT' => 'Time Format:',
646
-		'LBL_TIMEZONE' => 'Time Zone:',
647
-	'LBL_LANGUAGE'=>'Language:',
648
-	'LBL_CURRENCY'=>'Currency:',
649
-	'LBL_CURRENCY_SYMBOL'=>'Currency Symbol:',
650
-	'LBL_CURRENCY_ISO4217' => 'ISO 4217 Currency Code:',
651
-	'LBL_NUMBER_GROUPING_SEP' => '1000s separator:',
652
-	'LBL_DECIMAL_SEP' => 'Decimal symbol:',
653
-	'LBL_NAME_FORMAT' => 'Name Format:',
654
-	'UPLOAD_LOGO' => 'Please wait, logo uploading..',
655
-	'ERR_UPLOAD_FILETYPE' => 'File type do not allowed, please upload a jpeg or png.',
656
-	'ERR_LANG_UPLOAD_UNKNOWN' => 'Unknown file upload error occured.',
657
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_INI_SIZE' => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
658
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_FORM_SIZE' => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
659
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_PARTIAL' => 'The uploaded file was only partially uploaded.',
660
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_FILE' => 'No file was uploaded.',
661
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_TMP_DIR' => 'Missing a temporary folder.',
662
-	'ERR_UPLOAD_FILE_UPLOAD_ERR_CANT_WRITE' => 'Failed to write file to disk.',
663
-	'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.',
664
-
665
-	'LBL_INSTALL_PROCESS' => 'Install...',
666
-
667
-	'LBL_EMAIL_ADDRESS' => 'Email Address:',
668
-	'ERR_ADMIN_EMAIL' => 'Administrator Email Address is incorrect.',
669
-	'ERR_SITE_URL' => 'Site URL is required.',
670
-
671
-	'STAT_CONFIGURATION' => 'Configuration relationships...',
672
-	'STAT_CREATE_DB' => 'Create database...',
673
-	//'STAT_CREATE_DB_TABLE' => 'Create database... (table: %s)',
674
-	'STAT_CREATE_DEFAULT_SETTINGS' => 'Create default settings...',
675
-	'STAT_INSTALL_FINISH' => 'Install finish...',
676
-	'STAT_INSTALL_FINISH_LOGIN' => 'Installation process finished, <a href="%s">please log in...</a>',
677
-	'LBL_LICENCE_TOOLTIP' => 'Please accept license first',
678
-
679
-	'LBL_MORE_OPTIONS_TITLE' => 'More options',
680
-	'LBL_START' => '',
639
+    // System Local Settings
640
+
641
+
642
+    'LBL_LOCALE_TITLE' => 'System Locale Settings',
643
+    '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.',
644
+    'LBL_DATE_FORMAT' => 'Date Format:',
645
+    'LBL_TIME_FORMAT' => 'Time Format:',
646
+        'LBL_TIMEZONE' => 'Time Zone:',
647
+    'LBL_LANGUAGE'=>'Language:',
648
+    'LBL_CURRENCY'=>'Currency:',
649
+    'LBL_CURRENCY_SYMBOL'=>'Currency Symbol:',
650
+    'LBL_CURRENCY_ISO4217' => 'ISO 4217 Currency Code:',
651
+    'LBL_NUMBER_GROUPING_SEP' => '1000s separator:',
652
+    'LBL_DECIMAL_SEP' => 'Decimal symbol:',
653
+    'LBL_NAME_FORMAT' => 'Name Format:',
654
+    'UPLOAD_LOGO' => 'Please wait, logo uploading..',
655
+    'ERR_UPLOAD_FILETYPE' => 'File type do not allowed, please upload a jpeg or png.',
656
+    'ERR_LANG_UPLOAD_UNKNOWN' => 'Unknown file upload error occured.',
657
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_INI_SIZE' => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
658
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_FORM_SIZE' => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
659
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_PARTIAL' => 'The uploaded file was only partially uploaded.',
660
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_FILE' => 'No file was uploaded.',
661
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_NO_TMP_DIR' => 'Missing a temporary folder.',
662
+    'ERR_UPLOAD_FILE_UPLOAD_ERR_CANT_WRITE' => 'Failed to write file to disk.',
663
+    '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.',
664
+
665
+    'LBL_INSTALL_PROCESS' => 'Install...',
666
+
667
+    'LBL_EMAIL_ADDRESS' => 'Email Address:',
668
+    'ERR_ADMIN_EMAIL' => 'Administrator Email Address is incorrect.',
669
+    'ERR_SITE_URL' => 'Site URL is required.',
670
+
671
+    'STAT_CONFIGURATION' => 'Configuration relationships...',
672
+    'STAT_CREATE_DB' => 'Create database...',
673
+    //'STAT_CREATE_DB_TABLE' => 'Create database... (table: %s)',
674
+    'STAT_CREATE_DEFAULT_SETTINGS' => 'Create default settings...',
675
+    'STAT_INSTALL_FINISH' => 'Install finish...',
676
+    'STAT_INSTALL_FINISH_LOGIN' => 'Installation process finished, <a href="%s">please log in...</a>',
677
+    'LBL_LICENCE_TOOLTIP' => 'Please accept license first',
678
+
679
+    'LBL_MORE_OPTIONS_TITLE' => 'More options',
680
+    'LBL_START' => '',
681 681
 
682 682
 
683 683
 );
Please login to merge, or discard this patch.
include/language/en_us.lang.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -760,14 +760,14 @@
 block discarded – undo
760 760
     ),
761 761
     'dom_switch_bool' => array('on' => 'Yes',
762 762
         'off' => 'No',
763
-        '' => 'No', ),
763
+        '' => 'No',),
764 764
 
765 765
     'dom_email_link_type' => array('sugar' => 'SuiteCRM Email Client',
766
-        'mailto' => 'External Email Client', ),
766
+        'mailto' => 'External Email Client',),
767 767
 
768 768
     'dom_email_editor_option' => array('' => 'Default Email Format',
769 769
         'html' => 'HTML Email',
770
-        'plain' => 'Plain Text Email', ),
770
+        'plain' => 'Plain Text Email',),
771 771
 
772 772
     'schedulers_times_dom' => array('not run' => 'Past Run Time, Not Executed',
773 773
         'ready' => 'Ready',
Please login to merge, or discard this patch.
OpportunitiesByLeadSourceByOutcomeDashlet.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -114,24 +114,24 @@  discard block
 block discarded – undo
114 114
         */
115 115
 
116 116
         $currency_symbol = $sugar_config['default_currency_symbol'];
117
-        if ($current_user->getPreference('currency')){
117
+        if ($current_user->getPreference('currency')) {
118 118
 
119 119
             $currency = new Currency();
120 120
             $currency->retrieve($current_user->getPreference('currency'));
121 121
             $currency_symbol = $currency->symbol;
122 122
         }
123
-        $subtitle = translate('LBL_OPP_SIZE', 'Charts') . " " . $currency_symbol . "1" . translate('LBL_OPP_THOUSANDS', 'Charts');
123
+        $subtitle = translate('LBL_OPP_SIZE', 'Charts')." ".$currency_symbol."1".translate('LBL_OPP_THOUSANDS', 'Charts');
124 124
         $thousands_symbol = translate('LBL_OPP_THOUSANDS', 'Charts');
125 125
 
126 126
         $module = 'Opportunities';
127
-        $action =  'index';
128
-        $query =  'true';
127
+        $action = 'index';
128
+        $query = 'true';
129 129
         $searchFormTab = 'advanced_search';
130
-        $groupBy = array( 'lead_source', 'sales_stage' );
130
+        $groupBy = array('lead_source', 'sales_stage');
131 131
 
132 132
 
133 133
         $url_params = array();
134
-        if ( count($this->lsbo_ids) > 0 )
134
+        if (count($this->lsbo_ids) > 0)
135 135
             $url_params['assigned_user_id'] = array_values($this->lsbo_ids);
136 136
 
137 137
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $colours = "['#a6cee3','#1f78b4','#b2df8a','#33a02c','#fb9a99','#e31a1c','#fdbf6f','#ff7f00','#cab2d6','#6a3d9a','#ffff99','#b15928']";
159 159
 
160
-        if(!is_array($chartReadyData['data'])||count($chartReadyData['data']) < 1)
160
+        if (!is_array($chartReadyData['data']) || count($chartReadyData['data']) < 1)
161 161
         {
162 162
             return "<h3 class='noGraphDataPoints'>$this->noDataMessage</h3>";
163 163
         }
@@ -253,43 +253,43 @@  discard block
 block discarded – undo
253 253
         $query = "SELECT lead_source,sales_stage,sum(amount_usdollar/1000) as total, ".
254 254
             "count(*) as opp_count FROM opportunities ";
255 255
         $query .= " WHERE opportunities.deleted=0 ";
256
-        if ( count($this->lsbo_ids) > 0 )
257
-            $query .= "AND opportunities.assigned_user_id IN ('".implode("','",$this->lsbo_ids)."') ";
258
-        if ( count($this->lsbo_lead_sources) > 0 )
259
-            $query .= "AND opportunities.lead_source IN ('".implode("','",$this->lsbo_lead_sources)."') ";
256
+        if (count($this->lsbo_ids) > 0)
257
+            $query .= "AND opportunities.assigned_user_id IN ('".implode("','", $this->lsbo_ids)."') ";
258
+        if (count($this->lsbo_lead_sources) > 0)
259
+            $query .= "AND opportunities.lead_source IN ('".implode("','", $this->lsbo_lead_sources)."') ";
260 260
         else
261
-            $query .= "AND opportunities.lead_source IN ('".implode("','",array_keys($GLOBALS['app_list_strings']['lead_source_dom']))."') ";
261
+            $query .= "AND opportunities.lead_source IN ('".implode("','", array_keys($GLOBALS['app_list_strings']['lead_source_dom']))."') ";
262 262
         $query .= " GROUP BY sales_stage,lead_source ORDER BY lead_source,sales_stage";
263 263
 
264 264
         return $query;
265 265
     }
266 266
 
267
-    protected function prepareChartData($data,$currency_symbol, $thousands_symbol)
267
+    protected function prepareChartData($data, $currency_symbol, $thousands_symbol)
268 268
     {
269 269
         //Use the  lead_source to categorise the data for the charts
270 270
         $chart['labels'] = array();
271 271
         $chart['data'] = array();
272 272
         //Need to add all elements into the key, as they are stacked (even though the category is not present, the value could be
273 273
         $chart['key'] = array();
274
-        $chart['tooltips']= array();
274
+        $chart['tooltips'] = array();
275 275
 
276
-        foreach($data as $i)
276
+        foreach ($data as $i)
277 277
         {
278 278
             $key = $i["lead_source"];
279 279
             $keyDom = $i["lead_source_dom_option"];
280 280
             $stage = $i["sales_stage"];
281 281
             $stageDom = $i["sales_stage_dom_option"];
282
-            if(!in_array($key,$chart['labels']))
282
+            if (!in_array($key, $chart['labels']))
283 283
             {
284 284
                 $chart['labels'][] = $key;
285 285
                 $chart['data'][] = array();
286 286
             }
287
-            if(!in_array($stage,$chart['key']))
287
+            if (!in_array($stage, $chart['key']))
288 288
                 $chart['key'][] = $stage;
289 289
 
290 290
             $formattedFloat = (float)number_format((float)$i["total"], 2, '.', '');
291
-            $chart['data'][count($chart['data'])-1][] = $formattedFloat;
292
-            $chart['tooltips'][]="<div><input type='hidden' class='stage' value='$stageDom'><input type='hidden' class='category' value='$keyDom'></div>".$stage.'('.$currency_symbol.$formattedFloat.$thousands_symbol.') '.$key;
291
+            $chart['data'][count($chart['data']) - 1][] = $formattedFloat;
292
+            $chart['tooltips'][] = "<div><input type='hidden' class='stage' value='$stageDom'><input type='hidden' class='category' value='$keyDom'></div>".$stage.'('.$currency_symbol.$formattedFloat.$thousands_symbol.') '.$key;
293 293
         }
294 294
         return $chart;
295 295
     }
Please login to merge, or discard this patch.
modules/Charts/Dashlets/OutcomeByMonthDashlet/OutcomeByMonthDashlet.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
     {
67 67
         global $timedate;
68 68
 
69
-        if(empty($options['obm_date_start']))
69
+        if (empty($options['obm_date_start']))
70 70
             $options['obm_date_start'] = $timedate->nowDbDate();
71 71
 
72
-        if(empty($options['obm_date_end']))
72
+        if (empty($options['obm_date_end']))
73 73
             $options['obm_date_end'] = $timedate->asDbDate($timedate->getNow()->modify("+6 months"));
74 74
 
75
-        parent::__construct($id,$options);
75
+        parent::__construct($id, $options);
76 76
     }
77 77
 
78 78
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function display()
93 93
     {
94 94
         $currency_symbol = $GLOBALS['sugar_config']['default_currency_symbol'];
95
-        if ($GLOBALS['current_user']->getPreference('currency')){
95
+        if ($GLOBALS['current_user']->getPreference('currency')) {
96 96
 
97 97
             $currency = new Currency();
98 98
             $currency->retrieve($GLOBALS['current_user']->getPreference('currency'));
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
         $action = 'index';
104 104
         $query = 'true';
105 105
         $searchFormTab = 'advanced_search';
106
-        $groupBy = array( 'm', 'sales_stage', );
106
+        $groupBy = array('m', 'sales_stage',);
107 107
 
108 108
 
109 109
         $data = $this->getChartData($this->constructQuery());
110 110
 
111 111
         //I have taken out the sort as this will throw off the labels we have calculated
112
-        $data = $this->sortData($data,'m', false, 'sales_stage', true, true);
112
+        $data = $this->sortData($data, 'm', false, 'sales_stage', true, true);
113 113
 
114 114
         $chartReadyData = $this->prepareChartData($data, $currency_symbol, $thousands_symbol);
115 115
         $canvasId = 'rGraphOutcomeByMonth'.uniqid();
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $colours = "['#a6cee3','#1f78b4','#b2df8a','#33a02c','#fb9a99','#e31a1c','#fdbf6f','#ff7f00','#cab2d6','#6a3d9a','#ffff99','#b15928']";
130 130
 
131 131
 
132
-        if(!is_array($chartReadyData['data'])||count($chartReadyData['data']) < 1)
132
+        if (!is_array($chartReadyData['data']) || count($chartReadyData['data']) < 1)
133 133
         {
134 134
             return "<h3 class='noGraphDataPoints'>$this->noDataMessage</h3>";
135 135
         }
@@ -242,45 +242,45 @@  discard block
 block discarded – undo
242 242
     protected function constructQuery()
243 243
     {
244 244
         $query = "SELECT sales_stage,".
245
-            db_convert('opportunities.date_closed','date_format',array("'%Y-%m'"),array("'YYYY-MM'"))." as m, ".
245
+            db_convert('opportunities.date_closed', 'date_format', array("'%Y-%m'"), array("'YYYY-MM'"))." as m, ".
246 246
             "sum(amount_usdollar/1000) as total, count(*) as opp_count FROM opportunities ";
247
-        $query .= " WHERE opportunities.date_closed >= ".db_convert("'".$this->obm_date_start."'",'date') .
248
-            " AND opportunities.date_closed <= ".db_convert("'".$this->obm_date_end."'",'date') .
247
+        $query .= " WHERE opportunities.date_closed >= ".db_convert("'".$this->obm_date_start."'", 'date').
248
+            " AND opportunities.date_closed <= ".db_convert("'".$this->obm_date_end."'", 'date').
249 249
             " AND opportunities.deleted=0";
250 250
         if (count($this->obm_ids) > 0)
251
-            $query .= " AND opportunities.assigned_user_id IN ('" . implode("','",$this->obm_ids) . "')";
251
+            $query .= " AND opportunities.assigned_user_id IN ('".implode("','", $this->obm_ids)."')";
252 252
         $query .= " GROUP BY sales_stage,".
253
-            db_convert('opportunities.date_closed','date_format',array("'%Y-%m'"),array("'YYYY-MM'")) .
253
+            db_convert('opportunities.date_closed', 'date_format', array("'%Y-%m'"), array("'YYYY-MM'")).
254 254
             " ORDER BY m";
255 255
 
256 256
         return $query;
257 257
     }
258 258
 
259
-    protected function prepareChartData($data,$currency_symbol, $thousands_symbol)
259
+    protected function prepareChartData($data, $currency_symbol, $thousands_symbol)
260 260
     {
261 261
         //Use the  lead_source to categorise the data for the charts
262 262
         $chart['labels'] = array();
263 263
         $chart['data'] = array();
264 264
         //Need to add all elements into the key, as they are stacked (even though the category is not present, the value could be)
265 265
         $chart['key'] = array();
266
-        $chart['tooltips']= array();
266
+        $chart['tooltips'] = array();
267 267
 
268
-        foreach($data as $i)
268
+        foreach ($data as $i)
269 269
         {
270 270
             $key = $i["m"];
271 271
             $stage = $i["sales_stage"];
272 272
             $stage_dom_option = $i["sales_stage_dom_option"];
273
-            if(!in_array($key,$chart['labels']))
273
+            if (!in_array($key, $chart['labels']))
274 274
             {
275 275
                 $chart['labels'][] = $key;
276 276
                 $chart['data'][] = array();
277 277
             }
278
-            if(!in_array($stage,$chart['key']))
278
+            if (!in_array($stage, $chart['key']))
279 279
                 $chart['key'][] = $stage;
280 280
 
281 281
             $formattedFloat = (float)number_format((float)$i["total"], 2, '.', '');
282
-            $chart['data'][count($chart['data'])-1][] = $formattedFloat;
283
-            $chart['tooltips'][]="<div><input type='hidden' class='stage' value='$stage_dom_option'><input type='hidden' class='date' value='$key'></div>".$stage.'('.$currency_symbol.$formattedFloat.$thousands_symbol.') '.$key;
282
+            $chart['data'][count($chart['data']) - 1][] = $formattedFloat;
283
+            $chart['tooltips'][] = "<div><input type='hidden' class='stage' value='$stage_dom_option'><input type='hidden' class='date' value='$key'></div>".$stage.'('.$currency_symbol.$formattedFloat.$thousands_symbol.') '.$key;
284 284
         }
285 285
         return $chart;
286 286
     }
Please login to merge, or discard this patch.
Charts/Dashlets/PipelineBySalesStageDashlet/PipelineBySalesStageDashlet.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -67,16 +67,16 @@  discard block
 block discarded – undo
67 67
     {
68 68
         global $timedate;
69 69
 
70
-        if(empty($options['pbss_date_start']))
70
+        if (empty($options['pbss_date_start']))
71 71
             $options['pbss_date_start'] = $timedate->nowDbDate();
72 72
 
73
-        if(empty($options['pbss_date_end']))
73
+        if (empty($options['pbss_date_end']))
74 74
             $options['pbss_date_end'] = $timedate->asDbDate($timedate->getNow()->modify("+6 months"));
75 75
 
76
-        if(empty($options['title']))
76
+        if (empty($options['title']))
77 77
             $options['title'] = translate('LBL_RGraph_PIPELINE_FORM_TITLE', 'Home');
78 78
 
79
-        parent::__construct($id,$options);
79
+        parent::__construct($id, $options);
80 80
     }
81 81
 
82 82
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $thousands_symbol = translate('LBL_OPP_THOUSANDS', 'Charts');
110 110
 
111 111
         $currency_symbol = $sugar_config['default_currency_symbol'];
112
-        if ($current_user->getPreference('currency')){
112
+        if ($current_user->getPreference('currency')) {
113 113
 
114 114
             $currency = new Currency();
115 115
             $currency->retrieve($current_user->getPreference('currency'));
@@ -135,20 +135,20 @@  discard block
 block discarded – undo
135 135
         //These are taken in the same fashion as the hard-coded array above
136 136
         $module = 'Opportunities';
137 137
         $action = 'index';
138
-        $query  ='true';
139
-        $searchFormTab ='advanced_search';
138
+        $query  = 'true';
139
+        $searchFormTab = 'advanced_search';
140 140
 
141 141
         $chartWidth     = 900;
142 142
         $chartHeight    = 500;
143 143
 
144
-        $autoRefresh = $this->processAutoRefresh();//$autoRefresh
144
+        $autoRefresh = $this->processAutoRefresh(); //$autoRefresh
145 145
 
146 146
         $colours = "['#a6cee3','#1f78b4','#b2df8a','#33a02c','#fb9a99','#e31a1c','#fdbf6f','#ff7f00','#cab2d6','#6a3d9a','#ffff99','#b15928']";
147 147
         //<canvas id='$canvasId' width='$chartWidth' height='$chartHeight'>[No canvas support]</canvas>
148 148
         //<canvas id='test123'  width='$chartWidth' height='$chartHeight'>[No canvas support]</canvas>
149 149
 
150 150
         //There is always an ending anchor value, hence this check is that the data array is less than 2
151
-        if(!is_array($chartReadyData['data'])||count($chartReadyData['data']) < 2)
151
+        if (!is_array($chartReadyData['data']) || count($chartReadyData['data']) < 2)
152 152
         {
153 153
             return "<h3 class='noGraphDataPoints'>$this->noDataMessage</h3>";
154 154
         }
@@ -272,13 +272,13 @@  discard block
 block discarded – undo
272 272
         }
273 273
 
274 274
         $result = $db->query($query);
275
-        while($row = $db->fetchByAssoc($result, false))
275
+        while ($row = $db->fetchByAssoc($result, false))
276 276
             $temp_data[] = $row;
277 277
 
278 278
         // reorder and set the array based on the order of selected_datax
279
-        foreach($selected_datax as $sales_stage){
280
-            foreach($temp_data as $key => $value){
281
-                if ($value['sales_stage'] == $sales_stage){
279
+        foreach ($selected_datax as $sales_stage) {
280
+            foreach ($temp_data as $key => $value) {
281
+                if ($value['sales_stage'] == $sales_stage) {
282 282
                     $value['sales_stage'] = $app_list_strings['sales_stage_dom'][$value['sales_stage']];
283 283
                     $value['key'] = $sales_stage;
284 284
                     $value['value'] = $value['sales_stage'];
@@ -318,40 +318,40 @@  discard block
 block discarded – undo
318 318
                         count(*) AS opp_count,
319 319
                         sum(amount_usdollar/1000) AS total
320 320
                     FROM users,opportunities  ";
321
-        $query .= " WHERE opportunities.date_closed >= ". db_convert("'".$this->pbss_date_start."'",'date').
322
-            " AND opportunities.date_closed <= ".db_convert("'".$this->pbss_date_end."'",'date') .
321
+        $query .= " WHERE opportunities.date_closed >= ".db_convert("'".$this->pbss_date_start."'", 'date').
322
+            " AND opportunities.date_closed <= ".db_convert("'".$this->pbss_date_end."'", 'date').
323 323
             " AND opportunities.assigned_user_id = users.id  AND opportunities.deleted=0 ";
324 324
         $query .= " GROUP BY opportunities.sales_stage";
325 325
 
326 326
         return $query;
327 327
     }
328 328
 
329
-    protected function prepareChartData($data,$currency_symbol, $thousands_symbol)
329
+    protected function prepareChartData($data, $currency_symbol, $thousands_symbol)
330 330
     {
331 331
         //return $data;
332
-        $chart['labels']=array();
333
-        $chart['data']=array();
332
+        $chart['labels'] = array();
333
+        $chart['data'] = array();
334 334
         $total = 0;
335
-        foreach($data as $i)
335
+        foreach ($data as $i)
336 336
         {
337 337
             //$chart['labelsAndValues'][]=$i['key'].' ('.$currency.(int)$i['total'].')';
338
-            $chart['labelsAndValues'][]=$this->resizeLabel($i['value']).' ('.$currency_symbol.(int)$i['total'].$thousands_symbol.')';
339
-            $chart['labels'][]=$i['value'];
340
-            $chart['data'][]=(int)$i['total'];
341
-            $total+=(int)$i['total'];
338
+            $chart['labelsAndValues'][] = $this->resizeLabel($i['value']).' ('.$currency_symbol.(int)$i['total'].$thousands_symbol.')';
339
+            $chart['labels'][] = $i['value'];
340
+            $chart['data'][] = (int)$i['total'];
341
+            $total += (int)$i['total'];
342 342
         }
343 343
         //The funnel needs n+1 elements (to bind the shape to as per http://www.rgraph.net/demos/funnel-interactive-key.html)
344 344
         //$chart['data'][]=1;
345
-        $chart['total']=$total;
345
+        $chart['total'] = $total;
346 346
         return $chart;
347 347
     }
348 348
 
349 349
     protected function resizeLabel($label)
350 350
     {
351
-        if(strlen($label) < $this->maxLabelSizeBeforeTotal)
351
+        if (strlen($label) < $this->maxLabelSizeBeforeTotal)
352 352
             return $label;
353 353
         else
354
-            return substr($label,0,$this->maxLabelSizeBeforeTotal).$this->labelReplacementString;
354
+            return substr($label, 0, $this->maxLabelSizeBeforeTotal).$this->labelReplacementString;
355 355
 
356 356
     }
357 357
 
Please login to merge, or discard this patch.