Php_protection Problem

Discussion in 'Setting-up protection' started by stephanie, Sep 24, 2003.

  1. stephanie

    stephanie Guest

    Hi,

    Can someone please check this for me? I am trying to set up the PRO version, but having lots of problems.

    I am using php_include for protection. Have 4 products, and in the rewrite.php, there is a section where we are supposed to put in the info for the products.

    Can you check if the below is correct.
    It is for product 3, people who have access to product 3 should have access to all other products. But it is not working!!!!

    ==============

    $_product_id = array(1,2,3,4);
    $dir = dirname(__product1__product2__product3__product4__);

    ================

    THanks for your help.
    I am asking this in the forum and not directly to Alex because I need a solution urgently, and there is a time difference between Europe and Alex. :-}
  2. GaryJ

    GaryJ Guest

    Stephanie:

    This is and example of what I have in my protect.inc files:

    <?
    $_product_id = array(1,2,3,4);
    require_once '/mysite/amember/plugins/protect/php_include/check.inc.php';
    ?>

    Gary
    www.med-ref.com
  3. Guest

    Guest Guest

    Hi Garry,

    First of all, thanks for your reply.

    when you say the protect.inc files, you meant the rewrite.php files right??

    Just to confirm, am getting a bit confused, and running against a deadline.
    Have to get all this to work by tomorrow and pannicking.

    Thanks,
    Stephanie
  4. stephanie

    stephanie Guest

    Just put the following line in, but it didn't work. Giving me error messages.

    require_once '/mysite/amember/plugins/protect/php_include/check.inc.php';
  5. GaryJ

    GaryJ Guest

    I don't believe I've ever had to amend the rewrite.php file, I've just had to edit the protect.inc file and put one in each protected directory (customized for the directory it's in).
  6. Guest

    Guest Guest

    Hi Garry,

    I am editing the rewrite.php files because that's what it says in the instruction booklet.

    Actually I can't even find the protect.inc file in my protect folder.

    This is getting really frustrating.

    I have everything set up and it works, except for the fact that the people who are allowed to access more than one product, when they click on the link to go to another product area, then it all falls apart.

    I am pannicking as it all has to work by tomorrow. :-{
    or will be in trouble with the boss since I recommended using Amember.

    THanks for your help anyway.

    Stephanie
  7. GaryJ

    GaryJ Guest

    Sorry, I was referring to auto_prepend with php_include; looks like you're using mod_rewrite with php_include. Check out the introduction of auto-prepend to see if it fits your needs. I've had no problems with the auto_prepend at all.

    You made a good decision on the software. Amember is the best software out there for subscription management. Alex provides excellent support. You might try emailing him at: support@cgi-central.net.
  8. alex-adm

    alex-adm Guest

    The problem looks like to be related with browser caching - it caches login page and displays this even when customer logged-in.
    Lets see if last fixes will help.
    Thank you, Stephanie, for reporting this issue.

Share This Page