iTx Technologies offre gratuitement
cet espace pour SugarCRM !

title

Body

[fermer]

/install/ -> installType.php (source)

   1  <?php
   2  if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
   3  /*********************************************************************************
   4   * SugarCRM is a customer relationship management program developed by
   5   * SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
   6   * 
   7   * This program is free software; you can redistribute it and/or modify it under
   8   * the terms of the GNU General Public License version 3 as published by the
   9   * Free Software Foundation with the addition of the following permission added
  10   * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
  11   * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
  12   * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  13   * 
  14   * This program is distributed in the hope that it will be useful, but WITHOUT
  15   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16   * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  17   * details.
  18   * 
  19   * You should have received a copy of the GNU General Public License along with
  20   * this program; if not, see http://www.gnu.org/licenses or write to the Free
  21   * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  22   * 02110-1301 USA.
  23   * 
  24   * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
  25   * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
  26   * 
  27   * The interactive user interfaces in modified source and object code versions
  28   * of this program must display Appropriate Legal Notices, as required under
  29   * Section 5 of the GNU General Public License version 3.
  30   * 
  31   * In accordance with Section 7(b) of the GNU General Public License version 3,
  32   * these Appropriate Legal Notices must retain the display of the "Powered by
  33   * SugarCRM" logo. If the display of the logo is not reasonably feasible for
  34   * technical reasons, the Appropriate Legal Notices must display the words
  35   * "Powered by SugarCRM".
  36   ********************************************************************************/
  37  
  38  
  39  
  40  if( !isset( $install_script ) || !$install_script ){
  41      die($mod_strings['ERR_NO_DIRECT_SCRIPT']);
  42  }
  43  // $mod_strings come from calling page.
  44  
  45  $langDropDown = get_select_options_with_id($supportedLanguages, $current_language);
  46  
  47  
  48  
  49  if( !isset($_SESSION['licenseKey_submitted']) || !$_SESSION['licenseKey_submitted'] ) {
  50      $_SESSION['setup_license_key_users']        = 0;
  51      $_SESSION['setup_license_key_expire_date']  = "";
  52      $_SESSION['setup_license_key']              = "";
  53      $_SESSION['setup_num_lic_oc']              = 0;
  54  }
  55  
  56  //php 521 suggestion
  57  $php_521 = '';
  58  if(version_compare(phpversion(),'5.2.0') < 0 || version_compare(phpversion(),'5.3.0') >= 0){
  59      $php_521=$mod_strings['LBL_YOUR_PHP_VERSION'].phpversion().$mod_strings['LBL_RECOMMENDED_PHP_VERSION'];
  60  }
  61  
  62  ///////////////////////////////////////////////////////////////////////////////
  63  ////    START OUTPUT
  64  
  65  
  66  $out = <<<EOQ
  67  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  68  <html>
  69  <head>
  70     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  71     <meta http-equiv="Content-Style-Type" content="text/css">
  72     <title>{$mod_strings['LBL_WIZARD_TITLE']} {$mod_strings['LBL_INSTALL_TYPE_TITLE']}</title>
  73     <link REL="SHORTCUT ICON" HREF="$icon">
  74     <link rel="stylesheet" href="$css" type="text/css">
  75  </head>
  76  
  77  <body onload="javascript:document.getElementById('button_next').focus();">
  78      <form action="install.php" method="post" name="form" id="form">
  79    <table cellspacing="0" cellpadding="0" border="0" align="center" class="shell">
  80        <tr><td colspan="2" id="help"><a href="{$help_url}" target='_blank'>{$mod_strings['LBL_HELP']} </a></td></tr>
  81      <tr>
  82        <th width="500">
  83          <p><img src="$sugar_md" alt="SugarCRM" border="0"></p>
  84          {$mod_strings['LBL_INSTALL_TYPE_TITLE']}</th>
  85  
  86      <th width="200" height="30" style="text-align: right;"><a href="http://www.sugarcrm.com" target=
  87    "_blank"><IMG src="$loginImage" width="145" height="30" alt="SugarCRM" border="0"></a>
  88          </th>
  89      </tr>
  90  
  91      <tr><td colspan="2">
  92          <table width="100%" class="StyleDottedHr">
  93  EOQ;
  94  
  95  
  96  
  97  
  98  $typical_checked ='checked';
  99  $custom_checked ='';
 100  if(isset($_SESSION['install_type']) && $_SESSION['install_type']=='custom'){
 101      $typical_checked ='';
 102      $custom_checked ='checked';
 103  
 104  }else{
 105  //do nothing because defaults handle this condition
 106  }
 107  
 108  
 109  $out .= <<<EOQ2
 110  <tr><th colspan='2' align="left">{$mod_strings['LBL_INSTALL_TYPE_SUBTITLE']}</th></tr>
 111          <tr><td width='200'>
 112            <input name="install_type" type="radio" value="Typical" {$typical_checked}>{$mod_strings['LBL_INSTALL_TYPE_TYPICAL']}
 113          </td><td width='500'>
 114              {$mod_strings['LBL_INSTALL_TYPE_MSG2']}
 115          <td></tr>
 116          <tr><td width='200'>
 117            <input type="radio" name="install_type" value="custom" {$custom_checked}>{$mod_strings['LBL_INSTALL_TYPE_CUSTOM']}
 118          </td><td width='500'>
 119              {$mod_strings['LBL_INSTALL_TYPE_MSG3']}
 120          <td></tr>
 121          </table>
 122  
 123  
 124        </td>
 125      </tr>
 126      <tr><td width='1000'><b><i>{$php_521}</i></b></td></tr>
 127      <tr>
 128        <td align="right" colspan="2" height="20">
 129          <hr>
 130                  <input type="hidden" name="current_step" value="{$next_step}">
 131  
 132          <table cellspacing="0" cellpadding="0" border="0" class="stdTable">
 133            <tr>
 134  
 135              <td><input class="button" type="button" value="{$mod_strings['LBL_BACK']}" onclick="document.getElementById('form').submit();" />
 136                  <input type="hidden" name="goto" value="{$mod_strings['LBL_BACK']}" /></td>
 137                  <td><input class="button" type="submit" name="goto" value="{$mod_strings['LBL_NEXT']}" id="button_next" /></td>
 138            </tr>
 139          </table>
 140        </td>
 141      </tr>
 142    </table>
 143      </form>
 144  </body>
 145  </html>
 146  EOQ2;
 147  echo $out;
 148  ?>


Generé en: Thu Mar 4 09:44:50 2010 | Cross-referenced par PHPXref 0.7