GMH Posted March 28, 2003 Share Posted March 28, 2003 can someone please send me the original, unmodified english/default.php file as i managed to mess mine up and dont know how to correct it! I just want to past it back in. email is easiest. Thanks! Link to comment Share on other sites More sharing options...
GMH Posted March 28, 2003 Author Share Posted March 28, 2003 Please ignore my post i managed to find the problem. Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 17, 2008 Share Posted June 17, 2008 Please ignore my post i managed to find the problem. Hi, I have messed up mine too. Its the Privacy.php file that I have accidentally deleted and now my page shows error. Wpuld need to know where I can restore back. Please help. Link to comment Share on other sites More sharing options...
BryceJr Posted June 17, 2008 Share Posted June 17, 2008 Hi, I have messed up mine too. Its the Privacy.php file that I have accidentally deleted and now my page shows error. Wpuld need to know where I can restore back. Please help. You can find a "privacy.php" in oscommerce. Download oscommerce and replace the one you deleted. http://www.oscommerce.com/solutions/downloads Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 17, 2008 Share Posted June 17, 2008 You can find a "privacy.php" in oscommerce. Download oscommerce and replace the one you deleted. http://www.oscommerce.com/solutions/downloads Thank you very much Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 18, 2008 Share Posted June 18, 2008 Thank you very much Im back again, downloaded the privacy php as itself, but after that, i received error, "Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/.......in /home/........./functions/compatibility.php on line 18" Please help. Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 19, 2008 Share Posted June 19, 2008 Urgent for the error. Please help or PM me. Really appreciate it. Link to comment Share on other sites More sharing options...
markg-uk Posted June 19, 2008 Share Posted June 19, 2008 Urgent for the error. Please help or PM me. Really appreciate it. where else is the do_magic_quotes_gpc declared then? Its not in the privacy.php file from the v2.2 Release Candidate 2a ZIP file Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 19, 2008 Share Posted June 19, 2008 where else is the do_magic_quotes_gpc declared then? Its not in the privacy.php file from the v2.2 Release Candidate 2a ZIP file That error message came up in my web page. I have re-load the privacy.php back to where they were originally in the file manager. But things just won't go back. http://girlysaffair.com/raspberryday/privacy.php Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 20, 2008 Share Posted June 20, 2008 Below is the detail in compatibility.php --- what is wrong?? //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } if (!function_exists('array_splice')) { function array_splice(&$array, $maximum) { if (sizeof($array) >= $maximum) { for ($i=0; $i<$maximum; $i++) { $new_array[$i] = $array[$i]; } $array = $new_array; } } } if (!function_exists('in_array')) { function in_array($lookup_value, $lookup_array) { reset($lookup_array); while (list($key, $value) = each($lookup_array)) { if ($value == $lookup_value) return true; } return false; Link to comment Share on other sites More sharing options...
BryceJr Posted June 20, 2008 Share Posted June 20, 2008 Post the privacy.php file here AND indicate what folder you got it from. Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 20, 2008 Share Posted June 20, 2008 Post the privacy.php file here AND indicate what folder you got it from. This is the privacy.php , got it from" /public_html/raspberryday/ " and also in " ....languages/english" Sorry it's abit long and Im lost, please bear with me. <?php /* $Id: privacy.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRIVACY); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRIVACY)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
BryceJr Posted June 20, 2008 Share Posted June 20, 2008 Now, we're getting somewhere. There are 2 privacy.php files. They have identical filenames but very different file. This is privacy.php file from includes/languages/english folder <?php /* $Id: privacy.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', 'Put here your Privacy Notice information.'); ?> You placed another copy of privacy.php file meant for the root directory in your includes/languages/english folder Place the correct privacy.php file in the includes/languages/english folder and the error should go away. Link to comment Share on other sites More sharing options...
Girlysaffair Posted June 20, 2008 Share Posted June 20, 2008 Gosh, it's my silly mistake and trying to act clever. Thank you very much. It's back to normal again. YAYYYY!!! :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.