72 // NAME : Index.php // PURPOSE : Intro to the site. // Starts a session, initializes various session variables. // If user cookie exists, loads certain player and game info into // session variables and exits to memberhome.php. // If cookie doesn't exist, displays intro page with login option. // CALLED BY : Browser default // CALLS : member-home.php (automatically by header if snort cookie exists) // : this is Level 1 command center. // : snl2-commandcenter.php (automatically by header if snort cookie exists) // : and user is registered as L2 or admin. // CALLS : snl1-login.php (by 'Login' link if snort cookie does not exist) // CALLS : snl1-intro1.php (by 'Next' link) // CALLS : Welcome.html (by 'Help' link) // MODIFIED : 071118 // REASON : Convert Timestamp to date // MODIFIED : 071120 // REASON : Update Look & Feel // MODIFIED : 080215 // REASON : Get Player info from db instead of cookie // MODIFIED : 080217 // REASON : Clean up for release // MODIFIED : 080219 // REASON : Add code for Level 2 refer and PHP require // MODIFIED : 130709 // REASON : Redesign // ******************************************************************* // ************** BEGIN CODE **************************************** // ******************************************************************* session_start(); // Initialize session variables $_SESSION['snl1ErrorMessage'] = ""; //Initialize $_SESSION['snl1UserInfo'] = ""; $_SESSION['Host'] = "SNG2014.db.11547561.hostedresource.com"; $_SESSION['User'] = "SNG2014"; $_SESSION['sqlPassword'] = "Apollo0250!"; if (isset($_COOKIE['snuser'])) // assumes only one player per Windows account, // i.e. cookie is unqiue to Windows account { /* Deleted 081113. This is duplicated in memberhome.php // Put user info into session variables $PlayerInfo = explode("-",$snuser); $_SESSION['Player'] = $PlayerInfo[0]; $_SESSION['inPassword'] = $PlayerInfo[1]; $_SESSION['inEmail'] = $PlayerInfo[2]; $_SESSION['inGames'] = $PlayerInfo[3]; $_SESSION['inSF'] = $PlayerInfo[4]; $_SESSION['inReminder'] = $PlayerInfo[5]; $_SESSION['inNextIntNum'] = $PlayerInfo[6]; */ header ("Location:member-home.php"); exit; } // require("snfunctions.php"); ?> Welcome to the Success Now! - Home Page


       
 
 Home    Player Apollo    Mentor Dennis Register |  Login  (?)     
Complete 9,999 Open 9,999 Supporting 9,999 C/I 100 % Success Factor 100 % Subscribers 1,000,002
 
            Next   
  
  
   LeaderBoard       FAQ / Help
   Preferences        Forum
   Upgrades            Contact
   Share                 Advertise
   Donate               More ...
      
 
© 2002-2014 by Len Hodgeman