osCmax v2.5 User Manual
Results 1 to 3 of 3

define Mainpage pb ssl and nonssl

This is a discussion on define Mainpage pb ssl and nonssl within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; hello ! i have a pb with define_mainpage files. If you are a https ://mysite.com......./english/mainpage.php if you are a http ...

      
  1. #1
    Lurker
    Join Date
    Sep 2003
    Posts
    2
    Rep Power
    0


    Default define Mainpage pb ssl and nonssl

    hello !

    i have a pb with define_mainpage files.
    If you are a https://mysite.com......./english/mainpage.php
    if you are a http://mysite.com......./english/mainpage.php
    (the servers are differents)

    you administration site is on https://mysite.com/admin

    When you save by define mainpage your text, the text is saved on https://mysite.com......./english/mainpage.php
    and no on http://mysite.com......./english/mainpage.php

    how to do for saved on https://mysite.com......./english/mainpage.php and http://mysite.com......./english/mainpage.php in the same time

    if it's not possible only on http://mysite.com......./english/mainpage.php

    Thanks for your response and you help

    regards

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Please clarify. I am not sure what the trouble is here.

    define mainpage in the admin should not have any trouble if your are using SSL...

    You do not access define mainpage directly. You need to edit it through the admin. Click the 'Define Mainpage' link in 'Catalog' and edit the page in the editor. Then save it.

    Changes will update automatically....
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Sep 2003
    Posts
    2
    Rep Power
    0


    Default

    There an example :
    With define mainpage you can write un mainpage.php ok but only on one server.
    If you are on nonssl you save on nonssl
    If you are in ssl you save in ssl
    If you are ssl (catalog and admin) and nonssl(catalog) you save only in ssl.
    On this site,
    https://www.bleu-lavande.com/us/catalog/index.php
    http://www.bleu-lavande.com/us/catalog/index.php


    My admin is on ssl :
    if I change by mainpage.php, i change only ssl (define_mainpage)
    I must to copy https://wwww.../languages/english/mainpage.php on nonssl http://wwww.../languages/english/mainpage.php if i want the same presentation.

    i try to analyse the code, here my observation but i does not a programmer (i must to study against !!).

    ################################################## ####################
    >
    > The identified files in configure.php and mainpage.php
    >
    > admin/includes/Configure.php
    >
    > example with admin is in ssl and catalog is in nonssl in
    > admin/includes/configure.php:
    > define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    > define('DIR_FS_CATALOG',
    > '/home/httpd/vhosts/bleu-lavande.com/httpsdocs/catalog/'); // absolute
    > path required
    >
    > httpdocs=ssl
    > httpdoc=nonssl
    >
    > define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG .
    > 'includes/languages/');
    > define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG .
    > 'includes/languages/');
    >
    > Original (if admin=nonssl and catalog=nonssl or admin=ssl and
    > catalog=ssl only): No change
    >
    > line 45 at 47 (Files identifiction)
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename'];
    > } else {
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']
    > . '/' . $HTTP_GET_VARS['filename'];
    >
    > line 133 / 135 (130/14 Write mode verification
    >
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename'];
    > } else {
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] .
    > '/' . $HTTP_GET_VARS['filename'];
    >
    > line 227 : Save the modification
    > <td align="right"><?php echo '<a href="' .
    > tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' .
    > DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' .
    > tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) .
    > '</a>'; ?></td>
    >
    >
    > If catalog=ssl and catalog=nonssl
    My proposition if the catalog is included in ssl and nonssl
    >
    > include in configure.php
    >
    > define('DIR_WS_CATALOG_NONSSL', '/catalog/'); // absolute path
    > required
    > define('DIR_FS_CATALOG_NONSSL',
    > '/home/httpd/vhosts/bleu-lavande.com/httpdoc/catalog/'); // absolute
    > path required
    >
    > httpdoc = nonssl
    >
    > define('DIR_WS_CATALOG_LANGUAGES_NONSSL', DIR_WS_CATALOG .
    > 'includes/languages/');
    > define('DIR_FS_CATALOG_LANGUAGES_NONSSL', DIR_FS_CATALOG .
    > 'includes/languages/');
    >
    >
    > if admin=ssl and catalog=nonssl then write mainpage in ssl and
    > mainpage nonssl
    >
    > line 45 at 47 ((Files identifiction)
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename'];
    > } else {
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']
    > . '/' . $HTTP_GET_VARS['filename']; +
    >
    > line 45 at 47 (files identification)
    > $file = DIR_FS_CATALOG_LANGUAGES_NONSSL .
    > $HTTP_GET_VARS['filename'];
    > } else {
    > $file = DIR_FS_CATALOG_LANGUAGES_NONSSL .
    > $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename'];
    >
    > line 133 / 135 (130/14 Write mode verification
    >
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename'];
    > } else {
    > $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] .
    > '/' . $HTTP_GET_VARS['filename'];
    > +
    > line 133 / 135 (130/14 Vérification si le fichier est en mode
    > écriture
    >
    > $file = DIR_FS_CATALOG_LANGUAGES_NONSSL .
    > $HTTP_GET_VARS['filename'];
    > } else {
    > $file = DIR_FS_CATALOG_LANGUAGES_NONSSL .
    > $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename'];
    >
    > line 227 : Save the modification
    > <td align="right"><?php echo '<a href="' .
    > tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' .
    > DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' .
    > tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) .
    > '</a>'; ?></td>
    > +
    > <td align="right"><?php echo '<a href="' .
    > tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' .
    > DIR_FS_CATALOG_LANGUAGES_NONSSL . $HTTP_GET_VARS['lngdir']) . '">' .
    > tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) .
    > '</a>'; ?></td>
    >
    > ################################################## ####################
    > ##
    > #####

    how to develop a code where ican to save in ssl and nonssl in the same time. Is it possible ?

    Thank for your answer

Similar Threads

  1. Define MainPage in Admin
    By daffodil in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 07-24-2005, 09:21 AM
  2. WYSIWYG DEFINE MAINPAGE
    By jkempton in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 06-16-2005, 01:42 PM
  3. Define Mainpage
    By Chippy in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 03-15-2005, 09:56 AM
  4. define mainpage
    By jloyzaga in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-19-2004, 10:44 AM
  5. Define Mainpage errors
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-03-2003, 10:00 AM

Bookmarks

Posting Permissions

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