35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
return;
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
// Ensure that only valid user types have access to this module
|
|
$AllowedUserTypes = array('SuperUser','System Administrator','Communications Administrator','Administration Team','Schedule Team','Supplier');
|
|
if (!in_array($_SESSION['UserInfo']['type'],$AllowedUserTypes)) {
|
|
return;
|
|
}
|
|
|
|
|
|
// Check that scriptName is set
|
|
if (!isset($scriptName)) return;
|
|
$scriptName = str_replace("/m/data1/app.hotlunches.net/","",$scriptName);
|
|
|
|
|
|
// Get help text for this module
|
|
echo("<!-- $scriptName -->\n");
|
|
$args = "name=$scriptName&action=$action&naction=$naction";
|
|
|
|
// Display the help button
|
|
?>
|
|
<script type="text/javascript">
|
|
function helpWindow() {
|
|
var helpwin=dhtmlwindow.open("helpbox","iframe","help.view.php?<?php echo($args) ?>","On-Line Help","width=590px,height=350px,resize=1,scrolling=1,center=1");
|
|
}
|
|
</script>
|
|
<a href='#' onClick='helpWindow(); return false;'><img src='images/help-black.gif' border='0' align='right'></a>
|