iTx Technologies offre gratuitement
cet espace pour SugarCRM !

title

Body

[fermer]

/install/ -> installHelp.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  class HelpItem {
  40     var $associated_field = '';
  41     var $title = '';
  42     var $text = '';
  43  }
  44  
  45  function &help_menu_html() {
  46     $str =<<<HEREDOC_END
  47          <div>SugarCRM Install Help</div>
  48          <ul>
  49          <li><a href="$_SERVER[PHP_SELF]?step=1">Step 1: Prerequisite checks</a></li>
  50          <li><a href="$_SERVER[PHP_SELF]?step=2">Step 2: Database configuration</a></li>
  51          <li><a href="$_SERVER[PHP_SELF]?step=3">Step 3: Site configuration</a></li>
  52          <li><a href="$_SERVER[PHP_SELF]?step=4">Step 4: Saving config file and setting up the database</a></li>
  53          <li><a href="$_SERVER[PHP_SELF]?step=5">Step 5: Registration</a></li>
  54          </ul>
  55  HEREDOC_END;
  56     return $str;
  57  }
  58  
  59  function &format_help_items(&$help_items)
  60  {
  61     $str = '<table>';
  62  
  63     foreach($help_items as $help_item)
  64     {
  65        $str .= <<< HEREDOC_END
  66  <tr><td><b>$help_item->title</b></td></tr>
  67  <tr><td>$help_item->text</td></tr>
  68  HEREDOC_END;
  69     }
  70  
  71     $str .= '</table>';
  72  
  73     return $str;
  74  }
  75  
  76  function &help_step_1_html()
  77  {
  78     $help_items = array();
  79  
  80     $help_item = new HelpItem();
  81     $help_item->title = 'PHP Version';
  82     $help_item->text = <<< HEREDOC_END
  83  The version of PHP installed must be 4.3.x or 5.x.
  84  HEREDOC_END;
  85  
  86     $help_items[] = $help_item;
  87  
  88     $help_item = new HelpItem();
  89     $help_item->title = 'MySQL Database';
  90     $help_item->text = <<< HEREDOC_END
  91  Checking that the MySQL API is accessible.
  92  HEREDOC_END;
  93  
  94     $help_items[] = $help_item;
  95  
  96     $help_item = new HelpItem();
  97     $help_item->title = 'SugarCRM Configuration File';
  98     $help_item->text = <<< HEREDOC_END
  99  The configuration file (config.php) must be writable.
 100  HEREDOC_END;
 101  
 102     $help_items[] = $help_item;
 103  
 104     $help_item = new HelpItem();
 105     $help_item->title = 'Cache Sub-Directories';
 106     $help_item->text = <<< HEREDOC_END
 107  All the sub-directories beneath the cache directory (cache) must be
 108  writable.
 109  HEREDOC_END;
 110  
 111     $help_items[] = $help_item;
 112  
 113     $help_item = new HelpItem();
 114     $help_item->title = 'Session Save Path';
 115     $help_item->text = <<< HEREDOC_END
 116  The session save path specified in the PHP initialization file (php.ini)
 117  as session_save_path must exist and be writable.
 118  HEREDOC_END;
 119  
 120     $help_items[] = $help_item;
 121  
 122     $str =format_help_items($help_items);
 123     return $str;
 124  }
 125  
 126  function &help_step_2_html()
 127  {
 128     $help_items = array();
 129  
 130     $help_item = new HelpItem();
 131     $help_item->title = 'Host Name';
 132     $help_item->text = <<< HEREDOC_END
 133  TODO
 134  HEREDOC_END;
 135  
 136     $help_items[] = $help_item;
 137  
 138     $help_item = new HelpItem();
 139     $help_item->title = 'Database Name';
 140     $help_item->text = <<< HEREDOC_END
 141  TODO
 142  HEREDOC_END;
 143  
 144     $help_items[] = $help_item;
 145  
 146     $help_item = new HelpItem();
 147     $help_item->title = 'Create Database';
 148     $help_item->text = <<< HEREDOC_END
 149  TODO
 150  HEREDOC_END;
 151  
 152     $help_items[] = $help_item;
 153  
 154     $help_item = new HelpItem();
 155     $help_item->title = 'User Name for SugarCRM';
 156     $help_item->text = <<< HEREDOC_END
 157  TODO
 158  HEREDOC_END;
 159  
 160     $help_items[] = $help_item;
 161  
 162     $help_item = new HelpItem();
 163     $help_item->title = 'Create User';
 164     $help_item->text = <<< HEREDOC_END
 165  TODO
 166  HEREDOC_END;
 167  
 168     $help_items[] = $help_item;
 169  
 170     $help_item = new HelpItem();
 171     $help_item->title = 'Password for SugarCRM';
 172     $help_item->text = <<< HEREDOC_END
 173  TODO
 174  HEREDOC_END;
 175  
 176     $help_items[] = $help_item;
 177  
 178     $help_item = new HelpItem();
 179     $help_item->title = 'Re-Type Password for SugarCRM';
 180     $help_item->text = <<< HEREDOC_END
 181  TODO
 182  HEREDOC_END;
 183  
 184     $help_items[] = $help_item;
 185  
 186     $help_item = new HelpItem();
 187     $help_item->title = 'Drop and recreate existing SugarCRM tables?';
 188     $help_item->text = <<< HEREDOC_END
 189  TODO
 190  HEREDOC_END;
 191  
 192     $help_items[] = $help_item;
 193  
 194     $help_item = new HelpItem();
 195     $help_item->title = 'Populate database with demo data?';
 196     $help_item->text = <<< HEREDOC_END
 197  TODO
 198  HEREDOC_END;
 199  
 200     $help_items[] = $help_item;
 201  
 202     $help_item = new HelpItem();
 203     $help_item->title = 'Database Admin User Name';
 204     $help_item->text = <<< HEREDOC_END
 205  TODO
 206  HEREDOC_END;
 207  
 208     $help_items[] = $help_item;
 209  
 210     $help_item = new HelpItem();
 211     $help_item->title = 'Database Admin Password';
 212     $help_item->text = <<< HEREDOC_END
 213  TODO
 214  HEREDOC_END;
 215  
 216     $help_items[] = $help_item;
 217  
 218     $str =format_help_items($help_items);
 219     return $str;
 220  }
 221  
 222  function &help_step_3_html()
 223  {
 224     $help_items = array();
 225  
 226     $help_item = new HelpItem();
 227     $help_item->title = 'URL';
 228     $help_item->text = <<< HEREDOC_END
 229  TODO
 230  HEREDOC_END;
 231  
 232     $help_items[] = $help_item;
 233  
 234     $help_item = new HelpItem();
 235     $help_item->title = 'SugarCRM Admin Password';
 236     $help_item->text = <<< HEREDOC_END
 237  TODO
 238  HEREDOC_END;
 239  
 240     $help_items[] = $help_item;
 241  
 242     $help_item = new HelpItem();
 243     $help_item->title = 'Re-type SugarCRM Admin Password';
 244     $help_item->text = <<< HEREDOC_END
 245  TODO
 246  HEREDOC_END;
 247  
 248     $help_items[] = $help_item;
 249  
 250     $help_item = new HelpItem();
 251     $help_item->title = 'Allow SugarCRM to collect anonymous usage information?';
 252     $help_item->text = <<< HEREDOC_END
 253  TODO
 254  HEREDOC_END;
 255  
 256     $help_items[] = $help_item;
 257  
 258     $help_item = new HelpItem();
 259     $help_item->title = 'Use a Custom Session Directory for SugarCRM';
 260     $help_item->text = <<< HEREDOC_END
 261  TODO
 262  HEREDOC_END;
 263  
 264     $help_items[] = $help_item;
 265  
 266     $help_item = new HelpItem();
 267     $help_item->title = 'Path to Session Directory';
 268     $help_item->text = <<< HEREDOC_END
 269  TODO
 270  HEREDOC_END;
 271  
 272     $help_items[] = $help_item;
 273  
 274     $help_item = new HelpItem();
 275     $help_item->title = 'Provide Your Own Application ID';
 276     $help_item->text = <<< HEREDOC_END
 277  TODO
 278  HEREDOC_END;
 279  
 280     $help_items[] = $help_item;
 281  
 282     $help_item = new HelpItem();
 283     $help_item->title = 'Application ID';
 284     $help_item->text = <<< HEREDOC_END
 285  TODO
 286  HEREDOC_END;
 287  
 288     $help_items[] = $help_item;
 289  
 290     $str =format_help_items($help_items);
 291     return $str;
 292  }
 293  
 294  function &help_step_4_html()
 295  {
 296     $help_items = array();
 297  
 298     $help_item = new HelpItem();
 299     $help_item->title = 'Perform Install';
 300     $help_item->text = <<< HEREDOC_END
 301  TODO
 302  HEREDOC_END;
 303  
 304     $help_items[] = $help_item;
 305  
 306     $str =format_help_items($help_items);
 307     return $str;
 308  }
 309  
 310  function &help_step_5_html()
 311  {
 312     $help_items = array();
 313  
 314     $help_item = new HelpItem();
 315     $help_item->title = 'Registration';
 316     $help_item->text = <<< HEREDOC_END
 317  TODO
 318  HEREDOC_END;
 319  
 320     $help_items[] = $help_item;
 321  
 322     $str =format_help_items($help_items);
 323     return $str;
 324  }
 325  
 326  ?>
 327  
 328  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 329  <html>
 330  <head>
 331     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 332     <meta http-equiv="Content-Style-Type" content="text/css">
 333     <title>SugarCRM Install Help</title>
 334     <link rel="stylesheet" href="install/install.css" type="text/css" />
 335  </head>
 336  <body>
 337  <?php
 338  if(isset($_GET['step']))
 339  {
 340     switch($_GET['step'])
 341     {
 342        case 1:
 343           echo help_step_1_html();
 344        break;
 345        case 2:
 346           echo help_step_2_html();
 347        break;
 348        case 3:
 349           echo help_step_3_html();
 350        break;
 351        case 4:
 352           echo help_step_4_html();
 353        break;
 354        case 5:
 355           echo help_step_5_html();
 356        break;
 357        default:
 358           echo help_menu_html();
 359        break;
 360     }
 361  }
 362  else
 363  {
 364     echo help_menu_html();
 365  }
 366  ?>
 367  
 368  <form>
 369     <input type="button" value="Close" onclick="javascript:window.close();" />
 370  </form>
 371  </body>
 372  </html>


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