TopSecret Logo
Brought to you by:
www.agostinhorosa.com.br
 


Step by step installation guide

TopSecret needs only two files to work:
TopSecret.config
Here are the configurations.
 
TopSecret.php
The program itself.

All this are plain text files. The tool to deal with each one is Notepad or some other programmer's editor. Don't try edit them with Word, WordPerfect or any other heavy-weight word processor. And remember: all the text is case-sensitive.

By now, we will take care of the first one, TopSecret.config.

I consider that your server handles PHP files adequately. For those cases when the things goes wrong, I have been included the test.php file in the distribution zip file. Upload it to the server and call it from your browser. You should receive a page with all PHP information. If this not happens or if you receive it like a txt file, with the PHP code visible, or even if a download have been initiated, thus contact your ISP support.


Create the database

Each server has its own SQL interface. This is about how you takes care of your data stored in the server. There are two basic kinds: a web interface or a SSH/Telnet access.

In the web side, PHPMyAdmin is a popular choice and there are chances that your ISP have been provided it to you. Indeed, no matter which tool you have, all their are very similar and operates in the same manner. All you need is a box in which you can paste a SQL query.

The SSH/Telnet access is a bit more complicated, since you will need to log onto the server, and access the MySQL server in a command line fashion.

If you don't know about your options, search the administration page of your site on the scent of SQL. You should find the way.

The file TopSecret.sql, included in the distribution zip file, have all you need in both situations.

  1. Web interface
    1. Connect to the Internet.
    2. Go to the administrative page of your site.
    3. Access the PHPMyAdmin (or the like).
    4. Search for the box entitled SQL Query (or something similar).
    5. Open the file TopSecret.sql in Notepad.
    6. Select all the text in TopSecret.sql.
    7. Copy it to the Clipboard (Edit - Copy).
    8. Turn on to the browser and paste the text into the box entitled SQL Query.
    9. Hit the Go button.
    10. Check the return message to see if all has gone successful.

  1. SSH/Telnet
    1. Upload the file TopSecret.sql to the server.
    2. Log onto the server.
    3. Go to the directory for what you have been uploaded the TopSecret.sql.
    4. Use the TopSecret.sql to insert your tables. Normally, the user and password to MySQL access is the same that one you use to log onto your site. If it's not the case, consider an search in your Post-Its :>)
    5. The command to create the tables is:

      $mysql -u user -p database_name < TopSecret.sql

Making a try

To facilitate to first contact with TopSecret we've been provided four files:

login.html
This is the test's home-page.
 
treasure.php
This is the protected file, e.g. that's one that contains the contents you like to keep secure. See the first line in it. That's all you need to do to protect any file.
 
goodbye.html
error.html
Accessories files to the test.

Upload all these files to your server.

Once you have been uploaded the files, access the login.html file from your site. You should be prompted to login. If you have been used the TopSecret.sql, the combination guest/guest should give you access to the treasure.php page.