49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
if (! db_tableExists("content_tabs")) {
|
|
$error_message = "This functionality is not available";
|
|
header("Location: /?error_message=".urlencode($error_message));
|
|
exit();
|
|
}
|
|
|
|
|
|
//
|
|
// Process all actions to list and edit records
|
|
//
|
|
$CurrentTable = "content_tabs";
|
|
$FormFile = "content_tabs.dialog.php";
|
|
$DialogWidth = 400;
|
|
$TitleText = getLanguageText('TEXT-MENU-TAB');
|
|
$SequenceFlag = 'Y';
|
|
$tableAction = "content-tabs";
|
|
$RequiredFields = array('tab_title');
|
|
|
|
|
|
// Start the template and output buffering
|
|
startTemplate();
|
|
$templatePageTitle = "$TitleText " . getLanguageText('TEXT-ADMINISTRATION');
|
|
|
|
|
|
// Ensure that only valid user types have access to this module
|
|
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Communications Administrator');
|
|
if (checkPermission($AllowedUserTypes) != 1) {
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
$action = '';
|
|
$naction = '';
|
|
header("Location: /?action=$action&naction=$naction&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
|
|
exit();
|
|
}
|
|
|
|
include "form.js.php";
|
|
|
|
endTemplate();
|
|
|
|
?>
|