blob: cc3540991535396bee1904f5746e2c81cda7d7ca (
plain)
1
2
3
4
5
6
7
8
9
|
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php";
global $songs; global $_PROFILE; global $history;
if (!isset($_GET["i"])) return;
$history[] = $_GET["i"];
file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/users/" . $_PROFILE["id"] . "-history.json", json_encode($history));
|