[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/install/ -> 5createTables.php (source)

   1  <?php
   2  /*********************************************************************************
   3   * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
   4   * ("License"); You may not use this file except in compliance with the
   5   * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
   6   * Software distributed under the License is distributed on an  "AS IS"  basis,
   7   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
   8   * the specific language governing rights and limitations under the License.
   9   * The Original Code is: SugarCRM Open Source
  10   * The Initial Developer of the Original Code is SugarCRM, Inc.
  11   * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
  12   * All Rights Reserved.
  13   * Contributor(s): ______________________________________.
  14   ********************************************************************************/
  15  /*********************************************************************************
  16   * $Header: /advent/projects/wesat/vtiger_crm/sugarcrm/install/5createTables.php,v 1.58 2005/04/19 16:57:08 ray Exp $
  17   * Description:  Executes a step in the installation process.
  18   ********************************************************************************/
  19  set_time_limit(600);
  20  
  21  if (isset($_REQUEST['db_name'])) $db_name                  = $_REQUEST['db_name'];
  22  if (isset($_REQUEST['db_drop_tables'])) $db_drop_tables     = $_REQUEST['db_drop_tables'];
  23  if (isset($_REQUEST['db_create'])) $db_create             = $_REQUEST['db_create'];
  24  if (isset($_REQUEST['db_populate'])) $db_populate        = $_REQUEST['db_populate'];
  25  if (isset($_REQUEST['admin_email'])) $admin_email        = $_REQUEST['admin_email'];
  26  if (isset($_REQUEST['admin_password'])) $admin_password    = $_REQUEST['admin_password'];
  27  if (isset($_REQUEST['currency_name'])) $currency_name    = $_REQUEST['currency_name'];
  28  if (isset($_REQUEST['currency_code'])) $currency_code    = $_REQUEST['currency_code'];
  29  if (isset($_REQUEST['currency_symbol'])) $currency_symbol    = $_REQUEST['currency_symbol'];
  30  
  31  ?>
  32  
  33  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  34  <html>
  35  <head>
  36  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  37  <title>vtiger CRM 5 - Configuration Wizard - Finish</title>
  38  
  39  
  40  <link href="include/install/install.css" rel="stylesheet" type="text/css">
  41  </head>
  42  
  43  <body class="small cwPageBg" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
  44  
  45      <br><br><br>
  46      <!-- Table for cfgwiz starts -->
  47  
  48      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
  49      <tr>
  50          <td class="cwHeadBg" align=left><img src="include/install/images/configwizard.gif" alt="Configuration Wizard" hspace="20" title="Configuration Wizard"></td>
  51          <td class="cwHeadBg" align=right><img src="include/install/images/vtigercrm5.gif" alt="vtiger CRM 5" title="vtiger CRM 5"></td>
  52      </tr>
  53      </table>
  54      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
  55      <tr>
  56          <td background="include/install/images/topInnerShadow.gif" align=left><img src="include/install/images/topInnerShadow.gif" ></td>
  57  
  58      </tr>
  59      </table>
  60      <table border=0 cellspacing=0 cellpadding=10 width=80% align=center>
  61      <tr>
  62          <td class="small" bgcolor="#4572BE" align=center>
  63              <!-- Master display -->
  64              <table border=0 cellspacing=0 cellpadding=0 width=97%>
  65              <tr>
  66                  <td width=20% valign=top>
  67  
  68                  <!-- Left side tabs -->
  69                      <table border=0 cellspacing=0 cellpadding=10 width=100%>
  70                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Welcome</div></td></tr>
  71                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Installation Check</div></td></tr>
  72                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">System Configuration</div></td></tr>
  73                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Confirm Settings</div></td></tr>
  74                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Config File Creation</div></td></tr>
  75                      <tr><td class="small cwUnSelectedTab" align=right><div align="left">Database Generation</div></td></tr>
  76                      <tr><td class="small cwSelectedTab" align=right><div align="left"><b>Finish</b></div></td></tr>
  77                      </table>
  78                      
  79                  </td>
  80                  <td width=80% valign=top class="cwContentDisplay" align=left>
  81                  <!-- Right side tabs -->
  82                      <table border=0 cellspacing=0 cellpadding=10 width=100%>
  83                      <tr><td class=small align=left><img src="include/install/images/confWizFinish.gif" alt="Configuration Completed" title="Configuration Completed"><br>
  84                        <hr noshade size=1></td></tr>
  85  
  86                      <tr>
  87                      <td align=center class="small" style="height:250px;"> 
  88  
  89  <?php
  90  
  91      // Output html instead of plain text for the web
  92      $useHtmlEntities = true;
  93  
  94      require_once ('install/5createTables.inc.php');
  95  
  96      
  97  //populating forums data
  98  
  99  //this is to rename the installation file and folder so that no one destroys the setup
 100  $renamefile = uniqid(rand(), true);
 101  
 102  //@rename("install.php", $renamefile."install.php.txt");
 103  if(!rename("install.php", $renamefile."install.php.txt"))
 104  {
 105      if (copy ("install.php", $renamefile."install.php.txt"))
 106             {
 107               unlink($renamefile."install.php.txt");
 108           }
 109  }
 110  
 111  //@rename("install/", $renamefile."install/");
 112  if(!rename("install/", $renamefile."install/"))
 113  {
 114      if (copy ("install/", $renamefile."install/"))
 115             {
 116               unlink($renamefile."install/");
 117           }
 118  }
 119  //populate Calendar data
 120  
 121  
 122  ?>
 123          <table border=0 cellspacing=0 cellpadding=5 align="center" width=75% style="background-color:#E1E1FD;border:1px dashed #111111;">
 124          <tr>
 125              <td align=center class=small>
 126              <b>vtigercrm-5.0.2 is all set to go!</b>
 127              <hr noshade size=1>
 128              <div style="width:100%;padding:10px; "align=left>
 129              <ul>
 130              <li>Your install.php file has been renamed to <?echo $renamefile;?>install.php.txt.
 131              <li>Your install folder too has been renamed to <?echo $renamefile;?>install/.  
 132              <li>Please log in using the "admin" user name and the password you entered in step 2.
 133              </ul>
 134              </div>
 135  
 136              </td>
 137          </tr>
 138          </table>
 139          <br>    
 140          <table border=0 cellspacing=0 cellpadding=10 width=100%>
 141          <tr><td colspan=2 align="center">
 142                   <form action="index.php" method="post" name="form" id="form">
 143                   <input type="hidden" name="default_user_name" value="admin">
 144                    <input  type="image" src="include/install/images/cwBtnFinish.gif" name="next" title="Finish" value="Finish" />
 145                   </form>
 146          </td></tr>
 147          </table>        
 148          </td>
 149  
 150          </tr>
 151          </table>
 152          <!-- Master display stops -->
 153          
 154      </td>
 155      </tr>
 156      </table>
 157      </td>
 158      </tr>
 159      </table>
 160  
 161      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 162      <tr>
 163  
 164          <td background="include/install/images/bottomGradient.gif"><img src="include/install/images/bottomGradient.gif"></td>
 165      </tr>
 166      </table>
 167      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 168      <tr>
 169          <td align=center><img src="include/install/images/bottomShadow.jpg"></td>
 170      </tr>
 171      </table>
 172      <table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
 173  
 174        <tr>
 175          <td class=small align=center> <a href="#">www.vtiger.com</a></td>
 176        </tr>
 177      </table>
 178  </body>
 179  </html>    


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