]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/UpgradeWizard/start.php
Release 6.4.0
[Github/sugarcrm.git] / modules / UpgradeWizard / start.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero 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 Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero 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 Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero 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  * Description:
41  * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
42  * Reserved. Contributor(s): ______________________________________..
43  * *******************************************************************************/
44 logThis('-----------------------------------------------------------------------------');
45 logThis('Upgrade started. At start.php');
46
47 //set the upgrade progress status.
48 set_upgrade_progress('start','in_progress');
49
50 unlinkUWTempFiles();
51 resetUwSession();
52
53 if(isset($_REQUEST['showUpdateWizardMessage']) && $_REQUEST['showUpdateWizardMessage'] == true) {
54         // set a flag to skip the upload screen
55         $_SESSION['skip_zip_upload'] = true;
56
57         $newUWMsg =<<<eoq
58         <table cellspacing="0" cellpadding="3" border="0">
59                 <tr>
60                         <th>
61                                 {$mod_strings['LBL_UW_START_UPGRADED_UW_TITLE']}
62                         </th>
63                 </tr>
64                 <tr>
65                         <td>
66                                 {$mod_strings['LBL_UW_START_UPGRADED_UW_DESC']}
67                         </td>
68                 </tr>
69         </table>
70 eoq;
71         echo $newUWMsg;
72 }
73
74
75 $uwMain =<<<eoq
76 <table cellpadding="3" cellspacing="0" border="0">
77         <tr>
78                 <th align="left">
79                         {$mod_strings['LBL_UW_TITLE_START']}
80                 </th>
81         </tr>
82         <tr>
83                 <td align="left">
84                         <p>
85                     {$mod_strings['LBL_UW_START_DESC']}
86                         </p>
87                         <BR>
88                         <p>
89                         <span class="error">
90                         {$mod_strings['LBL_UW_START_DESC2']}
91                         </span>
92                         </p>
93                         <BR>
94                         <p>
95                         {$mod_strings['LBL_UW_START_DESC3']}
96                         </p>
97                         </td>
98         </tr>
99 </table>
100 <div id="upgradeDiv" style="display:none">
101     <table cellspacing="0" cellpadding="0" border="0">
102         <tr><td>
103            <p><!--not_in_theme!--><img src='modules/UpgradeWizard/processing.gif' alt='Processing'> <br></p>
104         </td></tr>
105      </table>
106  </div>
107 eoq;
108
109 $showBack               = false;
110 $showCancel             = true;
111 $showRecheck    = false;
112 $showNext               = true;
113
114 $stepBack               = 0;
115 $stepNext               = 1;
116 $stepCancel     = 0;
117 $stepRecheck    = 0;
118
119 ?>