-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.php
More file actions
31 lines (27 loc) · 1010 Bytes
/
request.php
File metadata and controls
31 lines (27 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Spotify Api module for xoops
*
* @package spotifyapi
* @subpackage page-level
* @author Squiz Pty Ltd <products@squiz.net>
* @copyright 2023 Michael Albertsen (www.culex.dk)
* @since 1.0
* @min_xoops 2.5.9
*/
use XoopsModules\Spotifyapi\{Spotifyapi_Helper};
require_once dirname(__DIR__, 2) . '/mainfile.php';
include __DIR__ . '/preloads/autoloader.php';
require_once __DIR__ . '/include/common.php';
require_once __DIR__ . '/include/functions.php';
require_once XOOPS_ROOT_PATH . '/class/template.php';
require_once XOOPS_ROOT_PATH . '/modules/spotifyapi/blocks/recentlyplayed.php';
$helper = Spotifyapi_Helper::getInstance();
$tpl = new \XoopsTpl();
$tpl->caching = 0;
$result = b_spotifyapi_show_recently_played();
$tpl->assign('block', $result);
$tpl->display(XOOPS_ROOT_PATH . "/modules/spotifyapi/templates/blocks/spotify_recentlyplayed_block.tpl");
spotifyapi_cors();
//$tpl->display('db:spotify_recentlyplayed_block');
$GLOBALS['xoopsLogger']->activated = false;