// Written by 1equals1--
// The database format for this script is:
// 900.800.6.000
// Noob
// This script may have a bug, if the Data Base is too big problems may occur.
// I will edit this comment when the Data Base size is determined.
int main()// Begin main()
{
// Initialize variables
string vIP = getVisitorIP();// vIP will be our visitor
string me = getHostIP();// me will be whoever is reading this
int i = 0;// i represents the number of iterations in our loop
int lines = countLines("list");// The number of lines in our file, this is important so we don't try to count more lines than we have
boolean notfound = true;// Did we find the visitor? Sofar no, so this will be true for now.
// Search for vIP in the file
while(i < lines)
{
// If there is a match
if(readLine("list",i) == vIP)
{
// Log message with visitors name
logMessage(readLine("list",i+1) + " has entered your website!");
// notfound is now false, because because visitor has been found
notfound = false;
}// End if(readLine == vIP)
i++;// Increase iterations counter by 1
}// End while(i<lines)
// If visitor wasn't found
if(notfound == true){
// Log messaeg with visitors IP
logMessage(vIP + " has entered your website!");
}// End if(notfound)
}// End main()
// If anyone needs help with this script, or any other script. Contact 1equals1--
// I will most likely not give you a solution, but will aid you in finding your own solution.