[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/installation/ -> install.php (source)

   1  <?php
   2  /**
   3  * Install instructions
   4  * @package Mambo
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 );
  18  
  19  if (file_exists( '../configuration.php' ) && filesize( '../configuration.php' ) > 10) {
  20      header( 'Location: ../index.php' );
  21      exit();
  22  }
  23  /** Include common.php */
  24  include_once ( 'common.php' );
  25  include_once ( 'langconfig.php' );
  26  
  27  function writableCell( $folder ) {
  28      echo "<tr>";
  29      echo "<td class=\"item\">" . $folder . "/</td>";
  30      echo "<td align=\"left\">";
  31      echo is_writable( "../$folder" ) ? '<strong><span class="green">'.T_('Writeable').'</span></strong>' : '<strong><span class="red">'.T_('Unwriteable').'</span></strong>' . "</td>";
  32      echo "</tr>";
  33  }
  34  ?>
  35  <?php echo "<?xml version=\"1.0\" encoding=\"".$charset."\"?".">"; ?>
  36  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  37  <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $text_direction;?>">
  38  <head>
  39  <title><?php echo T_('Mambo - Web Installer') ?></title>
  40  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" />
  41  <link rel="shortcut icon" href="../images/favicon.ico" />
  42  <link rel="stylesheet" href="install<?php if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" />
  43  </head>
  44  <body>
  45  <div id="wrapper">
  46      <div id="header">
  47          <div id="mambo"><img src="header_install.png" alt="<?php echo T_('Mambo Installation') ?>" /></div>
  48      </div>
  49  </div>
  50  <div id="ctr" align="center">
  51      <form action="install1.php" method="post" name="adminForm" id="adminForm">
  52      <div class="install">
  53      <div id="stepbar">
  54          <div class="step-off"><?php echo T_('pre-installation check') ?></div>
  55          <div class="step-on"><?php echo T_('license') ?></div>
  56          <div class="step-off"><?php echo T_('step 1') ?></div>
  57          <div class="step-off"><?php echo T_('step 2') ?></div>
  58          <div class="step-off"><?php echo T_('step 3') ?></div>
  59          <div class="step-off"><?php echo T_('step 4') ?></div>
  60          <div class="far-right">
  61          <input class="button" type="submit" name="next" value="<?php echo T_('Next') ?> >>"/>
  62          </div>
  63      </div>
  64      <div id="right">
  65          <div id="step"><?php echo T_('license') ?></div>
  66          <div id="steposi"></div>
  67          <div class="clr"></div>
  68          <h1><?php echo T_('GNU/GPL License:') ?></h1>
  69          <div class="licensetext">
  70          <?php echo T_('<a href="http://www.mambo-foundation.org" target="_blank">Mambo </a> is Free Software released under the <a href="http://www.opensource.org/licenses/gpl-2.0.php" target="_blank">GNU/GPL License</a>.') ?>
  71                  
  72  
  73          </div>
  74          <div class="clr"></div>
  75          <div class="license-form">
  76              <div class="form-block" style="padding: 0px;">
  77                  <iframe src="gpl.txt" class="license" frameborder="0" scrolling="auto"></iframe>
  78              </div>
  79          </div>
  80          <div class="clr"></div>
  81          <div class="ctr">
  82              <br />
  83          </div>
  84          <div class="clr"></div>
  85          </div>
  86      <div class="clr"></div>
  87      <div class="clr"></div>
  88      </div>
  89      </form>
  90  </div>
  91  <div class="ctr">
  92  <?php echo T_('<a href="http://www.mambo-foundation.org" target="_blank">Mambo </a> is Free Software released under the <a href="http://www.opensource.org/licenses/gpl-2.0.php" target="_blank">GNU/GPL License</a>.') ?>
  93  </div>
  94  </body>
  95  </html>