mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
global $global, $config;
|
|
if (!isset($global['systemRootPath'])) {
|
|
require_once '../videos/configuration.php';
|
|
}
|
|
require_once $global['systemRootPath'] . 'objects/user.php';
|
|
require_once $global['systemRootPath'] . 'objects/category.php';
|
|
if (!Category::canCreateCategory()) {
|
|
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage categories"));
|
|
exit;
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?php echo getLanguage(); ?>">
|
|
<head>
|
|
<title><?php echo __("Categories") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/head.php';
|
|
|
|
include $global['systemRootPath'] . 'view/managerCategories_head.php';
|
|
?>
|
|
</head>
|
|
<body class="<?php echo $global['bodyClass']; ?>">
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
include $global['systemRootPath'] . 'view/managerCategories_body.php';
|
|
include $global['systemRootPath'] . 'view/include/footer.php'; ?>
|
|
</body>
|
|
</html>
|