[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/install/ -> 4createConfigFile.php (source)

   1  <?php
   2  
   3  /*********************************************************************************
   4  
   5   * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
   6  
   7   * ("License"); You may not use this file except in compliance with the
   8  
   9   * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
  10  
  11   * Software distributed under the License is distributed on an  "AS IS"  basis,
  12  
  13   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  14  
  15   * the specific language governing rights and limitations under the License.
  16  
  17   * The Original Code is:  SugarCRM Open Source
  18  
  19   * The Initial Developer of the Original Code is SugarCRM, Inc.
  20  
  21   * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
  22  
  23   * All Rights Reserved.
  24  
  25   * Contributor(s): ______________________________________.
  26  
  27   ********************************************************************************/
  28  
  29  /*********************************************************************************
  30  
  31   * $Header: /advent/projects/wesat/vtiger_crm/sugarcrm/install/4createConfigFile.php,v 1.26 2005/04/25 05:40:50 samk Exp $
  32  
  33   * Description:  Executes a step in the installation process.
  34  
  35   ********************************************************************************/
  36  
  37  
  38  
  39  include ('vtigerversion.php');
  40  
  41  
  42  session_start();
  43  
  44  
  45  
  46  // vtiger CRM version number; do not edit!
  47  
  48  $vtiger_version = "5.0.2";
  49  $release_date = "31 October 2006";
  50  
  51  
  52  if (isset($_REQUEST['db_hostname']))
  53  {
  54      if(strpos($_REQUEST['db_hostname'], ":"))
  55      {
  56          list($db_hostname,$db_port) = split(":",$_REQUEST['db_hostname']);
  57      }    
  58      else
  59      {
  60          $db_hostname = $_REQUEST['db_hostname'];
  61          if($db_type == "pgsql")
  62               $db_port = '5432';
  63          else
  64               $db_port = '3306';
  65      }    
  66  }
  67  if (isset($_REQUEST['db_username']))$db_username = $_REQUEST['db_username'];
  68  
  69  if (isset($_REQUEST['db_password']))$db_password = $_REQUEST['db_password'];
  70  
  71  if (isset($_REQUEST['db_name']))$db_name = $_REQUEST['db_name'];
  72  
  73  if (isset($_REQUEST['db_type'])) $db_type = $_REQUEST['db_type'];
  74  
  75  if (isset($_REQUEST['db_drop_tables'])) $db_drop_tables = $_REQUEST['db_drop_tables'];
  76  
  77  if (isset($_REQUEST['db_create'])) $db_create = $_REQUEST['db_create'];
  78  
  79  if (isset($_REQUEST['db_populate'])) $db_populate = $_REQUEST['db_populate'];
  80  
  81  if (isset($_REQUEST['site_URL'])) $site_URL = $_REQUEST['site_URL'];
  82   
  83  if (isset($_REQUEST['admin_email'])) $admin_email = $_REQUEST['admin_email'];
  84  
  85  if (isset($_REQUEST['admin_password'])) $admin_password = $_REQUEST['admin_password'];
  86  
  87  if (isset($_REQUEST['currency_name'])) $currency_name = $_REQUEST['currency_name'];
  88  
  89  if (isset($_REQUEST['currency_code'])) $currency_code = $_REQUEST['currency_code'];
  90  
  91  if (isset($_REQUEST['currency_symbol'])) $currency_symbol = $_REQUEST['currency_symbol'];
  92  
  93  if (isset($_REQUEST['mail_server'])) $mail_server = $_REQUEST['mail_server'];
  94  
  95  if (isset($_REQUEST['mail_server_username'])) $mail_server_username = $_REQUEST['mail_server_username'];
  96  
  97  if (isset($_REQUEST['mail_server_password'])) $mail_server_password = $_REQUEST['mail_server_password'];
  98  
  99  if (isset($_REQUEST['ftpserver'])) $ftpserver = $_REQUEST['ftpserver'];
 100  
 101  if (isset($_REQUEST['ftpuser'])) $ftpuser = $_REQUEST['ftpuser'];
 102  
 103  if (isset($_REQUEST['ftppassword'])) $ftppassword = $_REQUEST['ftppassword'];
 104  
 105  // update default port
 106  if ($db_port == '')
 107  {
 108      if($db_type == 'mysql')
 109      {
 110          $db_port = "3306";
 111      }
 112      elseif($db_type = 'pgsql')
 113      {
 114          $db_port = "5432";
 115      }
 116      elseif($db_type = 'oci8')
 117      {
 118          $db_port = '1521';
 119      }
 120  }
 121  
 122  $cache_dir = 'cache/';
 123  
 124  
 125  ?>
 126      
 127  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 128  <html>
 129  <head>
 130      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 131      <title>vtiger CRM 5 - Configuration Wizard - Config File Creation</title>
 132      <link href="include/install/install.css" rel="stylesheet" type="text/css">
 133  </head>
 134  
 135  <body class="small cwPageBg" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
 136  
 137  <br><br>
 138      <!-- Table for cfgwiz starts -->
 139  
 140      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 141      <tr>
 142          <td class="cwHeadBg" align=left><img src="include/install/images/configwizard.gif" alt="Configuration Wizard" hspace="20" title="Configuration Wizard"></td>
 143          <td class="cwHeadBg" align=right><img src="include/install/images/vtigercrm5.gif" alt="vtiger CRM 5" title="vtiger CRM 5"></td>
 144      </tr>
 145      </table>
 146      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 147      <tr>
 148          <td background="include/install/images/topInnerShadow.gif" align=left><img src="include/install/images/topInnerShadow.gif" ></td>
 149  
 150      </tr>
 151      </table>
 152      <table border=0 cellspacing=0 cellpadding=10 width=80% align=center>
 153      <tr>
 154          <td class="small" bgcolor="#4572BE" align=center>
 155              <!-- Master display -->
 156              <table border=0 cellspacing=0 cellpadding=0 width=97%>
 157              <tr>
 158                  <td width=20% valign=top>
 159  
 160                  <!-- Left side tabs -->
 161                      <table border=0 cellspacing=0 cellpadding=10 width=100%>
 162                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Welcome</div></td></tr>
 163                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Installation Check</div></td></tr>
 164                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">System Configuration</div></td></tr>
 165                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Confirm Settings</div></td></tr>
 166                      <tr><td class="small cwSelectedTab" id="configfile_tab" align=right><div align="left"><b>Config File Creation</b></div></td></tr>
 167                      <tr><td class="small cwUnSelectedTab" id="dbcreate_tab" align=right><div align="left">Database Generation</div></td></tr>
 168                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Finish</div></td></tr>
 169                      </table>
 170                      
 171                  </td>
 172                  <td width=80% valign=top class="cwContentDisplay" align=left>
 173                  <table border=0 cellspacing=0 cellpadding=10 width=100%>
 174                  <tr><td class=small align=left><img id="title_img" src="include/install/images/confWizConfFile.gif" alt="Config File Creation" title="Config File Creation"><img id="title_img1" src="include/install/images/confWizDbGeneration.gif" style="display:none;" alt="Database Generation" title="Database Generation"><br>
 175                        <hr noshade size=1></td></tr>
 176                  <tr>
 177                      <td align=left class="small" style="padding-left:20px">
 178                      <?php
 179                      if (isset($_REQUEST['root_directory']))
 180                          $root_directory = $_REQUEST['root_directory'];
 181          
 182                      if (is_file('config.inc.php'))
 183                              $is_writable = is_writable('config.inc.php');
 184                      else
 185                                $is_writable = is_writable('.');
 186  
 187                            /* open template configuration file read only */
 188                            $templateFilename = 'config.template.php';
 189                            $templateHandle = fopen($templateFilename, "r");
 190                            if($templateHandle) {
 191                                /* open include configuration file write only */
 192                                $includeFilename = 'config.inc.php';
 193                                $includeHandle = fopen($includeFilename, "w");
 194                                if($includeHandle) {
 195                                   while (!feof($templateHandle)) {
 196                                    $buffer = fgets($templateHandle);
 197  
 198                                   /* replace _DBC_ variable */
 199                                    $buffer = str_replace( "_DBC_SERVER_", $db_hostname, $buffer);
 200                                    $buffer = str_replace( "_DBC_PORT_", $db_port, $buffer);
 201                                    $buffer = str_replace( "_DBC_USER_", $db_username, $buffer);
 202                                    $buffer = str_replace( "_DBC_PASS_", $db_password, $buffer);
 203                                    $buffer = str_replace( "_DBC_NAME_", $db_name, $buffer);
 204                                    $buffer = str_replace( "_DBC_TYPE_", $db_type, $buffer);
 205  
 206                                    $buffer = str_replace( "_SITE_URL_", $site_URL, $buffer);
 207  
 208                                    /* replace dir variable */
 209                                    $buffer = str_replace( "_VT_ROOTDIR_", $root_directory, $buffer);
 210                                    $buffer = str_replace( "_VT_CACHEDIR_", $cache_dir, $buffer);
 211                                    $buffer = str_replace( "_VT_TMPDIR_", $cache_dir."images/", $buffer);
 212                                    $buffer = str_replace( "_VT_UPLOADDIR_", $cache_dir."upload/", $buffer);
 213                                    /* replace mail variable */
 214                                    $buffer = str_replace( "_MAIL_SERVER_", $mail_server, $buffer);
 215                                    $buffer = str_replace( "_MAIL_USERNAME_", $mail_server_username, $buffer);
 216                                    $buffer = str_replace( "_MAIL_PASSWORD_", $mail_server_password, $buffer);
 217                                    $buffer = str_replace( "_DB_STAT_", "true", $buffer);
 218                  
 219                                    /* replace the application unique key variable */
 220                                    $buffer = str_replace( "_MASTER_CURRENCY_", $currency_name, $buffer);
 221  
 222                                    /* replace the application unique key variable */
 223                                    $buffer = str_replace( "_VT_APP_UNIQKEY_", md5($root_directory), $buffer);
 224      
 225                                    fwrite($includeHandle, $buffer);
 226                                    }
 227  
 228                                fclose($includeHandle);
 229                                }
 230  
 231                            fclose($templateHandle);
 232                            }
 233    
 234      if ($templateHandle && $includeHandle) {?>
 235              <div id="config_info">
 236              <p><strong class="big">Successfully created configuration file (config.inc.php) in :</strong><br><br>
 237              <font color="green"><b><?php echo $root_directory; ?></b></font><br><br>
 238              The installation will take at least 4 minutes. Grab a coffee,sit back and relax...<br>
 239              </p>
 240              </div>
 241              <br>        
 242      <?php } 
 243      else {?>
 244              <div id="config_info"><p><strong class="big"><font color="red">Cannot write configuration file (config.inc.php ) in : </font></strong><br><br>
 245              <font color="green"><b><?php echo $root_directory; ?></b></font><br><br>
 246              <P>You can continue this installation by manually creating the config.inc.php file and pasting the configuration information below inside.However, you <strong>must</strong> create the configuration file before you continue to the next step.<P><br><br>
 247      <?php            
 248      $config = "<?php \n";
 249       $config .= "/*********************************************************************************\n";
 250       $config .= " * The contents of this file are subject to the SugarCRM Public License Version 1.1.2\n";
 251       $config .= " * (\"License\"); You may not use this file except in compliance with the \n";
 252       $config .= " * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL\n";
 253       $config .= " * Software distributed under the License is distributed on an  \"AS IS\"  basis,\n";
 254       $config .= " * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for\n";
 255       $config .= " * the specific language governing rights and limitations under the License.\n";
 256       $config .= " * The Original Code is:  SugarCRM Open Source\n";
 257       $config .= " * The Initial Developer of the Original Code is SugarCRM, Inc.\n";
 258       $config .= " * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;\n";
 259       $config .= " * All Rights Reserved.\n";
 260       $config .= " * Contributor(s): ______________________________________.\n";
 261       $config .= "********************************************************************************/\n\n";
 262       $config .= "include ('vtigerversion.php');\n\n";
 263       $config .= "// more than 8MB memory needed for graphics\n\n";
 264       $config .= "// memory limit default value = 16M\n\n";
 265       $config .= "ini_set('memory_limit','16M');\n\n";
 266       $config .= "// show or hide world clock, calculator and FCKEditor\n\n";
 267       $config .= "// world_clock_display default value = true\n";
 268       $config .= "// calculator_display default value = true\n";
 269       $config .= "// fckeditor_display default value = true\n\n";
 270       $config .= "\$WORLD_CLOCK_DISPLAY = 'true';\n";
 271       $config .= "\$CALCULATOR_DISPLAY = 'true';\n";
 272       $config .= "\$FCKEDITOR_DISPLAY = 'true';\n\n";
 273       
 274       $config .= "//This is the URL for customer portal. (Ex. http://vtiger.com/portal)\n";
 275       $config .= "\$PORTAL_URL = 'http://yourdomain.com/customerportal';\n\n";
 276       $config .= "//These two are the HelpDesk support email id and the support name. ";
 277       $config .= "(Ex. 'support@vtiger.com' and 'vtiger Support')\n";
 278       $config .= "\$HELPDESK_SUPPORT_EMAIL_ID = 'support@yourdomain.com';\n";
 279       $config .= "\$HELPDESK_SUPPORT_NAME = 'yourdomain Name';\n\n";
 280       
 281       $config .= "/* Database configuration\n";
 282       $config .= "      db_host_name:     MySQL Database Hostname\n";
 283       $config .= "      db_user_name:        MySQL Username\n";
 284       $config .= "      db_password:         MySQL Password\n";
 285       $config .= "      db_name:             MySQL Database Name\n*/\n";
 286       $config .= "\$dbconfig['db_server'] =     '".$db_hostname."';\n";
 287       $config .= "\$dbconfig['db_port'] =     '".$db_port."';\n";
 288       $config .= "\$dbconfig['db_username'] =     '".$db_username."';\n";
 289       $config .= "\$dbconfig['db_password'] =         '".$db_password."';\n";
 290       $config .= "\$dbconfig['db_name'] =             '".$db_name."';\n";
 291       $config .= "\$dbconfig['db_type'] = '".$db_type."';\n";
 292      $config .= "\$dbconfig['db_status'] = 'true';\n";
 293  
 294      $config .= "// TODO: test if port is empty\n";
 295      $config .= "// TODO: set db_hostname dependending on db_type\n";
 296       $config .= "\$dbconfig['db_hostname'] = \$dbconfig['db_server'].\$dbconfig['db_port'];\n\n";
 297  
 298      
 299      $config .= "// log_sql default value = false\n";
 300      $config .= "\$dbconfig['log_sql'] = false;\n\n";
 301      
 302      $config .= "// persistent default value = true\n";
 303      $config .= "\$dbconfigoption['persistent'] = true;\n\n";
 304  
 305      $config .= "// autofree default value = false\n";
 306      $config .= "\$dbconfigoption['autofree'] = false;\n\n";
 307      
 308      $config .= "// debug default value = 0\n";
 309      $config .= "\$dbconfigoption['debug'] = 0;\n\n";
 310  
 311      $config .= "// seqname_format default value = '%s_seq'\n";
 312      $config .= "\$dbconfigoption['seqname_format'] = '%s_seq';\n\n";
 313  
 314      $config .= "// portability default value = 0\n";
 315      $config .= "\$dbconfigoption['portability'] = 0;\n\n";
 316  
 317      $config .= "// ssl default value = false\n";
 318      $config .= "\$dbconfigoption['ssl'] = false;\n\n";
 319  
 320      $config .= "\$host_name = \$dbconfig['db_hostname'];\n\n";
 321      
 322      $config .= "\$site_URL ='$site_URL';\n\n";
 323  
 324      $config .= "// root directory path\n";
 325      $config .= "\$root_directory = '$root_directory';\n\n";
 326  
 327      $config .= "// cache direcory path\n";
 328      $config .= "\$cache_dir = '$cache_dir';\n\n";
 329  
 330      $config .= "// tmp_dir default value prepended by cache_dir = images/\n";
 331      $config .= "\$tmp_dir = '$cache_dir"."images/';\n\n";
 332  
 333      $config .= "// import_dir default value prepended by cache_dir = import/\n";
 334      $config .= "\$tmp_dir = '$cache_dir"."import/';\n\n";
 335  
 336      $config .= "// upload_dir default value prepended by cache_dir = upload/\n";
 337      $config .= "\$tmp_dir = '$cache_dir"."upload/';\n\n";
 338  
 339      $config .= "// mail server parameters\n";
 340      $config .= "\$mail_server = '$mail_server';\n";
 341      $config .= "\$mail_server_username = '$mail_server_username';\n";
 342      $config .= "\$mail_server_password = '$mail_server_password';\n\n";
 343      
 344      $config .= "// maximum file size for uploaded files in bytes also used when uploading import files\n";
 345      $config .= "// upload_maxsize default value = 3000000\n";
 346      $config .= "\$upload_maxsize = 3000000;\n\n";
 347  
 348      $config .= "// flag to allow export functionality\n";
 349      $config .= "// 'all' to allow anyone to use exports \n";
 350      $config .= "// 'admin' to only allow admins to export\n";
 351      $config .= "// 'none' to block exports completely\n";
 352      $config .= "// allow_exports default value = all\n";
 353      $config .= "\$allow_exports = 'all';\n\n";
 354  
 355       $config .= "// Files with one of these extensions will have '.txt' appended to their filename on upload\n";
 356      $config .= "// upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm\n";
 357       $config .= "\$upload_badext = array('php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 'asp', 'cfm', 'js', 'vbs', 'html', 'htm');\n\n";
 358  
 359       $config .= "// This is the full path to the include directory including the trailing slash\n";
 360      $config .= "// includeDirectory default value = $root_directory..'include/\n";
 361       $config .= "\$includeDirectory = \$root_directory.'include/';\n\n";
 362      
 363      $config .= "// list_max_entries_per_page default value = 20\n";
 364      $config .= "\$list_max_entries_per_page = '20';\n\n";
 365  
 366       $config .= "// change this number to whatever you want. This is the number of pages that will appear in the pagination. by Raju \n";
 367       $config .= "\$limitpage_navigation = '9';\n\n";
 368      
 369      $config .= "// history_max_viewed default value = 5\n";
 370       $config .= "\$history_max_viewed = '5';\n\n";
 371       
 372       $config .= "// Map Sugar language codes to jscalendar language codes\n";
 373       $config .= "// Unimplemented until jscalendar language files are fixed\n";
 374       $config .= "// \$cal_codes = array('en_us'=>'en', 'ja'=>'jp', 'sp_ve'=>'sp', 'it_it'=>'it', 'tw_zh'=>'zh', 'pt_br'=>'pt', 'se'=>'sv', 'cn_zh'=>'zh', 'ge_ge'=>'de', 'ge_ch'=>'de', 'fr'=>'fr');\n\n";
 375  
 376      $config .= "//set default module and action\n";
 377       $config .= "\$default_module = 'Home';\n";
 378       $config .= "\$default_action = 'index';\n\n";
 379  
 380       $config .= "//set default theme\n";
 381       $config .= "\$default_theme = 'bluelagoon';\n\n";
 382  
 383       $config .= "// If true, the time to compose each page is placed in the browser.\n";
 384       $config .= "\$calculate_response_time = true;\n";
 385  
 386       $config .= "// Default Username - The default text that is placed initially in the login form for user name.\n";
 387       $config .= "\$default_user_name = '';\n";
 388      
 389       $config .= "// Default Password - The default text that is placed initially in the login form for password.\n";
 390       $config .= "\$default_password = '';\n";
 391  
 392       $config .= "// Create default user - If true, a user with the default username and password is created.\n";
 393       $config .= "\$create_default_user = false;\n";
 394       $config .= "\$default_user_is_admin = false;\n";
 395  
 396       $config .= "// disable persistent connections - If your MySQL/PHP configuration does not support persistent connections set this to true to avoid a large performance slowdown\n";
 397       $config .= "\$disable_persistent_connections = false;\n";
 398       $config .= "// Defined languages available.  The key must be the language file prefix.  E.g. 'en_us' is the prefix for every 'en_us.lang.php' file. \n";
 399       
 400       $language_value = "Array('en_us'=>'US English',)";
 401       if(isset($_SESSION['language_keys']) && isset($_SESSION['language_values']))
 402       {
 403           $language_value = 'Array(';
 404           $language_keys = explode(',', urldecode($_SESSION['language_keys']));
 405           $language_values = explode(',', urldecode($_SESSION['language_values']));
 406           $size = count($language_keys);
 407           for($i = 0; $i < $size; $i+=1)
 408           {
 409               $language_value .= "'$language_keys[$i]'=>'$language_values[$i]',";
 410           }
 411           $language_value .= ')';
 412       }
 413       $config .= "\$languages = $language_value;\n";
 414      $config .= "// Master currency name\n";
 415       $config .= "\$currency_name = '$currency_name';\n";
 416       $config .= "// Default charset if the language specific character set is not found.\n";
 417       $config .= "\$default_charset = 'ISO-8859-1';\n";
 418       $config .= "// Default language in case all or part of the user's language pack is not available.\n";
 419       $config .= "\$default_language = 'en_us';\n";
 420       $config .= "// Translation String Prefix - This will add the language pack name to every translation string in the display.\n";
 421       $config .= "\$translation_string_prefix = false;\n";
 422       
 423       $config .= "//Option to cache tabs permissions for speed.\n";
 424       $config .= "\$cache_tab_perms = true;\n\n";
 425       
 426       $config .= "//Option to hide empty home blocks if no entries.\n";
 427       $config .= "\$display_empty_home_blocks = false;\n\n";
 428  
 429       $config .= "// Generating Unique Application Key\n";
 430       $config .= "\$application_unique_key = '".md5($root_directory)."';\n\n";
 431       $config .= "?>";
 432          
 433              echo "<TEXTAREA class=\"dataInput\" rows=\"15\" cols=\"80\">".$config."</TEXTAREA><br><br>";
 434              echo "<P>Did you remember to create the config.inc.php file ?</p>";
 435      
 436                    
 437          }    ?>
 438                  </div></td>
 439                  </tr>
 440                  <tr><td align="center"><img id="populating_info" src="include/install/images/loading.gif" style="visibility:hidden;"></td></tr>
 441                  <tr>
 442                  <td align=right style="height:60px;">
 443                   <form action="install.php" method="post" name="form" id="form">
 444                   <!--<form action="install.php" method="post" name="form" id="form"> -->
 445                   <input type="hidden" name="file" value="5createTables.php">
 446                   <input type="hidden" class="dataInput" name="db_hostname" value="<?php if (isset($db_hostname)) echo "$db_hostname"; ?>" />
 447                   <input type="hidden" class="dataInput" name="db_username" value="<?php if (isset($db_username)) echo "$db_username"; ?>" />
 448                   <input type="hidden" class="dataInput" name="db_password" value="<?php if (isset($db_password)) echo "$db_password"; ?>" />
 449                   <input type="hidden" class="dataInput" name="db_name" value="<?php if (isset($db_name)) echo "$db_name"; ?>" />
 450                   <input type="hidden" class="dataInput" name="db_drop_tables" value="<?php if (isset($db_drop_tables)) echo "$db_drop_tables"; ?>" />
 451                   <input type="hidden" class="dataInput" name="db_create" value="<?php if (isset($db_create)) echo "$db_create"; ?>" />
 452                   <input type="hidden" class="dataInput" name="db_populate" value="<?php if (isset($db_populate)) echo "$db_populate"; ?>" />
 453                   <input type="hidden" class="dataInput" name="admin_email" value="<?php if (isset($admin_email)) echo "$admin_email"; ?>" />
 454                   <input type="hidden" class="dataInput" name="admin_password" value="<?php if (isset($admin_password)) echo "$admin_password"; ?>" />
 455                   <input type="hidden" class="dataInput" name="currency_name" value="<?php if (isset($currency_name)) echo "$currency_name"; ?>" />
 456                   <input type="hidden" class="dataInput" name="currency_code" value="<?php if (isset($currency_code)) echo "$currency_code"; ?>" />
 457                   <input type="hidden" class="dataInput" name="currency_symbol" value="<?php if (isset($currency_symbol)) echo "$currency_symbol"; ?>" />
 458                   <input  type="image" name="next" value="Next" id="next_btn" src="include/install/images/cwBtnNext.gif" onClick="window.location=('install.php');createtablejs();" />
 459                   </form>
 460                      
 461                  </td>
 462              </tr>
 463  
 464              </table>
 465          </td>
 466      </tr>
 467      </table>
 468      <!-- Master display stops -->
 469      <br>
 470      </td>
 471      </tr>
 472      </table>
 473      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 474      <tr>
 475  
 476          <td background="include/install/images/bottomGradient.gif"><img src="include/install/images/bottomGradient.gif"></td>
 477      </tr>
 478      </table>
 479      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 480      <tr>
 481          <td align=center><img src="include/install/images/bottomShadow.jpg"></td>
 482      </tr>
 483      </table>
 484      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 485  
 486            <tr>
 487              <td class=small align=center> <a href="http://www.vtiger.com" target="_blank">www.vtiger.com</a></td>
 488            </tr>
 489          </table>    
 490      <script>
 491  	function createtablejs()
 492      {
 493          document.getElementById('dbcreate_tab').innerHTML = '<div align="left"><b>Database Generation</b></div>';
 494          document.getElementById('configfile_tab').className = 'small cwUnSelectedTab';
 495          document.getElementById('configfile_tab').innerHTML = '<div align="left">Config File Creation</div>';
 496          document.getElementById('dbcreate_tab').className = 'small cwSelectedTab';
 497          oImg = document.getElementById('title_img').style.display = 'none';
 498          oImg = document.getElementById('title_img1').style.display = 'block';
 499          document.getElementById('populating_info').style.visibility='visible';
 500          document.getElementById("next_btn").style.display = 'none';
 501          window.document.title = 'vtiger CRM 5 - Configuration Wizard - Database Generation ...';
 502      }
 503      </script>
 504  </body>
 505  </html>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7