Location: PHPKode > projects > PHP Grade Book > phpGradeBook/config.inc.php
<?php
	$version = "1.9.4 - BETA";
	
	// The file which describes the upper part of the HTML code
	$top_part = "top.inc.php";
	// The file which describes the bottom part of the HTML code
	$bottom_part = "bottom.inc.php";

	//0 = ShowAllClass
	//1 = ShowClassGrades
	//2 = ShowIDGrades
	//3 = ShowAttendance
	//4 = TableHeadColor
	//5 = TableRowColor1
	//6 = TableRowColor2
	//7 = PublishAttendance
	//8 = CatagorizeAttendance
	//9 = UsePasswords
	//10 = DateFormat
	//11 = ExcuseCode
	//12 = PublishStats

	if($user=="CHANGEME") { echo "You have not configured phpGradeBook yet."; exit; }
	global $connection;
	$connection = mysql_connect($host, $user, $pass) or die ("SQL server problem");
	$query = "SELECT * from ".$dbprefix."GlobalConfig";
	mysql_select_db($dbname, $connection);
	$result = mysql_query($query);
	if ($result) {
                $row = mysql_fetch_row($result);
	$ShowAllClass = $row[0];	
	$ShowClassGrades = $row[1];
	$ShowIDGrades = $row[2];
	$ShowAttendance = $row[3];
	$TableHeadColor = $row[4];
	$TableRowColor1 = $row[5];
	$TableRowColor2 = $row[6];
	$PublishAttendance = $row[7];
	$CatagorizeAttendance = $row[8];
	$UsePasswords = $row[9];
	$DateFormat = $row[10];
	$ExcuseCode = $row[11];
	$PublishStats = $row[12];


	//Setting todays date in the admins custom format.
        $AutoDate=eregi_replace("MM", "m", $DateFormat); $AutoDate=eregi_replace("DD", "d", $AutoDate); 
        $AutoDate=eregi_replace("YYYY", "Y", $AutoDate); $AutoDate=eregi_replace("YY", "y", $AutoDate);
        $TodaysDate=date($AutoDate); //echo date($AutoDate);

		} else {
		echo "It appears that phpGradeBook's Database has not been installed yet.<br><b>Please Install</b>"; exit;
		}



?>
Return current item: PHP Grade Book