Thread: SSL with 1and1

Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    SSL with 1and1

    Got a big problem here. I've gone through, and read all of the threads about this issue (including the big 14 page thread). It seems to me that everyone is talking about editing their application_top.php file which has worked for many. The problem I have is that my application_top.php file looks like this:

    Code:
    <?php
    /**
     * application_top.php Common actions carried out at the start of each page invocation.
     *
     * Initializes common classes & methods. Controlled by an array which describes
     * the elements to be initialised and the order in which that happens.
     * see {@link  http://www.zen-cart.com/wiki/index.p...als#InitSystem wikitutorials} for more details.
     *
     * @package initSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: application_top.php 3185 2006-03-14 19:19:55Z wilt $
     */
    /**
     * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
     */
    define('DEBUG_AUTOLOAD', false);
    /**
     * boolean used to see if we are in the admin script, obviously set to false here.
     */
    define('IS_ADMIN_FLAG', false);
    /**
     * integer saves the time at which the script started.
     */
    define('PAGE_PARSE_START_TIME', microtime());
    //  define('DISPLAY_PAGE_PARSE_TIME', 'true');
    @ini_set("arg_separator.output","&");
    /**
     * Set the local configuration parameters - mainly for developers
     */
    if (file_exists('includes/local/configure.php')) {
      /**
       * load any local(user created) configure file.
       */
      include('includes/local/configure.php');
    }
    /**
     * set the level of error reporting
     */
    if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {
      error_reporting(E_ALL);
    } else {
      error_reporting(E_ALL & ~E_NOTICE);
    }
    /**
     * include server parameters
     */
    if (file_exists('includes/configure.php')) {
      /**
       * load the main configure file.
       */
      include('includes/configure.php');
    } else {
      header('location: zc_install/index.php');
    }
    /**
     * if main configure file doesn't contain valid info (ie: is dummy or doesn't match filestructure, goto installer)
     */
    if (!is_dir(DIR_FS_CATALOG.'/includes/classes'))  header('location: zc_install/index.php');
    /**
     * include the list of extra configure files
     */
    if ($za_dir = @dir(DIR_WS_INCLUDES . 'extra_configures')) {
      while ($zv_file = $za_dir->read()) {
        if (preg_match('/\.php$/', $zv_file) > 0) {
          /**
           * load any user/contribution specific configuration files.
           */
          include(DIR_WS_INCLUDES . 'extra_configures/' . $zv_file);
        }
      }
    }
    
    $loader_file = 'config.core.php';
    $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
    if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
      $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
    }
    /**
     * load the default application_top autoloader file.
     */
    include($base_dir . $loader_file);
    if ($loader_dir = dir(DIR_WS_INCLUDES . 'auto_loaders')) {
      while ($loader_file = $loader_dir->read()) {
        if ((preg_match('/^config\./', $loader_file) > 0) && (preg_match('/\.php$/', $loader_file) > 0)) {
          if ($loader_file != 'config.core.php') {
            $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
            if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
              $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
            }
            /**
             * load the application_top autoloader files.
             */
            include($base_dir . $loader_file);
          }
        }
      }
    }
    
    /**
     * determine install status
     */
    if (( (!file_exists('includes/configure.php') && !file_exists('includes/local/configure.php')) ) || (DB_TYPE == '') || (!file_exists('includes/classes/db/' .DB_TYPE . '/query_factory.php'))) {
      header('location: zc_install/index.php');
      exit;
    }
    /**
     * load the autoloader interpreter code.
    */
    require('includes/autoload_func.php');
    
    /**
     * load the counter code
    **/
    // counter and counter history
      require(DIR_WS_INCLUDES . 'counter.php');
    
    // get customers unique IP that paypal does not touch
    $customers_ip_address = $_SERVER['REMOTE_ADDR'];
    if (!isset($_SESSION['customers_ip_address'])) {
      $_SESSION['customers_ip_address'] = $customers_ip_address;
    }
    ?>
    and does not contain the line:
    $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
    anywhere.

    The only place I could find it was in:
    /includes/init_includes/init_file_db_name.php

    Is there something in that file that I should use to get the lock to appear?

    Here is the shared SSL address:
    https://ssl.perfora.net/praiseandplay.com

    Any help would be greatly appreciated, thank you.

  2. #2
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    Idea or Suggestion Re: SSL with 1and1

    Okay, nevermind, got it working. Thanks.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SSL with 1and1

    For the record, all the fixes in that big 14-page thread have already been incorporated into Zen Cart since v1.2.7 and newer.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 Cannot sign-in with shared SSL and 1and1
    By rayw1679 in forum Upgrading to 1.5.x
    Replies: 70
    Last Post: 23 Feb 2013, 11:41 PM
  2. SSL Problems with 1and1 and Geotrust
    By whiteknight1 in forum General Questions
    Replies: 2
    Last Post: 17 Feb 2011, 09:57 PM
  3. Replies: 4
    Last Post: 27 Mar 2010, 02:05 PM
  4. SSL help on 1and1 host
    By Lost and Confused in forum Basic Configuration
    Replies: 27
    Last Post: 30 Jan 2010, 12:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg