Location: PHPKode > projects > Axis Groupware > musiclib/inc/functions.inc.php
<?php
require_once('inc/db_functions.inc.php');
require_once('inc/music_functions.inc.php');
require_once('inc/playlist_functions.inc.php');
require_once('inc/output_functions.inc.php');
require_once('inc/update_functions.inc.php');

#include("config.inc.php");
#mysql_connect($db_host, $db_user, $db_pw) or die ("couldn't connect to db"); # was pconnect

/*
function addToQueue($song_id)
{
	global $user_id;
	global $messageTitle;
	global $messageBody;
	global $status;
	
	$kweerie = "SELECT * from queue WHERE song_id = '$song_id' and user_id = '$user_id' ";
	$result = mysql_db_query($db_name, $kweerie);

	if ($user_id < 1)
	{
		$messageTitle = "Oops!";
		$messageBody = "You must be logged in to vote...";
	}
	elseif ( mysql_num_rows($result) > 0)
	{
		$messageTitle = "Voting not allowed!";
		$messageBody = "You have already voted for this song!<BR>Wait a little....";
	}
	elseif ( $status < 1 )
	{
		$messageTitle = "Voting not allowed!";
		$messageBody = "Your account hasn't been activated yet.";
	}
	else
	{
		$kweerie = "INSERT INTO queue VALUES ('','$song_id','$user_id',NOW())";
		$result = mysql_db_query($db_name, $kweerie);
		$kweerie2 = "INSERT INTO history VALUES ('','$song_id','$user_id',NOW())";
		$result2 = mysql_db_query($db_name, $kweerie2);

		$messageTitle = "You have voted!";
		$messageBody = "Your vote has been registered";
	}
}
*/

#if (isset($voteFor)) addToQueue($voteFor);
?>
Return current item: Axis Groupware