{$mod_strings['LBL_HELP']}

SugarCRM

{$mod_strings['LBL_CONFIRM_TITLE']}
SugarCRM
EOQ; $out .=<< EOQ; if($yesNoDropCreate){ $out .=<< EOQ; } if(isset($_SESSION['install_type']) && !empty($_SESSION['install_type']) && $_SESSION['install_type']=='custom'){ $out .=<< EOQ; } $out .=<< EOQ; $envString = ' '; // PHP VERSION $envString .=' '; //Begin List of already known good variables. These were checked during the initial sys check // XML Parsing $envString .=' '; // mbstrings $envString .=' '; // config.php $envString .=' '; // custom dir $envString .=' '; // modules dir $envString .=' '; // upload dir $envString .=' '; // data dir $envString .=' '; // cache dir $error_found = true; $envString .=' '; // End already known to be good // memory limit $memory_msg = ""; // CL - fix for 9183 (if memory_limit is enabled we will honor it and check it; otherwise use unlimited) $memory_limit = ini_get('memory_limit'); if(empty($memory_limit)){ $memory_limit = "-1"; } if(!defined('SUGARCRM_MIN_MEM')) { define('SUGARCRM_MIN_MEM', 40*1024*1024); } $sugarMinMem = constant('SUGARCRM_MIN_MEM'); // logic based on: http://us2.php.net/manual/en/ini.core.php#ini.memory-limit if( $memory_limit == "" ){ // memory_limit disabled at compile time, no memory limit $memory_msg = "{$mod_strings['LBL_CHECKSYS_MEM_OK']}"; } elseif( $memory_limit == "-1" ){ // memory_limit enabled, but set to unlimited $memory_msg = "{$mod_strings['LBL_CHECKSYS_MEM_UNLIMITED']}"; } else { $mem_display = $memory_limit; preg_match('/^\s*([0-9.]+)\s*([KMGTPE])B?\s*$/i', $memory_limit, $matches); $num = (float)$matches[1]; // Don't break so that it falls through to the next case. switch (strtoupper($matches[2])) { case 'G': $num = $num * 1024; case 'M': $num = $num * 1024; case 'K': $num = $num * 1024; } $memory_limit_int = intval($num); $SUGARCRM_MIN_MEM = (int) constant('SUGARCRM_MIN_MEM'); if( $memory_limit_int < constant('SUGARCRM_MIN_MEM') ){ // Bug59667: The string ERR_CHECKSYS_MEM_LIMIT_2 already has 'M' in it, // so we divide the constant by 1024*1024. $min_mem_in_megs = constant('SUGARCRM_MIN_MEM')/(1024*1024); $memory_msg = "$memory_limit{$mod_strings['ERR_CHECKSYS_MEM_LIMIT_1']}" . $min_mem_in_megs . "{$mod_strings['ERR_CHECKSYS_MEM_LIMIT_2']}"; $memory_msg = str_replace('$memory_limit', $mem_display, $memory_msg); } else { $memory_msg = "{$mod_strings['LBL_CHECKSYS_OK']} ({$memory_limit})"; } } $envString .=' '; // zlib if(function_exists('gzclose')) { $zlibStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } else { $zlibStatus = "{$mod_strings['ERR_CHECKSYS_ZLIB']}"; } $envString .=' '; // zip if(class_exists("ZipArchive")) { $zipStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } else { $zipStatus = "{$mod_strings['ERR_CHECKSYS_ZIP']}"; } $envString .=' '; // PCRE if(defined('PCRE_VERSION')) { if (version_compare(PCRE_VERSION, '7.0') < 0) { $pcreStatus = "{$mod_strings['ERR_CHECKSYS_PCRE_VER']}"; } else { $pcreStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } } else { $pcreStatus = "{$mod_strings['ERR_CHECKSYS_PCRE']}"; } $envString .=' '; // imap if(function_exists('imap_open')) { $imapStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } else { $imapStatus = "{$mod_strings['ERR_CHECKSYS_IMAP']}"; } $envString .=' '; // cURL if(function_exists('curl_init')) { $curlStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } else { $curlStatus = "{$mod_strings['ERR_CHECKSYS_CURL']}"; } $envString .=' '; //CHECK UPLOAD FILE SIZE $upload_max_filesize = ini_get('upload_max_filesize'); $upload_max_filesize_bytes = return_bytes($upload_max_filesize); if(!defined('SUGARCRM_MIN_UPLOAD_MAX_FILESIZE_BYTES')){ define('SUGARCRM_MIN_UPLOAD_MAX_FILESIZE_BYTES', 6 * 1024 * 1024); } if($upload_max_filesize_bytes > constant('SUGARCRM_MIN_UPLOAD_MAX_FILESIZE_BYTES')) { $fileMaxStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } else { $fileMaxStatus = "{$mod_strings['ERR_UPLOAD_MAX_FILESIZE']}"; } $envString .=' '; //CHECK Sprite support if(function_exists('imagecreatetruecolor')) { $spriteSupportStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; }else{ $spriteSupportStatus = "{$mod_strings['ERROR_SPRITE_SUPPORT']}"; } $envString .=' '; // Suhosin allow to use upload:// if (UploadStream::getSuhosinStatus() == true || (strpos(ini_get('suhosin.perdir'), 'e') !== false && strpos($_SERVER["SERVER_SOFTWARE"],'Microsoft-IIS') === false)) { $suhosinStatus = "{$mod_strings['LBL_CHECKSYS_OK']}"; } else { $suhosinStatus = "{$app_strings['ERR_SUHOSIN']}"; } $envString .= ' '; // PHP.ini $phpIniLocation = get_cfg_var("cfg_file_path"); $envString .=' '; $out .= $envString; $out .=<<
{$mod_strings['LBL_DBCONF_TITLE']}
{$mod_strings['LBL_CONFIRM_DB_TYPE']}{$_SESSION['setup_db_type']}
{$mod_strings['LBL_DBCONF_HOST_NAME']}{$_SESSION['setup_db_host_name']}
{$mod_strings['LBL_DBCONF_DB_NAME']} {$_SESSION['setup_db_database_name']} {$dbCreate}
{$mod_strings['LBL_DBCONF_DB_ADMIN_USER']} {$_SESSION['setup_db_admin_user_name']}
{$mod_strings['LBL_DBCONF_DEMO_DATA']} {$demoData}
{$mod_strings['LBL_DBCONF_DB_DROP']} {$yesNoDropCreate}
{$mod_strings['LBL_SITECFG_TITLE']}
{$mod_strings['LBL_SITECFG_URL']} {$_SESSION['setup_site_url']}
{$mod_strings['LBL_SITECFG_SUGAR_UPDATES']}
{$mod_strings['LBL_SITECFG_SUGAR_UP']} {$yesNoSugarUpdates}
{$mod_strings['LBL_SITECFG_SITE_SECURITY']}
{$mod_strings['LBL_SITECFG_CUSTOM_SESSION']}? {$yesNoCustomSession}
{$mod_strings['LBL_SITECFG_CUSTOM_LOG']}? {$yesNoCustomLog}
{$mod_strings['LBL_SITECFG_CUSTOM_ID']}? {$yesNoCustomId}
{$mod_strings['LBL_SYSTEM_CREDS']}
{$mod_strings['LBL_DBCONF_DB_USER']} {$_SESSION['setup_db_sugarsales_user']}
{$mod_strings['LBL_DBCONF_DB_PASSWORD']} {$mod_strings['LBL_HIDDEN']}
{$mod_strings['LBL_SITECFG_ADMIN_Name']} Admin
{$mod_strings['LBL_SITECFG_ADMIN_PASS']} {$mod_strings['LBL_HIDDEN']}
'.$mod_strings['LBL_SYSTEM_ENV'].'
'.$mod_strings['LBL_CHECKSYS_PHPVER'].' '.constant('PHP_VERSION').'
'.$mod_strings['LBL_CHECKSYS_XML'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_MBSTRING'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_CONFIG'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_CUSTOM'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_MODULE'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_UPLOAD'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_DATA'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_CACHE'].' '.$mod_strings['LBL_CHECKSYS_OK'].'
'.$mod_strings['LBL_CHECKSYS_MEM'].' '.$memory_msg.'
'.$mod_strings['LBL_CHECKSYS_ZLIB'].' '.$zlibStatus.'
'.$mod_strings['LBL_CHECKSYS_ZIP'].' '.$zipStatus.'
'.$mod_strings['LBL_CHECKSYS_PCRE'].' '.$pcreStatus.'
'.$mod_strings['LBL_CHECKSYS_IMAP'].' '.$imapStatus.'
'.$mod_strings['LBL_CHECKSYS_CURL'].' '.$curlStatus.'
'.$mod_strings['LBL_UPLOAD_MAX_FILESIZE_TITLE'].' '.$fileMaxStatus.'
'.$mod_strings['LBL_SPRITE_SUPPORT'].' '.$spriteSupportStatus.'
PHP allows to use stream (' . UploadStream::STREAM_NAME . '://) ' . $suhosinStatus . '
'.$mod_strings['LBL_CHECKSYS_PHP_INI'].' '.$phpIniLocation.'
EOQ; // CRON Settings if ( !isset($sugar_config['default_language']) ) $sugar_config['default_language'] = $_SESSION['default_language']; if ( !isset($sugar_config['cache_dir']) ) $sugar_config['cache_dir'] = $sugar_config_defaults['cache_dir']; if ( !isset($sugar_config['site_url']) ) $sugar_config['site_url'] = $_SESSION['setup_site_url']; if ( !isset($sugar_config['translation_string_prefix']) ) $sugar_config['translation_string_prefix'] = $sugar_config_defaults['translation_string_prefix']; $mod_strings_scheduler = return_module_language($GLOBALS['current_language'], 'Schedulers'); $error = ''; if (!isset($_SERVER['Path'])) { $_SERVER['Path'] = getenv('Path'); } if(is_windows()) { if(isset($_SERVER['Path']) && !empty($_SERVER['Path'])) { // IIS IUSR_xxx may not have access to Path or it is not set if(!strpos($_SERVER['Path'], 'php')) { // $error = ''.$mod_strings_scheduler['LBL_NO_PHP_CLI'].''; } } $cronString = ' '; } else { if(isset($_SERVER['Path']) && !empty($_SERVER['Path'])) { // some Linux servers do not make this available if(!strpos($_SERVER['PATH'], 'php')) { // $error = ''.$mod_strings_scheduler['LBL_NO_PHP_CLI'].''; } } $cronString = ' '; } $out .= $cronString; $out .=<<
 
'.$mod_strings_scheduler['LBL_CRON_WINDOWS_DESC'].'
cd '.realpath('./').'
php.exe -f cron.php
'.$error.'
'.$mod_strings_scheduler['LBL_CRON_INSTRUCTIONS_LINUX'].' '.$mod_strings_scheduler['LBL_CRON_LINUX_DESC'].'
*    *    *    *    *     cd '.realpath('./').'; php -f cron.php > /dev/null 2>&1
'.$error.'
 


EOQ; echo $out;