[ Index ]

Source Code Reference for V1.00

title

Body

[close]

/install/ -> index.php (source)

   1  <?php /* $Id: newuser.php 102 2008-03-18 19:52:59Z pedroix $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk/newuser.php $ */
   2  /*
   3  All files in this work are now covered by the following copyright notice.
   4  Please note that included libraries in the lib directory may have their own license.
   5  Copyright (c) 2007-2008 The web2Project Development Team <developers@web2project.net>
   6  Copyright (c) 2003-2005 The dotProject Development Team <core-developers@dotproject.net>
   7  
   8      This file is part of web2Project.
   9  
  10      web2Project is free software; you can redistribute it and/or modify
  11      it under the terms of the GNU General Public License as published by
  12      the Free Software Foundation; either version 2 of the License, or
  13      (at your option) any later version.
  14  
  15      web2Project is distributed in the hope that it will be useful,
  16      but WITHOUT ANY WARRANTY; without even the implied warranty of
  17      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18      GNU General Public License for more details.
  19  
  20      You should have received a copy of the GNU General Public License
  21      along with web2Project; if not, write to the Free Software
  22      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  23  
  24  The full text of the GPL is in the COPYING file.
  25  */
  26  
  27  require_once  '../base.php';
  28  include_once W2P_BASE_DIR . '/includes/config.php';
  29  $uistyle = 'web2project';
  30  
  31  if (!isset($GLOBALS['OS_WIN'])) {
  32      $GLOBALS['OS_WIN'] = (stristr(PHP_OS, 'WIN') !== false);
  33  }
  34  
  35  // tweak for pathname consistence on windows machines
  36  require_once  W2P_BASE_DIR . '/includes/main_functions.php';
  37  require_once  W2P_BASE_DIR . '/includes/db_adodb.php';
  38  require_once  W2P_BASE_DIR . '/classes/query.class.php';
  39  require_once  W2P_BASE_DIR . '/classes/ui.class.php';
  40  $AppUI = new CAppUI();
  41  include_once  W2P_BASE_DIR . '/classes/w2p.class.php';
  42  require_once  W2P_BASE_DIR . '/classes/date.class.php';
  43  
  44  require_once W2P_BASE_DIR . '/style/' . $uistyle . '/overrides.php';
  45  
  46  require_once  W2P_BASE_DIR.'/install/setup.inc.php';
  47  require_once  W2P_BASE_DIR.'/lib/adodb/adodb.inc.php';
  48  ?>
  49  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  50  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  51  <head>
  52      <title><?php echo 'web2Project Setup'; ?></title>
  53      <meta name="Description" content="<?php echo 'web2Project Setup'; ?>" />
  54      <meta http-equiv="Content-Type" content="text/html;charset=<?php echo 'UTF-8'; ?>" />
  55      <meta http-equiv="Pragma" content="no-cache" />
  56      <link rel="stylesheet" type="text/css" href="../style/<?php echo $uistyle; ?>/main.css" media="all" />
  57      <style type="text/css" media="all">@import "../style/<?php echo $uistyle; ?>/main.css";</style>
  58      <link rel="shortcut icon" href="../style/<?php echo $uistyle; ?>/images/favicon.ico" type="image/ico" />
  59      <?php $AppUI->loadHeaderJS(); ?>
  60      <script type="text/javascript" src="../js/base.js"></script>
  61  </head>
  62  
  63  <body bgcolor="#f0f0f0" onload="//document.loginform.username.focus();">
  64  <?php
  65  include  'setup.php';
  66  $mode = w2PcheckUpgrade();
  67  ?>
  68  <?php
  69  if ($mode == 'upgrade') {
  70  ?>
  71  <tr>
  72      <td class='title' colspan='2'><p class='error'>It would appear that you already have a web2Project installation. The installer will attempt to upgrade your system, however it is a good idea to take a full backup first!</p></td>
  73  <?php
  74  }
  75  ?>
  76  </table>
  77  <?php
  78  include_once ('setup_check.php');
  79  ?>
  80  </body>
  81  </html>


Generated: Sat Jul 17 03:00:04 2010 Cross-referenced by PHPXref 0.7