In a rush
The instructions below are for those at large with PHP, MySQL, FTP and
Telnet. Here are what one should do, not how this should be done. For
more detailed instructions, see Step by Step installation.
TopSecret needs only two files to work:
- TopSecret.config
- Here are the configurations.
-
- TopSecret.php
- The program itself.
So, let's set it to work:
- Open the file TopSecret.config in a simple editor, like Notepad (don't use Word or the likes).
- Change the configuration accordingly:
-
- $Database
- The database name where the TopSecret table will reside.
-
- $user
- The login name to database. Important: see the Security page about that.
-
- $password
- The password to access the database.
-
- $user_table
- This is the user's table, inside the Database above.
-
- $logout_page
- This page is loaded when the user closes the section.
-
- $error_page
- This page is loaded if a database error occurs.
-
- $timeout = 30;
- Time, in seconds, during which the logged user can goes out and turn in
again, without need re-authentication. Note that the user will not be
disconnected after this period. Once in the page, there is no time
concerns.
-
- Save it like a file.
- Upload the two files to your site.
- Create the database
- A SQL command file, called TopSecret.sql
, is included in the TopSecret zip file. Use it to create the TopSecret tables. An insert command is
included to create an user named 'guest'. To a real use, don't forget to
delete it.
- Make a try:
- login.html
- Initiate the test reading this file in your browser (from your server, not from your local machine).
-
- treasure.php
- The protected file. See the first line in it. That's all you need to do to protect a file.
-
- goodbye.html
- error.html
- Accessories files to the test.
Type in the address of your site, accessing the login.html file. Hit the
Enter link. You should be prompted to login. If this not happens, try
the Step by Step instructions.
- Read the Security issues.
- Enjoy TopSecret.