This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Start a new sesssion for this user if necessary. | |
if(session_id()=="") | |
{ | |
session_start(); | |
header("Cache-control: private"); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Set up the tables that we will store data in. | |
//If these tables already exist from a previous installation, | |
//they will not be changed in any way. | |
$unused = mysql_query('create table if not exists members (id int not null auto_increment, primary key (id), name text, passwordHash text, email text)') | |
or die("Unable to install the member table!"); | |
//If the options are messed up you can uncomment the following line to restore | |
//everything to its default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file handles the initialization logic. | |
// It handles session control, connects to the database server and recreates the | |
// database structure if needed. | |
//Start a new sesssion for this user if necessary. | |
if(session_id()=="") | |
{ | |
session_start(); |
NewerOlder