Changeset - 204646589c3f
[Not reviewed]
Merge default
0 2 0
nathang - 15 years ago 2010-07-09 12:21:38
ngelderloos7@gmail.com
merge
2 files changed with 11 insertions and 6 deletions:
0 comments (0 inline, 0 general)
input.php
Show inline comments
 
@@ -232,8 +232,8 @@
 
<p>
 
<?php
 
if(isset($_SESSION['saved']))
 
	foreach($_SESSION['saved'] as $schedule)
 
		echo "Saved Schedule<br />";
 
	foreach($_SESSION['saved'] as $key => $schedule)
 
		echo "<a href=\"process.php?savedkey=$key\">Saved Schedule $key</a><br />";
 
else
 
	echo "No saved schedules!<br />";
 
?>
process.php
Show inline comments
 
@@ -62,7 +62,12 @@ if(isset($_GET['debug']))
 

	
 
if(!$DEBUG){
 

	
 

	
 
	if(isset($_GET['savedkey'])){
 
		$savedSched = unserialize($_SESSION['saved'][$_GET['savedkey']]);
 
                $savedSched->findPossibilities();
 
		$savedSched->writeoutTables();
 
	}
 
	else{
 
	$allClasses = new Schedule("Fall 2010");
 

	
 
	foreach(sortInputs($_POST) as $class)
 
@@ -79,8 +84,8 @@ if(!$DEBUG){
 
	$allClasses->writeoutTables();
 
	if(!isset($_SESSION['saved']))
 
		$_SESSION['saved'] = array();
 
	array_push ( $_SESSION['saved'], $allClasses );
 
	$_SESSION['meh'] = "MEH!";
 
		array_push ( $_SESSION['saved'], serialize($allClasses));
 
	}
 

	
 
} else {
 

	
 
@@ -101,4 +106,4 @@ if(!$DEBUG){
 

	
 
}
 

	
 
?>
 
\ No newline at end of file
 
?>
0 comments (0 inline, 0 general)