mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
16 lines
474 B
PHP
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);
|