* of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by * SugarCRM" logo. If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by SugarCRM". ********************************************************************************/ /********************************************************************************* * Description: printable license page. ********************************************************************************/ clean_incoming_data(); require_once "install/language/{$_GET['language']}.lang.php"; require_once "install/install_utils.php"; $license_file = wordwrap(getLicenseContents("LICENSE.txt"), 100); $out = <<<EOQ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>{$mod_strings['LBL_LICENSE_TITLE_2']}</title> <link REL="SHORTCUT ICON" HREF="include/images/sugar_icon.ico"> <link rel="stylesheet" href="install/install.css" type="text/css"> </head> <body> <table cellspacing="0" cellpadding="0" border="0" align="center" class="shell" width="90%"> <tr>
* these Appropriate Legal Notices must retain the display of the "Powered by * SugarCRM" logo. If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by SugarCRM". ********************************************************************************/ global $sugar_version, $js_custom_version; if (!isset($install_script) || !$install_script) { die('Unable to process script directly.'); } // setup session variables (and their defaults) if this page has not yet been submitted if (!isset($_SESSION['license_submitted']) || !$_SESSION['license_submitted']) { $_SESSION['setup_license_accept'] = false; } $checked = isset($_SESSION['setup_license_accept']) && !empty($_SESSION['setup_license_accept']) ? 'checked="on"' : ''; require_once "install/install_utils.php"; $license_file = getLicenseContents("LICENSE.txt"); $langHeader = get_language_header(); $out = <<<EOQ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html {$langHeader}> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>{$mod_strings['LBL_WIZARD_TITLE']} {$mod_strings['LBL_LICENSE_ACCEPTANCE']}</title> <link REL="SHORTCUT ICON" HREF="include/images/sugar_icon.ico"> <link rel="stylesheet" href="install/install.css" type="text/css"> <script src="cache/include/javascript/sugar_grp1_yui.js?s={$sugar_version}&c={$js_custom_version}"></script> <script type="text/javascript"> <!-- if ( YAHOO.env.ua ) UA = YAHOO.env.ua;
} else { $extra_error = '<b>' . $GLOBALS['mod_strings']['LBL_SNIP_ERROR_DISABLING'] . '</b>: ' . $message . '. <br>' . $GLOBALS['mod_strings']['LBL_CONTACT_SUPPORT']; } } } } } $status = $snip->getStatus(); $message = $status['message']; $status = $status['status']; if ($status == 'pingfailed') { $status = 'notpurchased'; $extra_error = $GLOBALS['mod_strings']['LBL_SNIP_STATUS_PINGBACK_FAIL_SUMMARY']; } if ($message == '' && $status != 'notpurchased') { if (isset($GLOBALS['mod_strings']['LBL_SNIP_GENERIC_ERROR'])) { $message = $GLOBALS['mod_strings']['LBL_SNIP_GENERIC_ERROR']; } } if ($status == 'purchased_error') { $sugar_smarty->assign('SNIP_ERROR_MESSAGE', $message); } require_once "install/install_utils.php"; $sugar_smarty->assign('TITLE', $title); $sugar_smarty->assign('SNIP_STATUS', $status); $sugar_smarty->assign('EXTRA_ERROR', $extra_error); $sugar_smarty->assign('SNIP_EMAIL', $snip->getSnipEmail()); $sugar_smarty->assign('SNIP_URL', $snip->getSnipURL()); $sugar_smarty->assign('SUGAR_URL', $snip->getURL()); $sugar_smarty->assign('LICENSE', nl2br(trim(getLicenseContents("LICENSE")))); echo $sugar_smarty->fetch('modules/SNIP/ConfigureSnip.tpl');