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

Are these correct?

This is a discussion on Are these correct? within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; Hi.I almost know nothing about web site creation.While following addon guides i couldnt figure out how the codes should look ...

      
  1. #1
    Lurker
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0


    Default Are these correct?

    Hi.I almost know nothing about web site creation.While following addon guides i couldnt figure out how the codes should look after i paste the new lines.I am asking if there are spaces between lines and should the lines be aligned to left or is there a space.Generally what do i need to do after pasting the lines.I put the lines before and after pasting.Are these codes below correct?Also i would ask the location of htaccess file.Thanks

    security pro

    before

    // set php_self in the local scope
    if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

    if ($request_type == 'NONSSL') {
    define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
    } else {
    define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
    }

    after

    // set php_self in the local scope
    if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    // Security Pro by FWR Media
    include_once DIR_WS_MODULES . 'fwr_media_security_pro.php';
    $security_pro = new Fwr_Media_Security_Pro;
    // If you need to exclude a file from cleansing then you can add it like below
    //$security_pro->addExclusion( 'some_file.php' );
    $security_pro->cleanse( $PHP_SELF );
    // End - Security Pro by FWR Media
    if ($request_type == 'NONSSL') {
    define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
    } else {
    define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
    }


    -----------------------------------------------

    before

    // include the list of project filenames
    require(DIR_WS_INCLUDES . 'filenames.php');

    // include the list of project database tables
    require(DIR_WS_INCLUDES . 'database_tables.php');


    after

    // include the list of project filenames
    require(DIR_WS_INCLUDES . 'filenames.php');
    // IP Trap V5
    include(DIR_WS_INCLUDES . 'secret.php');
    // include the list of project database tables
    require(DIR_WS_INCLUDES . 'database_tables.php');

  2. #2
    New Member
    Join Date
    Mar 2012
    Posts
    21
    Rep Power
    0


    Default Re: Are these correct?

    There is something called "code etiquette" which dictates how the code should be displayed, however it will have no effect on the function of your site if you choose not to use it, if you are planning to have a seasoned programmer take a look at your code then it may be worth looking into if not then I wouldn't lose any sleep over it. Just make sure that there is no white space after the lines as this can sometimes cause errors or cause things to not display properly.

Similar Threads

  1. UK Counties (Actually Correct!)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-27-2009, 11:00 AM
  2. UK Counties (Actually Correct!)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-26-2008, 09:12 AM
  3. How to correct distorted pictures?
    By flasher in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 03-09-2008, 03:32 PM
  4. Is this the correct setting?
    By CatieKoch in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 06-23-2006, 07:59 PM
  5. 404 - page not found. Database correct. Permission correct.
    By Futureline in forum osCommerce 2.2 Installation Help
    Replies: 4
    Last Post: 03-04-2003, 02:08 PM

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
  •