Exemplo n.º 1
0
<?php

/*
  $Id: step_2.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com
  http://www.tomatoshop.ir  Persian Tomatocart v1.1.8.6 / Khordad 1394
  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd;  Copyright (c) 2006 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$files = array('/sitemapsIndex.xml', '/sitemapsCategories.xml', '/sitemapsProducts.xml', '/sitemapsArticles.xml', '/includes/configure.php');
$directories = array('/admin/images', '/admin/backups', '/cache', '/cache/admin', '/cache/admin/emails', '/cache/admin/emails/attachments', '/cache/orders_customizations', '/cache/products_attachments', '/cache/products_customizations', '/download', '/images', '/images/articles', '/images/articles/large', '/images/articles/mini', '/images/articles/originals', '/images/articles/product_info', '/images/articles/thumbnails', '/images/products', '/images/products/large', '/images/products/mini', '/images/products/originals', '/images/products/product_info', '/images/products/thumbnails', '/images/categories', '/images/manufacturers', '/includes/work', '/includes/logs', '/templates', '/admin/includes/languages', '/includes/languages', '/install/includes/languages', '/install/templates/main_page/languages');
$root_dir = osc_realpath(dirname(__FILE__) . '/../../../');
?>

<div class="contentBlock">
  <h1><?php 
echo $osC_Language->get('page_title_pre_installation_check');
?>
</h1>

  <p><?php 
echo $osC_Language->get('text_pre_installation_check');
?>
</p>
  
  <div class="infoPane">
  
Exemplo n.º 2
0
        $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php';
    }
} else {
    //echo (osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php');
    // If suphp, chmod existing configure.php files to be writable.
    if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
        @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0755);
    }
    if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) {
        @chmod(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php', 0755);
    }
    if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
        $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php';
    }
    if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) {
        $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php';
    }
}
$warning_array = array();
if (function_exists('ini_get')) {
    if ($compat_register_globals == false) {
        $warning_array['register_globals'] = TEXT_REGISTER_GLOBALS_ERROR;
    }
}
if (sizeof($configfile_array) > 0 || sizeof($warning_array) > 0) {
    ?>

    <div class="noticeBox">

<?php 
    if (sizeof($warning_array) > 0) {
Exemplo n.º 3
0
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2007 osCommerce

  Released under the GNU General Public License
*/
$www_location = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'];
if (isset($HTTP_SERVER_VARS['REQUEST_URI']) && !empty($HTTP_SERVER_VARS['REQUEST_URI'])) {
    $www_location .= $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
    $www_location .= $HTTP_SERVER_VARS['SCRIPT_FILENAME'];
}
$www_location = substr($www_location, 0, strpos($www_location, 'install'));
$dir_fs_www_root = osc_realpath(dirname(__FILE__) . '/../../../') . '/';
?>

<div class="mainBlock">
  <div class="stepsBox">
    <ol>
      <li>Database Server</li>
      <li style="font-weight: bold;">Web Server</li>
      <li>Online Store Settings</li>
      <li>Finished!</li>
    </ol>
  </div>

  <h1>New Installation</h1>

  <p>This web-based installation routine will correctly setup and configure osCommerce Online Merchant to run on this server.</p>
Exemplo n.º 4
0
    <h2><?php 
echo $osC_Language->get('page_heading_installation_type');
?>
</h2>

<?php 
if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
    @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777);
}
if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
    ?>

    <div class="noticeBox">
      <?php 
    echo sprintf($osC_Language->get('error_configuration_file_not_writeable'), osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php');
    ?>

      <?php 
    echo $osC_Language->get('error_configuration_file_alternate_method');
    ?>
    </div>

    <br />

<?php 
}
?>

    <p><?php 
echo $osC_Language->get('text_installation_type');