1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/objects/playlistsPublic.json.php
Daniel Neto 67ae23b855 Update
2024-12-04 19:12:37 -03:00

16 lines
474 B
PHP

<?php
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
if (!User::isLogged()) {
die();
}
require_once $global['systemRootPath'] . 'objects/playlist.php';
header('Content-Type: application/json');
_session_write_close();
setRowCount(10);
//mysqlBeginTransaction();
$row = PlayList::getAll('public', @$_REQUEST['Playlists_id'], (User::isAdmin()?0:USer::getId()));
//mysqlCommit();
echo json_encode($row);