Election software/config.php

From Wikimedia Australia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<?php
// -----------------------------------------------
// Global Variables
// These will need to be updated for each install
// -----------------------------------------------

$dbhost = '';   		// The url of the database. Normally localhost
$dbuser = '';			// Username for the database
$dbpass = '';			// Password for the database
$dbname = '';			// Database name
$email  = '';		        // Email address for queries. Used as a return address for emails sent from this system.
$year   = ;			// Year of the election. 
$url    = '';	                // URL of the main  voting page (this one, in effect)
$salt   = 'salt';		// A salt for password generation/encryption

// -----------------------------------------------
// Template Files
// These probably won't need to be changed
// -----------------------------------------------

$template = 'template.inc';			// The main layout page
$introform = './introduction.inc';			// The introduction text
$instructions = './instructions.inc';		// Instructions on how to vote
$adminmenu = './admin.inc';			// Administration tasks
$defaultpage = 'index.php';				// The main page. Only needs to be changed if you alter the file name.
?>