First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Process all actions to list and edit records
|
||||
//
|
||||
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
|
||||
|
||||
// Ensure that only valid user types have access to this module
|
||||
$AllowedUserTypes = array('SuperUser');
|
||||
if (checkPermission($AllowedUserTypes) != 1) {
|
||||
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
||||
include "form.messages.php";
|
||||
endTemplate();
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// Get parameters
|
||||
$fanum = 0;
|
||||
if (array_key_exists('formaction', $_GET)) $fanum = intval($_GET['formaction']);
|
||||
if ($fanum == 0) {
|
||||
logExit("Form Action Number not set");
|
||||
}
|
||||
|
||||
$action_name = db_getVal("SELECT action_name FROM _form_actions WHERE record_num = $fanum");
|
||||
if (!$action_name) logExit("Invalid Form Action Number parameter");
|
||||
|
||||
$TitleText = "Form Permission Management - $action_name";
|
||||
$templatePageTitle = $TitleText;
|
||||
|
||||
|
||||
//
|
||||
// Setup generic table processing
|
||||
//
|
||||
$FormActionName = "form-permission";
|
||||
$TableName = "_form_permission";
|
||||
$ListTableName = "form-permission";
|
||||
$SequenceFlag = 'Y';
|
||||
$DialogTitle = $TitleText;
|
||||
$SearchField = 'none';
|
||||
$CustomData = "&action_name=$action_name";
|
||||
|
||||
include "table-edit.php";
|
||||
|
||||
endTemplate();
|
||||
?>
|
||||
Reference in new issue
Block a user