View Single Post
  #14  
Old 04-04-2012, 11:14 AM
wildwillie wildwillie is offline
Approved Member
 
Join Date: Aug 2010
Posts: 111
Default

_79_dev -

Did you update the adminLogin2.php file to reflect your web servers IP address. This was from FBDj and I probably have not documented it in IL2ClodCommander yet.

Anyhow the section of code:
Code:
    	setcookie("auth", "1", 0, "/", "192.168.1.5", 0);
you need to change 192.168.1.5 to the IP address of your Web Server.

Also make sure that there is an entry in the adminUsers table in MySQL. There was a line in the clodstats database insert file :
Code:
INSERT INTO `adminUsers` (`lastName`, `firstName`, `username`, `password`) VALUES
( 'Default', 'Administrator', 'clodadmin', password('clodadmin'));
Which created the default login information (UN: clodadmin PW: clodadmin)

That is all you need to do. Unless there is something on your Web Server/Web browser that is preventing cookies. I'm not the best php coder, but this whole process is to have an admin section where only select people can access.


WildWillie
Reply With Quote