How can I prevent a user to go into myphpadmin from any PCs in the intranet? Is there any password restriction on that?
Don't allow the "config" option for authentication in phpMyAdmin... use HTTP instead
User can distribute the web-based system freely by copying the whole apache, mysql, php folders? How can I restrict this? Can PHP read from the windows registry? I'm using xampplite for my testing purposes, and I can easily copy the whole folder to use it in pther PCs, in which I want to prevent this.
There's no easy way to do this, except for setting specific permissions on the folder containing it, allowing only you and the web service to view it. Then, just properly set the access file to disallow viewing of anything except the few pages you need. And turn off indexing.
Alternatively, you could purchase a code obfuscator like IonCube or Zend. Now, with those, you have to have one or the other engine installed on the server for them to run. Then your friends could download the code, but couldn't read it because it's byte-code. That's what a lot of "shareware" vendors do.
I would like to have a time limitation for the system usage e.g. the web-based cannot be accessed after 31/12/2006. How secure is it to use the SYSDATE() checking?
Why use sysdate? Why not just use date() to get the date and time? Then you can check if the current time is past the preset time. I don't see a security issue with date or SYSDATE() (not that I know what SYSDATE is)