Location: PHPKode > projects > MyPBS > mypbs/frontend/main.php
<?php
# MyPBS is a PHP/MySQL/Perl frontend accounting package for the 
# Portable Batch System (PBS). It has advanced features such as 
# projects, service-unit weights, per-user project permissions, 
# and much more.

# Copyright (C) 2004 Created By:
#		UMaine-Advanced Computing Research Laboratory
#		http://www.clusters.umaine.edu 
#		Developers:
#		Glen Beane <hide@address.com> 
#		Eric Wages <hide@address.com>
#		Christopher Vaughan <hide@address.com>
#		Tristan McCann <hide@address.com>
# 

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 
# USA.

$pagefile = $_GET['page'];
include('templateheader.php'); #loads template navigation

#Base includes access so why is this neccessary?
#if(	$pagefile == "admin-queues" ||
#	$pagefile == "admin-refund"	||
#	)
#{
#	include('access.php');
#}

if($pagefile == "admin-billing" 			|| 
	$pagefile == "admin-costs" 			||	
	$pagefile == "admin-exit-status"		|| 
	$pagefile == "admin-finances"	 	|| 
	$pagefile == "admin-queues" 			|| 
	$pagefile == "admin-refund" 			||
	$pagefile == "admin-users"			||
	$pagefile == "announcements"			||
	$pagefile == "calc"					||
	$pagefile == "history"				||
	$pagefile == "jobhistory"			||
	$pagefile == "menu"					||
	$pagefile == "projects"				||
	$pagefile == "queues"				||
	$pagefile == "refund"				||
	$pagefile == "reports"				||
	$pagefile == "settings"				||
	$pagefile == "user-settings"			||
	$pagefile == "welcome"				)
{
	$title=$pagefile;
	if($pagefile == "calc")
		$title = "Service Unit Calculator";
	if($pagefile == "jobhistory")
		$title = "Queue Info";
	if($pagefile == "queues")
		$title = "Admin-Queues";
	if($pagefile == "reports")
		$title = "Admin-reports";
	if($pagefile == "settings")
		$title = "Admin-settings";

	include('title.php');  #includes the MyPBS title
	include('tools.php');  #includes the MyPBS tools menu
	include("includes/in_" . $pagefile . ".php");#loads content

	if($pagefile == "menu")
	{
		include('includes/graphs.php');
	}
	
}
else
{
	echo("page does not exist");
}
include('base.php');   #includes the MyPBs base
 
?>
Return current item: MyPBS