<?php

/**
 * Update file for JobWantedman
 *
 * @version $Id: update.php,v 1.2 2004/12/27 16:46:44 gbrackett Exp $
 * @author  George Brackett <gbrackett@NOSPAM.luceatlux.com>
 */

/* return to home page if the user is not a Deity */
if (!$_SESSION["OBJ_user"]->isDeity()){
	header("location:index.php");
	exit();
}

$status = 1;

if (version_compare($currentVersion, "1.1") < 0) {
	$content = "Updating Positions Wanted to version 1.1 .<br />";
	
	/* reload the help information if help system is loaded */
	if(isset($_SESSION["OBJ_help"])) {
		CLS_help::uninstall_help("jobwantedman");
		CLS_help::setup_help("jobwantedman");	
		$content .= "New Positions Wanted help successfully loaded.<br />";
	} else {
		$content .= "Unable to update Positions Wanted help data.<br />";
	}
	
	$content .= "Update to version 1.1 finished.<br />"; 
}

?>
