Location: PHPKode > projects > Matt's March Madness > trunk/admin/index.php
include 'functions.php';

<script type="text/javascript">

function confirmPathsToVictory(truncate)
	var message = "Are you sure you want to calculate paths? \n\n\
ONE sweet 16 game must have already been played or this will time out. \n\n\
If all sweet 16 games or more are left, you must run this from the terminal. \n\n\
	Example: php ./mmm/admin/calculate_paths_to_victory.php\n\n\
Obviously, you can only feasibly calculate this (hours instead of years) after the first round.";

	if( window.confirm(message) )
		window.location.href ="calculate_paths_to_victory.php?truncate="+truncate;


	<div id="main">
		<div class="full">
			<h2>Select a Task</h2>
				<li><a href="install.htm">(Re)Configure the site</a></li>
				<li><a href="paid.php">View Paid List</a></li>					
				<li><a href="../code.php">Email Submission Code</a></li>				
				<li><a href="start.htm">Initialize the Bracket</a></li>
				<li><a href="bracket.php">Edit Master Bracket</a></li>
				<li><a href="edit.php">Edit a Bracket</a></li>
				<li><a href="paid.php">Edit Paid List</a></li>
				<li><a href="blog.php">Add/Remove Blog Posts</a></li>
				<li><a href="rules.php">Edit Rules</a></li>
				<li><a href="close.php">Close Bracket Submission</a></li>
				<li><a href="score.php">Score All Brackets</a> (performed automatically when editing the master bracket)</li>
				<li><a href="javascript:confirmPathsToVictory(false)">Recalculate Paths To Victory</a> (From sweet 16)</li>
				<li><a href="javascript:confirmPathsToVictory(true)">Recalculate Paths To Victory AND delete previous calculations</a> (From sweet 16)</li>
Return current item: Matt's March Madness