We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d4ebd5ce authored by Jonas Haraldsson's avatar Jonas Haraldsson

1.2 nowplaying and scobbling now working

parent a6d834a5
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
require_once($_SERVER['DOCUMENT_ROOT'] . '/config.php');
require_once('database.php'); require_once($install_path . 'database.php');
function check_web_auth($username, $token, $timestamp, $api_key, $sk) { function check_web_auth($username, $token, $timestamp, $api_key, $sk) {
// Validates authentication using a web services token // Validates authentication using a web services token
......
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
require_once('../../database.php'); require_once($_SERVER['DOCUMENT_ROOT'] . '/config.php');
require_once('../../scrobble-utils.php'); require_once($install_path . 'database.php');
require_once('../../auth-utils.php'); require_once($install_path . '1.x/scrobble-utils.php');
require_once($install_path . '1.x/auth-utils.php');
header('Content-Type: text/plain'); header('Content-Type: text/plain');
......
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
*/ */
require_once('database.php'); // include the database connection string require_once($_SERVER['DOCUMENT_ROOT'] . '/config.php');
require_once('temp-utils.php'); require_once($install_path . 'database.php');
require_once($install_path . 'temp-utils.php');
function useridFromSID($session_id) { function useridFromSID($session_id) {
//derive the username from a session ID //derive the username from a session ID
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
require_once($_SERVER['DOCUMENT_ROOT'] . '/config.php');
require_once('../../database.php'); require_once($install_path . 'database.php');
require_once('../../scrobble-utils.php'); require_once($install_path . '1.x/scrobble-utils.php');
if (!isset($_POST['s']) || !isset($_POST['a']) || !isset($_POST['t']) || !isset($_POST['i'])) { if (!isset($_POST['s']) || !isset($_POST['a']) || !isset($_POST['t']) || !isset($_POST['i'])) {
die("FAILED Required POST parameters are not set\n"); die("FAILED Required POST parameters are not set\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment