catherinePHP Posted May 17, 2013 Share Posted May 17, 2013 Hello I have many php scripts and I want the user to agree to the terms of use before using them, I want a way to code it in which the user can never use any of the scripts without agreeing. I found some scripts online but all were not working properly because a user can directly go to the script link without going through the terms of use first. please help. Quote Link to comment Share on other sites More sharing options...
dalecosp Posted May 17, 2013 Share Posted May 17, 2013 So, I assume they'll be downloading the scripts?If so, some thoughts:a] Password protect the site, require a TOS agreement at registration.b] Create a "reader script" which does whatever frontend you require (filling in a TOS form), then reads the script's code from *outside* the web root and outputs it to the browser/whatever. c] Check $_SESSION vars at the top of each script and redirect to the TOS page if the correct variable hasn't been set (ostensibly by clicking the right boxes on the TOS).HTH, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.