Too Much Media Knowledge Base
Find anything you need to know about NATS and other TMM products right here.
  Please check out our
Visual Knowledge Base
Glossary   
Search  
   
Browse by Category
Too Much Media Knowledge Base .: SPARTA .: How do I design and use sparta_login.php?

How do I design and use sparta_login.php?

sparta_login.php is very easy to change. The basic setup is there, and there are two variables from apache you can use: sparta_error and sparta_username. Both can be fetched with apache_note as shown in the default sparta_login.php.

Other than that, sparta_login.php is a totally normal php script with html right inside of it, so you can design all that you see right there. To modify the size and other settings of the verification image, refer to SpartaVerifyChars, SpartaVerifySize, SpartaVerifyHorizontalLines, SpartaVerifyVerticalLines Apache settings.

Please note that on the login page you can only include files and images that are NOT SPARTA protected. In other words, they need to be located on the free part of your site.

The sparta_username variable will simply be the last username tried with the current session. The sparta_error variable can be one of the following:
  • VERIFY - Means the verification string was not entered correctly
  • NO_USER - Means the form was submitted without a username or password.
  • BAD_USER - Means the username or password was wrong.
  • BLOCKED_USER - The current username or IP is blocked by SPARTA.
  • PERM_USER - The current username or IP is banned by SPARTA.



How helpful was this article to you?

Related Articles

article How do I make my site design work with the templates?
You have an HTML page designed for the system  Here's how you would make it work with NATS: First locate header.tpl in the in the Skins and...

  03-04-2005    Views: 7864   
article How do I change the HTML design of a feed?
 The HTML design of a feed can be changed through the use of the templates available in RSSDish.To modify a template design for HTML, first you...

(No rating)  04-17-2007    Views: 2176   

User Comments

Add Comment
No comments have been posted.


.: Powered by Lore 1.5.4
Copyright (c) 2004-2005 by Too Much Media LLC