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-2012 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
41 var $associated_field = '';
46 function &help_menu_html() {
48 <div>SugarCRM Install Help</div>
50 <li><a href="$_SERVER[PHP_SELF]?step=1">Step 1: Prerequisite checks</a></li>
51 <li><a href="$_SERVER[PHP_SELF]?step=2">Step 2: Database configuration</a></li>
52 <li><a href="$_SERVER[PHP_SELF]?step=3">Step 3: Site configuration</a></li>
53 <li><a href="$_SERVER[PHP_SELF]?step=4">Step 4: Saving config file and setting up the database</a></li>
54 <li><a href="$_SERVER[PHP_SELF]?step=5">Step 5: Registration</a></li>
60 function &format_help_items(&$help_items)
64 foreach($help_items as $help_item)
66 $str .= <<< HEREDOC_END
67 <tr><td><b>$help_item->title</b></td></tr>
68 <tr><td>$help_item->text</td></tr>
77 function &help_step_1_html()
79 $help_items = array();
81 $help_item = new HelpItem();
82 $help_item->title = 'PHP Version';
83 $help_item->text = <<< HEREDOC_END
84 The version of PHP installed must be 4.3.x or 5.x.
87 $help_items[] = $help_item;
89 $help_item = new HelpItem();
90 $help_item->title = 'MySQL Database';
91 $help_item->text = <<< HEREDOC_END
92 Checking that the MySQL API is accessible.
95 $help_items[] = $help_item;
97 $help_item = new HelpItem();
98 $help_item->title = 'SugarCRM Configuration File';
99 $help_item->text = <<< HEREDOC_END
100 The configuration file (config.php) must be writable.
103 $help_items[] = $help_item;
105 $help_item = new HelpItem();
106 $help_item->title = 'Cache Sub-Directories';
107 $help_item->text = <<< HEREDOC_END
108 All the sub-directories beneath the cache directory (cache) must be
112 $help_items[] = $help_item;
114 $help_item = new HelpItem();
115 $help_item->title = 'Session Save Path';
116 $help_item->text = <<< HEREDOC_END
117 The session save path specified in the PHP initialization file (php.ini)
118 as session_save_path must exist and be writable.
121 $help_items[] = $help_item;
123 $str =format_help_items($help_items);
127 function &help_step_2_html()
129 $help_items = array();
131 $help_item = new HelpItem();
132 $help_item->title = 'Host Name';
133 $help_item->text = <<< HEREDOC_END
137 $help_items[] = $help_item;
139 $help_item = new HelpItem();
140 $help_item->title = 'Database Name';
141 $help_item->text = <<< HEREDOC_END
145 $help_items[] = $help_item;
147 $help_item = new HelpItem();
148 $help_item->title = 'Create Database';
149 $help_item->text = <<< HEREDOC_END
153 $help_items[] = $help_item;
155 $help_item = new HelpItem();
156 $help_item->title = 'User Name for SugarCRM';
157 $help_item->text = <<< HEREDOC_END
161 $help_items[] = $help_item;
163 $help_item = new HelpItem();
164 $help_item->title = 'Create User';
165 $help_item->text = <<< HEREDOC_END
169 $help_items[] = $help_item;
171 $help_item = new HelpItem();
172 $help_item->title = 'Password for SugarCRM';
173 $help_item->text = <<< HEREDOC_END
177 $help_items[] = $help_item;
179 $help_item = new HelpItem();
180 $help_item->title = 'Re-Type Password for SugarCRM';
181 $help_item->text = <<< HEREDOC_END
185 $help_items[] = $help_item;
187 $help_item = new HelpItem();
188 $help_item->title = 'Drop and recreate existing SugarCRM tables?';
189 $help_item->text = <<< HEREDOC_END
193 $help_items[] = $help_item;
195 $help_item = new HelpItem();
196 $help_item->title = 'Populate database with demo data?';
197 $help_item->text = <<< HEREDOC_END
201 $help_items[] = $help_item;
203 $help_item = new HelpItem();
204 $help_item->title = 'Database Admin User Name';
205 $help_item->text = <<< HEREDOC_END
209 $help_items[] = $help_item;
211 $help_item = new HelpItem();
212 $help_item->title = 'Database Admin Password';
213 $help_item->text = <<< HEREDOC_END
217 $help_items[] = $help_item;
219 $str =format_help_items($help_items);
223 function &help_step_3_html()
225 $help_items = array();
227 $help_item = new HelpItem();
228 $help_item->title = 'URL';
229 $help_item->text = <<< HEREDOC_END
233 $help_items[] = $help_item;
235 $help_item = new HelpItem();
236 $help_item->title = 'SugarCRM Admin Password';
237 $help_item->text = <<< HEREDOC_END
241 $help_items[] = $help_item;
243 $help_item = new HelpItem();
244 $help_item->title = 'Re-type SugarCRM Admin Password';
245 $help_item->text = <<< HEREDOC_END
249 $help_items[] = $help_item;
251 $help_item = new HelpItem();
252 $help_item->title = 'Allow SugarCRM to collect anonymous usage information?';
253 $help_item->text = <<< HEREDOC_END
257 $help_items[] = $help_item;
259 $help_item = new HelpItem();
260 $help_item->title = 'Use a Custom Session Directory for SugarCRM';
261 $help_item->text = <<< HEREDOC_END
265 $help_items[] = $help_item;
267 $help_item = new HelpItem();
268 $help_item->title = 'Path to Session Directory';
269 $help_item->text = <<< HEREDOC_END
273 $help_items[] = $help_item;
275 $help_item = new HelpItem();
276 $help_item->title = 'Provide Your Own Application ID';
277 $help_item->text = <<< HEREDOC_END
281 $help_items[] = $help_item;
283 $help_item = new HelpItem();
284 $help_item->title = 'Application ID';
285 $help_item->text = <<< HEREDOC_END
289 $help_items[] = $help_item;
291 $str =format_help_items($help_items);
295 function &help_step_4_html()
297 $help_items = array();
299 $help_item = new HelpItem();
300 $help_item->title = 'Perform Install';
301 $help_item->text = <<< HEREDOC_END
305 $help_items[] = $help_item;
307 $str =format_help_items($help_items);
311 function &help_step_5_html()
313 $help_items = array();
315 $help_item = new HelpItem();
316 $help_item->title = 'Registration';
317 $help_item->text = <<< HEREDOC_END
321 $help_items[] = $help_item;
323 $str =format_help_items($help_items);
329 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
330 <html <?php get_language_header(); ?>>
332 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
333 <meta http-equiv="Content-Style-Type" content="text/css">
334 <title>SugarCRM Install Help</title>
335 <link rel="stylesheet" href="install/install.css" type="text/css" />
339 if(isset($_GET['step']))
341 switch($_GET['step'])
344 echo help_step_1_html();
347 echo help_step_2_html();
350 echo help_step_3_html();
353 echo help_step_4_html();
356 echo help_step_5_html();
359 echo help_menu_html();
365 echo help_menu_html();
370 <input type="button" value="Close" onclick="javascript:window.close();" />