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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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
|
|
#3
| |||
| |||
| 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 > > $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 > > $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 > é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 |
| Thread Tools | |
| |
| ||||
| 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 |