[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/ -> install.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.php,v 1.2 2004/10/06 09:02:02 jack Exp $
  17   * Description:  Starts the installation process.
  18   ********************************************************************************/
  19  
  20  include ('adodb/adodb.inc.php');
  21  
  22  if (substr(phpversion(), 0, 1) == "5") {
  23      ini_set("zend.ze1_compatibility_mode", "1");
  24  }
  25  
  26  /** Function to  return a string with backslashes stripped off
  27   * @param $value -- value:: Type string
  28   * @returns $value -- value:: Type string array
  29   */
  30   function stripslashes_checkstrings($value){
  31       if(is_string($value)){
  32           return stripslashes($value);
  33       }
  34       return $value;
  35  
  36   }
  37   if(get_magic_quotes_gpc() == 1){
  38       $_REQUEST = array_map("stripslashes_checkstrings", $_REQUEST);
  39      $_POST = array_map("stripslashes_checkstrings", $_POST);
  40      $_GET = array_map("stripslashes_checkstrings", $_GET);
  41  
  42  }
  43  
  44  //Run command line if no web var detected
  45  if (!isset($_SERVER['REQUEST_METHOD'])) {
  46      require ("install/5createTables.inc.php");
  47      exit;
  48  }
  49              
  50  if (isset($_POST['file'])) $the_file = $_POST['file'];
  51  else $the_file = "0welcome.php";
  52  
  53  include("install/".$the_file);
  54  
  55  ?>


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