<?
// WMJ v0.1-devel config file.
// Please check these configuration items.
// Read the comments per item carefully.
// Please read the 'README.1ST' 1st.

// IF YOU ALTER THE DATABASE name, please alter the 'wmj.sql' file too!
$mysqldatabase="wmjdb";		// MySQL databasename
$mysqlhost="localhost";		// MySQL host
$mysqluser="wmj";		// MySQL username
$mysqlpass="wmjpass";		// MySQL password

// ALL DIRECTORY's without trailing '/' !!!

/* The filedir is the full path to the MP3 dir (can be outside the docroot, but
   it MUST be writable by Apache!) */

$filedir="/var/www/html/mp3";

// Full path to the HTML docroot (used to find the shell-'deamon')
$htmldocroot="/var/www/html";

/* Directory- and playername where the MP3 player can be found.
 
   The directoryname must be without a trailing '/' and the playername without
   an '/' prepended. (so: $playerdir.'/'.$playername makes the full path) */
$playerdir="/bin";
$playername="amp";





/* DO NOT ALTER THINGS BELOW THIS LINE!!!! 
                                     (unless you know what you are doing :) ) */
// -----------------------------(i'm the line)------------------------------- //


$tempdir="/tmp"; // Full path to a temp directory (without trailing '/') !!!
$skindir="skins/"; // The URL to the skins (as: $docroot/"$skindir").
$mp3player=$playerdir."/".$playername; // DEVEL ONLY! Just vor v0.1pre compatibility.

/* This should be in a kind of prepend.php or something like it. */
session_start();
if (!$skin) { $skin="default"; } // DEVEL ONLY!
if ($setskin) { $skin=$setskin; }
session_register("skin");
if (is_readable($htmldocroot."/".$skindir.$skin."/settings.php")) { include $skindir.$skin."/settings.php"; }
?>