osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-30-2003, 04:17 AM
Lurker
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Gyakutsuki
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-30-2003, 09:14 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-30-2003, 09:42 AM
Lurker
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Gyakutsuki
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 10:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax