1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/view/managerComments.php
2024-04-02 13:44:59 -03:00

25 lines
No EOL
687 B
PHP

<?php
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
require_once $global['systemRootPath'] . 'objects/user.php';
if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage comments"));
exit;
}
require_once $global['systemRootPath'] . 'objects/comment.php';
$_page = new Page(array('Comments'));
?>
<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-body">
<?php
include $global['systemRootPath'] . 'view/videoComments.php';
?>
</div>
</div>
</div>
<?php
$_page->print();
?>