Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

marcsinfo

Pioneers
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Real Name
    Marc Sanschagrin

marcsinfo's Achievements

  1. Hi, Oups, sorry the .PHP should not be in there just FILENAME_MAINTENANCE_INDEX, too much pain killer's I think.
  2. Hi, I think it was too obvious for me who don't know much about PHP, I got my self a book and found out that I just needed to add the maintenance_index.php file to the list of excluded files, so that it reads like this. // BOF: [TiM's osC Solutions] Require customers to login if (!defined('REQUIRE_LOGIN')) { tep_db_query( "insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Require login', 'REQUIRE_LOGIN', 'false', 'Require users to login before they can see the catalog. This redirects any guests to the login page.', '1', '22', now(), null, 'tep_cfg_select_option(array(\'true\', \'false\'),');" ); define('REQUIRE_LOGIN', 'false'); } if (!tep_session_is_registered('customer_id') && REQUIRE_LOGIN == 'true') { if (!in_array(basename($PHP_SELF), array(FILENAME_LOGIN, FILENAME_LOGOFF, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US, FILENAME_SITEMAP, FILENAME_CREATE_ACCOUNT, FILENAME_CREATE_ACCOUNT_SUCCESS, MAINTENANE_INDEX.PHP))) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } } // BOF: [TiM's osC Solutions] Require customers to login For those who like me are begining with PHP.
  3. Hi, After verifying once again, I have found a typo, I may have hit a key when pasting in the application_top.php file, sorry and thanks again for this great contribution. Marc
  4. Hi, After restoring my site to the state it was before the first installation of PHPIDS, I have redone the installation with my corrected tools.php file. But during install I got the same error message. Warning: Cannot modify header information - headers already sent by (output started at "path to this folder and file" admin/phpids_installer.php:33) in "path to this folder and file" admin/phpids_installer.php on line 133 And this time the PHPIDS logs and Banned IP menu was complete and functional, all tests seem to be good. But when ever I enable PHPIDS module, I can't connect to my site from any IP address (eventualy fail because of too many redirections), my IP address is not in the Banned IP list. Any help, would be appreciated. Thanks. Marc
  5. Hi, First I woul like to thank everyone who contributed to this great contribution. I'm trying to install this contribution butat step B-5 after brwosing to "admin/phpids_installer.php" I get the following error message. Warning: Cannot modify header information - headers already sent by (output started at "path to this folder and file" admin/phpids_installer.php:33) in "path to this folder and file" admin/phpids_installer.php on line 133 And also in my admin panel there is no more functionality available, only menu items, nothing selectable. I followed the instructions carefully, I'm working on a purchassed template 2.2 Rc1 PHP 5.2.1.4 When replacing the modified file admin/include/boxes/tools.php with the original one I could get back my acces to all the admin functionality. When doing the tests, everything was working fine and was reported as excpected. But when I click on Banned IP in control pane I get a 404 error and it's looking for FILENAME_BANNED_IP, same thing for the PHPIDS logs but this time it's looking for FILENAME_PHPIDS. My question is can it be fixed from there or do I have to reinstall everything? I think it was due to my admin/include/boxes/tools.php which I had to correct for the PHPIDS logs and Banned IP menu items to appear. Help would be greatly appreciated. Thanks. Season's greetings. Marc
  6. Hi, First I would like to thank you for this contribution that I really appreciate it works perfectly fine. The only problem I have now is when I tried to install the contribution "[TiM's osC Solutions] Require customers to login", the maintenance page does not load anymore the open and closed mode are functioning properly with this contribution. It only adds this to the application_top.php file. In /catalog/inlcudes/application_top.php *** At the end of the file, find *** ?> *** Before that, add *** // BOF: [TiM's osC Solutions] Require customers to login if (!defined('REQUIRE_LOGIN')) { tep_db_query( "insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Require login', 'REQUIRE_LOGIN', 'false', 'Require users to login before they can see the catalog. This redirects any guests to the login page.', '1', '22', now(), null, 'tep_cfg_select_option(array(\'true\', \'false\'),');" ); define('REQUIRE_LOGIN', 'false'); } if (!tep_session_is_registered('customer_id') && REQUIRE_LOGIN == 'true') { if (!in_array(basename($PHP_SELF), array(FILENAME_LOGIN, FILENAME_LOGOFF, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US, FILENAME_SITEMAP, FILENAME_CREATE_ACCOUNT, FILENAME_CREATE_ACCOUNT_SUCCESS))) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } } // BOF: [TiM's osC Solutions] Require customers to login I don't know exactly how to add a check that if STORE_MODE is in maintenance mode, to define('REQUIRE_LOGIN', 'false'); and I'm not sure if it's the right place to modify or should the maintenance_index.php file should be modified in some way instead. Any help would be greatly appreciated. Thanks.
  7. Hi, I have followed the instructions to install this contributions, that I'm sure will be really usefull. But when I try to run it I get this error message. 1146 - Table 'marcsinf_keliane.TABLE_NEWSDESK' doesn't exist select newsdesk_image as image from TABLE_NEWSDESK [TEP STOP] I have verified and no table NEWSDESK exist in my data base. Do I have to create such table, but how many fileds etc... Your help would be much appreciated. Thanks.
×
×
  • Create New...